diff --git a/DemoApp/android/build.gradle b/DemoApp/android/build.gradle index fe13ec14e..f11f490c8 100644 --- a/DemoApp/android/build.gradle +++ b/DemoApp/android/build.gradle @@ -23,8 +23,8 @@ allprojects { maven { url 'http://microsoftsonoma.bintray.com/sonoma' credentials { - username 'sonoma-beta' - password 'cbaf881993ad1ab4128f71da716d060e8590906a' + username 'mobile-center' + password '9263658ba66b541c798b704723cc020cb40c6f78' } } } diff --git a/RNMobileCenter/android/build.gradle b/RNMobileCenter/android/build.gradle index bdb9afd79..a2f4584c6 100644 --- a/RNMobileCenter/android/build.gradle +++ b/RNMobileCenter/android/build.gradle @@ -4,7 +4,7 @@ buildscript { } dependencies { classpath 'com.android.tools.build:gradle:2.2.0' - classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7' + classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.1' classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5' // NOTE: Do not place your application dependencies here; they belong @@ -123,5 +123,5 @@ repositories { dependencies { compile 'com.android.support:appcompat-v7:23.0.1' - compile 'com.microsoft.azure.mobile:mobile-center:0.2.+' + compile 'com.microsoft.azure.mobile:mobile-center:0.3.+' } \ No newline at end of file diff --git a/RNMobileCenter/android/src/main/java/com/microsoft/azure/mobile/mobile/react/mobilecenter/RNMobileCenter.java b/RNMobileCenter/android/src/main/java/com/microsoft/azure/mobile/mobile/react/mobilecenter/RNMobileCenter.java index 6933b770b..98c43ccf7 100644 --- a/RNMobileCenter/android/src/main/java/com/microsoft/azure/mobile/mobile/react/mobilecenter/RNMobileCenter.java +++ b/RNMobileCenter/android/src/main/java/com/microsoft/azure/mobile/mobile/react/mobilecenter/RNMobileCenter.java @@ -14,8 +14,8 @@ public class RNMobileCenter { private static Application application; private static WrapperSdk wrapperSdk = new WrapperSdk(); - public static void initializeMobileCenter(Application application) { - if (MobileCenter.isInitialized()) { + public static void configureMobileCenter(Application application) { + if (MobileCenter.isConfigured()) { return; } RNMobileCenter.application = application; @@ -24,7 +24,7 @@ public static void initializeMobileCenter(Application application) { RNMobileCenter.wrapperSdk.setWrapperSdkName(com.microsoft.azure.mobile.react.mobilecenter.BuildConfig.SDK_NAME); MobileCenter.setWrapperSdk(wrapperSdk); - MobileCenter.initialize(application, RNMobileCenter.getAppSecret()); + MobileCenter.configure(application, RNMobileCenter.getAppSecret()); } /** diff --git a/RNMobileCenter/ios/RNMobileCenter/RNMobileCenter.h b/RNMobileCenter/ios/RNMobileCenter/RNMobileCenter.h index c317a206f..bc5510de5 100644 --- a/RNMobileCenter/ios/RNMobileCenter/RNMobileCenter.h +++ b/RNMobileCenter/ios/RNMobileCenter/RNMobileCenter.h @@ -8,7 +8,7 @@ + (NSString *) getAppSecret; -+ (void) initializeMobileCenter; ++ (void) configureMobileCenter; + (void) setEnabled:(BOOL) enabled; diff --git a/RNMobileCenter/ios/RNMobileCenter/RNMobileCenter.m b/RNMobileCenter/ios/RNMobileCenter/RNMobileCenter.m index 7d22d09e8..ee0b433cd 100644 --- a/RNMobileCenter/ios/RNMobileCenter/RNMobileCenter.m +++ b/RNMobileCenter/ios/RNMobileCenter/RNMobileCenter.m @@ -23,9 +23,9 @@ + (NSString *) getAppSecret return appSecret; } -+ (void) initializeMobileCenter ++ (void) configureMobileCenter { - if (![MSMobileCenter isInitialized]) { + if (![MSMobileCenter isConfigured]) { MSWrapperSdk * wrapperSdk = [[MSWrapperSdk alloc] initWithWrapperSdkVersion:@"0.1.0" @@ -34,7 +34,7 @@ + (void) initializeMobileCenter liveUpdateDeploymentKey:nil liveUpdatePackageHash:nil]; [self setWrapperSdk:wrapperSdk]; - [MSMobileCenter start:[RNMobileCenter getAppSecret]]; + [MSMobileCenter configureWithAppSecret:[RNMobileCenter getAppSecret]]; } }