Skip to content

Commit

Permalink
Update native modules to use Voximplant Android SDK 2.35.2 and Voximp…
Browse files Browse the repository at this point in the history
…lant iOS SDK 2.47.0
  • Loading branch information
YuliaGrigorieva committed May 22, 2023
1 parent c840b87 commit f4a2137
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ repositories {
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "com.facebook.react:react-native:+"
implementation "com.voximplant:voximplant-sdk:2.34.0"
implementation "com.voximplant:voximplant-sdk:2.35.2"
implementation "androidx.annotation:annotation:1.5.0"
}

Expand Down
2 changes: 1 addition & 1 deletion ios/RNVIAudioDeviceModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <VoxImplant/VoxImplant.h>
#import <VoxImplantSDK/VoxImplantSDK.h>
#import "RCTBridgeModule.h"
#import "RCTEventEmitter.h"

Expand Down
2 changes: 1 addition & 1 deletion ios/RNVIAudioFileManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright (c) 2011-2020, Zingaya, Inc. All rights reserved.
*/

#import <VoxImplant/VoxImplant.h>
#import <VoxImplantSDK/VoxImplantSDK.h>

@interface RNVIAudioFileManager : NSObject

Expand Down
2 changes: 1 addition & 1 deletion ios/RNVIAudioFileModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright (c) 2011-2019, Zingaya, Inc. All rights reserved.
*/

#import <VoxImplant/VoxImplant.h>
#import <VoxImplantSDK/VoxImplantSDK.h>
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "RCTBridgeModule.h"
Expand Down
2 changes: 1 addition & 1 deletion ios/RNVICallManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright (c) 2011-2019, Zingaya, Inc. All rights reserved.
*/

#import <VoxImplant/VoxImplant.h>
#import <VoxImplantSDK/VoxImplantSDK.h>

@interface RNVICallManager : NSObject

Expand Down
2 changes: 1 addition & 1 deletion ios/RNVICallModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#import "RCTBridgeModule.h"
#import "RCTEventEmitter.h"
#import <VoxImplant/VoxImplant.h>
#import <VoxImplantSDK/VoxImplantSDK.h>


@interface RNVICallModule : RCTEventEmitter <RCTBridgeModule, VICallDelegate, VIEndpointDelegate, VIQualityIssueDelegate>
Expand Down
6 changes: 3 additions & 3 deletions ios/RNVICameraModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#import "RNVICameraModule.h"
#import "RCTBridgeModule.h"
#import "RNVIConstants.h"
#import <Voximplant/VoxImplant.h>
#import <VoxImplantSDK/VoxImplantSDK.h>

@interface RNVICameraModule()
@end
Expand All @@ -30,7 +30,7 @@ @implementation RNVICameraModule

RCT_REMAP_METHOD(setCameraResolution, setCameraWidth:(int)width andHeight:(int)height) {
AVCaptureDevicePosition position = [VICameraManager sharedCameraManager].useBackCamera ? AVCaptureDevicePositionBack : AVCaptureDevicePositionFront;

NSArray<AVCaptureDevice *> *captureDevices = [[VICameraManager sharedCameraManager] captureDevices];
AVCaptureDevice *captureDevice = captureDevices[0];
for (AVCaptureDevice *device in captureDevices) {
Expand All @@ -44,7 +44,7 @@ @implementation RNVICameraModule
int targetHeight = height;
AVCaptureDeviceFormat *selectedFormat = nil;
int currentDiff = INT_MAX;

for (AVCaptureDeviceFormat *format in formats) {
CMVideoDimensions dimension = CMVideoFormatDescriptionGetDimensions(format.formatDescription);
int diff = abs(targetWidth - dimension.width) + abs(targetHeight - dimension.height);
Expand Down
2 changes: 1 addition & 1 deletion ios/RNVIClientModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#import <React/RCTBridgeModule.h>
#import <React/RCTEventEmitter.h>
#import <VoxImplant/VoxImplant.h>
#import <VoxImplantSDK/VoxImplantSDK.h>

@interface RNVIClientModule : RCTEventEmitter <RCTBridgeModule, VIClientSessionDelegate, VIClientCallManagerDelegate, VILogDelegate>
+ (NSUUID *)uuidForPushNotification:(NSDictionary *)notification;
Expand Down
2 changes: 1 addition & 1 deletion ios/RNVIMessagingModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#import "RCTBridgeModule.h"
#import "RCTEventEmitter.h"
#import <VoxImplant/VoxImplant.h>
#import <VoxImplantSDK/VoxImplantSDK.h>

@interface RNVIMessagingModule : RCTEventEmitter <RCTBridgeModule, VIMessengerDelegate>
@end
2 changes: 1 addition & 1 deletion ios/RNVIUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#import <Foundation/Foundation.h>

#import <VoxImplant/VoxImplant.h>
#import <VoxImplantSDK/VoxImplantSDK.h>

@interface RNVIUtils : NSObject
+ (NSData *)dataFromHexString:(NSString *)string;
Expand Down
2 changes: 1 addition & 1 deletion ios/RNVIVideoViewImpl.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

#import "RNVIVideoViewImpl.h"
#import <VoxImplant/VoxImplant.h>
#import <VoxImplantSDK/VoxImplantSDK.h>
#import "RNVICallManager.h"
#import "RNVIUtils.h"

Expand Down
2 changes: 1 addition & 1 deletion react-native-voximplant.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Pod::Spec.new do |s|
s.source = {:path => './ios/'}
s.summary = 'RN voximplant'
s.version = '1.36.0'
s.dependency 'VoxImplantSDK', '2.46.11'
s.dependency 'VoxImplantSDK', '2.47.0'
if fabric_enabled
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
s.pod_target_xcconfig = {
Expand Down

0 comments on commit f4a2137

Please sign in to comment.