From 3970e7e92595acc4dffb58817b99aa703a7cf3d0 Mon Sep 17 00:00:00 2001 From: YuliaGrigorieva Date: Mon, 24 Aug 2020 17:48:27 +0300 Subject: [PATCH] Update native modules, changelog and sdk version to 1.22.0 --- CHANGELOG.md | 4 ++++ android/build.gradle | 2 +- android/src/main/java/com/voximplant/reactnative/Utils.java | 2 ++ .../main/java/com/voximplant/reactnative/VIClientModule.java | 2 +- ios/VIClientModule.m | 2 +- package.json | 2 +- react-native-voximplant.podspec | 4 ++-- 7 files changed, 12 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c5f9871..1532f21 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +### 1.22.0 +- Update native Android and iOS modules to use Voximplant Android SDK 2.20.2 and Voximplant iOS SDK 2.34.1 +- Fix for: [#120](https://github.com/voximplant/react-native-voximplant/issues/120) + ### 1.21.0 - Add new API to improve CallKit integration on iOS: - Call.callKitUUID - JS API diff --git a/android/build.gradle b/android/build.gradle index 7d79dbc..4593210 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -36,5 +36,5 @@ repositories { dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) implementation "com.facebook.react:react-native:+" - implementation "com.voximplant:voximplant-sdk:2.19.0" + implementation "com.voximplant:voximplant-sdk:2.20.2" } diff --git a/android/src/main/java/com/voximplant/reactnative/Utils.java b/android/src/main/java/com/voximplant/reactnative/Utils.java index 6304b51..8d4d88c 100644 --- a/android/src/main/java/com/voximplant/reactnative/Utils.java +++ b/android/src/main/java/com/voximplant/reactnative/Utils.java @@ -339,6 +339,8 @@ static int convertLoginErrorToInt(LoginError error) { switch (error) { case INVALID_PASSWORD: return 401; + case MAU_ACCESS_DENIED: + return 402; case ACCOUNT_FROZEN: return 403; case INVALID_USERNAME: diff --git a/android/src/main/java/com/voximplant/reactnative/VIClientModule.java b/android/src/main/java/com/voximplant/reactnative/VIClientModule.java index 5a52c15..914d62b 100644 --- a/android/src/main/java/com/voximplant/reactnative/VIClientModule.java +++ b/android/src/main/java/com/voximplant/reactnative/VIClientModule.java @@ -88,7 +88,7 @@ public String getName() { @ReactMethod public void init(boolean enableVideo, boolean enableDebugLogging, boolean enableCameraMirroring, boolean enableLogcatLogging, String videoCodec, String packageName, String requestAudioFocusMode) { - Voximplant.subVersion = "react-1.21.0"; + Voximplant.subVersion = "react-1.22.0"; ClientConfig config = new ClientConfig(); config.enableVideo = enableVideo; config.enableDebugLogging = enableDebugLogging; diff --git a/ios/VIClientModule.m b/ios/VIClientModule.m index ffa6f0a..b7c8837 100644 --- a/ios/VIClientModule.m +++ b/ios/VIClientModule.m @@ -91,7 +91,7 @@ - (void)stopObserving { } RCT_REMAP_METHOD(initWithOptions, init:(VILogLevel)logLevel bundleId:(NSString *)bundleId h264RecoveryMode:(BOOL)h264RecoveryMode) { - [VIClient setVersionExtension:@"react-1.21.0"]; + [VIClient setVersionExtension:@"react-1.22.0"]; [VIClient setLogLevel:logLevel]; if (h264RecoveryMode) { RTCInitFieldTrialDictionary(@{ diff --git a/package.json b/package.json index cd7aa68..d77ce45 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-voximplant", - "version": "1.21.0", + "version": "1.22.0", "description": "VoxImplant Mobile SDK for embedding voice and video communication into React Native apps.", "nativePackage": true, "keywords": [ diff --git a/react-native-voximplant.podspec b/react-native-voximplant.podspec index 3b0118b..f05329a 100644 --- a/react-native-voximplant.podspec +++ b/react-native-voximplant.podspec @@ -7,7 +7,7 @@ Pod::Spec.new do |s| s.homepage = 'https://github.com/voximplant/react-native-voximplant' s.source = {:path => './ios/'} s.summary = 'RN voximplant' - s.version = '1.21.0' - s.dependency 'VoxImplantSDK', '2.32.1' + s.version = '1.22.0' + s.dependency 'VoxImplantSDK', '2.34.1' s.dependency 'React' end