Skip to content

Commit

Permalink
Update native modules, changelog and sdk version to 1.22.0
Browse files Browse the repository at this point in the history
  • Loading branch information
YuliaGrigorieva committed Aug 24, 2020
1 parent 2d056d0 commit 3970e7e
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
2 changes: 2 additions & 0 deletions android/src/main/java/com/voximplant/reactnative/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion ios/VIClientModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -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(@{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
4 changes: 2 additions & 2 deletions react-native-voximplant.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3970e7e

Please sign in to comment.