| @@ -130,10 +130,14 @@ android { | |||||
| } | } | ||||
| buildTypes { | buildTypes { | ||||
| debug { | debug { | ||||
| buildConfigField "String", "API_HOST", "\"https://mall.youlane.cn/\""//API Host | |||||
| buildConfigField "String", "API_HOST", "\"https://mall.youlane.cn/\"" | |||||
| buildConfigField "String", "CODEPUSH_HOST", "\"http://202.165.179.86:3333/\"" | |||||
| buildConfigField "String", "CODEPUSH_KEY", "\"8snO1yoHlvhEtBjr02zTr3g1comw4ksvOXqog\"" | |||||
| } | } | ||||
| release { | release { | ||||
| buildConfigField "String", "API_HOST", "\"https://admin.malls.iformall.com/\""//API Host | |||||
| buildConfigField "String", "API_HOST", "\"https://admin.malls.iformall.com/\"" | |||||
| buildConfigField "String", "CODEPUSH_HOST", "\"http://202.165.179.86:3333/\"" | |||||
| buildConfigField "String", "CODEPUSH_KEY", "\"9rYZYySFD0ryN5wCD9YmjJkT55Kf4ksvOXqog\"" | |||||
| minifyEnabled enableProguardInReleaseBuilds | minifyEnabled enableProguardInReleaseBuilds | ||||
| proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" | ||||
| } | } | ||||
| @@ -31,10 +31,10 @@ public class MainApplication extends Application implements ReactApplication { | |||||
| return Arrays.<ReactPackage>asList( | return Arrays.<ReactPackage>asList( | ||||
| new MainReactPackage(), | new MainReactPackage(), | ||||
| new CodePush( | new CodePush( | ||||
| getResources().getString(R.string.reactNativeCodePush_androidDeploymentKey), | |||||
| BuildConfig.CODEPUSH_KEY, | |||||
| getApplicationContext(), | getApplicationContext(), | ||||
| BuildConfig.DEBUG, | BuildConfig.DEBUG, | ||||
| "http://202.165.179.86:3333/" | |||||
| BuildConfig.CODEPUSH_HOST | |||||
| ) | ) | ||||
| ); | ); | ||||
| } | } | ||||
| @@ -1,4 +1,3 @@ | |||||
| <resources> | <resources> | ||||
| <string moduleConfig="true" name="reactNativeCodePush_androidDeploymentKey">9rYZYySFD0ryN5wCD9YmjJkT55Kf4ksvOXqog</string> | |||||
| <string name="app_name">screenAd</string> | <string name="app_name">screenAd</string> | ||||
| </resources> | </resources> | ||||
| @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME | |||||
| distributionPath=wrapper/dists | distributionPath=wrapper/dists | ||||
| zipStoreBase=GRADLE_USER_HOME | zipStoreBase=GRADLE_USER_HOME | ||||
| zipStorePath=wrapper/dists | zipStorePath=wrapper/dists | ||||
| distributionUrl=https\://services.gradle.org/distributions/gradle-4.7-all.zip | |||||
| distributionUrl=gradle-4.7-all.zip | |||||