Skip to content

Commit a62e60d

Browse files
committed
Update server URL in CodePushConfig and adjust Gradle link path in linkToolsAndroid
1 parent d95e1e5 commit a62e60d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

ios/CodePush/CodePushConfig.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ - (instancetype)init
3636
NSString *deploymentKey = [infoDictionary objectForKey:@"CodePushDeploymentKey"];
3737
NSString *serverURL = [infoDictionary objectForKey:@"CodePushServerURL"];
3838
NSString *publicKey = [infoDictionary objectForKey:@"CodePushPublicKey"];
39-
39+
4040
NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
4141
NSString *clientUniqueId = [userDefaults stringForKey:ClientUniqueIDConfigKey];
4242
if (clientUniqueId == nil) {
@@ -46,7 +46,7 @@ - (instancetype)init
4646
}
4747

4848
if (!serverURL) {
49-
serverURL = @"https://codepush.appcenter.ms/";
49+
serverURL = @"https://api.srcpush.com/";
5050
}
5151

5252
_configDictionary = [NSMutableDictionary dictionary];

scripts/tools/linkToolsAndroid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ exports.getJSBundleFileOverride = `
1313
`;
1414
exports.reactNativeHostInstantiation = "new ReactNativeHost(this) {";
1515
exports.mainActivityClassDeclaration = "public class MainActivity extends ReactActivity {";
16-
exports.codePushGradleLink = `\napply from: "../../node_modules/react-native-code-push/android/codepush.gradle"`;
16+
exports.codePushGradleLink = `\napply from: "../../node_modules/@srcpush/react-native-code-push/android/codepush.gradle"`;
1717
exports.deploymentKeyName = "CodePushDeploymentKey";
1818

1919
exports.getMainApplicationLocation = function () {

0 commit comments

Comments
 (0)