├── .gitattributes ├── RNZoomUSBridgeExample ├── .watchmanconfig ├── .editorconfig ├── app.json ├── .eslintrc.js ├── babel.config.js ├── android │ ├── app │ │ ├── src │ │ │ ├── main │ │ │ │ ├── res │ │ │ │ │ ├── values │ │ │ │ │ │ ├── strings.xml │ │ │ │ │ │ └── styles.xml │ │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ └── mipmap-xxxhdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── java │ │ │ │ │ └── com │ │ │ │ │ │ └── rnzoomusbridgeexample │ │ │ │ │ │ ├── MainActivity.java │ │ │ │ │ │ └── MainApplication.java │ │ │ │ └── AndroidManifest.xml │ │ │ └── debug │ │ │ │ ├── AndroidManifest.xml │ │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── rnzoomusbridgeexample │ │ │ │ └── ReactNativeFlipper.java │ │ ├── debug.keystore │ │ ├── proguard-rules.pro │ │ ├── build_defs.bzl │ │ ├── _BUCK │ │ └── build.gradle │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ ├── settings.gradle │ ├── build.gradle │ ├── gradle.properties │ ├── gradlew.bat │ └── gradlew ├── ios │ ├── RNZoomUSBridgeExample │ │ ├── Images.xcassets │ │ │ ├── Contents.json │ │ │ └── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ ├── AppDelegate.h │ │ ├── main.m │ │ ├── Info.plist │ │ ├── AppDelegate.m │ │ └── LaunchScreen.storyboard │ ├── Fix.swift │ ├── RNZoomUSBridgeExample-Bridging-Header.h │ ├── RNZoomUSBridgeExample.xcworkspace │ │ ├── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ │ └── contents.xcworkspacedata │ ├── Podfile │ ├── RNZoomUSBridgeExample.xcodeproj │ │ ├── xcshareddata │ │ │ └── xcschemes │ │ │ │ └── RNZoomUSBridgeExample.xcscheme │ │ └── project.pbxproj │ └── Podfile.lock ├── .buckconfig ├── .gitattributes ├── .prettierrc.js ├── index.js ├── __tests__ │ └── App-test.js ├── package.json ├── metro.config.js ├── .gitignore ├── .flowconfig └── App.js ├── assets ├── ios_bitcode.png ├── ios_image1.jpg ├── ios_image2.jpg ├── ios_image3.jpg ├── ios_image4.jpg ├── ios_image5.jpg ├── ios_image6.jpg ├── android_image1.jpg ├── android_image2.jpg ├── android_image3.jpg ├── android_image4.jpg ├── android_image5.jpg ├── bridge-example-ios.gif └── bridge-example-android.gif ├── ios ├── RNZoomUsBridge.h ├── RNZoomUsBridge.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── RNZoomUsBridgeEventEmitter.h ├── RNZoomUsManager.h ├── RNZoomUsBridgeEventEmitter.m ├── RNZoomUsManager.m ├── RNZoomUsBridge.m └── RNZoomUsBridge.xcodeproj │ └── project.pbxproj ├── android ├── src │ └── main │ │ ├── AndroidManifest.xml │ │ └── java │ │ └── com │ │ └── mokriya │ │ └── zoomus │ │ ├── RNZoomUsBridgePackage.java │ │ ├── RNZoomUsBridgeHelper.java │ │ └── RNZoomUsBridgeModule.java ├── README.md └── build.gradle ├── .npmignore ├── index.js ├── .gitignore ├── .github └── ISSUE_TEMPLATE │ └── bug_report.md ├── RNZoomUsBridge.podspec ├── LICENSE ├── package.json ├── scripts └── mobilertc-precompile.sh ├── COMMON_ERRORS.md └── README.md /.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/.editorconfig: -------------------------------------------------------------------------------- 1 | # Windows files 2 | [*.bat] 3 | end_of_line = crlf 4 | -------------------------------------------------------------------------------- /assets/ios_bitcode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nagarro-dv/react-native-zoom-us-bridge/HEAD/assets/ios_bitcode.png -------------------------------------------------------------------------------- /assets/ios_image1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nagarro-dv/react-native-zoom-us-bridge/HEAD/assets/ios_image1.jpg -------------------------------------------------------------------------------- /assets/ios_image2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nagarro-dv/react-native-zoom-us-bridge/HEAD/assets/ios_image2.jpg -------------------------------------------------------------------------------- /assets/ios_image3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nagarro-dv/react-native-zoom-us-bridge/HEAD/assets/ios_image3.jpg -------------------------------------------------------------------------------- /assets/ios_image4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nagarro-dv/react-native-zoom-us-bridge/HEAD/assets/ios_image4.jpg -------------------------------------------------------------------------------- /assets/ios_image5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nagarro-dv/react-native-zoom-us-bridge/HEAD/assets/ios_image5.jpg -------------------------------------------------------------------------------- /assets/ios_image6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nagarro-dv/react-native-zoom-us-bridge/HEAD/assets/ios_image6.jpg -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "RNZoomUSBridgeExample", 3 | "displayName": "RNZoomUSBridgeExample" 4 | } -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | extends: '@react-native-community', 4 | }; 5 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:metro-react-native-babel-preset'], 3 | }; 4 | -------------------------------------------------------------------------------- /assets/android_image1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nagarro-dv/react-native-zoom-us-bridge/HEAD/assets/android_image1.jpg -------------------------------------------------------------------------------- /assets/android_image2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nagarro-dv/react-native-zoom-us-bridge/HEAD/assets/android_image2.jpg -------------------------------------------------------------------------------- /assets/android_image3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nagarro-dv/react-native-zoom-us-bridge/HEAD/assets/android_image3.jpg -------------------------------------------------------------------------------- /assets/android_image4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nagarro-dv/react-native-zoom-us-bridge/HEAD/assets/android_image4.jpg -------------------------------------------------------------------------------- /assets/android_image5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nagarro-dv/react-native-zoom-us-bridge/HEAD/assets/android_image5.jpg -------------------------------------------------------------------------------- /assets/bridge-example-ios.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nagarro-dv/react-native-zoom-us-bridge/HEAD/assets/bridge-example-ios.gif -------------------------------------------------------------------------------- /ios/RNZoomUsBridge.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface RNZoomUsBridge : NSObject 4 | 5 | @end 6 | -------------------------------------------------------------------------------- /assets/bridge-example-android.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nagarro-dv/react-native-zoom-us-bridge/HEAD/assets/bridge-example-android.gif -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | RNZoomUSBridgeExample 3 | 4 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/ios/RNZoomUSBridgeExample/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nagarro-dv/react-native-zoom-us-bridge/HEAD/RNZoomUSBridgeExample/android/app/debug.keystore -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/ios/Fix.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Fix.swift 3 | // RNZoomUSBridgeExample 4 | // 5 | // Created by Jim Ji on 6/22/21. 6 | // 7 | 8 | import Foundation 9 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/.gitattributes: -------------------------------------------------------------------------------- 1 | # Windows files should use crlf line endings 2 | # https://help.github.com/articles/dealing-with-line-endings/ 3 | *.bat text eol=crlf 4 | -------------------------------------------------------------------------------- /android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/ios/RNZoomUSBridgeExample-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | // 2 | // Use this file to import your target's public headers that you would like to expose to Swift. 3 | // 4 | 5 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nagarro-dv/react-native-zoom-us-bridge/HEAD/RNZoomUSBridgeExample/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | bracketSpacing: false, 3 | jsxBracketSameLine: true, 4 | singleQuote: true, 5 | trailingComma: 'all', 6 | arrowParens: 'avoid', 7 | }; 8 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | RNZoomUSBridgeExample 2 | android/build 3 | .github 4 | ios/RNZoomUsBridge.xcodeproj/project.xcworkspace/xcuserdata 5 | ios/RNZoomUsBridge.xcworkspace/xcuserdata 6 | ios/RNZoomUsBridge.xcodeproj/xcuserdata -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nagarro-dv/react-native-zoom-us-bridge/HEAD/RNZoomUSBridgeExample/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nagarro-dv/react-native-zoom-us-bridge/HEAD/RNZoomUSBridgeExample/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nagarro-dv/react-native-zoom-us-bridge/HEAD/RNZoomUSBridgeExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nagarro-dv/react-native-zoom-us-bridge/HEAD/RNZoomUSBridgeExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nagarro-dv/react-native-zoom-us-bridge/HEAD/RNZoomUSBridgeExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nagarro-dv/react-native-zoom-us-bridge/HEAD/RNZoomUSBridgeExample/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nagarro-dv/react-native-zoom-us-bridge/HEAD/RNZoomUSBridgeExample/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nagarro-dv/react-native-zoom-us-bridge/HEAD/RNZoomUSBridgeExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nagarro-dv/react-native-zoom-us-bridge/HEAD/RNZoomUSBridgeExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nagarro-dv/react-native-zoom-us-bridge/HEAD/RNZoomUSBridgeExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /ios/RNZoomUsBridge.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import {AppRegistry} from 'react-native'; 6 | import App from './App'; 7 | import {name as appName} from './app.json'; 8 | 9 | AppRegistry.registerComponent(appName, () => App); 10 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | import { NativeModules } from 'react-native'; 2 | 3 | const { RNZoomUsBridge, RNZoomUsBridgeEventEmitter: _RNZoomUsBridgeEventEmitter } = NativeModules; 4 | 5 | export default RNZoomUsBridge; 6 | export const RNZoomUsBridgeEventEmitter = _RNZoomUsBridgeEventEmitter; -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/ios/RNZoomUSBridgeExample/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : UIResponder 5 | 6 | @property (nonatomic, strong) UIWindow *window; 7 | 8 | @end 9 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/ios/RNZoomUSBridgeExample/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char * argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'RNZoomUSBridgeExample' 2 | apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) 3 | include ':app' 4 | include ':mobilertc' 5 | include ':commonlib' -------------------------------------------------------------------------------- /ios/RNZoomUsBridge.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/ios/RNZoomUSBridgeExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/ios/RNZoomUSBridgeExample.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/__tests__/App-test.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import 'react-native'; 6 | import React from 'react'; 7 | import App from '../App'; 8 | 9 | // Note: test renderer must be required after react-native. 10 | import renderer from 'react-test-renderer'; 11 | 12 | it('renders correctly', () => { 13 | renderer.create(); 14 | }); 15 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/android/app/src/main/java/com/rnzoomusbridgeexample/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.rnzoomusbridgeexample; 2 | 3 | import com.facebook.react.ReactActivity; 4 | 5 | public class MainActivity extends ReactActivity { 6 | 7 | /** 8 | * Returns the name of the main component registered from JavaScript. This is used to schedule 9 | * rendering of the component. 10 | */ 11 | @Override 12 | protected String getMainComponentName() { 13 | return "RNZoomUSBridgeExample"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /ios/RNZoomUsBridgeEventEmitter.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import 4 | 5 | NS_ASSUME_NONNULL_BEGIN 6 | 7 | @interface RNZoomUsBridgeEventEmitter : RCTEventEmitter 8 | 9 | - (void)userSDKInitilized:(NSDictionary *)result; 10 | - (void)userStartedAMeeting:(NSDictionary *)result; 11 | - (void)userJoinedAMeeting:(NSDictionary *)result; 12 | - (void)meetingWaitingRoomIsActive:(NSDictionary *)result; 13 | - (void)meetingErrored:(NSDictionary *)result; 14 | 15 | - (void)userToggledMeetingHidden:(BOOL)hidden; 16 | 17 | - (void)userEndedTheMeeting:(NSDictionary *)result; 18 | 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/android/app/build_defs.bzl: -------------------------------------------------------------------------------- 1 | """Helper definitions to glob .aar and .jar targets""" 2 | 3 | def create_aar_targets(aarfiles): 4 | for aarfile in aarfiles: 5 | name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")] 6 | lib_deps.append(":" + name) 7 | android_prebuilt_aar( 8 | name = name, 9 | aar = aarfile, 10 | ) 11 | 12 | def create_jar_targets(jarfiles): 13 | for jarfile in jarfiles: 14 | name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")] 15 | lib_deps.append(":" + name) 16 | prebuilt_jar( 17 | name = name, 18 | binary_jar = jarfile, 19 | ) 20 | -------------------------------------------------------------------------------- /android/README.md: -------------------------------------------------------------------------------- 1 | README 2 | ====== 3 | 4 | If you want to publish the lib as a maven dependency, follow these steps before publishing a new version to npm: 5 | 6 | 1. Be sure to have the Android [SDK](https://developer.android.com/studio/index.html) and [NDK](https://developer.android.com/ndk/guides/index.html) installed 7 | 2. Be sure to have a `local.properties` file in this folder that points to the Android SDK and NDK 8 | ``` 9 | ndk.dir=/Users/{username}/Library/Android/sdk/ndk-bundle 10 | sdk.dir=/Users/{username}/Library/Android/sdk 11 | ``` 12 | 3. Delete the `maven` folder 13 | 4. Run `./gradlew installArchives` 14 | 5. Verify that latest set of generated files is in the maven folder with the correct version number 15 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # node.js 6 | # 7 | node_modules/ 8 | npm-debug.log 9 | yarn-error.log 10 | 11 | # Xcode 12 | # 13 | build/ 14 | *.pbxuser 15 | !default.pbxuser 16 | *.mode1v3 17 | !default.mode1v3 18 | *.mode2v3 19 | !default.mode2v3 20 | *.perspectivev3 21 | !default.perspectivev3 22 | xcuserdata 23 | *.xccheckout 24 | *.moved-aside 25 | DerivedData 26 | *.hmap 27 | *.ipa 28 | *.xcuserstate 29 | project.xcworkspace 30 | 31 | # Android/IntelliJ 32 | # 33 | build/ 34 | .idea 35 | .gradle 36 | local.properties 37 | *.iml 38 | *.hprof 39 | 40 | # BUCK 41 | buck-out/ 42 | \.buckd/ 43 | *.keystore 44 | 45 | # Temp ignore 46 | RNZoomUSBridgeExampleBk/ 47 | MobileRTC.xcframework/ 48 | MobileRTCResources.bundle/ 49 | commonlib/ 50 | mobilertc/ -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/ios/Podfile: -------------------------------------------------------------------------------- 1 | require_relative '../node_modules/react-native/scripts/react_native_pods' 2 | require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' 3 | 4 | platform :ios, '10.0' 5 | 6 | target 'RNZoomUSBridgeExample' do 7 | config = use_native_modules! 8 | 9 | use_react_native!( 10 | :path => config[:reactNativePath], 11 | # to enable hermes on iOS, change `false` to `true` and then install pods 12 | :hermes_enabled => false 13 | ) 14 | 15 | # Enables Flipper. 16 | # 17 | # Note that if you have use_frameworks! enabled, Flipper will not work and 18 | # you should disable the next line. 19 | # use_flipper!() 20 | 21 | post_install do |installer| 22 | react_native_post_install(installer) 23 | end 24 | end -------------------------------------------------------------------------------- /ios/RNZoomUsManager.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | NS_ASSUME_NONNULL_BEGIN 5 | 6 | @interface RNZoomUsManager : NSObject 7 | 8 | + (RNZoomUsManager *)sharedInstance; 9 | 10 | - (void)authenticate:(NSString *)appKey appSecret:(NSString *)appSecret completion:(void (^_Nonnull)(NSUInteger resultCode))completion; 11 | - (void)joinMeeting:(NSString *)meetingId userName:(NSString *)userName password:(NSString *)password completion:(void (^_Nonnull)(NSUInteger resultCode))completion; 12 | - (void)startMeeting:(NSString *)meetingId userName:(NSString *)userName userId:(NSString *)userId userZak:(NSString *)userZak completion:(void (^_Nonnull)(NSUInteger resultCode))completion; 13 | 14 | @end 15 | 16 | NS_ASSUME_NONNULL_END 17 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/ios/RNZoomUSBridgeExample/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "rnzoomusbridgeexample", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "android": "react-native run-android", 7 | "ios": "react-native run-ios", 8 | "start": "react-native start", 9 | "test": "jest", 10 | "lint": "eslint ." 11 | }, 12 | "dependencies": { 13 | "react": "17.0.1", 14 | "react-native": "0.64.2", 15 | "@mokriya/react-native-zoom-us-bridge": "link:../" 16 | }, 17 | "devDependencies": { 18 | "@babel/core": "^7.12.9", 19 | "@babel/runtime": "^7.12.5", 20 | "@react-native-community/eslint-config": "^2.0.0", 21 | "babel-jest": "^26.6.3", 22 | "eslint": "7.14.0", 23 | "jest": "^26.6.3", 24 | "metro-react-native-babel-preset": "^0.64.0", 25 | "react-test-renderer": "17.0.1" 26 | }, 27 | "jest": { 28 | "preset": "react-native" 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /android/src/main/java/com/mokriya/zoomus/RNZoomUsBridgePackage.java: -------------------------------------------------------------------------------- 1 | package com.mokriya.zoomus; 2 | 3 | import java.util.Arrays; 4 | import java.util.Collections; 5 | import java.util.List; 6 | 7 | import com.facebook.react.ReactPackage; 8 | import com.facebook.react.bridge.NativeModule; 9 | import com.facebook.react.bridge.ReactApplicationContext; 10 | import com.facebook.react.uimanager.ViewManager; 11 | import com.facebook.react.bridge.JavaScriptModule; 12 | 13 | public class RNZoomUsBridgePackage implements ReactPackage { 14 | @Override 15 | public List createNativeModules(ReactApplicationContext reactContext) { 16 | return Arrays.asList(new RNZoomUsBridgeModule(reactContext)); 17 | } 18 | 19 | @Override 20 | public List createViewManagers(ReactApplicationContext reactContext) { 21 | return Collections.emptyList(); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: "[BUG]" 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | Please provide as much details as possible... The more info provided the better 11 | 12 | ## Description 13 | Describe the issue in detail 14 | 15 | ## React Native version: 16 | Run `react-native info` in your terminal and copy the results here. 17 | 18 | ## Steps To Reproduce 19 | Provide a detailed list of steps that reproduce the issue. 20 | 21 | 1. 22 | 2. 23 | 24 | ## Expected Results 25 | Describe what you expected to happen. 26 | 27 | ## Snack, code example, screenshot, or link to a repository: 28 | Please provide a Snack (https://snack.expo.io/), a link to a repository on GitHub, or provide a minimal code example that reproduces the problem. 29 | You may provide a screenshot of the application if you think it is relevant to your bug report. 30 | Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve 31 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/metro.config.js: -------------------------------------------------------------------------------- 1 | // metro.config.js 2 | // 3 | // with multiple workarounds for this issue with symlinks: 4 | // https://github.com/facebook/metro/issues/1 5 | // 6 | // with thanks to @johnryan () 7 | // for the pointers to multiple workaround solutions here: 8 | // https://github.com/facebook/metro/issues/1#issuecomment-541642857 9 | // 10 | // see also this discussion: 11 | // https://github.com/brodybits/create-react-native-module/issues/232 12 | 13 | const path = require('path') 14 | 15 | module.exports = { 16 | // workaround for an issue with symlinks encountered starting with 17 | // metro@0.55 / React Native 0.61 18 | // (not needed with React Native 0.60 / metro@0.54) 19 | resolver: { 20 | extraNodeModules: new Proxy( 21 | {}, 22 | { get: (_, name) => path.resolve('.', 'node_modules', name) } 23 | ) 24 | }, 25 | 26 | // quick workaround for another issue with symlinks 27 | watchFolders: [path.resolve('.'), path.resolve('..')] 28 | } 29 | -------------------------------------------------------------------------------- /RNZoomUsBridge.podspec: -------------------------------------------------------------------------------- 1 | require "json" 2 | 3 | package = JSON.parse(File.read(File.join(__dir__, "package.json"))) 4 | 5 | Pod::Spec.new do |s| 6 | s.name = "RNZoomUsBridge" 7 | s.version = package["version"] 8 | s.summary = package["description"] 9 | s.description = <<-DESC 10 | React Native Zoom.us bridge for iOS 11 | DESC 12 | s.homepage = "https://github.com/nagarro-dv/react-native-zoom-us-bridge" 13 | # brief license entry: 14 | s.license = "MIT" 15 | # optional - use expanded license entry instead: 16 | s.authors = { "Nagarro" => "jim.ji@nagarro.com" } 17 | s.platforms = { :ios => "10.0" } 18 | s.source = { :git => "https://github.com/nagarro-dv/react-native-zoom-us-bridge.git", :tag => "#{s.version}" } 19 | 20 | s.source_files = "ios/**/*.{h,m,swift}" 21 | s.requires_arc = true 22 | 23 | s.dependency "React" 24 | 25 | s.pod_target_xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => ['"${PROJECT_DIR}/../ZoomSDK/**"'] } 26 | end 27 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 13 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | 24 | # Android/IntelliJ 25 | # 26 | build/ 27 | .idea 28 | .gradle 29 | local.properties 30 | *.iml 31 | 32 | # node.js 33 | # 34 | node_modules/ 35 | npm-debug.log 36 | yarn-error.log 37 | 38 | # BUCK 39 | buck-out/ 40 | \.buckd/ 41 | *.keystore 42 | !debug.keystore 43 | 44 | # fastlane 45 | # 46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 47 | # screenshots whenever they are needed. 48 | # For more information about the recommended setup visit: 49 | # https://docs.fastlane.tools/best-practices/source-control/ 50 | 51 | */fastlane/report.xml 52 | */fastlane/Preview.html 53 | */fastlane/screenshots 54 | 55 | # Bundle artifact 56 | *.jsbundle 57 | 58 | # CocoaPods 59 | /ios/Pods/ 60 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 NAGARRO 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@mokriya/react-native-zoom-us-bridge", 3 | "title": "React Native Zoom Us Bridge", 4 | "version": "0.0.9", 5 | "description": "A basic wrapper of Zoom US iOS/Android for React Native", 6 | "main": "index.js", 7 | "scripts": { 8 | "test": "echo \"Error: no test specified\" && exit 1" 9 | }, 10 | "repository": { 11 | "type": "git", 12 | "url": "git+https://github.com/nagarro-dv/react-native-zoom-us-bridge.git", 13 | "baseUrl": "https://github.com/nagarro-dv/react-native-zoom-us-bridge" 14 | }, 15 | "keywords": [ 16 | "react", 17 | "react-native", 18 | "zoom", 19 | "zoom sdk" 20 | ], 21 | "author": "Nagarro ", 22 | "license": "MIT", 23 | "licenseFilename": "LICENSE", 24 | "peerDependencies": { 25 | "react": "^16.8.1", 26 | "react-native": ">=0.60.0-rc.0 <1.0.x" 27 | }, 28 | "devDependencies": { 29 | "react": "^16.9.0", 30 | "react-native": "^0.61.5" 31 | }, 32 | "bugs": { 33 | "url": "https://github.com/nagarro-dv/react-native-zoom-us-bridge/issues" 34 | }, 35 | "homepage": "https://github.com/nagarro-dv/react-native-zoom-us-bridge#readme" 36 | } 37 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | ext { 5 | buildToolsVersion = "29.0.3" 6 | minSdkVersion = 21 7 | compileSdkVersion = 29 8 | targetSdkVersion = 29 9 | ndkVersion = "20.1.5948944" 10 | } 11 | repositories { 12 | google() 13 | jcenter() 14 | } 15 | dependencies { 16 | classpath("com.android.tools.build:gradle:4.1.0") 17 | // NOTE: Do not place your application dependencies here; they belong 18 | // in the individual module build.gradle files 19 | } 20 | } 21 | 22 | allprojects { 23 | repositories { 24 | mavenLocal() 25 | maven { 26 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 27 | url("$rootDir/../node_modules/react-native/android") 28 | } 29 | maven { 30 | // Android JSC is installed from npm 31 | url("$rootDir/../node_modules/jsc-android/dist") 32 | } 33 | 34 | google() 35 | jcenter() 36 | maven { url 'https://www.jitpack.io' } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /scripts/mobilertc-precompile.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # mobilertc precompile process to remove libc++_shared.so 3 | # ./node_modules/react-native-zoom-us-bridge/scripts/mobilertc-precompile.sh 4 | 5 | echo "Removing libc++_shared.so from mobilertc.aar" 6 | 7 | # check if mobilertc.aar is present, end if not 8 | FILE=./android/mobilertc/mobilertc.aar 9 | if [ -f "$FILE" ]; then 10 | echo "$FILE exists." 11 | else 12 | echo "Abort $FILE does not exist." 13 | exit 1 14 | fi 15 | 16 | # first lets go to the right folder 17 | cd android && cd mobilertc 18 | 19 | # unzip the file 20 | echo "Unzip original mobilertc.aar" 21 | unzip mobilertc.aar -d tempMobileRTCFolder 22 | cd tempMobileRTCFolder 23 | 24 | # remove the files 25 | echo "Remove libc++_shared.so" 26 | rm ./jni/arm64-v8a/libc++_shared.so 27 | rm ./jni/armeabi-v7a/libc++_shared.so 28 | rm ./jni/x86/libc++_shared.so 29 | rm ./jni/x86_64/libc++_shared.so 30 | 31 | # zip new file 32 | echo "Zip new mobilertcNew.aar" 33 | zip -r ../mobilertcNew.aar * 34 | cd .. 35 | 36 | # backup original file, replace mobilertc.aar 37 | echo "Backup original lib and copy new lib" 38 | mv mobilertc.aar mobilertcOriginal.aar 39 | mv mobilertcNew.aar mobilertc.aar 40 | 41 | # remove temp unzip folder 42 | echo "Clean up" 43 | rm -rf tempMobileRTCFolder 44 | cd .. && cd .. 45 | 46 | echo "Done" 47 | exit 0 -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | # AndroidX package structure to make it clearer which packages are bundled with the 21 | # Android operating system, and which are packaged with your app's APK 22 | # https://developer.android.com/topic/libraries/support-library/androidx-rn 23 | android.useAndroidX=true 24 | # Automatically convert third-party libraries to use AndroidX 25 | android.enableJetifier=true 26 | 27 | # Version of flipper SDK to use with React Native 28 | FLIPPER_VERSION=0.75.1 29 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/android/app/_BUCK: -------------------------------------------------------------------------------- 1 | # To learn about Buck see [Docs](https://buckbuild.com/). 2 | # To run your application with Buck: 3 | # - install Buck 4 | # - `npm start` - to start the packager 5 | # - `cd android` 6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 8 | # - `buck install -r android/app` - compile, install and run application 9 | # 10 | 11 | load(":build_defs.bzl", "create_aar_targets", "create_jar_targets") 12 | 13 | lib_deps = [] 14 | 15 | create_aar_targets(glob(["libs/*.aar"])) 16 | 17 | create_jar_targets(glob(["libs/*.jar"])) 18 | 19 | android_library( 20 | name = "all-libs", 21 | exported_deps = lib_deps, 22 | ) 23 | 24 | android_library( 25 | name = "app-code", 26 | srcs = glob([ 27 | "src/main/java/**/*.java", 28 | ]), 29 | deps = [ 30 | ":all-libs", 31 | ":build_config", 32 | ":res", 33 | ], 34 | ) 35 | 36 | android_build_config( 37 | name = "build_config", 38 | package = "com.rnzoomusbridgeexample", 39 | ) 40 | 41 | android_resource( 42 | name = "res", 43 | package = "com.rnzoomusbridgeexample", 44 | res = "src/main/res", 45 | ) 46 | 47 | android_binary( 48 | name = "app", 49 | keystore = "//android/keystores:debug", 50 | manifest = "src/main/AndroidManifest.xml", 51 | package_type = "debug", 52 | deps = [ 53 | ":app-code", 54 | ], 55 | ) 56 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | ; We fork some components by platform 3 | .*/*[.]android.js 4 | 5 | ; Ignore "BUCK" generated dirs 6 | /\.buckd/ 7 | 8 | ; Ignore polyfills 9 | node_modules/react-native/Libraries/polyfills/.* 10 | 11 | ; Flow doesn't support platforms 12 | .*/Libraries/Utilities/LoadingView.js 13 | 14 | [untyped] 15 | .*/node_modules/@react-native-community/cli/.*/.* 16 | 17 | [include] 18 | 19 | [libs] 20 | node_modules/react-native/interface.js 21 | node_modules/react-native/flow/ 22 | 23 | [options] 24 | emoji=true 25 | 26 | esproposal.optional_chaining=enable 27 | esproposal.nullish_coalescing=enable 28 | 29 | exact_by_default=true 30 | 31 | module.file_ext=.js 32 | module.file_ext=.json 33 | module.file_ext=.ios.js 34 | 35 | munge_underscores=true 36 | 37 | module.name_mapper='^react-native/\(.*\)$' -> '/node_modules/react-native/\1' 38 | module.name_mapper='^@?[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> '/node_modules/react-native/Libraries/Image/RelativeImageStub' 39 | 40 | suppress_type=$FlowIssue 41 | suppress_type=$FlowFixMe 42 | suppress_type=$FlowFixMeProps 43 | suppress_type=$FlowFixMeState 44 | 45 | [lints] 46 | sketchy-null-number=warn 47 | sketchy-null-mixed=warn 48 | sketchy-number=warn 49 | untyped-type-import=warn 50 | nonstrict-import=warn 51 | deprecated-type=warn 52 | unsafe-getters-setters=warn 53 | unnecessary-invariant=warn 54 | signature-verification-failure=warn 55 | 56 | [strict] 57 | deprecated-type 58 | nonstrict-import 59 | sketchy-null 60 | unclear-type 61 | unsafe-getters-setters 62 | untyped-import 63 | untyped-type-import 64 | 65 | [version] 66 | ^0.137.0 67 | -------------------------------------------------------------------------------- /ios/RNZoomUsBridgeEventEmitter.m: -------------------------------------------------------------------------------- 1 | #import "RNZoomUsBridgeEventEmitter.h" 2 | 3 | @implementation RNZoomUsBridgeEventEmitter 4 | { 5 | bool hasListeners; 6 | } 7 | 8 | + (id)allocWithZone:(NSZone *)zone { 9 | static RNZoomUsBridgeEventEmitter *sharedInstance = nil; 10 | static dispatch_once_t onceToken; 11 | dispatch_once(&onceToken, ^{ 12 | sharedInstance = [super allocWithZone:zone]; 13 | }); 14 | return sharedInstance; 15 | } 16 | 17 | - (void)startObserving { 18 | hasListeners = YES; 19 | } 20 | 21 | - (void)stopObserving { 22 | hasListeners = NO; 23 | } 24 | 25 | RCT_EXPORT_MODULE(); 26 | 27 | - (NSArray *)supportedEvents 28 | { 29 | return @[@"SDKInitialized", @"meetingStarted", @"meetingJoined", @"meetingSetToHidden", @"meetingEnded", @"meetingStatusChanged", @"waitingRoomActive", @"meetingError"]; 30 | } 31 | 32 | - (void)meetingErrored:(NSDictionary *)result 33 | { 34 | if (hasListeners) { 35 | [self sendEventWithName:@"meetingError" body:result]; 36 | } 37 | } 38 | 39 | 40 | - (void)meetingWaitingRoomIsActive:(NSDictionary *)result 41 | { 42 | if (hasListeners) { 43 | [self sendEventWithName:@"waitingRoomActive" body:result]; 44 | } 45 | } 46 | 47 | - (void)userSDKInitilized:(NSDictionary *)result 48 | { 49 | if (hasListeners) { 50 | [self sendEventWithName:@"SDKInitialized" body:result]; 51 | } 52 | } 53 | 54 | - (void)userStartedAMeeting:(NSDictionary *)result 55 | { 56 | if (hasListeners) { 57 | [self sendEventWithName:@"meetingStarted" body:result]; 58 | } 59 | } 60 | 61 | - (void)userJoinedAMeeting:(NSDictionary *)result { 62 | if (hasListeners) { 63 | [self sendEventWithName:@"meetingJoined" body:result]; 64 | } 65 | } 66 | 67 | - (void)userToggledMeetingHidden:(BOOL)hidden 68 | { 69 | if (hasListeners) { 70 | [self sendEventWithName:@"meetingSetToHidden" body:@{}]; 71 | } 72 | } 73 | 74 | - (void)userEndedTheMeeting:(NSDictionary *)result 75 | { 76 | if (hasListeners) { 77 | [self sendEventWithName:@"meetingEnded" body:result]; 78 | } 79 | } 80 | 81 | @end 82 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/ios/RNZoomUSBridgeExample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | RNZoomUSBridgeExample 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | NSAppTransportSecurity 28 | 29 | NSExceptionDomains 30 | 31 | localhost 32 | 33 | NSExceptionAllowsInsecureHTTPLoads 34 | 35 | 36 | 37 | 38 | NSBluetoothPeripheralUsageDescription 39 | We will use your Bluetooth to access your Bluetooth headphones. 40 | NSCameraUsageDescription 41 | For people to see you during meetings, we need access to your camera. 42 | NSLocationWhenInUseUsageDescription 43 | 44 | NSMicrophoneUsageDescription 45 | For people to hear you during meetings, we need access to your microphone. 46 | NSPhotoLibraryUsageDescription 47 | For people to share, we need access to your photos 48 | UILaunchStoryboardName 49 | LaunchScreen 50 | UIRequiredDeviceCapabilities 51 | 52 | armv7 53 | 54 | UISupportedInterfaceOrientations 55 | 56 | UIInterfaceOrientationPortrait 57 | UIInterfaceOrientationLandscapeLeft 58 | UIInterfaceOrientationLandscapeRight 59 | 60 | UIViewControllerBasedStatusBarAppearance 61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/ios/RNZoomUSBridgeExample/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #import "AppDelegate.h" 2 | 3 | #import 4 | #import 5 | #import 6 | 7 | #ifdef FB_SONARKIT_ENABLED 8 | #import 9 | #import 10 | #import 11 | #import 12 | #import 13 | #import 14 | 15 | static void InitializeFlipper(UIApplication *application) { 16 | FlipperClient *client = [FlipperClient sharedClient]; 17 | SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults]; 18 | [client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]]; 19 | [client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]]; 20 | [client addPlugin:[FlipperKitReactPlugin new]]; 21 | [client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]]; 22 | [client start]; 23 | } 24 | #endif 25 | 26 | @implementation AppDelegate 27 | 28 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 29 | { 30 | #ifdef FB_SONARKIT_ENABLED 31 | InitializeFlipper(application); 32 | #endif 33 | 34 | RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; 35 | RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge 36 | moduleName:@"RNZoomUSBridgeExample" 37 | initialProperties:nil]; 38 | 39 | if (@available(iOS 13.0, *)) { 40 | rootView.backgroundColor = [UIColor systemBackgroundColor]; 41 | } else { 42 | rootView.backgroundColor = [UIColor whiteColor]; 43 | } 44 | 45 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 46 | UIViewController *rootViewController = [UIViewController new]; 47 | rootViewController.view = rootView; 48 | self.window.rootViewController = rootViewController; 49 | [self.window makeKeyAndVisible]; 50 | return YES; 51 | } 52 | 53 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge 54 | { 55 | #if DEBUG 56 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; 57 | #else 58 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 59 | #endif 60 | } 61 | 62 | @end 63 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/android/app/src/main/java/com/rnzoomusbridgeexample/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.rnzoomusbridgeexample; 2 | 3 | import android.app.Application; 4 | import android.content.Context; 5 | import com.facebook.react.PackageList; 6 | import com.facebook.react.ReactApplication; 7 | import com.facebook.react.ReactInstanceManager; 8 | import com.facebook.react.ReactNativeHost; 9 | import com.facebook.react.ReactPackage; 10 | import com.facebook.soloader.SoLoader; 11 | import java.lang.reflect.InvocationTargetException; 12 | import java.util.List; 13 | 14 | public class MainApplication extends Application implements ReactApplication { 15 | 16 | private final ReactNativeHost mReactNativeHost = 17 | new ReactNativeHost(this) { 18 | @Override 19 | public boolean getUseDeveloperSupport() { 20 | return BuildConfig.DEBUG; 21 | } 22 | 23 | @Override 24 | protected List getPackages() { 25 | @SuppressWarnings("UnnecessaryLocalVariable") 26 | List packages = new PackageList(this).getPackages(); 27 | // Packages that cannot be autolinked yet can be added manually here, for example: 28 | // packages.add(new MyReactNativePackage()); 29 | return packages; 30 | } 31 | 32 | @Override 33 | protected String getJSMainModuleName() { 34 | return "index"; 35 | } 36 | }; 37 | 38 | @Override 39 | public ReactNativeHost getReactNativeHost() { 40 | return mReactNativeHost; 41 | } 42 | 43 | @Override 44 | public void onCreate() { 45 | super.onCreate(); 46 | SoLoader.init(this, /* native exopackage */ false); 47 | SoLoader.loadLibrary("zoom"); // Added to fix bad_cast errors 48 | initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); 49 | } 50 | 51 | /** 52 | * Loads Flipper in React Native templates. Call this in the onCreate method with something like 53 | * initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); 54 | * 55 | * @param context 56 | * @param reactInstanceManager 57 | */ 58 | private static void initializeFlipper( 59 | Context context, ReactInstanceManager reactInstanceManager) { 60 | if (BuildConfig.DEBUG) { 61 | try { 62 | /* 63 | We use reflection here to pick up the class that initializes Flipper, 64 | since Flipper library is not available in release mode 65 | */ 66 | Class aClass = Class.forName("com.rnzoomusbridgeexample.ReactNativeFlipper"); 67 | aClass 68 | .getMethod("initializeFlipper", Context.class, ReactInstanceManager.class) 69 | .invoke(null, context, reactInstanceManager); 70 | } catch (ClassNotFoundException e) { 71 | e.printStackTrace(); 72 | } catch (NoSuchMethodException e) { 73 | e.printStackTrace(); 74 | } catch (IllegalAccessException e) { 75 | e.printStackTrace(); 76 | } catch (InvocationTargetException e) { 77 | e.printStackTrace(); 78 | } 79 | } 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /COMMON_ERRORS.md: -------------------------------------------------------------------------------- 1 | # react-native-zoom-us-bridge Common Errors 2 | Various issues you might encounter while using this library. 3 | 4 | ## iOS Build issues 5 | ``` 6 | '/RNZoomUSBridgeExample/ios/Pods/ZoomSDK/MobileRTC.framework/MobileRTC' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file '/RNZoomUSBridgeExample/ios/Pods/ZoomSDK/MobileRTC.framework/MobileRTC' for architecture arm64 7 | ``` 8 | This is caused by bitcode being enabled in the project. Disable bitcode. 9 | --- 10 | 11 | 12 | ``` 13 | ld: '/RNZoomUsBirdge/ios/Pods/ZoomSDK/MobileRTC.framework/MobileRTC' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file '/RNZoomUsBirdge/ios/Pods/ZoomSDK/MobileRTC.framework/MobileRTC' for architecture arm64 14 | clang: error: linker command failed with exit code 1 (use -v to see invocation) 15 | ``` 16 | This is caused by building for Actual Device with the x86_64/i386 SDK. Please make sure to use the non x86_64 SDK. 17 | --- 18 | 19 | 20 | ``` 21 | 'MobileRTC/MobileRTC.h' file not found 22 | ``` 23 | 24 | This is caused by SDK not installed or not copied to the proper location. 25 | --- 26 | 27 | 28 | ``` 29 | Undefined symbol: _OBJC_CLASS_$_MobileRTC 30 | Undefined symbol: _OBJC_CLASS_$_MobileRTCMeetingStartParam4WithoutLoginUser 31 | Undefined symbol: _OBJC_CLASS_$_MobileRTCSDKInitContext 32 | Undefined symbol: _kMeetingParam_MeetingNumber 33 | Undefined symbol: _kMeetingParam_MeetingPassword 34 | Undefined symbol: _kMeetingParam_Username 35 | ``` 36 | This is caused by building for Simulator using non X86_64 SDK 37 | 38 | 39 | ## Android Build issues 40 | ``` 41 | Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 21 declared in library [:commonlib] /Users/jimji/Apps/RNLibs/testZoomBridge/android/commonlib/build/.transforms/fc29670577197af67b6687a185dbf7f7/AndroidManifest.xml as the library might be using APIs not available in 16 42 | ``` 43 | This is caused by not using the right android SDK version in your build.gradle file. Please make sure to update the versions accordingly. 44 | --- 45 | 46 | 47 | ``` 48 | A problem occurred evaluating project ':react-native-zoom-us-bridge'. Project with path ':commonlib' could not be found in project ':react-native-zoom-us-bridge'. 49 | ``` 50 | This is caused by commonlib and mobilertc not added to your `settings.gradle` please make sure to add that there. 51 | --- 52 | 53 | 54 | ``` 55 | Could not resolve project :commonlib. 56 | ``` 57 | This is caused by the zoom.us SDK not being copied into the android folder. Please make sure its copied properly. 58 | --- 59 | 60 | 61 | ``` 62 | Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 63 | ``` 64 | This is caused by attempting to build for non-androidx build. You must update your build to androidx, the SDK does not support non-androidx builds. -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Copyright 2015 the original author or authors. 3 | @rem 4 | @rem Licensed under the Apache License, Version 2.0 (the "License"); 5 | @rem you may not use this file except in compliance with the License. 6 | @rem You may obtain a copy of the License at 7 | @rem 8 | @rem https://www.apache.org/licenses/LICENSE-2.0 9 | @rem 10 | @rem Unless required by applicable law or agreed to in writing, software 11 | @rem distributed under the License is distributed on an "AS IS" BASIS, 12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | @rem See the License for the specific language governing permissions and 14 | @rem limitations under the License. 15 | @rem 16 | 17 | @if "%DEBUG%" == "" @echo off 18 | @rem ########################################################################## 19 | @rem 20 | @rem Gradle startup script for Windows 21 | @rem 22 | @rem ########################################################################## 23 | 24 | @rem Set local scope for the variables with windows NT shell 25 | if "%OS%"=="Windows_NT" setlocal 26 | 27 | set DIRNAME=%~dp0 28 | if "%DIRNAME%" == "" set DIRNAME=. 29 | set APP_BASE_NAME=%~n0 30 | set APP_HOME=%DIRNAME% 31 | 32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter. 33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi 34 | 35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 37 | 38 | @rem Find java.exe 39 | if defined JAVA_HOME goto findJavaFromJavaHome 40 | 41 | set JAVA_EXE=java.exe 42 | %JAVA_EXE% -version >NUL 2>&1 43 | if "%ERRORLEVEL%" == "0" goto execute 44 | 45 | echo. 46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 47 | echo. 48 | echo Please set the JAVA_HOME variable in your environment to match the 49 | echo location of your Java installation. 50 | 51 | goto fail 52 | 53 | :findJavaFromJavaHome 54 | set JAVA_HOME=%JAVA_HOME:"=% 55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 56 | 57 | if exist "%JAVA_EXE%" goto execute 58 | 59 | echo. 60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 61 | echo. 62 | echo Please set the JAVA_HOME variable in your environment to match the 63 | echo location of your Java installation. 64 | 65 | goto fail 66 | 67 | :execute 68 | @rem Setup the command line 69 | 70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 71 | 72 | 73 | @rem Execute Gradle 74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* 75 | 76 | :end 77 | @rem End local scope for the variables with windows NT shell 78 | if "%ERRORLEVEL%"=="0" goto mainEnd 79 | 80 | :fail 81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 82 | rem the _cmd.exe /c_ return code! 83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 84 | exit /b 1 85 | 86 | :mainEnd 87 | if "%OS%"=="Windows_NT" endlocal 88 | 89 | :omega 90 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/android/app/src/debug/java/com/rnzoomusbridgeexample/ReactNativeFlipper.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | *

This source code is licensed under the MIT license found in the LICENSE file in the root 5 | * directory of this source tree. 6 | */ 7 | package com.rnzoomusbridgeexample; 8 | 9 | import android.content.Context; 10 | import com.facebook.flipper.android.AndroidFlipperClient; 11 | import com.facebook.flipper.android.utils.FlipperUtils; 12 | import com.facebook.flipper.core.FlipperClient; 13 | import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin; 14 | import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin; 15 | import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin; 16 | import com.facebook.flipper.plugins.inspector.DescriptorMapping; 17 | import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin; 18 | import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor; 19 | import com.facebook.flipper.plugins.network.NetworkFlipperPlugin; 20 | import com.facebook.flipper.plugins.react.ReactFlipperPlugin; 21 | import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin; 22 | import com.facebook.react.ReactInstanceManager; 23 | import com.facebook.react.bridge.ReactContext; 24 | import com.facebook.react.modules.network.NetworkingModule; 25 | import okhttp3.OkHttpClient; 26 | 27 | public class ReactNativeFlipper { 28 | public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) { 29 | if (FlipperUtils.shouldEnableFlipper(context)) { 30 | final FlipperClient client = AndroidFlipperClient.getInstance(context); 31 | 32 | client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults())); 33 | client.addPlugin(new ReactFlipperPlugin()); 34 | client.addPlugin(new DatabasesFlipperPlugin(context)); 35 | client.addPlugin(new SharedPreferencesFlipperPlugin(context)); 36 | client.addPlugin(CrashReporterPlugin.getInstance()); 37 | 38 | NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin(); 39 | NetworkingModule.setCustomClientBuilder( 40 | new NetworkingModule.CustomClientBuilder() { 41 | @Override 42 | public void apply(OkHttpClient.Builder builder) { 43 | builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin)); 44 | } 45 | }); 46 | client.addPlugin(networkFlipperPlugin); 47 | client.start(); 48 | 49 | // Fresco Plugin needs to ensure that ImagePipelineFactory is initialized 50 | // Hence we run if after all native modules have been initialized 51 | ReactContext reactContext = reactInstanceManager.getCurrentReactContext(); 52 | if (reactContext == null) { 53 | reactInstanceManager.addReactInstanceEventListener( 54 | new ReactInstanceManager.ReactInstanceEventListener() { 55 | @Override 56 | public void onReactContextInitialized(ReactContext reactContext) { 57 | reactInstanceManager.removeReactInstanceEventListener(this); 58 | reactContext.runOnNativeModulesQueueThread( 59 | new Runnable() { 60 | @Override 61 | public void run() { 62 | client.addPlugin(new FrescoFlipperPlugin()); 63 | } 64 | }); 65 | } 66 | }); 67 | } else { 68 | client.addPlugin(new FrescoFlipperPlugin()); 69 | } 70 | } 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/ios/RNZoomUSBridgeExample.xcodeproj/xcshareddata/xcschemes/RNZoomUSBridgeExample.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 53 | 55 | 61 | 62 | 63 | 64 | 70 | 72 | 78 | 79 | 80 | 81 | 83 | 84 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/ios/RNZoomUSBridgeExample/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 24 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /ios/RNZoomUsManager.m: -------------------------------------------------------------------------------- 1 | #import "RNZoomUsManager.h" 2 | #import "RNZoomUsBridgeEventEmitter.h" 3 | #import 4 | 5 | static RNZoomUsManager *sharedInstance = nil; 6 | 7 | @implementation RNZoomUsManager 8 | 9 | NSString *const kSDKDomain = @"zoom.us"; 10 | 11 | static RNZoomUsBridgeEventEmitter *internalEmitter = nil; 12 | 13 | + (RNZoomUsManager *)sharedInstance { 14 | if (sharedInstance == nil) { 15 | sharedInstance = [[super allocWithZone:NULL] init]; 16 | } 17 | 18 | return sharedInstance; 19 | } 20 | 21 | - (void)authenticate: (NSString *)appKey appSecret:(NSString *)appSecret completion:(void (^_Nonnull)(NSUInteger resultCode))completion{ 22 | 23 | MobileRTCSDKInitContext *context = [MobileRTCSDKInitContext new]; 24 | [context setDomain:kSDKDomain]; 25 | [context setEnableLog:NO]; 26 | [[MobileRTC sharedRTC] initialize:context]; 27 | 28 | MobileRTCAuthService *authService = [[MobileRTC sharedRTC] getAuthService]; 29 | if (authService) { 30 | NSLog(@"SDK LOG - Auth Requested"); 31 | authService.delegate = self; 32 | authService.clientKey = appKey; 33 | authService.clientSecret = appSecret; 34 | [authService sdkAuth]; 35 | completion(1); 36 | } 37 | 38 | } 39 | 40 | - (void)startMeeting:(NSString *)meetingId userName:(NSString *)userName userId:(NSString *)userId userZak:(NSString *)userZak completion:(void (^_Nonnull)(NSUInteger resultCode))completion { 41 | 42 | MobileRTCMeetingService *ms = [[MobileRTC sharedRTC] getMeetingService]; 43 | if (ms) { 44 | ms.delegate = self; 45 | 46 | MobileRTCMeetingStartParam4WithoutLoginUser * params = [[MobileRTCMeetingStartParam4WithoutLoginUser alloc]init]; 47 | params.userName = userName; 48 | params.meetingNumber = meetingId; 49 | params.userID = userId; 50 | params.userType = MobileRTCUserType_APIUser; 51 | params.zak = userZak; 52 | 53 | MobileRTCMeetError startMeetingResult = [ms startMeetingWithStartParam:params]; 54 | NSLog(@"startMeeting, startMeetingResult=%d", startMeetingResult); 55 | completion(1); 56 | } 57 | } 58 | 59 | - (void)joinMeeting:(NSString *)meetingId userName:(NSString *)userName password:(NSString *)password completion:(void (^_Nonnull)(NSUInteger resultCode))completion { 60 | NSLog(@"joinMeeting called on native module"); 61 | 62 | MobileRTCMeetingService *ms = [[MobileRTC sharedRTC] getMeetingService]; 63 | if (ms) { 64 | ms.delegate = self; 65 | 66 | MobileRTCMeetingJoinParam * joinParam = [[MobileRTCMeetingJoinParam alloc]init]; 67 | joinParam.userName = userName; 68 | joinParam.meetingNumber = meetingId; 69 | joinParam.password = password ? password : @""; 70 | 71 | MobileRTCMeetError joinMeetingResult = [ms joinMeetingWithJoinParam:joinParam]; 72 | NSLog(@"joinMeeting, joinMeetingResult=%d", joinMeetingResult); 73 | completion(1); 74 | } 75 | } 76 | 77 | - (void)onWaitingRoomStatusChange:(BOOL)needWaiting 78 | { 79 | NSLog(@"onWaitingRoomStatusChange, needWaiting=%d", needWaiting); 80 | if (needWaiting) { 81 | // waiting room not supported lets leave meeting 82 | RNZoomUsBridgeEventEmitter *emitter = [RNZoomUsBridgeEventEmitter allocWithZone: nil]; 83 | [emitter meetingWaitingRoomIsActive:@{}]; 84 | [self leaveMeeting]; 85 | } 86 | } 87 | 88 | - (void)leaveMeeting { 89 | MobileRTCMeetingService *ms = [[MobileRTC sharedRTC] getMeetingService]; 90 | if (!ms) return; 91 | [ms leaveMeetingWithCmd:LeaveMeetingCmd_Leave]; 92 | RNZoomUsBridgeEventEmitter *emitter = [RNZoomUsBridgeEventEmitter allocWithZone: nil]; 93 | [emitter userEndedTheMeeting:@{}]; 94 | } 95 | 96 | - (void)onMeetingStateChange:(MobileRTCMeetingState)state { 97 | NSLog(@"onMeetingStatusChanged, meetingState=%d", state); 98 | 99 | if (state == MobileRTCMeetingState_InMeeting) { 100 | RNZoomUsBridgeEventEmitter *emitter = [RNZoomUsBridgeEventEmitter allocWithZone: nil]; 101 | [emitter userJoinedAMeeting:@{}]; 102 | } 103 | } 104 | 105 | - (void)onMobileRTCAuthReturn:(MobileRTCAuthError)returnValue { 106 | NSLog(@"SDK LOG - Auth Returned %d", returnValue); 107 | 108 | NSDictionary *resultDict = returnValue == MobileRTCMeetError_Success ? @{} : @{@"error": @"start_error"}; 109 | 110 | RNZoomUsBridgeEventEmitter *emitter = [RNZoomUsBridgeEventEmitter allocWithZone: nil]; 111 | [emitter userSDKInitilized:resultDict]; 112 | 113 | [[[MobileRTC sharedRTC] getAuthService] setDelegate:self]; 114 | 115 | if (returnValue != MobileRTCAuthError_Success) 116 | { 117 | NSLog(@"SDK LOG - Auth Error'd %d", returnValue); 118 | } 119 | } 120 | 121 | - (void)onMeetingReturn:(MobileRTCMeetError)errorCode internalError:(NSInteger)internalErrorCode { 122 | NSLog(@"onMeetingReturn, error=%d, internalErrorCode=%zd", errorCode, internalErrorCode); 123 | 124 | if (errorCode != MobileRTCMeetError_Success) { 125 | RNZoomUsBridgeEventEmitter *emitter = [RNZoomUsBridgeEventEmitter allocWithZone: nil]; 126 | [emitter meetingErrored:@{}]; 127 | } 128 | 129 | } 130 | 131 | - (void)onMeetingError:(MobileRTCMeetError)errorCode message:(NSString *)message { 132 | NSLog(@"onMeetingError, errorCode=%d, message=%@", errorCode, message); 133 | if (errorCode != MobileRTCMeetError_Success) { 134 | RNZoomUsBridgeEventEmitter *emitter = [RNZoomUsBridgeEventEmitter allocWithZone: nil]; 135 | [emitter meetingErrored:@{}]; 136 | } 137 | 138 | } 139 | 140 | @end 141 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | // android/build.gradle 2 | 3 | // based on: 4 | // 5 | // * https://github.com/facebook/react-native/blob/0.60-stable/template/android/build.gradle 6 | // original location: 7 | // - https://github.com/facebook/react-native/blob/0.58-stable/local-cli/templates/HelloWorld/android/build.gradle 8 | // 9 | // * https://github.com/facebook/react-native/blob/0.60-stable/template/android/app/build.gradle 10 | // original location: 11 | // - https://github.com/facebook/react-native/blob/0.58-stable/local-cli/templates/HelloWorld/android/app/build.gradle 12 | 13 | def DEFAULT_COMPILE_SDK_VERSION = 28 14 | def DEFAULT_BUILD_TOOLS_VERSION = '28.0.3' 15 | def DEFAULT_MIN_SDK_VERSION = 16 16 | def DEFAULT_TARGET_SDK_VERSION = 28 17 | 18 | def safeExtGet(prop, fallback) { 19 | rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback 20 | } 21 | 22 | apply plugin: 'com.android.library' 23 | apply plugin: 'maven' 24 | 25 | buildscript { 26 | // The Android Gradle plugin is only required when opening the android folder stand-alone. 27 | // This avoids unnecessary downloads and potential conflicts when the library is included as a 28 | // module dependency in an application project. 29 | // ref: https://docs.gradle.org/current/userguide/tutorial_using_tasks.html#sec:build_script_external_dependencies 30 | if (project == rootProject) { 31 | repositories { 32 | google() 33 | jcenter() 34 | } 35 | dependencies { 36 | classpath 'com.android.tools.build:gradle:3.4.1' 37 | } 38 | } 39 | } 40 | 41 | apply plugin: 'com.android.library' 42 | apply plugin: 'maven' 43 | 44 | android { 45 | compileSdkVersion safeExtGet('compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION) 46 | buildToolsVersion safeExtGet('buildToolsVersion', DEFAULT_BUILD_TOOLS_VERSION) 47 | defaultConfig { 48 | minSdkVersion safeExtGet('minSdkVersion', DEFAULT_MIN_SDK_VERSION) 49 | targetSdkVersion safeExtGet('targetSdkVersion', DEFAULT_TARGET_SDK_VERSION) 50 | versionCode 1 51 | versionName "1.0" 52 | } 53 | lintOptions { 54 | abortOnError false 55 | } 56 | } 57 | 58 | repositories { 59 | // ref: https://www.baeldung.com/maven-local-repository 60 | mavenLocal() 61 | maven { 62 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 63 | url "$rootDir/../node_modules/react-native/android" 64 | } 65 | maven { 66 | // Android JSC is installed from npm 67 | url "$rootDir/../node_modules/jsc-android/dist" 68 | } 69 | google() 70 | jcenter() 71 | } 72 | 73 | dependencies { 74 | //noinspection GradleDynamicVersion 75 | implementation 'com.facebook.react:react-native:+' // From node_modules 76 | implementation 'androidx.appcompat:appcompat:1.0.0' 77 | implementation 'androidx.constraintlayout:constraintlayout:1.1.3' 78 | implementation 'com.google.android.material:material:1.0.0-rc01' 79 | implementation project(path: ':commonlib') 80 | implementation project(path: ':mobilertc') 81 | } 82 | 83 | def configureReactNativePom(def pom) { 84 | def packageJson = new groovy.json.JsonSlurper().parseText(file('../package.json').text) 85 | 86 | pom.project { 87 | name packageJson.title 88 | artifactId packageJson.name 89 | version = packageJson.version 90 | group = "com.mokriya.zoomus" 91 | description packageJson.description 92 | url packageJson.repository.baseUrl 93 | 94 | licenses { 95 | license { 96 | name packageJson.license 97 | url packageJson.repository.baseUrl + '/blob/master/' + packageJson.licenseFilename 98 | distribution 'repo' 99 | } 100 | } 101 | 102 | developers { 103 | developer { 104 | id packageJson.author 105 | name packageJson.author 106 | } 107 | } 108 | } 109 | } 110 | 111 | afterEvaluate { project -> 112 | // some Gradle build hooks ref: 113 | // https://www.oreilly.com/library/view/gradle-beyond-the/9781449373801/ch03.html 114 | task androidJavadoc(type: Javadoc) { 115 | source = android.sourceSets.main.java.srcDirs 116 | classpath += files(android.bootClasspath) 117 | classpath += files(project.getConfigurations().getByName('compile').asList()) 118 | include '**/*.java' 119 | } 120 | 121 | task androidJavadocJar(type: Jar, dependsOn: androidJavadoc) { 122 | classifier = 'javadoc' 123 | from androidJavadoc.destinationDir 124 | } 125 | 126 | task androidSourcesJar(type: Jar) { 127 | classifier = 'sources' 128 | from android.sourceSets.main.java.srcDirs 129 | include '**/*.java' 130 | } 131 | 132 | android.libraryVariants.all { variant -> 133 | def name = variant.name.capitalize() 134 | def javaCompileTask = variant.javaCompileProvider.get() 135 | 136 | task "jar${name}"(type: Jar, dependsOn: javaCompileTask) { 137 | from javaCompileTask.destinationDir 138 | } 139 | } 140 | 141 | artifacts { 142 | archives androidSourcesJar 143 | archives androidJavadocJar 144 | } 145 | 146 | task installArchives(type: Upload) { 147 | configuration = configurations.archives 148 | repositories.mavenDeployer { 149 | // Deploy to react-native-event-bridge/maven, ready to publish to npm 150 | repository url: "file://${projectDir}/../android/maven" 151 | configureReactNativePom pom 152 | } 153 | } 154 | } 155 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | # 4 | # Copyright 2015 the original author or authors. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # https://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | ############################################################################## 20 | ## 21 | ## Gradle start up script for UN*X 22 | ## 23 | ############################################################################## 24 | 25 | # Attempt to set APP_HOME 26 | # Resolve links: $0 may be a link 27 | PRG="$0" 28 | # Need this for relative symlinks. 29 | while [ -h "$PRG" ] ; do 30 | ls=`ls -ld "$PRG"` 31 | link=`expr "$ls" : '.*-> \(.*\)$'` 32 | if expr "$link" : '/.*' > /dev/null; then 33 | PRG="$link" 34 | else 35 | PRG=`dirname "$PRG"`"/$link" 36 | fi 37 | done 38 | SAVED="`pwd`" 39 | cd "`dirname \"$PRG\"`/" >/dev/null 40 | APP_HOME="`pwd -P`" 41 | cd "$SAVED" >/dev/null 42 | 43 | APP_NAME="Gradle" 44 | APP_BASE_NAME=`basename "$0"` 45 | 46 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 47 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' 48 | 49 | # Use the maximum available, or set MAX_FD != -1 to use that value. 50 | MAX_FD="maximum" 51 | 52 | warn () { 53 | echo "$*" 54 | } 55 | 56 | die () { 57 | echo 58 | echo "$*" 59 | echo 60 | exit 1 61 | } 62 | 63 | # OS specific support (must be 'true' or 'false'). 64 | cygwin=false 65 | msys=false 66 | darwin=false 67 | nonstop=false 68 | case "`uname`" in 69 | CYGWIN* ) 70 | cygwin=true 71 | ;; 72 | Darwin* ) 73 | darwin=true 74 | ;; 75 | MINGW* ) 76 | msys=true 77 | ;; 78 | NONSTOP* ) 79 | nonstop=true 80 | ;; 81 | esac 82 | 83 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 84 | 85 | 86 | # Determine the Java command to use to start the JVM. 87 | if [ -n "$JAVA_HOME" ] ; then 88 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 89 | # IBM's JDK on AIX uses strange locations for the executables 90 | JAVACMD="$JAVA_HOME/jre/sh/java" 91 | else 92 | JAVACMD="$JAVA_HOME/bin/java" 93 | fi 94 | if [ ! -x "$JAVACMD" ] ; then 95 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 96 | 97 | Please set the JAVA_HOME variable in your environment to match the 98 | location of your Java installation." 99 | fi 100 | else 101 | JAVACMD="java" 102 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 103 | 104 | Please set the JAVA_HOME variable in your environment to match the 105 | location of your Java installation." 106 | fi 107 | 108 | # Increase the maximum file descriptors if we can. 109 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 110 | MAX_FD_LIMIT=`ulimit -H -n` 111 | if [ $? -eq 0 ] ; then 112 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 113 | MAX_FD="$MAX_FD_LIMIT" 114 | fi 115 | ulimit -n $MAX_FD 116 | if [ $? -ne 0 ] ; then 117 | warn "Could not set maximum file descriptor limit: $MAX_FD" 118 | fi 119 | else 120 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 121 | fi 122 | fi 123 | 124 | # For Darwin, add options to specify how the application appears in the dock 125 | if $darwin; then 126 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 127 | fi 128 | 129 | # For Cygwin or MSYS, switch paths to Windows format before running java 130 | if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then 131 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 132 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 133 | 134 | JAVACMD=`cygpath --unix "$JAVACMD"` 135 | 136 | # We build the pattern for arguments to be converted via cygpath 137 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 138 | SEP="" 139 | for dir in $ROOTDIRSRAW ; do 140 | ROOTDIRS="$ROOTDIRS$SEP$dir" 141 | SEP="|" 142 | done 143 | OURCYGPATTERN="(^($ROOTDIRS))" 144 | # Add a user-defined pattern to the cygpath arguments 145 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 146 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 147 | fi 148 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 149 | i=0 150 | for arg in "$@" ; do 151 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 152 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 153 | 154 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 155 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 156 | else 157 | eval `echo args$i`="\"$arg\"" 158 | fi 159 | i=`expr $i + 1` 160 | done 161 | case $i in 162 | 0) set -- ;; 163 | 1) set -- "$args0" ;; 164 | 2) set -- "$args0" "$args1" ;; 165 | 3) set -- "$args0" "$args1" "$args2" ;; 166 | 4) set -- "$args0" "$args1" "$args2" "$args3" ;; 167 | 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 168 | 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 169 | 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 170 | 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 171 | 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 172 | esac 173 | fi 174 | 175 | # Escape application args 176 | save () { 177 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 178 | echo " " 179 | } 180 | APP_ARGS=`save "$@"` 181 | 182 | # Collect all arguments for the java command, following the shell quoting and substitution rules 183 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 184 | 185 | exec "$JAVACMD" "$@" 186 | -------------------------------------------------------------------------------- /android/src/main/java/com/mokriya/zoomus/RNZoomUsBridgeHelper.java: -------------------------------------------------------------------------------- 1 | package com.mokriya.zoomus; 2 | 3 | import android.util.Base64; 4 | import android.util.Log; 5 | 6 | import org.json.JSONException; 7 | import org.json.JSONObject; 8 | 9 | import java.io.BufferedReader; 10 | import java.io.IOException; 11 | import java.io.InputStream; 12 | import java.io.InputStreamReader; 13 | import java.io.UnsupportedEncodingException; 14 | import java.net.HttpURLConnection; 15 | import java.net.URL; 16 | import java.security.InvalidKeyException; 17 | import java.security.NoSuchAlgorithmException; 18 | 19 | import javax.crypto.Mac; 20 | import javax.crypto.spec.SecretKeySpec; 21 | import javax.net.ssl.HttpsURLConnection; 22 | 23 | public class RNZoomUsBridgeHelper { 24 | 25 | private final static String TAG = "RNZoomUsBridgeHelper"; 26 | 27 | public final static long EXPIRED_TIME= 3600 * 2; //two hours 28 | /* 29 | * Create JWT Access token 30 | * 31 | * Header: 32 | * 33 | * { "alg": "HS256", "typ": "JWT" } 34 | * Payload 35 | * 36 | * { "iss": "API_KEY", "exp": expired timestamp } 37 | * AccessToken Format : 38 | * base64UrlEncode(header) + "." + base64UrlEncode(payload) +"." + 39 | * HMACSHA256( base64UrlEncode(header) + "." + base64UrlEncode(payload), api_secret) 40 | */ 41 | 42 | // private static APIUserInfo curAPIUserInfo; 43 | 44 | /** 45 | * Create JWT Access token 46 | */ 47 | public static String createJWTAccessToken( 48 | final String API_KEY, 49 | final String API_SECRET 50 | ) { 51 | 52 | long time=System.currentTimeMillis()/1000 + EXPIRED_TIME; 53 | 54 | String header = "{\"alg\": \"HS256\", \"typ\": \"JWT\"}"; 55 | String payload = "{\"iss\": \"" + API_KEY + "\"" + ", \"exp\": " + String.valueOf(time) + "}"; 56 | try { 57 | String headerBase64Str = Base64.encodeToString(header.getBytes("utf-8"), Base64.NO_WRAP| Base64.NO_PADDING | Base64.URL_SAFE); 58 | String payloadBase64Str = Base64.encodeToString(payload.getBytes("utf-8"), Base64.NO_WRAP| Base64.NO_PADDING | Base64.URL_SAFE); 59 | final Mac mac = Mac.getInstance("HmacSHA256"); 60 | SecretKeySpec secretKeySpec = new SecretKeySpec(API_SECRET.getBytes(), "HmacSHA256"); 61 | mac.init(secretKeySpec); 62 | 63 | byte[] digest = mac.doFinal((headerBase64Str + "." + payloadBase64Str).getBytes()); 64 | 65 | return headerBase64Str + "." + payloadBase64Str + "." + Base64.encodeToString(digest, Base64.NO_WRAP| Base64.NO_PADDING | Base64.URL_SAFE); 66 | } catch (NoSuchAlgorithmException e) { 67 | e.printStackTrace(); 68 | } catch (UnsupportedEncodingException e) { 69 | e.printStackTrace(); 70 | } catch (InvalidKeyException e) { 71 | e.printStackTrace(); 72 | } 73 | return null; 74 | } 75 | 76 | /** 77 | * Get zoom token for the user 78 | * @param userId the user's id 79 | */ 80 | public static String getZoomToken(String userId, String jwtAccessToken) { 81 | // String jwtAccessToken = createJWTAccessToken(); 82 | 83 | if(jwtAccessToken == null || jwtAccessToken.isEmpty()) 84 | return null; 85 | 86 | // Create connection 87 | try { 88 | URL zoomTokenEndpoint = new URL("https://api.zoom.us/v2/users/" + userId + "/token?type=token&access_token=" + jwtAccessToken); 89 | HttpsURLConnection connection = (HttpsURLConnection) zoomTokenEndpoint.openConnection(); 90 | //connection.setRequestProperty("Content-Type", " application/json"); 91 | if (connection.getResponseCode() == HttpURLConnection.HTTP_OK) { 92 | InputStream responseBody = connection.getInputStream(); 93 | InputStreamReader responseBodyReader = new InputStreamReader(responseBody, "UTF-8"); 94 | BufferedReader streamReader = new BufferedReader(responseBodyReader); 95 | StringBuilder responseStrBuilder = new StringBuilder(); 96 | 97 | //get JSON String 98 | String inputStr; 99 | while ((inputStr = streamReader.readLine()) != null) 100 | responseStrBuilder.append(inputStr); 101 | 102 | connection.disconnect(); 103 | JSONObject jsonObject = new JSONObject(responseStrBuilder.toString()); 104 | return jsonObject.getString("token"); 105 | } else { 106 | Log.d(TAG, "error in connection"); 107 | return null; 108 | } 109 | } catch (IOException e) { 110 | e.printStackTrace(); 111 | } catch (JSONException e) { 112 | e.printStackTrace(); 113 | } 114 | return null; 115 | } 116 | 117 | /** 118 | * Get zoom acess token for the user 119 | * @param userId the user's id 120 | */ 121 | public static String getZoomAccessToken(String userId, String jwtAccessToken) { 122 | // String jwtAccessToken = createJWTAccessToken(); 123 | 124 | if(jwtAccessToken == null || jwtAccessToken.isEmpty()) 125 | return null; 126 | // Create connection 127 | try { 128 | URL zoomTokenEndpoint = new URL("https://api.zoom.us/v2/users/" + userId + "/token?type=zak&access_token=" + jwtAccessToken); 129 | HttpsURLConnection connection = (HttpsURLConnection) zoomTokenEndpoint.openConnection(); 130 | 131 | if (connection.getResponseCode() == HttpURLConnection.HTTP_OK) { 132 | InputStream responseBody = connection.getInputStream(); 133 | InputStreamReader responseBodyReader = new InputStreamReader(responseBody, "UTF-8"); 134 | BufferedReader streamReader = new BufferedReader(responseBodyReader); 135 | StringBuilder responseStrBuilder = new StringBuilder(); 136 | 137 | //get JSON String 138 | String inputStr; 139 | while ((inputStr = streamReader.readLine()) != null) 140 | responseStrBuilder.append(inputStr); 141 | 142 | connection.disconnect(); 143 | JSONObject jsonObject = new JSONObject(responseStrBuilder.toString()); 144 | return jsonObject.getString("token"); 145 | } else { 146 | Log.d(TAG, "error in connection"); 147 | return null; 148 | } 149 | } catch (IOException e) { 150 | e.printStackTrace(); 151 | } catch (JSONException e) { 152 | e.printStackTrace(); 153 | } 154 | return null; 155 | } 156 | 157 | /* 158 | public static void saveAPIUserInfo(APIUserInfo userInfo) { 159 | curAPIUserInfo = userInfo; 160 | } 161 | 162 | public static APIUserInfo getAPIUserInfo() { 163 | return curAPIUserInfo; 164 | } 165 | */ 166 | } 167 | -------------------------------------------------------------------------------- /ios/RNZoomUsBridge.m: -------------------------------------------------------------------------------- 1 | #import "RNZoomUsManager.h" 2 | #import "RNZoomUsBridge.h" 3 | #import "RNZoomUsBridgeEventEmitter.h" 4 | 5 | #import 6 | #import 7 | 8 | typedef enum { 9 | MobileRTCSampleTokenType_Token, 10 | MobileRTCSampleTokenType_ZAK, 11 | } MobileRTCSampleTokenType; 12 | 13 | @implementation RNZoomUsBridge 14 | { 15 | BOOL isInitialized; 16 | RCTPromiseResolveBlock initializePromiseResolve; 17 | RCTPromiseRejectBlock initializePromiseReject; 18 | RCTPromiseResolveBlock meetingPromiseResolve; 19 | RCTPromiseRejectBlock meetingPromiseReject; 20 | } 21 | 22 | static RNZoomUsBridgeEventEmitter *internalEmitter = nil; 23 | 24 | - (instancetype)init { 25 | if (self = [super init]) { 26 | isInitialized = NO; 27 | initializePromiseResolve = nil; 28 | initializePromiseReject = nil; 29 | meetingPromiseResolve = nil; 30 | meetingPromiseReject = nil; 31 | } 32 | return self; 33 | } 34 | 35 | + (BOOL)requiresMainQueueSetup 36 | { 37 | return NO; 38 | } 39 | 40 | - (dispatch_queue_t)methodQueue 41 | { 42 | return dispatch_get_main_queue(); 43 | } 44 | 45 | RCT_EXPORT_MODULE() 46 | 47 | RCT_EXPORT_METHOD( 48 | initialize: (NSString *)appKey 49 | withAppSecret: (NSString *)appSecret 50 | withResolve: (RCTPromiseResolveBlock)resolve 51 | withReject: (RCTPromiseRejectBlock)reject 52 | ) 53 | { 54 | if (isInitialized) { 55 | resolve(@"Already initialize Zoom SDK successfully."); 56 | return; 57 | } 58 | 59 | isInitialized = true; 60 | 61 | @try { 62 | initializePromiseResolve = resolve; 63 | initializePromiseReject = reject; 64 | 65 | [[NSOperationQueue mainQueue] addOperationWithBlock:^{ 66 | [[RNZoomUsManager sharedInstance] authenticate:appKey appSecret:appSecret completion:^(NSUInteger resultCode) { 67 | resolve(@{}); 68 | }]; 69 | }]; 70 | 71 | } @catch (NSError *ex) { 72 | reject(@"ERR_UNEXPECTED_EXCEPTION", @"Executing initialize", ex); 73 | } 74 | } 75 | 76 | RCT_EXPORT_METHOD( 77 | startMeeting:(NSString *)meetingNumber 78 | userName:(NSString *)userName 79 | userId:(NSString *)userId 80 | userZak:(NSString *)userZak 81 | withResolve: (RCTPromiseResolveBlock)resolve 82 | withReject: (RCTPromiseRejectBlock)reject 83 | ) 84 | { 85 | @try { 86 | meetingPromiseResolve = resolve; 87 | meetingPromiseReject = reject; 88 | 89 | [[NSOperationQueue mainQueue] addOperationWithBlock:^{ 90 | [[RNZoomUsManager sharedInstance] startMeeting:meetingNumber userName:userName userId:userId userZak:userZak completion:^(NSUInteger resultCode) { 91 | if (resultCode == 0) { 92 | resolve(@{ @"result": @"success" }); 93 | } else { 94 | resolve(@{ @"result": @"error" }); 95 | } 96 | }]; 97 | }]; 98 | } @catch (NSError *ex) { 99 | reject(@"ERR_UNEXPECTED_EXCEPTION", @"Executing startMeeting", ex); 100 | } 101 | } 102 | 103 | RCT_EXPORT_METHOD( 104 | joinMeeting:(NSString *)meetingNumber 105 | userName:(NSString *)userName 106 | password:(NSString *)password 107 | withResolve: (RCTPromiseResolveBlock)resolve 108 | withReject: (RCTPromiseRejectBlock)reject 109 | ) 110 | { 111 | @try { 112 | meetingPromiseResolve = resolve; 113 | meetingPromiseReject = reject; 114 | 115 | [[NSOperationQueue mainQueue] addOperationWithBlock:^{ 116 | [[RNZoomUsManager sharedInstance] joinMeeting:meetingNumber userName:userName password:password completion:^(NSUInteger resultCode) { 117 | resolve(@{}); 118 | }]; 119 | }]; 120 | } @catch (NSError *ex) { 121 | reject(@"ERR_UNEXPECTED_EXCEPTION", @"Executing joinMeeting", ex); 122 | } 123 | } 124 | 125 | RCT_EXPORT_METHOD(createJWT: (NSString *)jwtApiKey 126 | withApiSecret: (NSString *)jwtApiSecret 127 | withResolve: (RCTPromiseResolveBlock)resolve 128 | withReject: (RCTPromiseRejectBlock)reject 129 | ) { 130 | @try { 131 | NSString *accessToken = [self createJWTAccessToken: jwtApiKey withApisecret: jwtApiSecret]; 132 | NSLog(@"createJWT token success @%@", accessToken); 133 | resolve(accessToken); 134 | } @catch (NSError *ex) { 135 | reject(@"ERR_UNEXPECTED_EXCEPTION", @"Executing createJWT", ex); 136 | NSLog(@"ERR_UNEXPECTED_EXCEPTION @%@", ex); 137 | } 138 | 139 | } 140 | 141 | /* 142 | * Request User Token Or ZAK Via Rest API 143 | * Rest API(List User): https://api.zoom.us/v2/users 144 | */ 145 | 146 | - (NSString *)dictionaryToJson:(NSMutableDictionary *)dict 147 | { 148 | NSError *error; 149 | NSData *jsonData = [NSJSONSerialization dataWithJSONObject:dict options:NSJSONWritingPrettyPrinted error:&error]; 150 | NSString *jsonString; 151 | if (jsonData == nil) 152 | { 153 | return nil; 154 | } 155 | else 156 | { 157 | jsonString = [[NSString alloc]initWithData:jsonData encoding:NSUTF8StringEncoding]; 158 | } 159 | 160 | NSMutableString *mutStr = [NSMutableString stringWithString:jsonString]; 161 | NSRange range = {0,jsonString.length}; 162 | [mutStr replaceOccurrencesOfString:@" " withString:@"" options:NSLiteralSearch range:range]; 163 | NSRange range2 = {0,mutStr.length}; 164 | [mutStr replaceOccurrencesOfString:@"\n" withString:@"" options:NSLiteralSearch range:range2]; 165 | return mutStr; 166 | } 167 | 168 | - (NSString *)base64Encode:(NSString*)decodeString 169 | { 170 | NSData *encodeData = [decodeString dataUsingEncoding:NSUTF8StringEncoding]; 171 | NSString *base64String = [encodeData base64EncodedStringWithOptions:0]; 172 | 173 | NSMutableString *mutStr = [NSMutableString stringWithString:base64String]; 174 | NSRange range = {0,base64String.length}; 175 | [mutStr replaceOccurrencesOfString:@"=" withString:@"" options:NSLiteralSearch range:range]; 176 | 177 | return mutStr; 178 | } 179 | 180 | /* 181 | * Hmac AlgSHA256 Encryption. 182 | */ 183 | - (NSString *)hmac:(NSString *)plaintext withKey:(NSString *)key 184 | { 185 | const char *cKey = [key cStringUsingEncoding:NSASCIIStringEncoding]; 186 | const char *cData = [plaintext cStringUsingEncoding:NSASCIIStringEncoding]; 187 | unsigned char cHMAC[CC_SHA256_DIGEST_LENGTH]; 188 | CCHmac(kCCHmacAlgSHA256, cKey, strlen(cKey), cData, strlen(cData), cHMAC); 189 | NSData *HMAC = [[NSData alloc] initWithBytes:cHMAC length:sizeof(cHMAC)]; 190 | NSString * hash = [HMAC base64Encoding]; 191 | return hash; 192 | } 193 | 194 | /* 195 | * Create JSON Web Tokens (JWT) for Authentication. 196 | * Guide Link: https://zoom.github.io/api/#authentication 197 | */ 198 | - (NSString *)createJWTAccessToken:(NSString *)apikey withApisecret:(NSString *)apisecret 199 | { 200 | 201 | NSMutableDictionary *dictHeader = [NSMutableDictionary dictionary]; 202 | [dictHeader setValue:@"HS256" forKey:@"alg"]; 203 | [dictHeader setValue:@"JWT" forKey:@"typ"]; 204 | NSString *base64Header = [self base64Encode:[self dictionaryToJson:dictHeader]]; 205 | 206 | // { 207 | // "iss": "API_KEY", 208 | // "exp": 1496091964000 209 | // } 210 | NSMutableDictionary *dictPayload = [NSMutableDictionary dictionary]; 211 | [dictPayload setValue:apikey forKey:@"iss"]; 212 | [dictPayload setValue:@"123456789101" forKey:@"exp"]; 213 | NSString *base64Payload = [self base64Encode:[self dictionaryToJson:dictPayload]]; 214 | 215 | NSString *composer = [NSString stringWithFormat:@"%@.%@",base64Header,base64Payload]; 216 | NSString *hashmac = [self hmac:composer withKey:apisecret]; 217 | 218 | NSString *accesstoken = [NSString stringWithFormat:@"%@.%@.%@",base64Header,base64Payload,hashmac]; 219 | NSLog(@"createJWTAccessToken, accesstoken=%@", accesstoken); 220 | return accesstoken; 221 | } 222 | 223 | @end 224 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | 3 | import com.android.build.OutputFile 4 | 5 | /** 6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets 7 | * and bundleReleaseJsAndAssets). 8 | * These basically call `react-native bundle` with the correct arguments during the Android build 9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the 10 | * bundle directly from the development server. Below you can see all the possible configurations 11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the 12 | * `apply from: "../../node_modules/react-native/react.gradle"` line. 13 | * 14 | * project.ext.react = [ 15 | * // the name of the generated asset file containing your JS bundle 16 | * bundleAssetName: "index.android.bundle", 17 | * 18 | * // the entry file for bundle generation. If none specified and 19 | * // "index.android.js" exists, it will be used. Otherwise "index.js" is 20 | * // default. Can be overridden with ENTRY_FILE environment variable. 21 | * entryFile: "index.android.js", 22 | * 23 | * // https://reactnative.dev/docs/performance#enable-the-ram-format 24 | * bundleCommand: "ram-bundle", 25 | * 26 | * // whether to bundle JS and assets in debug mode 27 | * bundleInDebug: false, 28 | * 29 | * // whether to bundle JS and assets in release mode 30 | * bundleInRelease: true, 31 | * 32 | * // whether to bundle JS and assets in another build variant (if configured). 33 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 34 | * // The configuration property can be in the following formats 35 | * // 'bundleIn${productFlavor}${buildType}' 36 | * // 'bundleIn${buildType}' 37 | * // bundleInFreeDebug: true, 38 | * // bundleInPaidRelease: true, 39 | * // bundleInBeta: true, 40 | * 41 | * // whether to disable dev mode in custom build variants (by default only disabled in release) 42 | * // for example: to disable dev mode in the staging build type (if configured) 43 | * devDisabledInStaging: true, 44 | * // The configuration property can be in the following formats 45 | * // 'devDisabledIn${productFlavor}${buildType}' 46 | * // 'devDisabledIn${buildType}' 47 | * 48 | * // the root of your project, i.e. where "package.json" lives 49 | * root: "../../", 50 | * 51 | * // where to put the JS bundle asset in debug mode 52 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 53 | * 54 | * // where to put the JS bundle asset in release mode 55 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 56 | * 57 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 58 | * // require('./image.png')), in debug mode 59 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 60 | * 61 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 62 | * // require('./image.png')), in release mode 63 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 64 | * 65 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 66 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 67 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 68 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 69 | * // for example, you might want to remove it from here. 70 | * inputExcludes: ["android/**", "ios/**"], 71 | * 72 | * // override which node gets called and with what additional arguments 73 | * nodeExecutableAndArgs: ["node"], 74 | * 75 | * // supply additional arguments to the packager 76 | * extraPackagerArgs: [] 77 | * ] 78 | */ 79 | 80 | project.ext.react = [ 81 | enableHermes: false, // clean and rebuild if changing 82 | ] 83 | 84 | apply from: "../../node_modules/react-native/react.gradle" 85 | 86 | /** 87 | * Set this to true to create two separate APKs instead of one: 88 | * - An APK that only works on ARM devices 89 | * - An APK that only works on x86 devices 90 | * The advantage is the size of the APK is reduced by about 4MB. 91 | * Upload all the APKs to the Play Store and people will download 92 | * the correct one based on the CPU architecture of their device. 93 | */ 94 | def enableSeparateBuildPerCPUArchitecture = false 95 | 96 | /** 97 | * Run Proguard to shrink the Java bytecode in release builds. 98 | */ 99 | def enableProguardInReleaseBuilds = false 100 | 101 | /** 102 | * The preferred build flavor of JavaScriptCore. 103 | * 104 | * For example, to use the international variant, you can use: 105 | * `def jscFlavor = 'org.webkit:android-jsc-intl:+'` 106 | * 107 | * The international variant includes ICU i18n library and necessary data 108 | * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that 109 | * give correct results when using with locales other than en-US. Note that 110 | * this variant is about 6MiB larger per architecture than default. 111 | */ 112 | def jscFlavor = 'org.webkit:android-jsc:+' 113 | 114 | /** 115 | * Whether to enable the Hermes VM. 116 | * 117 | * This should be set on project.ext.react and mirrored here. If it is not set 118 | * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode 119 | * and the benefits of using Hermes will therefore be sharply reduced. 120 | */ 121 | def enableHermes = project.ext.react.get("enableHermes", false); 122 | 123 | android { 124 | ndkVersion rootProject.ext.ndkVersion 125 | 126 | compileSdkVersion rootProject.ext.compileSdkVersion 127 | 128 | compileOptions { 129 | sourceCompatibility JavaVersion.VERSION_1_8 130 | targetCompatibility JavaVersion.VERSION_1_8 131 | } 132 | 133 | packagingOptions { 134 | pickFirst 'lib/armeabi-v7a/libc++_shared.so' 135 | pickFirst 'lib/arm64-v8a/libc++_shared.so' 136 | pickFirst 'lib/x86/libc++_shared.so' 137 | pickFirst 'lib/x86_64/libc++_shared.so' 138 | } 139 | 140 | defaultConfig { 141 | applicationId "com.rnzoomusbridgeexample" 142 | minSdkVersion rootProject.ext.minSdkVersion 143 | targetSdkVersion rootProject.ext.targetSdkVersion 144 | versionCode 1 145 | versionName "1.0" 146 | multiDexEnabled true 147 | } 148 | splits { 149 | abi { 150 | reset() 151 | enable enableSeparateBuildPerCPUArchitecture 152 | universalApk false // If true, also generate a universal APK 153 | include "armeabi-v7a", "x86", "arm64-v8a", "x86_64" 154 | } 155 | } 156 | signingConfigs { 157 | debug { 158 | storeFile file('debug.keystore') 159 | storePassword 'android' 160 | keyAlias 'androiddebugkey' 161 | keyPassword 'android' 162 | } 163 | } 164 | buildTypes { 165 | debug { 166 | signingConfig signingConfigs.debug 167 | } 168 | release { 169 | // Caution! In production, you need to generate your own keystore file. 170 | // see https://reactnative.dev/docs/signed-apk-android. 171 | signingConfig signingConfigs.debug 172 | minifyEnabled enableProguardInReleaseBuilds 173 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 174 | } 175 | } 176 | 177 | // applicationVariants are e.g. debug, release 178 | applicationVariants.all { variant -> 179 | variant.outputs.each { output -> 180 | // For each separate APK per architecture, set a unique version code as described here: 181 | // https://developer.android.com/studio/build/configure-apk-splits.html 182 | // Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc. 183 | def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] 184 | def abi = output.getFilter(OutputFile.ABI) 185 | if (abi != null) { // null for the universal-debug, universal-release variants 186 | output.versionCodeOverride = 187 | defaultConfig.versionCode * 1000 + versionCodes.get(abi) 188 | } 189 | 190 | } 191 | } 192 | } 193 | 194 | dependencies { 195 | implementation fileTree(dir: "libs", include: ["*.jar"]) 196 | //noinspection GradleDynamicVersion 197 | implementation "com.facebook.react:react-native:+" // From node_modules 198 | 199 | implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0" 200 | 201 | implementation project(':commonlib') 202 | implementation project(':mobilertc') 203 | 204 | debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") { 205 | exclude group:'com.facebook.fbjni' 206 | } 207 | 208 | debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") { 209 | exclude group:'com.facebook.flipper' 210 | exclude group:'com.squareup.okhttp3', module:'okhttp' 211 | } 212 | 213 | debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") { 214 | exclude group:'com.facebook.flipper' 215 | } 216 | 217 | if (enableHermes) { 218 | def hermesPath = "../../node_modules/hermes-engine/android/"; 219 | debugImplementation files(hermesPath + "hermes-debug.aar") 220 | releaseImplementation files(hermesPath + "hermes-release.aar") 221 | } else { 222 | implementation jscFlavor 223 | } 224 | } 225 | 226 | // Run this once to be able to run the application with BUCK 227 | // puts all compile dependencies into folder libs for BUCK to use 228 | task copyDownloadableDepsToLibs(type: Copy) { 229 | from configurations.compile 230 | into 'libs' 231 | } 232 | 233 | apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) 234 | -------------------------------------------------------------------------------- /android/src/main/java/com/mokriya/zoomus/RNZoomUsBridgeModule.java: -------------------------------------------------------------------------------- 1 | package com.mokriya.zoomus; 2 | 3 | import android.util.Log; 4 | 5 | import com.facebook.react.bridge.Promise; 6 | import com.facebook.react.bridge.ReactApplicationContext; 7 | import com.facebook.react.bridge.ReactContextBaseJavaModule; 8 | import com.facebook.react.bridge.ReactContext; 9 | import com.facebook.react.bridge.ReactMethod; 10 | import com.facebook.react.bridge.LifecycleEventListener; 11 | import com.facebook.react.bridge.Callback; 12 | 13 | import com.facebook.react.modules.core.DeviceEventManagerModule; 14 | import com.facebook.react.bridge.WritableMap; 15 | import com.facebook.react.bridge.Arguments; 16 | 17 | import us.zoom.sdk.ZoomSDK; 18 | import us.zoom.sdk.ZoomError; 19 | import us.zoom.sdk.ZoomSDKInitializeListener; 20 | 21 | import us.zoom.sdk.MeetingStatus; 22 | import us.zoom.sdk.MeetingError; 23 | import us.zoom.sdk.MeetingService; 24 | import us.zoom.sdk.MeetingServiceListener; 25 | 26 | import us.zoom.sdk.StartMeetingOptions; 27 | import us.zoom.sdk.StartMeetingParamsWithoutLogin; 28 | 29 | import us.zoom.sdk.JoinMeetingOptions; 30 | import us.zoom.sdk.JoinMeetingParams; 31 | 32 | import com.mokriya.zoomus.RNZoomUsBridgeHelper; 33 | 34 | public class RNZoomUsBridgeModule extends ReactContextBaseJavaModule implements ZoomSDKInitializeListener, MeetingServiceListener, LifecycleEventListener { 35 | 36 | private final static String TAG = "RNZoomUsBridge"; 37 | private final ReactApplicationContext reactContext; 38 | 39 | private Boolean isInitialized = false; 40 | private Promise initializePromise; 41 | private Promise meetingPromise; 42 | private Promise otherPromise; 43 | 44 | public RNZoomUsBridgeModule(ReactApplicationContext reactContext) { 45 | super(reactContext); 46 | this.reactContext = reactContext; 47 | reactContext.addLifecycleEventListener(this); 48 | } 49 | 50 | public void sendEvent(ReactContext reactContext, String eventName, WritableMap params) { 51 | reactContext 52 | .getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class) 53 | .emit(eventName, params); 54 | } 55 | 56 | @Override 57 | public String getName() { 58 | return "RNZoomUsBridge"; 59 | } 60 | 61 | @ReactMethod 62 | public void initialize(final String appKey, final String appSecret, final Promise promise) { 63 | if (isInitialized) { 64 | promise.resolve("Already initialize Zoom SDK successfully."); 65 | return; 66 | } 67 | 68 | isInitialized = true; 69 | 70 | try { 71 | initializePromise = promise; 72 | 73 | reactContext.getCurrentActivity().runOnUiThread(new Runnable() { 74 | @Override 75 | public void run() { 76 | ZoomSDK zoomSDK = ZoomSDK.getInstance(); 77 | 78 | zoomSDK.initialize(reactContext.getCurrentActivity(), appKey, appSecret, RNZoomUsBridgeModule.this); 79 | } 80 | }); 81 | } catch (Exception ex) { 82 | promise.reject("ERR_UNEXPECTED_EXCEPTION", ex); 83 | } 84 | } 85 | 86 | @ReactMethod 87 | public void startMeeting( 88 | final String meetingNo, 89 | final String displayName, 90 | final String userId, 91 | final String zoomAccessToken, 92 | Promise promise 93 | ) { 94 | try { 95 | meetingPromise = promise; 96 | 97 | ZoomSDK zoomSDK = ZoomSDK.getInstance(); 98 | if(!zoomSDK.isInitialized()) { 99 | promise.reject("ERR_ZOOM_START", "ZoomSDK has not been initialized successfully"); 100 | return; 101 | } 102 | 103 | final MeetingService meetingService = zoomSDK.getMeetingService(); 104 | if(meetingService.getMeetingStatus() != MeetingStatus.MEETING_STATUS_IDLE) { 105 | long lMeetingNo = 0; 106 | try { 107 | lMeetingNo = Long.parseLong(meetingNo); 108 | } catch (NumberFormatException e) { 109 | promise.reject("ERR_ZOOM_START", "Invalid meeting number: " + meetingNo); 110 | return; 111 | } 112 | 113 | if(meetingService.getCurrentRtcMeetingNumber() == lMeetingNo) { 114 | meetingService.returnToMeeting(reactContext.getCurrentActivity()); 115 | promise.resolve("Already joined zoom meeting"); 116 | return; 117 | } 118 | } 119 | 120 | StartMeetingOptions opts = new StartMeetingOptions(); 121 | StartMeetingParamsWithoutLogin params = new StartMeetingParamsWithoutLogin(); 122 | params.displayName = displayName; 123 | params.meetingNo = meetingNo; 124 | params.userId = userId; 125 | params.userType = MeetingService.USER_TYPE_API_USER; 126 | params.zoomAccessToken = zoomAccessToken; 127 | 128 | int startMeetingResult = meetingService.startMeetingWithParams(reactContext.getCurrentActivity(), params, opts); 129 | Log.i(TAG, "startMeeting, startMeetingResult=" + startMeetingResult); 130 | 131 | if (startMeetingResult != MeetingError.MEETING_ERROR_SUCCESS) { 132 | promise.reject("ERR_ZOOM_START", "startMeeting, errorCode=" + startMeetingResult); 133 | } 134 | } catch (Exception ex) { 135 | promise.reject("ERR_UNEXPECTED_EXCEPTION", ex); 136 | } 137 | } 138 | 139 | @ReactMethod 140 | public void createJWT( 141 | final String apiKey, 142 | final String apiSecret, 143 | Promise promise 144 | ) { 145 | try { 146 | otherPromise = promise; 147 | 148 | String accessToken = RNZoomUsBridgeHelper.createJWTAccessToken(apiKey, apiSecret); 149 | Log.i(TAG, "accessToken=" + accessToken); 150 | 151 | promise.resolve(accessToken); 152 | } catch (Exception ex) { 153 | promise.reject("ERR_UNEXPECTED_EXCEPTION", ex); 154 | } 155 | } 156 | 157 | @ReactMethod 158 | public void joinMeeting( 159 | final String meetingNo, 160 | final String displayName, 161 | final String meetingPassword, 162 | Promise promise 163 | ) { 164 | try { 165 | meetingPromise = promise; 166 | 167 | ZoomSDK zoomSDK = ZoomSDK.getInstance(); 168 | if(!zoomSDK.isInitialized()) { 169 | promise.reject("ERR_ZOOM_JOIN", "ZoomSDK has not been initialized successfully"); 170 | return; 171 | } 172 | 173 | final MeetingService meetingService = zoomSDK.getMeetingService(); 174 | 175 | JoinMeetingOptions opts = new JoinMeetingOptions(); 176 | JoinMeetingParams params = new JoinMeetingParams(); 177 | params.displayName = displayName; 178 | params.meetingNo = meetingNo; 179 | params.password = meetingPassword; 180 | 181 | int joinMeetingResult = meetingService.joinMeetingWithParams(reactContext.getCurrentActivity(), params, opts); 182 | Log.i(TAG, "joinMeeting, joinMeetingResult=" + joinMeetingResult); 183 | 184 | if (joinMeetingResult != MeetingError.MEETING_ERROR_SUCCESS) { 185 | promise.reject("ERR_ZOOM_JOIN", "joinMeeting, errorCode=" + joinMeetingResult); 186 | } 187 | } catch (Exception ex) { 188 | promise.reject("ERR_UNEXPECTED_EXCEPTION", ex); 189 | } 190 | } 191 | 192 | @Override 193 | public void onZoomSDKInitializeResult(int errorCode, int internalErrorCode) { 194 | Log.i(TAG, "onZoomSDKInitializeResult, errorCode=" + errorCode + ", internalErrorCode=" + internalErrorCode); 195 | if(errorCode != ZoomError.ZOOM_ERROR_SUCCESS) { 196 | initializePromise.reject( 197 | "ERR_ZOOM_INITIALIZATION", 198 | "Error: " + errorCode + ", internalErrorCode=" + internalErrorCode 199 | ); 200 | } else { 201 | registerListener(); 202 | WritableMap params = Arguments.createMap(); 203 | sendEvent(reactContext, "SDKInitialized", params); 204 | initializePromise.resolve("Initialize Zoom SDK successfully."); 205 | } 206 | } 207 | 208 | @Override 209 | public void onMeetingStatusChanged(MeetingStatus meetingStatus, int errorCode, int internalErrorCode) { 210 | Log.i(TAG, "onMeetingStatusChanged, meetingStatus=" + meetingStatus + ", errorCode=" + errorCode + ", internalErrorCode=" + internalErrorCode); 211 | 212 | if (meetingPromise == null) { 213 | return; 214 | } 215 | 216 | WritableMap params = Arguments.createMap(); 217 | 218 | if(meetingStatus == MeetingStatus.MEETING_STATUS_FAILED) { 219 | meetingPromise.reject( 220 | "ERR_ZOOM_MEETING", 221 | "Error: " + errorCode + ", internalErrorCode=" + internalErrorCode 222 | ); 223 | meetingPromise = null; 224 | } else if (meetingStatus == MeetingStatus.MEETING_STATUS_DISCONNECTING) { 225 | 226 | sendEvent(reactContext, "meetingEnded", params); 227 | 228 | } else if (meetingStatus == MeetingStatus.MEETING_STATUS_INMEETING) { 229 | 230 | sendEvent(reactContext, "meetingStarted", params); 231 | meetingPromise.resolve("Connected to zoom meeting"); 232 | meetingPromise = null; 233 | 234 | } else { 235 | params.putString("eventProperty", "onMeetingStatusChanged, meetingStatus=" + meetingStatus + ", errorCode=" + errorCode + ", internalErrorCode=" + internalErrorCode); 236 | sendEvent(reactContext, "meetingStatusChanged", params); 237 | } 238 | } 239 | 240 | private void registerListener() { 241 | Log.i(TAG, "registerListener"); 242 | ZoomSDK zoomSDK = ZoomSDK.getInstance(); 243 | MeetingService meetingService = zoomSDK.getMeetingService(); 244 | if(meetingService != null) { 245 | meetingService.addListener(this); 246 | } 247 | } 248 | 249 | private void unregisterListener() { 250 | Log.i(TAG, "unregisterListener"); 251 | ZoomSDK zoomSDK = ZoomSDK.getInstance(); 252 | if(zoomSDK.isInitialized()) { 253 | MeetingService meetingService = zoomSDK.getMeetingService(); 254 | meetingService.removeListener(this); 255 | } 256 | } 257 | 258 | @Override 259 | public void onCatalystInstanceDestroy() { 260 | unregisterListener(); 261 | } 262 | 263 | // React LifeCycle 264 | @Override 265 | public void onHostDestroy() { 266 | unregisterListener(); 267 | } 268 | 269 | @Override 270 | public void onHostPause() {} 271 | 272 | @Override 273 | public void onHostResume() {} 274 | 275 | @Override 276 | public void onZoomAuthIdentityExpired() { 277 | Log.e(TAG,"onZoomAuthIdentityExpired in init"); 278 | } 279 | } 280 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # react-native-zoom-us-bridge 2 | This library bridges React Native with zoom.us SDK and implements the SDK authentication process. 3 | 4 | Library updated to use iOS SDK 5.5.12511.0421 and Android SDK version 5.5.1.1319, or higher 5 | 6 | ***Note: User login using zoom user accounts is not implemented.*** 7 | 8 | ## Table of Contents 9 | 10 | * [Installation](#installation) 11 | * [iOS](#ios-zoomus-sdk-installation) 12 | * [Android](#android-zoomus-sdk-installation) 13 | * [Zoom Account Setup](#zoom-account-setup) 14 | * [Usage](#usage) 15 | * [Errors](#errors) 16 | * [Running the Example app](#example-project) 17 | 18 | 19 | ## Installation 20 | 21 | Install the library from npm: 22 | 23 | ```sh 24 | npm i @mokriya/react-native-zoom-us-bridge --save 25 | ``` 26 | 27 | or 28 | 29 | ```sh 30 | yarn add @mokriya/react-native-zoom-us-bridge 31 | ``` 32 | 33 | ### Linking 34 | Library Autolinks for React-Native 60 or higher. 35 | 36 | RN 59 or lower please make sure to 37 | ```sh 38 | react-native link @mokriya/react-native-zoom-us-bridge 39 | ``` 40 | 41 | Then follow the instructions for your platform to add ZoomUS SDK into your project: 42 | 43 | 44 | ### iOS ZoomUS SDK installation 45 | 46 | Manual Link is the only way. Zoom changed the way iOS SDK is packaged, and its no longer possible to use Cocoapods. 47 | 48 | [Download zoom.us iOS SDK at https://marketplace.zoom.us](https://marketplace.zoom.us) 49 | 50 | 1. Unzip the SDK and locate contents. 51 | 2. Drag lib folder into the iOS Project 52 | ![](./assets/ios_image1.jpg) 53 | 3. Make sure to check `copy if needed` 54 | ![](./assets/ios_image2.jpg) 55 | 4. Rename folder to `ZoomSDK` double check by looking up the folder in finder or terminal. 56 | ![](./assets/ios_image3.jpg) 57 | ![](./assets/ios_image4.jpg) 58 | 5. On Xcode Open ZoomSDK folder, find MobileRTC.framework, drag it to General -> Frameworks, Libraries... make sure its set to `Embed & Sign` (ios_image5) 59 | ![](./assets/ios_image5.jpg) 60 | 6. Verify the `ZoomSDK` folder is in `Build Phases`, `Copy Bundle Resources`, if not, drag the folder in there. 61 | ![](./assets/ios_image6.jpg) 62 | 63 | See [here](https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/getting-started/integration) for more information. 64 | 65 | ### Bitcode 66 | 67 | Zoom SDK library does not support bitcode. Please make sure to set bitcode to `No` 68 | ![](./assets/ios_bitcode.png) 69 | 70 | ### App store submission (iOS) 71 | 72 | The app's `Info.plist` file must contain a `NSCameraUsageDescription` and `NSMicrophoneUsageDescription` with a description explaining clearly why your app needs access to the camera and microphone, otherwise Apple will reject your app submission. 73 | 74 | 75 | ### Android ZoomUS SDK installation 76 | If you are using RN 59 or lower, you will need to enable Android X. Add this to your `gradle.properties` 77 | ``` 78 | android.useAndroidX=true 79 | android.enableJetifier=true 80 | ``` 81 | 82 | ***There are no semi-auto way to install the Android SDK at the moment. It must be done 100% manually.*** 83 | 84 | [Download zoom.us Android SDK at https://github.com/zoom/zoom-sdk-android](https://github.com/zoom/zoom-sdk-android) 85 | 86 | 1. Unzip the SDK and locate `commonlib` and `mobilertc`. 87 | 2. Drag both folders into your android project (Project/android) 88 | ![](./assets/android_image1.jpg) 89 | ![](./assets/android_image2.jpg) 90 | 91 | 3. Open `android/settings.gradle` 92 | - Add the following lines after `include ':app'` 93 | ``` 94 | include ':mobilertc' 95 | include ':commonlib' 96 | ``` 97 | ![](./assets/android_image3.jpg) 98 | 99 | 4. Open `android/build.gradle` 100 | - Update your SDK versions to match the following or higher 101 | ```groovy 102 | buildToolsVersion = "29.0.0" 103 | minSdkVersion = 21 104 | compileSdkVersion = 29 105 | targetSdkVersion = 29 106 | ``` 107 | ![](./assets/android_image4.jpg) 108 | 109 | 5. Open `android/app/build.gradle` 110 | - Add `multiDexEnabled true` into `defaultConfig` 111 | ![](./assets/android_image5.jpg) 112 | - Add these lines after `compileOptions {}` 113 | ``` 114 | packagingOptions { 115 | pickFirst 'lib/armeabi-v7a/libc++_shared.so' 116 | pickFirst 'lib/arm64-v8a/libc++_shared.so' 117 | pickFirst 'lib/x86/libc++_shared.so' 118 | pickFirst 'lib/x86_64/libc++_shared.so' 119 | } 120 | ``` 121 | - Add these lines to `dependencies` 122 | ``` 123 | implementation project(':commonlib') 124 | implementation project(':mobilertc') 125 | ``` 126 | 127 | 6. Open `MainApplication.java` 128 | - Add `SoLoader.loadLibrary("zoom");` right under `SoLoader.init(this, /* native exopackage */ false);` this is done to fix the `bad_cast` error 129 | 130 | 7. Run script to fix issues with `cannot locate symbol "__cxa_bad_typeid"` due to `libc++_shared.so`. Please do this after you have copied the `mobilertc.aar` to the correct folder 131 | - From root of project folder, execute `./node_modules/react-native-zoom-us-bridge/scripts/mobilertc-precompile.sh` 132 | 133 | Steps 6 and 7 must be done due to an issue with the Zoom Android SDK having an incompatible version of `lib++_shared.so`. Shoutout and kudos to [**Stefan Majiros**](https://stefan-majiros.com) for documenting crucial steps on getting the `mobilertc.aar` library to build. Without his insights this would have been impossible. [Blog post](https://stefanmajiros.medium.com/how-to-integrate-zoom-sdk-into-react-native-47492d4e46a6) 134 | 135 | See [here](https://marketplace.zoom.us/docs/sdk/native-sdks/android/getting-started/integration) for more official information on android integration. 136 | 137 | 138 | ## Zoom Account Setup 139 | 140 | 1. [Signup for an account](https://zoom.us/signup) 141 | 2. Verify your email 142 | 3. [Signin to the developer console](https://marketplace.zoom.us) 143 | 4. Agree to terms of becoming a developer 144 | 5. [Create a new SDK App](https://marketplace.zoom.us/docs/sdk/native-sdks/preface/sdk-app) 145 | 6. [Create a new JWT App (optional for hosting meetings)](https://marketplace.zoom.us/docs/guides/authorization/jwt-app) 146 | 147 | ## Usage 148 | 149 | ### Storing App/Jwt key on app securely 150 | You should avoid hardcoding your App/Jwt key and secret. In our example we hardcode the data for example only. There are various ways to store your key/secret safely on the net. Please make sure to read and find your best possible way. [rn security](https://reactnative.dev/docs/security) 151 | 152 | ### Basic joining meeting 153 | **APP key and secret is required** 154 | ```javascript 155 | import RNZoomUsBridge from '@mokriya/react-native-zoom-us-bridge'; 156 | 157 | RNZoomUsBridge.initialize( 158 | ZOOM_APP_KEY, 159 | ZOOM_APP_SECRET, 160 | ); 161 | 162 | RNZoomUsBridge.joinMeeting( 163 | meetingId, 164 | userName, 165 | meetingPassword, 166 | ); 167 | 168 | ``` 169 | ### Hosting meeting 170 | **JWT key and secret is required** 171 | 172 | ```javascript 173 | import RNZoomUsBridge from '@mokriya/react-native-zoom-us-bridge'; 174 | 175 | RNZoomUsBridge.initialize( 176 | ZOOM_APP_KEY, 177 | ZOOM_APP_SECRET, 178 | ); 179 | 180 | // create accessToken used to communicate with zoom api 181 | const accessToken = await RNZoomUsBridge.createJWT( 182 | ZOOM_JWT_APP_KEY, 183 | ZOOM_JWT_APP_SECRET 184 | ).then().catch((err) => console.log(err)); 185 | 186 | // use accessToken to get userId of the user account you are creating the meeting with 187 | const userId = await getUserID('user@email.com', accessToken); 188 | 189 | // use the userId to obtain the user Zoom Access Token 190 | const userZak = await createUserZAK(userId, accessToken); 191 | 192 | // use Access Token etc, to create a meeting 193 | const createMeetingResult = await createMeeting(userId, accessToken); 194 | 195 | // get meeting id from result 196 | const {id: meetingId} = createMeetingResult; 197 | 198 | // use the meeting Id, userId, user name and user zoom access token to start & join the meting 199 | RNZoomUsBridge.startMeeting( 200 | meetingId, 201 | userName, 202 | userId, 203 | userZak 204 | ); 205 | ``` 206 | 207 | ### Events from zoom sdk 208 | Use event emitter to listen for meeting state changes 209 | ```javascript 210 | import RNZoomUsBridge, {RNZoomUsBridgeEventEmitter} from '@mokriya/react-native-zoom-us-bridge'; 211 | 212 | const meetingEventEmitter = new NativeEventEmitter(RNZoomUsBridgeEventEmitter); 213 | 214 | meetingEventEmitter.addListener( 215 | 'SDKInitialized', 216 | () => { 217 | console.log("SDKInitialized"); 218 | } 219 | ); 220 | 221 | ``` 222 | | Listener | Description | 223 | |----------------------|----------------------------------------------| 224 | | SDKInitialized | Status update - SDK initialized successfully | 225 | | meetingStarted | Status update - Meeting started successfully | 226 | | meetingJoined | Status update - Meeting joined successfully | 227 | | meetingEnded | Status update - Meeting ended without error | 228 | | meetingStatusChanged | Status update - Updates the meeting status | 229 | | meetingError | Error - Meeting ended with error | 230 | | waitingRoomActive | Error - Meeting waiting room is active | 231 | 232 | ## Frequently Asked Questions 233 | ### Can Zoom US bridge join a meeting created from other zoom apps? 234 | Yes, as long as waiting room is turned off (iOS only), and user does not need to login. 235 | 236 | ### Can Zoom US bridge create a meeting? 237 | Yes. 238 | 239 | ### Can Zoom US bridge start a meeting? 240 | Yes, as long as the user matches the user whom created the meeting. 241 | 242 | ### Can Zoom US bridge join a meeting that have waiting room? 243 | No, not currently (iOS only). Android does support waiting room. 244 | 245 | ### Can Zoom US bridge join a meeting that have not started? 246 | No, not currently (iOS only). 247 | 248 | ### Can Zoom US bridge use Zoom's custom UI? 249 | No, not currently. 250 | 251 | ### Why is there event listener if startMeeting and joinMeeting already returns result? 252 | The result returned from startMeeting and joinMeeting are simple status that indicate if the command was executed successfully or not. The actual meeting joined status might not be available until a few seconds later. Always rely on the meetingJoined listener to determine if meeting have been joined successfully. 253 | 254 | ### Can user login to zoom via Zoom US bridge? 255 | No, not currently. At the moment Zoom US bridge uses SDK App Key and JWT App Key. 256 | 257 | ### Does user account need to be in the same account as App SDK/JWT? 258 | Yes. 259 | 260 | ## Errors 261 | [See Common Errors Here](COMMON_ERRORS.md) 262 | 263 | ## Example Project 264 | 265 | [Follow Example Setup Here](RNZoomUSBridgeExample/README.md) 266 | 267 | | Android | iOS | 268 | | --------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | 269 | | ![](./assets/bridge-example-android.gif) | ![](./assets/bridge-example-ios.gif) | 270 | 271 | -------------------------------------------------------------------------------- /ios/RNZoomUsBridge.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 3C907C4D2450E8F200C52BBA /* RNZoomUsManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 3C907C492450E8F200C52BBA /* RNZoomUsManager.m */; }; 11 | 3C907C4E2450E8F200C52BBA /* RNZoomUsBridgeEventEmitter.m in Sources */ = {isa = PBXBuildFile; fileRef = 3C907C4C2450E8F200C52BBA /* RNZoomUsBridgeEventEmitter.m */; }; 12 | B3E7B58A1CC2AC0600A0062D /* RNZoomUsBridge.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* RNZoomUsBridge.m */; }; 13 | /* End PBXBuildFile section */ 14 | 15 | /* Begin PBXCopyFilesBuildPhase section */ 16 | 58B511D91A9E6C8500147676 /* CopyFiles */ = { 17 | isa = PBXCopyFilesBuildPhase; 18 | buildActionMask = 2147483647; 19 | dstPath = "include/$(PRODUCT_NAME)"; 20 | dstSubfolderSpec = 16; 21 | files = ( 22 | ); 23 | runOnlyForDeploymentPostprocessing = 0; 24 | }; 25 | /* End PBXCopyFilesBuildPhase section */ 26 | 27 | /* Begin PBXFileReference section */ 28 | 134814201AA4EA6300B7C361 /* libRNZoomUsBridge.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNZoomUsBridge.a; sourceTree = BUILT_PRODUCTS_DIR; }; 29 | 3C907C492450E8F200C52BBA /* RNZoomUsManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNZoomUsManager.m; sourceTree = ""; }; 30 | 3C907C4A2450E8F200C52BBA /* RNZoomUsManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNZoomUsManager.h; sourceTree = ""; }; 31 | 3C907C4B2450E8F200C52BBA /* RNZoomUsBridgeEventEmitter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNZoomUsBridgeEventEmitter.h; sourceTree = ""; }; 32 | 3C907C4C2450E8F200C52BBA /* RNZoomUsBridgeEventEmitter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNZoomUsBridgeEventEmitter.m; sourceTree = ""; }; 33 | B3E7B5881CC2AC0600A0062D /* RNZoomUsBridge.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNZoomUsBridge.h; sourceTree = ""; }; 34 | B3E7B5891CC2AC0600A0062D /* RNZoomUsBridge.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNZoomUsBridge.m; sourceTree = ""; }; 35 | /* End PBXFileReference section */ 36 | 37 | /* Begin PBXFrameworksBuildPhase section */ 38 | 58B511D81A9E6C8500147676 /* Frameworks */ = { 39 | isa = PBXFrameworksBuildPhase; 40 | buildActionMask = 2147483647; 41 | files = ( 42 | ); 43 | runOnlyForDeploymentPostprocessing = 0; 44 | }; 45 | /* End PBXFrameworksBuildPhase section */ 46 | 47 | /* Begin PBXGroup section */ 48 | 134814211AA4EA7D00B7C361 /* Products */ = { 49 | isa = PBXGroup; 50 | children = ( 51 | 134814201AA4EA6300B7C361 /* libRNZoomUsBridge.a */, 52 | ); 53 | name = Products; 54 | sourceTree = ""; 55 | }; 56 | 58B511D21A9E6C8500147676 = { 57 | isa = PBXGroup; 58 | children = ( 59 | 3C907C4B2450E8F200C52BBA /* RNZoomUsBridgeEventEmitter.h */, 60 | 3C907C4C2450E8F200C52BBA /* RNZoomUsBridgeEventEmitter.m */, 61 | 3C907C4A2450E8F200C52BBA /* RNZoomUsManager.h */, 62 | 3C907C492450E8F200C52BBA /* RNZoomUsManager.m */, 63 | B3E7B5881CC2AC0600A0062D /* RNZoomUsBridge.h */, 64 | B3E7B5891CC2AC0600A0062D /* RNZoomUsBridge.m */, 65 | 134814211AA4EA7D00B7C361 /* Products */, 66 | ); 67 | sourceTree = ""; 68 | }; 69 | /* End PBXGroup section */ 70 | 71 | /* Begin PBXNativeTarget section */ 72 | 58B511DA1A9E6C8500147676 /* RNZoomUsBridge */ = { 73 | isa = PBXNativeTarget; 74 | buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNZoomUsBridge" */; 75 | buildPhases = ( 76 | 58B511D71A9E6C8500147676 /* Sources */, 77 | 58B511D81A9E6C8500147676 /* Frameworks */, 78 | 58B511D91A9E6C8500147676 /* CopyFiles */, 79 | ); 80 | buildRules = ( 81 | ); 82 | dependencies = ( 83 | ); 84 | name = RNZoomUsBridge; 85 | productName = RCTDataManager; 86 | productReference = 134814201AA4EA6300B7C361 /* libRNZoomUsBridge.a */; 87 | productType = "com.apple.product-type.library.static"; 88 | }; 89 | /* End PBXNativeTarget section */ 90 | 91 | /* Begin PBXProject section */ 92 | 58B511D31A9E6C8500147676 /* Project object */ = { 93 | isa = PBXProject; 94 | attributes = { 95 | LastUpgradeCheck = 0920; 96 | ORGANIZATIONNAME = Facebook; 97 | TargetAttributes = { 98 | 58B511DA1A9E6C8500147676 = { 99 | CreatedOnToolsVersion = 6.1.1; 100 | }; 101 | }; 102 | }; 103 | buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNZoomUsBridge" */; 104 | compatibilityVersion = "Xcode 3.2"; 105 | developmentRegion = English; 106 | hasScannedForEncodings = 0; 107 | knownRegions = ( 108 | English, 109 | en, 110 | ); 111 | mainGroup = 58B511D21A9E6C8500147676; 112 | productRefGroup = 58B511D21A9E6C8500147676; 113 | projectDirPath = ""; 114 | projectRoot = ""; 115 | targets = ( 116 | 58B511DA1A9E6C8500147676 /* RNZoomUsBridge */, 117 | ); 118 | }; 119 | /* End PBXProject section */ 120 | 121 | /* Begin PBXSourcesBuildPhase section */ 122 | 58B511D71A9E6C8500147676 /* Sources */ = { 123 | isa = PBXSourcesBuildPhase; 124 | buildActionMask = 2147483647; 125 | files = ( 126 | 3C907C4D2450E8F200C52BBA /* RNZoomUsManager.m in Sources */, 127 | B3E7B58A1CC2AC0600A0062D /* RNZoomUsBridge.m in Sources */, 128 | 3C907C4E2450E8F200C52BBA /* RNZoomUsBridgeEventEmitter.m in Sources */, 129 | ); 130 | runOnlyForDeploymentPostprocessing = 0; 131 | }; 132 | /* End PBXSourcesBuildPhase section */ 133 | 134 | /* Begin XCBuildConfiguration section */ 135 | 58B511ED1A9E6C8500147676 /* Debug */ = { 136 | isa = XCBuildConfiguration; 137 | buildSettings = { 138 | ALWAYS_SEARCH_USER_PATHS = NO; 139 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 140 | CLANG_CXX_LIBRARY = "libc++"; 141 | CLANG_ENABLE_MODULES = YES; 142 | CLANG_ENABLE_OBJC_ARC = YES; 143 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 144 | CLANG_WARN_BOOL_CONVERSION = YES; 145 | CLANG_WARN_COMMA = YES; 146 | CLANG_WARN_CONSTANT_CONVERSION = YES; 147 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 148 | CLANG_WARN_EMPTY_BODY = YES; 149 | CLANG_WARN_ENUM_CONVERSION = YES; 150 | CLANG_WARN_INFINITE_RECURSION = YES; 151 | CLANG_WARN_INT_CONVERSION = YES; 152 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 153 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 154 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 155 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 156 | CLANG_WARN_STRICT_PROTOTYPES = YES; 157 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 158 | CLANG_WARN_UNREACHABLE_CODE = YES; 159 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 160 | COPY_PHASE_STRIP = NO; 161 | ENABLE_STRICT_OBJC_MSGSEND = YES; 162 | ENABLE_TESTABILITY = YES; 163 | GCC_C_LANGUAGE_STANDARD = gnu99; 164 | GCC_DYNAMIC_NO_PIC = NO; 165 | GCC_NO_COMMON_BLOCKS = YES; 166 | GCC_OPTIMIZATION_LEVEL = 0; 167 | GCC_PREPROCESSOR_DEFINITIONS = ( 168 | "DEBUG=1", 169 | "$(inherited)", 170 | ); 171 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 172 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 173 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 174 | GCC_WARN_UNDECLARED_SELECTOR = YES; 175 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 176 | GCC_WARN_UNUSED_FUNCTION = YES; 177 | GCC_WARN_UNUSED_VARIABLE = YES; 178 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 179 | MTL_ENABLE_DEBUG_INFO = YES; 180 | ONLY_ACTIVE_ARCH = YES; 181 | SDKROOT = iphoneos; 182 | }; 183 | name = Debug; 184 | }; 185 | 58B511EE1A9E6C8500147676 /* Release */ = { 186 | isa = XCBuildConfiguration; 187 | buildSettings = { 188 | ALWAYS_SEARCH_USER_PATHS = NO; 189 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 190 | CLANG_CXX_LIBRARY = "libc++"; 191 | CLANG_ENABLE_MODULES = YES; 192 | CLANG_ENABLE_OBJC_ARC = YES; 193 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 194 | CLANG_WARN_BOOL_CONVERSION = YES; 195 | CLANG_WARN_COMMA = YES; 196 | CLANG_WARN_CONSTANT_CONVERSION = YES; 197 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 198 | CLANG_WARN_EMPTY_BODY = YES; 199 | CLANG_WARN_ENUM_CONVERSION = YES; 200 | CLANG_WARN_INFINITE_RECURSION = YES; 201 | CLANG_WARN_INT_CONVERSION = YES; 202 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 203 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 204 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 205 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 206 | CLANG_WARN_STRICT_PROTOTYPES = YES; 207 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 208 | CLANG_WARN_UNREACHABLE_CODE = YES; 209 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 210 | COPY_PHASE_STRIP = YES; 211 | ENABLE_NS_ASSERTIONS = NO; 212 | ENABLE_STRICT_OBJC_MSGSEND = YES; 213 | GCC_C_LANGUAGE_STANDARD = gnu99; 214 | GCC_NO_COMMON_BLOCKS = YES; 215 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 216 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 217 | GCC_WARN_UNDECLARED_SELECTOR = YES; 218 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 219 | GCC_WARN_UNUSED_FUNCTION = YES; 220 | GCC_WARN_UNUSED_VARIABLE = YES; 221 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 222 | MTL_ENABLE_DEBUG_INFO = NO; 223 | SDKROOT = iphoneos; 224 | VALIDATE_PRODUCT = YES; 225 | }; 226 | name = Release; 227 | }; 228 | 58B511F01A9E6C8500147676 /* Debug */ = { 229 | isa = XCBuildConfiguration; 230 | buildSettings = { 231 | FRAMEWORK_SEARCH_PATHS = ( 232 | "$(inherited)", 233 | "${BUILT_PRODUCTS_DIR}/**", 234 | ); 235 | HEADER_SEARCH_PATHS = ( 236 | "$(inherited)", 237 | "$(SRCROOT)/../../react-native/React/**", 238 | "${SRCROOT}/../../../ios/Pods/Headers/Public/**", 239 | ); 240 | LIBRARY_SEARCH_PATHS = "$(inherited)"; 241 | OTHER_LDFLAGS = "-ObjC"; 242 | PRODUCT_NAME = RNZoomUsBridge; 243 | SKIP_INSTALL = YES; 244 | }; 245 | name = Debug; 246 | }; 247 | 58B511F11A9E6C8500147676 /* Release */ = { 248 | isa = XCBuildConfiguration; 249 | buildSettings = { 250 | FRAMEWORK_SEARCH_PATHS = ( 251 | "$(inherited)", 252 | "${BUILT_PRODUCTS_DIR}/**", 253 | ); 254 | HEADER_SEARCH_PATHS = ( 255 | "$(inherited)", 256 | "$(SRCROOT)/../../react-native/React/**", 257 | "${SRCROOT}/../../../ios/Pods/Headers/Public/**", 258 | ); 259 | LIBRARY_SEARCH_PATHS = "$(inherited)"; 260 | OTHER_LDFLAGS = "-ObjC"; 261 | PRODUCT_NAME = RNZoomUsBridge; 262 | SKIP_INSTALL = YES; 263 | }; 264 | name = Release; 265 | }; 266 | /* End XCBuildConfiguration section */ 267 | 268 | /* Begin XCConfigurationList section */ 269 | 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNZoomUsBridge" */ = { 270 | isa = XCConfigurationList; 271 | buildConfigurations = ( 272 | 58B511ED1A9E6C8500147676 /* Debug */, 273 | 58B511EE1A9E6C8500147676 /* Release */, 274 | ); 275 | defaultConfigurationIsVisible = 0; 276 | defaultConfigurationName = Release; 277 | }; 278 | 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNZoomUsBridge" */ = { 279 | isa = XCConfigurationList; 280 | buildConfigurations = ( 281 | 58B511F01A9E6C8500147676 /* Debug */, 282 | 58B511F11A9E6C8500147676 /* Release */, 283 | ); 284 | defaultConfigurationIsVisible = 0; 285 | defaultConfigurationName = Release; 286 | }; 287 | /* End XCConfigurationList section */ 288 | }; 289 | rootObject = 58B511D31A9E6C8500147676 /* Project object */; 290 | } 291 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - boost-for-react-native (1.63.0) 3 | - DoubleConversion (1.1.6) 4 | - FBLazyVector (0.64.2) 5 | - FBReactNativeSpec (0.64.2): 6 | - RCT-Folly (= 2020.01.13.00) 7 | - RCTRequired (= 0.64.2) 8 | - RCTTypeSafety (= 0.64.2) 9 | - React-Core (= 0.64.2) 10 | - React-jsi (= 0.64.2) 11 | - ReactCommon/turbomodule/core (= 0.64.2) 12 | - glog (0.3.5) 13 | - RCT-Folly (2020.01.13.00): 14 | - boost-for-react-native 15 | - DoubleConversion 16 | - glog 17 | - RCT-Folly/Default (= 2020.01.13.00) 18 | - RCT-Folly/Default (2020.01.13.00): 19 | - boost-for-react-native 20 | - DoubleConversion 21 | - glog 22 | - RCTRequired (0.64.2) 23 | - RCTTypeSafety (0.64.2): 24 | - FBLazyVector (= 0.64.2) 25 | - RCT-Folly (= 2020.01.13.00) 26 | - RCTRequired (= 0.64.2) 27 | - React-Core (= 0.64.2) 28 | - React (0.64.2): 29 | - React-Core (= 0.64.2) 30 | - React-Core/DevSupport (= 0.64.2) 31 | - React-Core/RCTWebSocket (= 0.64.2) 32 | - React-RCTActionSheet (= 0.64.2) 33 | - React-RCTAnimation (= 0.64.2) 34 | - React-RCTBlob (= 0.64.2) 35 | - React-RCTImage (= 0.64.2) 36 | - React-RCTLinking (= 0.64.2) 37 | - React-RCTNetwork (= 0.64.2) 38 | - React-RCTSettings (= 0.64.2) 39 | - React-RCTText (= 0.64.2) 40 | - React-RCTVibration (= 0.64.2) 41 | - React-callinvoker (0.64.2) 42 | - React-Core (0.64.2): 43 | - glog 44 | - RCT-Folly (= 2020.01.13.00) 45 | - React-Core/Default (= 0.64.2) 46 | - React-cxxreact (= 0.64.2) 47 | - React-jsi (= 0.64.2) 48 | - React-jsiexecutor (= 0.64.2) 49 | - React-perflogger (= 0.64.2) 50 | - Yoga 51 | - React-Core/CoreModulesHeaders (0.64.2): 52 | - glog 53 | - RCT-Folly (= 2020.01.13.00) 54 | - React-Core/Default 55 | - React-cxxreact (= 0.64.2) 56 | - React-jsi (= 0.64.2) 57 | - React-jsiexecutor (= 0.64.2) 58 | - React-perflogger (= 0.64.2) 59 | - Yoga 60 | - React-Core/Default (0.64.2): 61 | - glog 62 | - RCT-Folly (= 2020.01.13.00) 63 | - React-cxxreact (= 0.64.2) 64 | - React-jsi (= 0.64.2) 65 | - React-jsiexecutor (= 0.64.2) 66 | - React-perflogger (= 0.64.2) 67 | - Yoga 68 | - React-Core/DevSupport (0.64.2): 69 | - glog 70 | - RCT-Folly (= 2020.01.13.00) 71 | - React-Core/Default (= 0.64.2) 72 | - React-Core/RCTWebSocket (= 0.64.2) 73 | - React-cxxreact (= 0.64.2) 74 | - React-jsi (= 0.64.2) 75 | - React-jsiexecutor (= 0.64.2) 76 | - React-jsinspector (= 0.64.2) 77 | - React-perflogger (= 0.64.2) 78 | - Yoga 79 | - React-Core/RCTActionSheetHeaders (0.64.2): 80 | - glog 81 | - RCT-Folly (= 2020.01.13.00) 82 | - React-Core/Default 83 | - React-cxxreact (= 0.64.2) 84 | - React-jsi (= 0.64.2) 85 | - React-jsiexecutor (= 0.64.2) 86 | - React-perflogger (= 0.64.2) 87 | - Yoga 88 | - React-Core/RCTAnimationHeaders (0.64.2): 89 | - glog 90 | - RCT-Folly (= 2020.01.13.00) 91 | - React-Core/Default 92 | - React-cxxreact (= 0.64.2) 93 | - React-jsi (= 0.64.2) 94 | - React-jsiexecutor (= 0.64.2) 95 | - React-perflogger (= 0.64.2) 96 | - Yoga 97 | - React-Core/RCTBlobHeaders (0.64.2): 98 | - glog 99 | - RCT-Folly (= 2020.01.13.00) 100 | - React-Core/Default 101 | - React-cxxreact (= 0.64.2) 102 | - React-jsi (= 0.64.2) 103 | - React-jsiexecutor (= 0.64.2) 104 | - React-perflogger (= 0.64.2) 105 | - Yoga 106 | - React-Core/RCTImageHeaders (0.64.2): 107 | - glog 108 | - RCT-Folly (= 2020.01.13.00) 109 | - React-Core/Default 110 | - React-cxxreact (= 0.64.2) 111 | - React-jsi (= 0.64.2) 112 | - React-jsiexecutor (= 0.64.2) 113 | - React-perflogger (= 0.64.2) 114 | - Yoga 115 | - React-Core/RCTLinkingHeaders (0.64.2): 116 | - glog 117 | - RCT-Folly (= 2020.01.13.00) 118 | - React-Core/Default 119 | - React-cxxreact (= 0.64.2) 120 | - React-jsi (= 0.64.2) 121 | - React-jsiexecutor (= 0.64.2) 122 | - React-perflogger (= 0.64.2) 123 | - Yoga 124 | - React-Core/RCTNetworkHeaders (0.64.2): 125 | - glog 126 | - RCT-Folly (= 2020.01.13.00) 127 | - React-Core/Default 128 | - React-cxxreact (= 0.64.2) 129 | - React-jsi (= 0.64.2) 130 | - React-jsiexecutor (= 0.64.2) 131 | - React-perflogger (= 0.64.2) 132 | - Yoga 133 | - React-Core/RCTSettingsHeaders (0.64.2): 134 | - glog 135 | - RCT-Folly (= 2020.01.13.00) 136 | - React-Core/Default 137 | - React-cxxreact (= 0.64.2) 138 | - React-jsi (= 0.64.2) 139 | - React-jsiexecutor (= 0.64.2) 140 | - React-perflogger (= 0.64.2) 141 | - Yoga 142 | - React-Core/RCTTextHeaders (0.64.2): 143 | - glog 144 | - RCT-Folly (= 2020.01.13.00) 145 | - React-Core/Default 146 | - React-cxxreact (= 0.64.2) 147 | - React-jsi (= 0.64.2) 148 | - React-jsiexecutor (= 0.64.2) 149 | - React-perflogger (= 0.64.2) 150 | - Yoga 151 | - React-Core/RCTVibrationHeaders (0.64.2): 152 | - glog 153 | - RCT-Folly (= 2020.01.13.00) 154 | - React-Core/Default 155 | - React-cxxreact (= 0.64.2) 156 | - React-jsi (= 0.64.2) 157 | - React-jsiexecutor (= 0.64.2) 158 | - React-perflogger (= 0.64.2) 159 | - Yoga 160 | - React-Core/RCTWebSocket (0.64.2): 161 | - glog 162 | - RCT-Folly (= 2020.01.13.00) 163 | - React-Core/Default (= 0.64.2) 164 | - React-cxxreact (= 0.64.2) 165 | - React-jsi (= 0.64.2) 166 | - React-jsiexecutor (= 0.64.2) 167 | - React-perflogger (= 0.64.2) 168 | - Yoga 169 | - React-CoreModules (0.64.2): 170 | - FBReactNativeSpec (= 0.64.2) 171 | - RCT-Folly (= 2020.01.13.00) 172 | - RCTTypeSafety (= 0.64.2) 173 | - React-Core/CoreModulesHeaders (= 0.64.2) 174 | - React-jsi (= 0.64.2) 175 | - React-RCTImage (= 0.64.2) 176 | - ReactCommon/turbomodule/core (= 0.64.2) 177 | - React-cxxreact (0.64.2): 178 | - boost-for-react-native (= 1.63.0) 179 | - DoubleConversion 180 | - glog 181 | - RCT-Folly (= 2020.01.13.00) 182 | - React-callinvoker (= 0.64.2) 183 | - React-jsi (= 0.64.2) 184 | - React-jsinspector (= 0.64.2) 185 | - React-perflogger (= 0.64.2) 186 | - React-runtimeexecutor (= 0.64.2) 187 | - React-jsi (0.64.2): 188 | - boost-for-react-native (= 1.63.0) 189 | - DoubleConversion 190 | - glog 191 | - RCT-Folly (= 2020.01.13.00) 192 | - React-jsi/Default (= 0.64.2) 193 | - React-jsi/Default (0.64.2): 194 | - boost-for-react-native (= 1.63.0) 195 | - DoubleConversion 196 | - glog 197 | - RCT-Folly (= 2020.01.13.00) 198 | - React-jsiexecutor (0.64.2): 199 | - DoubleConversion 200 | - glog 201 | - RCT-Folly (= 2020.01.13.00) 202 | - React-cxxreact (= 0.64.2) 203 | - React-jsi (= 0.64.2) 204 | - React-perflogger (= 0.64.2) 205 | - React-jsinspector (0.64.2) 206 | - React-perflogger (0.64.2) 207 | - React-RCTActionSheet (0.64.2): 208 | - React-Core/RCTActionSheetHeaders (= 0.64.2) 209 | - React-RCTAnimation (0.64.2): 210 | - FBReactNativeSpec (= 0.64.2) 211 | - RCT-Folly (= 2020.01.13.00) 212 | - RCTTypeSafety (= 0.64.2) 213 | - React-Core/RCTAnimationHeaders (= 0.64.2) 214 | - React-jsi (= 0.64.2) 215 | - ReactCommon/turbomodule/core (= 0.64.2) 216 | - React-RCTBlob (0.64.2): 217 | - FBReactNativeSpec (= 0.64.2) 218 | - RCT-Folly (= 2020.01.13.00) 219 | - React-Core/RCTBlobHeaders (= 0.64.2) 220 | - React-Core/RCTWebSocket (= 0.64.2) 221 | - React-jsi (= 0.64.2) 222 | - React-RCTNetwork (= 0.64.2) 223 | - ReactCommon/turbomodule/core (= 0.64.2) 224 | - React-RCTImage (0.64.2): 225 | - FBReactNativeSpec (= 0.64.2) 226 | - RCT-Folly (= 2020.01.13.00) 227 | - RCTTypeSafety (= 0.64.2) 228 | - React-Core/RCTImageHeaders (= 0.64.2) 229 | - React-jsi (= 0.64.2) 230 | - React-RCTNetwork (= 0.64.2) 231 | - ReactCommon/turbomodule/core (= 0.64.2) 232 | - React-RCTLinking (0.64.2): 233 | - FBReactNativeSpec (= 0.64.2) 234 | - React-Core/RCTLinkingHeaders (= 0.64.2) 235 | - React-jsi (= 0.64.2) 236 | - ReactCommon/turbomodule/core (= 0.64.2) 237 | - React-RCTNetwork (0.64.2): 238 | - FBReactNativeSpec (= 0.64.2) 239 | - RCT-Folly (= 2020.01.13.00) 240 | - RCTTypeSafety (= 0.64.2) 241 | - React-Core/RCTNetworkHeaders (= 0.64.2) 242 | - React-jsi (= 0.64.2) 243 | - ReactCommon/turbomodule/core (= 0.64.2) 244 | - React-RCTSettings (0.64.2): 245 | - FBReactNativeSpec (= 0.64.2) 246 | - RCT-Folly (= 2020.01.13.00) 247 | - RCTTypeSafety (= 0.64.2) 248 | - React-Core/RCTSettingsHeaders (= 0.64.2) 249 | - React-jsi (= 0.64.2) 250 | - ReactCommon/turbomodule/core (= 0.64.2) 251 | - React-RCTText (0.64.2): 252 | - React-Core/RCTTextHeaders (= 0.64.2) 253 | - React-RCTVibration (0.64.2): 254 | - FBReactNativeSpec (= 0.64.2) 255 | - RCT-Folly (= 2020.01.13.00) 256 | - React-Core/RCTVibrationHeaders (= 0.64.2) 257 | - React-jsi (= 0.64.2) 258 | - ReactCommon/turbomodule/core (= 0.64.2) 259 | - React-runtimeexecutor (0.64.2): 260 | - React-jsi (= 0.64.2) 261 | - ReactCommon/turbomodule/core (0.64.2): 262 | - DoubleConversion 263 | - glog 264 | - RCT-Folly (= 2020.01.13.00) 265 | - React-callinvoker (= 0.64.2) 266 | - React-Core (= 0.64.2) 267 | - React-cxxreact (= 0.64.2) 268 | - React-jsi (= 0.64.2) 269 | - React-perflogger (= 0.64.2) 270 | - RNZoomUsBridge (0.0.9): 271 | - React 272 | - Yoga (1.14.0) 273 | 274 | DEPENDENCIES: 275 | - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`) 276 | - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`) 277 | - FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`) 278 | - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`) 279 | - RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`) 280 | - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`) 281 | - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`) 282 | - React (from `../node_modules/react-native/`) 283 | - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`) 284 | - React-Core (from `../node_modules/react-native/`) 285 | - React-Core/DevSupport (from `../node_modules/react-native/`) 286 | - React-Core/RCTWebSocket (from `../node_modules/react-native/`) 287 | - React-CoreModules (from `../node_modules/react-native/React/CoreModules`) 288 | - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`) 289 | - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`) 290 | - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`) 291 | - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`) 292 | - React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`) 293 | - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`) 294 | - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`) 295 | - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`) 296 | - React-RCTImage (from `../node_modules/react-native/Libraries/Image`) 297 | - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`) 298 | - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`) 299 | - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`) 300 | - React-RCTText (from `../node_modules/react-native/Libraries/Text`) 301 | - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`) 302 | - React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`) 303 | - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`) 304 | - RNZoomUsBridge (from `../..`) 305 | - Yoga (from `../node_modules/react-native/ReactCommon/yoga`) 306 | 307 | SPEC REPOS: 308 | trunk: 309 | - boost-for-react-native 310 | 311 | EXTERNAL SOURCES: 312 | DoubleConversion: 313 | :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec" 314 | FBLazyVector: 315 | :path: "../node_modules/react-native/Libraries/FBLazyVector" 316 | FBReactNativeSpec: 317 | :path: "../node_modules/react-native/React/FBReactNativeSpec" 318 | glog: 319 | :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec" 320 | RCT-Folly: 321 | :podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec" 322 | RCTRequired: 323 | :path: "../node_modules/react-native/Libraries/RCTRequired" 324 | RCTTypeSafety: 325 | :path: "../node_modules/react-native/Libraries/TypeSafety" 326 | React: 327 | :path: "../node_modules/react-native/" 328 | React-callinvoker: 329 | :path: "../node_modules/react-native/ReactCommon/callinvoker" 330 | React-Core: 331 | :path: "../node_modules/react-native/" 332 | React-CoreModules: 333 | :path: "../node_modules/react-native/React/CoreModules" 334 | React-cxxreact: 335 | :path: "../node_modules/react-native/ReactCommon/cxxreact" 336 | React-jsi: 337 | :path: "../node_modules/react-native/ReactCommon/jsi" 338 | React-jsiexecutor: 339 | :path: "../node_modules/react-native/ReactCommon/jsiexecutor" 340 | React-jsinspector: 341 | :path: "../node_modules/react-native/ReactCommon/jsinspector" 342 | React-perflogger: 343 | :path: "../node_modules/react-native/ReactCommon/reactperflogger" 344 | React-RCTActionSheet: 345 | :path: "../node_modules/react-native/Libraries/ActionSheetIOS" 346 | React-RCTAnimation: 347 | :path: "../node_modules/react-native/Libraries/NativeAnimation" 348 | React-RCTBlob: 349 | :path: "../node_modules/react-native/Libraries/Blob" 350 | React-RCTImage: 351 | :path: "../node_modules/react-native/Libraries/Image" 352 | React-RCTLinking: 353 | :path: "../node_modules/react-native/Libraries/LinkingIOS" 354 | React-RCTNetwork: 355 | :path: "../node_modules/react-native/Libraries/Network" 356 | React-RCTSettings: 357 | :path: "../node_modules/react-native/Libraries/Settings" 358 | React-RCTText: 359 | :path: "../node_modules/react-native/Libraries/Text" 360 | React-RCTVibration: 361 | :path: "../node_modules/react-native/Libraries/Vibration" 362 | React-runtimeexecutor: 363 | :path: "../node_modules/react-native/ReactCommon/runtimeexecutor" 364 | ReactCommon: 365 | :path: "../node_modules/react-native/ReactCommon" 366 | RNZoomUsBridge: 367 | :path: "../.." 368 | Yoga: 369 | :path: "../node_modules/react-native/ReactCommon/yoga" 370 | 371 | SPEC CHECKSUMS: 372 | boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c 373 | DoubleConversion: cf9b38bf0b2d048436d9a82ad2abe1404f11e7de 374 | FBLazyVector: e686045572151edef46010a6f819ade377dfeb4b 375 | FBReactNativeSpec: f2a697518e48fa6cc03aa7f232cbb493d998f9bd 376 | glog: 73c2498ac6884b13ede40eda8228cb1eee9d9d62 377 | RCT-Folly: ec7a233ccc97cc556cf7237f0db1ff65b986f27c 378 | RCTRequired: 6d3e854f0e7260a648badd0d44fc364bc9da9728 379 | RCTTypeSafety: c1f31d19349c6b53085766359caac425926fafaa 380 | React: bda6b6d7ae912de97d7a61aa5c160db24aa2ad69 381 | React-callinvoker: 9840ea7e8e88ed73d438edb725574820b29b5baa 382 | React-Core: b5e385da7ce5f16a220fc60fd0749eae2c6120f0 383 | React-CoreModules: 17071a4e2c5239b01585f4aa8070141168ab298f 384 | React-cxxreact: 9be7b6340ed9f7c53e53deca7779f07cd66525ba 385 | React-jsi: 67747b9722f6dab2ffe15b011bcf6b3f2c3f1427 386 | React-jsiexecutor: 80c46bd381fd06e418e0d4f53672dc1d1945c4c3 387 | React-jsinspector: cc614ec18a9ca96fd275100c16d74d62ee11f0ae 388 | React-perflogger: 25373e382fed75ce768a443822f07098a15ab737 389 | React-RCTActionSheet: af7796ba49ffe4ca92e7277a5d992d37203f7da5 390 | React-RCTAnimation: 6a2e76ab50c6f25b428d81b76a5a45351c4d77aa 391 | React-RCTBlob: 02a2887023e0eed99391b6445b2e23a2a6f9226d 392 | React-RCTImage: ce5bf8e7438f2286d9b646a05d6ab11f38b0323d 393 | React-RCTLinking: ccd20742de14e020cb5f99d5c7e0bf0383aefbd9 394 | React-RCTNetwork: dfb9d089ab0753e5e5f55fc4b1210858f7245647 395 | React-RCTSettings: b14aef2d83699e48b410fb7c3ba5b66cd3291ae2 396 | React-RCTText: 41a2e952dd9adc5caf6fb68ed46b275194d5da5f 397 | React-RCTVibration: 24600e3b1aaa77126989bc58b6747509a1ba14f3 398 | React-runtimeexecutor: a9904c6d0218fb9f8b19d6dd88607225927668f9 399 | ReactCommon: 149906e01aa51142707a10665185db879898e966 400 | RNZoomUsBridge: 6fddfcf6107ca3e45522b4338a1ca5bd04dff4d9 401 | Yoga: 575c581c63e0d35c9a83f4b46d01d63abc1100ac 402 | 403 | PODFILE CHECKSUM: be6dd9e342be21952d2d1d505bb7459c7b75f051 404 | 405 | COCOAPODS: 1.10.1 406 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/App.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Sample React Native App 3 | * https://github.com/facebook/react-native 4 | * 5 | * @format 6 | * @flow strict-local 7 | */ 8 | 9 | import React, {useEffect, useReducer} from 'react'; 10 | import { 11 | StyleSheet, 12 | Text, 13 | View, 14 | NativeEventEmitter, 15 | Alert, 16 | TouchableOpacity, 17 | TextInput, 18 | } from 'react-native'; 19 | 20 | import RNZoomUsBridge, { 21 | RNZoomUsBridgeEventEmitter, 22 | } from '@mokriya/react-native-zoom-us-bridge'; 23 | 24 | // YOU WILL NEED TO SET THIS 25 | const ZOOM_SDK_KEY = ''; 26 | const ZOOM_SDK_SECRET = ''; 27 | const ZOOM_JWT_API_KEY = ''; 28 | const ZOOM_JWT_API_SECRET = ''; 29 | 30 | const initialState = { 31 | meetingId: '', 32 | meetingPassword: '', 33 | meetingTitle: '', 34 | userName: '', 35 | userEmail: '', 36 | userId: '', 37 | accessToken: '', 38 | userZoomAccessToken: '', 39 | meetingCreated: false, 40 | view: 'select', 41 | }; 42 | 43 | function reducer(state, action) { 44 | switch (action.type) { 45 | case 'UPDATE_MEETINGID': 46 | return { 47 | ...state, 48 | meetingId: action.payload, 49 | }; 50 | case 'UPDATE_MEETINGPASSWORD': 51 | return { 52 | ...state, 53 | meetingPassword: action.payload, 54 | }; 55 | case 'UPDATE_MEETINGTITLE': 56 | return { 57 | ...state, 58 | meetingTitle: action.payload, 59 | }; 60 | case 'UPDATE_USERNAME': 61 | return { 62 | ...state, 63 | userName: action.payload, 64 | }; 65 | case 'UPDATE_USEREMAIL': 66 | return { 67 | ...state, 68 | userEmail: action.payload, 69 | }; 70 | case 'UPDATE_USERID': 71 | return { 72 | ...state, 73 | userId: action.payload, 74 | }; 75 | case 'UPDATE_ACCESSTOKEN': 76 | return { 77 | ...state, 78 | accessToken: action.payload, 79 | }; 80 | case 'UPDATE_USERZAK': 81 | return { 82 | ...state, 83 | userZoomAccessToken: action.payload, 84 | }; 85 | case 'UPDATE_MEETINGCREATED': 86 | return { 87 | ...state, 88 | meetingCreated: action.payload, 89 | }; 90 | case 'UPDATE_VIEW': 91 | return { 92 | ...state, 93 | view: action.payload, 94 | }; 95 | default: 96 | throw new Error(); 97 | } 98 | } 99 | 100 | const App = () => { 101 | const [state, dispatch] = useReducer(reducer, initialState); 102 | 103 | // lets listen to the events! 104 | useEffect(() => { 105 | const meetingEventEmitter = new NativeEventEmitter( 106 | RNZoomUsBridgeEventEmitter, 107 | ); 108 | 109 | // add sdk init listener 110 | const sdkInitialized = meetingEventEmitter.addListener( 111 | 'SDKInitialized', 112 | () => { 113 | console.log('SDKInitialized'); 114 | 115 | // lets also get access token 116 | createAccessToken(); 117 | }, 118 | ); 119 | 120 | // add meeting waiting room is active 121 | const meetingWaitingRoomIsActiveSubscription = 122 | meetingEventEmitter.addListener('waitingRoomActive', () => { 123 | Alert.alert( 124 | 'Error Joining', 125 | 'Meeting waiting room is active. Please disable before joining.', 126 | [{text: 'OK', onPress: () => null}], 127 | {cancelable: false}, 128 | ); 129 | console.log('waitingRoomActive'); 130 | }); 131 | 132 | const meetingStatusChangedSubscription = meetingEventEmitter.addListener( 133 | 'meetingStatusChanged', 134 | event => console.log('meetingStatusChanged', event.eventProperty), 135 | ); 136 | 137 | const hiddenSubscription = meetingEventEmitter.addListener( 138 | 'meetingSetToHidden', 139 | () => console.log('Meeting Hidden'), 140 | ); 141 | 142 | const endedSubscription = meetingEventEmitter.addListener( 143 | 'meetingEnded', 144 | result => { 145 | console.log('Meeting Ended: ', result); 146 | if ('error' in result) { 147 | Alert.alert( 148 | 'Error Joining', 149 | 'One of your inputs is invalid.', 150 | [{text: 'OK', onPress: () => null}], 151 | {cancelable: false}, 152 | ); 153 | } 154 | }, 155 | ); 156 | 157 | const meetingErroredSubscription = meetingEventEmitter.addListener( 158 | 'meetingError', 159 | result => { 160 | console.log('Meeting Errored: ', result); 161 | if ('error' in result) { 162 | Alert.alert( 163 | 'Error Joining', 164 | 'One of your inputs is invalid.', 165 | [{text: 'OK', onPress: () => null}], 166 | {cancelable: false}, 167 | ); 168 | } 169 | }, 170 | ); 171 | 172 | const startedSubscription = meetingEventEmitter.addListener( 173 | 'meetingStarted', 174 | result => { 175 | console.log('Meeting Started: ', result); 176 | if ('error' in result) { 177 | Alert.alert( 178 | 'Error Joining', 179 | 'One of your inputs is invalid.', 180 | [{text: 'OK', onPress: () => null}], 181 | {cancelable: false}, 182 | ); 183 | } 184 | }, 185 | ); 186 | 187 | const joinedSubscription = meetingEventEmitter.addListener( 188 | 'meetingJoined', 189 | result => { 190 | console.log('Meeting Joined: ', result); 191 | if ('error' in result) { 192 | Alert.alert( 193 | 'Error Joining', 194 | 'One of your inputs is invalid.', 195 | [{text: 'OK', onPress: () => null}], 196 | {cancelable: false}, 197 | ); 198 | } 199 | }, 200 | ); 201 | 202 | initializeZoomSDK(); 203 | 204 | return () => { 205 | // remove listeners 206 | sdkInitialized.remove(); 207 | meetingWaitingRoomIsActiveSubscription.remove(); 208 | meetingStatusChangedSubscription.remove(); 209 | hiddenSubscription.remove(); 210 | endedSubscription.remove(); 211 | meetingErroredSubscription.remove(); 212 | startedSubscription.remove(); 213 | joinedSubscription.remove(); 214 | }; 215 | }, []); 216 | 217 | const initializeZoomSDK = () => { 218 | if (ZOOM_SDK_KEY && ZOOM_SDK_SECRET) { 219 | // init sdk 220 | console.log('RNZoomUsBridge', RNZoomUsBridge); 221 | RNZoomUsBridge.initialize(ZOOM_SDK_KEY, ZOOM_SDK_SECRET) 222 | .then() 223 | .catch(err => { 224 | console.warn(err); 225 | Alert.alert('error!', err.message); 226 | }); 227 | } 228 | }; 229 | 230 | const joinMeeting = async () => { 231 | if (state.meetingId && state.userName && state.meetingPassword) { 232 | RNZoomUsBridge.joinMeeting( 233 | String(state.meetingId), 234 | state.userName, 235 | state.meetingPassword, 236 | ) 237 | .then() 238 | .catch(err => { 239 | console.warn(err); 240 | Alert.alert('error!', err.message); 241 | }); 242 | } 243 | }; 244 | 245 | const createAccessToken = async () => { 246 | // to talk to ZOOM API you will need access token 247 | if (ZOOM_JWT_API_KEY && ZOOM_JWT_API_SECRET) { 248 | const accessToken = await RNZoomUsBridge.createJWT( 249 | ZOOM_JWT_API_KEY, 250 | ZOOM_JWT_API_SECRET, 251 | ) 252 | .then() 253 | .catch(err => console.log(err)); 254 | 255 | console.log(`createAccessToken ${accessToken}`); 256 | 257 | if (accessToken) { 258 | dispatch({type: 'UPDATE_ACCESSTOKEN', payload: accessToken}); 259 | } 260 | } 261 | }; 262 | 263 | const getUserID = async (userEmail, accessToken) => { 264 | const fetchURL = `https://api.zoom.us/v2/users/${userEmail}`; 265 | const userResult = await fetch(fetchURL, { 266 | method: 'GET', 267 | headers: { 268 | Authorization: `Bearer ${accessToken}`, 269 | 'Content-Type': 'application/json', 270 | }, 271 | }) 272 | .then(response => response.json()) 273 | .then(json => { 274 | return json; 275 | }) 276 | .catch(error => { 277 | console.error(error); 278 | }); 279 | 280 | console.log('userResult', userResult); 281 | 282 | if (userResult && userResult.code === 429) { 283 | // rate error try again later 284 | Alert.alert('API Rate error try again in a few seconds'); 285 | } 286 | 287 | if (userResult && userResult.id && userResult.status === 'active') { 288 | // set user id 289 | const {id: userId} = userResult; 290 | dispatch({type: 'UPDATE_USERID', payload: userId}); 291 | 292 | return userId; 293 | } 294 | 295 | return false; 296 | }; 297 | 298 | const createUserZAK = async (userId, accessToken) => { 299 | const fetchURL = `https://api.zoom.us/v2/users/${userId}/token?type=zak`; 300 | const userZAKResult = await fetch(fetchURL, { 301 | method: 'GET', 302 | headers: { 303 | Authorization: `Bearer ${accessToken}`, 304 | 'Content-Type': 'application/json', 305 | }, 306 | }) 307 | .then(response => response.json()) 308 | .then(json => { 309 | return json; 310 | }) 311 | .catch(error => { 312 | console.error(error); 313 | }); 314 | 315 | console.log('userZAKResult', userZAKResult); 316 | 317 | if (userZAKResult && userZAKResult.code === 429) { 318 | // rate error try again later 319 | Alert.alert('API Rate error try again in a few seconds'); 320 | } 321 | 322 | if (userZAKResult && userZAKResult.token) { 323 | // set user id 324 | const {token} = userZAKResult; 325 | 326 | dispatch({type: 'UPDATE_USERZAK', payload: token}); 327 | 328 | return token; 329 | } 330 | 331 | return false; 332 | }; 333 | 334 | const createMeeting = async () => { 335 | if (state.accessToken && state.meetingTitle && state.userEmail) { 336 | // user ID is pulled from jwt end point using the email address 337 | const userId = await getUserID(state.userEmail, state.accessToken); 338 | await createUserZAK(userId, state.accessToken); 339 | 340 | if (userId) { 341 | // use api to create meeting 342 | const fetchURL = `https://api.zoom.us/v2/users/${userId}/meetings`; 343 | const createMeetingResult = await fetch(fetchURL, { 344 | method: 'POST', 345 | headers: { 346 | Authorization: `Bearer ${state.accessToken}`, 347 | 'Content-Type': 'application/json', 348 | }, 349 | body: JSON.stringify({ 350 | topic: state.meetingTitle, 351 | type: 1, 352 | duration: 30, 353 | password: '123456', // set your own password is possible 354 | settings: { 355 | waiting_room: false, 356 | registrants_confirmation_email: false, 357 | audio: 'voip', 358 | }, 359 | }), 360 | }) 361 | .then(response => response.json()) 362 | .then(json => { 363 | return json; 364 | }) 365 | .catch(error => { 366 | console.error(error); 367 | }); 368 | 369 | console.log('createMeetingResult', createMeetingResult); 370 | 371 | if (createMeetingResult && createMeetingResult.code === 429) { 372 | // rate error try again later 373 | Alert.alert('API Rate error try again in a few seconds'); 374 | } 375 | 376 | if (createMeetingResult && createMeetingResult.id) { 377 | const {id, password} = createMeetingResult; 378 | dispatch({type: 'UPDATE_MEETINGID', payload: id}); 379 | dispatch({type: 'UPDATE_MEETINGPASSWORD', payload: password}); 380 | dispatch({type: 'UPDATE_MEETINGCREATED', payload: true}); 381 | } 382 | } 383 | } 384 | }; 385 | 386 | const startMeeting = async () => { 387 | if (state.meetingId && state.userId && state.userZoomAccessToken) { 388 | await RNZoomUsBridge.startMeeting( 389 | String(state.meetingId), 390 | state.userName, 391 | state.userId, 392 | state.userZoomAccessToken, 393 | ); 394 | } 395 | }; 396 | 397 | const viewJoin = () => dispatch({type: 'UPDATE_VIEW', payload: 'join'}); 398 | 399 | const viewHost = () => dispatch({type: 'UPDATE_VIEW', payload: 'host'}); 400 | 401 | return ( 402 | 403 | ☆RNZoomUsBridge example☆ 404 | {!ZOOM_SDK_KEY || !ZOOM_SDK_SECRET ? ( 405 | 406 | ZOOM_APP_KEY and ZOOM_APP_SECRET must be set 407 | 408 | ) : null} 409 | {!ZOOM_JWT_API_KEY || !ZOOM_JWT_API_SECRET ? ( 410 | 411 | optional ZOOM_JWT_APP_KEY and ZOOM_JWT_APP_SECRET must be set to host 412 | meetings 413 | 414 | ) : null} 415 | {state.view === 'select' ? ( 416 | <> 417 | 418 | Join a Meeting 419 | 420 | {state.accessToken ? ( 421 | 422 | Host a Meeting 423 | 424 | ) : null} 425 | 426 | ) : null} 427 | {state.view === 'join' ? ( 428 | <> 429 | 433 | dispatch({type: 'UPDATE_MEETINGID', payload: text}) 434 | } 435 | style={styles.input} 436 | /> 437 | 441 | dispatch({type: 'UPDATE_MEETINGPASSWORD', payload: text}) 442 | } 443 | style={styles.input} 444 | /> 445 | 449 | dispatch({type: 'UPDATE_USERNAME', payload: text}) 450 | } 451 | style={styles.input} 452 | /> 453 | 454 | Join Meeting 455 | 456 | 457 | ) : null} 458 | {state.view === 'host' ? ( 459 | <> 460 | 464 | dispatch({type: 'UPDATE_USEREMAIL', payload: text}) 465 | } 466 | style={styles.input} 467 | /> 468 | 472 | dispatch({type: 'UPDATE_MEETINGTITLE', payload: text}) 473 | } 474 | style={styles.input} 475 | /> 476 | 477 | Create Meeting 478 | 479 | {state.meetingCreated ? ( 480 | <> 481 | 487 | 493 | 494 | Start Meeting 495 | 496 | 497 | ) : null} 498 | 499 | ) : null} 500 | 501 | ); 502 | }; 503 | 504 | const styles = StyleSheet.create({ 505 | container: { 506 | flex: 1, 507 | justifyContent: 'center', 508 | alignItems: 'center', 509 | backgroundColor: '#F5FCFF', 510 | }, 511 | welcome: { 512 | fontSize: 20, 513 | textAlign: 'center', 514 | margin: 10, 515 | }, 516 | input: { 517 | width: 200, 518 | padding: 10, 519 | borderRadius: 5, 520 | borderWidth: 1, 521 | borderColor: 'grey', 522 | margin: 3, 523 | }, 524 | button: { 525 | width: 200, 526 | padding: 10, 527 | borderRadius: 5, 528 | backgroundColor: 'salmon', 529 | alignItems: 'center', 530 | justifyContent: 'center', 531 | margin: 3, 532 | }, 533 | buttonText: { 534 | color: 'white', 535 | }, 536 | }); 537 | 538 | export default App; 539 | -------------------------------------------------------------------------------- /RNZoomUSBridgeExample/ios/RNZoomUSBridgeExample.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 54; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 11 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 12 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 13 | 3C1AF8E92683EE0D0018AC29 /* MobileRTCResources.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 3C1AF8E72683EE0D0018AC29 /* MobileRTCResources.bundle */; }; 14 | 3C1AF8EA2683EE240018AC29 /* MobileRTC.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3C1AF8E62683EE0D0018AC29 /* MobileRTC.xcframework */; }; 15 | 3C1AF8EB2683EE240018AC29 /* MobileRTC.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3C1AF8E62683EE0D0018AC29 /* MobileRTC.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 16 | 3CFB1C9526830E51003A809B /* Fix.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3CFB1C9426830E51003A809B /* Fix.swift */; }; 17 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; }; 18 | A54D122A388AA8D2BE8F379B /* libPods-RNZoomUSBridgeExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7F0C53B9EDC60F253FD7C40D /* libPods-RNZoomUSBridgeExample.a */; }; 19 | /* End PBXBuildFile section */ 20 | 21 | /* Begin PBXCopyFilesBuildPhase section */ 22 | 3CFB1C9226830C11003A809B /* Embed Frameworks */ = { 23 | isa = PBXCopyFilesBuildPhase; 24 | buildActionMask = 2147483647; 25 | dstPath = ""; 26 | dstSubfolderSpec = 10; 27 | files = ( 28 | 3C1AF8EB2683EE240018AC29 /* MobileRTC.xcframework in Embed Frameworks */, 29 | ); 30 | name = "Embed Frameworks"; 31 | runOnlyForDeploymentPostprocessing = 0; 32 | }; 33 | /* End PBXCopyFilesBuildPhase section */ 34 | 35 | /* Begin PBXFileReference section */ 36 | 13B07F961A680F5B00A75B9A /* RNZoomUSBridgeExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RNZoomUSBridgeExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 37 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = RNZoomUSBridgeExample/AppDelegate.h; sourceTree = ""; }; 38 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = RNZoomUSBridgeExample/AppDelegate.m; sourceTree = ""; }; 39 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = RNZoomUSBridgeExample/Images.xcassets; sourceTree = ""; }; 40 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = RNZoomUSBridgeExample/Info.plist; sourceTree = ""; }; 41 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = RNZoomUSBridgeExample/main.m; sourceTree = ""; }; 42 | 3C1AF8E62683EE0D0018AC29 /* MobileRTC.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = MobileRTC.xcframework; path = ZoomSDK/MobileRTC.xcframework; sourceTree = ""; }; 43 | 3C1AF8E72683EE0D0018AC29 /* MobileRTCResources.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; name = MobileRTCResources.bundle; path = ZoomSDK/MobileRTCResources.bundle; sourceTree = ""; }; 44 | 3CFB1C9326830E51003A809B /* RNZoomUSBridgeExample-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "RNZoomUSBridgeExample-Bridging-Header.h"; sourceTree = ""; }; 45 | 3CFB1C9426830E51003A809B /* Fix.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Fix.swift; sourceTree = ""; }; 46 | 53B65F39FE7E33D82C5EDE15 /* libPods-RNZoomUSBridgeExample-RNZoomUSBridgeExampleTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-RNZoomUSBridgeExample-RNZoomUSBridgeExampleTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 47 | 5AC22709AC55BB04317C679D /* Pods-RNZoomUSBridgeExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNZoomUSBridgeExample.release.xcconfig"; path = "Target Support Files/Pods-RNZoomUSBridgeExample/Pods-RNZoomUSBridgeExample.release.xcconfig"; sourceTree = ""; }; 48 | 7F0C53B9EDC60F253FD7C40D /* libPods-RNZoomUSBridgeExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-RNZoomUSBridgeExample.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = RNZoomUSBridgeExample/LaunchScreen.storyboard; sourceTree = ""; }; 50 | 9C8B0C9E9F454192D641845E /* Pods-RNZoomUSBridgeExample-RNZoomUSBridgeExampleTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNZoomUSBridgeExample-RNZoomUSBridgeExampleTests.debug.xcconfig"; path = "Target Support Files/Pods-RNZoomUSBridgeExample-RNZoomUSBridgeExampleTests/Pods-RNZoomUSBridgeExample-RNZoomUSBridgeExampleTests.debug.xcconfig"; sourceTree = ""; }; 51 | AB8204B2A565913AB1986D94 /* Pods-RNZoomUSBridgeExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNZoomUSBridgeExample.debug.xcconfig"; path = "Target Support Files/Pods-RNZoomUSBridgeExample/Pods-RNZoomUSBridgeExample.debug.xcconfig"; sourceTree = ""; }; 52 | BC4FA9E27D9AAE47C0EB8A37 /* Pods-RNZoomUSBridgeExample-RNZoomUSBridgeExampleTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNZoomUSBridgeExample-RNZoomUSBridgeExampleTests.release.xcconfig"; path = "Target Support Files/Pods-RNZoomUSBridgeExample-RNZoomUSBridgeExampleTests/Pods-RNZoomUSBridgeExample-RNZoomUSBridgeExampleTests.release.xcconfig"; sourceTree = ""; }; 53 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; 54 | /* End PBXFileReference section */ 55 | 56 | /* Begin PBXFrameworksBuildPhase section */ 57 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 58 | isa = PBXFrameworksBuildPhase; 59 | buildActionMask = 2147483647; 60 | files = ( 61 | A54D122A388AA8D2BE8F379B /* libPods-RNZoomUSBridgeExample.a in Frameworks */, 62 | 3C1AF8EA2683EE240018AC29 /* MobileRTC.xcframework in Frameworks */, 63 | ); 64 | runOnlyForDeploymentPostprocessing = 0; 65 | }; 66 | /* End PBXFrameworksBuildPhase section */ 67 | 68 | /* Begin PBXGroup section */ 69 | 13B07FAE1A68108700A75B9A /* RNZoomUSBridgeExample */ = { 70 | isa = PBXGroup; 71 | children = ( 72 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 73 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 74 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 75 | 13B07FB61A68108700A75B9A /* Info.plist */, 76 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */, 77 | 13B07FB71A68108700A75B9A /* main.m */, 78 | 3CFB1C9426830E51003A809B /* Fix.swift */, 79 | 3CFB1C9326830E51003A809B /* RNZoomUSBridgeExample-Bridging-Header.h */, 80 | ); 81 | name = RNZoomUSBridgeExample; 82 | sourceTree = ""; 83 | }; 84 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 85 | isa = PBXGroup; 86 | children = ( 87 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */, 88 | 7F0C53B9EDC60F253FD7C40D /* libPods-RNZoomUSBridgeExample.a */, 89 | 53B65F39FE7E33D82C5EDE15 /* libPods-RNZoomUSBridgeExample-RNZoomUSBridgeExampleTests.a */, 90 | ); 91 | name = Frameworks; 92 | sourceTree = ""; 93 | }; 94 | 61FEDB9CDA0C2AFD1C3DA9C5 /* Pods */ = { 95 | isa = PBXGroup; 96 | children = ( 97 | AB8204B2A565913AB1986D94 /* Pods-RNZoomUSBridgeExample.debug.xcconfig */, 98 | 5AC22709AC55BB04317C679D /* Pods-RNZoomUSBridgeExample.release.xcconfig */, 99 | 9C8B0C9E9F454192D641845E /* Pods-RNZoomUSBridgeExample-RNZoomUSBridgeExampleTests.debug.xcconfig */, 100 | BC4FA9E27D9AAE47C0EB8A37 /* Pods-RNZoomUSBridgeExample-RNZoomUSBridgeExampleTests.release.xcconfig */, 101 | ); 102 | path = Pods; 103 | sourceTree = ""; 104 | }; 105 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 106 | isa = PBXGroup; 107 | children = ( 108 | 3C1AF8E62683EE0D0018AC29 /* MobileRTC.xcframework */, 109 | 3C1AF8E72683EE0D0018AC29 /* MobileRTCResources.bundle */, 110 | ); 111 | name = Libraries; 112 | sourceTree = ""; 113 | }; 114 | 83CBB9F61A601CBA00E9B192 = { 115 | isa = PBXGroup; 116 | children = ( 117 | 13B07FAE1A68108700A75B9A /* RNZoomUSBridgeExample */, 118 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 119 | 83CBBA001A601CBA00E9B192 /* Products */, 120 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 121 | 61FEDB9CDA0C2AFD1C3DA9C5 /* Pods */, 122 | ); 123 | indentWidth = 2; 124 | sourceTree = ""; 125 | tabWidth = 2; 126 | usesTabs = 0; 127 | }; 128 | 83CBBA001A601CBA00E9B192 /* Products */ = { 129 | isa = PBXGroup; 130 | children = ( 131 | 13B07F961A680F5B00A75B9A /* RNZoomUSBridgeExample.app */, 132 | ); 133 | name = Products; 134 | sourceTree = ""; 135 | }; 136 | /* End PBXGroup section */ 137 | 138 | /* Begin PBXNativeTarget section */ 139 | 13B07F861A680F5B00A75B9A /* RNZoomUSBridgeExample */ = { 140 | isa = PBXNativeTarget; 141 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "RNZoomUSBridgeExample" */; 142 | buildPhases = ( 143 | 3D5080A7261D86DE8C6B01A0 /* [CP] Check Pods Manifest.lock */, 144 | FD10A7F022414F080027D42C /* Start Packager */, 145 | 13B07F871A680F5B00A75B9A /* Sources */, 146 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 147 | 13B07F8E1A680F5B00A75B9A /* Resources */, 148 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 149 | 351217401919C66E88F25087 /* [CP] Copy Pods Resources */, 150 | 3CFB1C9226830C11003A809B /* Embed Frameworks */, 151 | ); 152 | buildRules = ( 153 | ); 154 | dependencies = ( 155 | ); 156 | name = RNZoomUSBridgeExample; 157 | productName = RNZoomUSBridgeExample; 158 | productReference = 13B07F961A680F5B00A75B9A /* RNZoomUSBridgeExample.app */; 159 | productType = "com.apple.product-type.application"; 160 | }; 161 | /* End PBXNativeTarget section */ 162 | 163 | /* Begin PBXProject section */ 164 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 165 | isa = PBXProject; 166 | attributes = { 167 | LastUpgradeCheck = 1210; 168 | TargetAttributes = { 169 | 13B07F861A680F5B00A75B9A = { 170 | LastSwiftMigration = 1250; 171 | }; 172 | }; 173 | }; 174 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "RNZoomUSBridgeExample" */; 175 | compatibilityVersion = "Xcode 12.0"; 176 | developmentRegion = en; 177 | hasScannedForEncodings = 0; 178 | knownRegions = ( 179 | en, 180 | Base, 181 | ); 182 | mainGroup = 83CBB9F61A601CBA00E9B192; 183 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 184 | projectDirPath = ""; 185 | projectRoot = ""; 186 | targets = ( 187 | 13B07F861A680F5B00A75B9A /* RNZoomUSBridgeExample */, 188 | ); 189 | }; 190 | /* End PBXProject section */ 191 | 192 | /* Begin PBXResourcesBuildPhase section */ 193 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 194 | isa = PBXResourcesBuildPhase; 195 | buildActionMask = 2147483647; 196 | files = ( 197 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */, 198 | 3C1AF8E92683EE0D0018AC29 /* MobileRTCResources.bundle in Resources */, 199 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 200 | ); 201 | runOnlyForDeploymentPostprocessing = 0; 202 | }; 203 | /* End PBXResourcesBuildPhase section */ 204 | 205 | /* Begin PBXShellScriptBuildPhase section */ 206 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 207 | isa = PBXShellScriptBuildPhase; 208 | buildActionMask = 2147483647; 209 | files = ( 210 | ); 211 | inputPaths = ( 212 | ); 213 | name = "Bundle React Native code and images"; 214 | outputPaths = ( 215 | ); 216 | runOnlyForDeploymentPostprocessing = 0; 217 | shellPath = /bin/sh; 218 | shellScript = "set -e\n\nexport NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh\n"; 219 | }; 220 | 351217401919C66E88F25087 /* [CP] Copy Pods Resources */ = { 221 | isa = PBXShellScriptBuildPhase; 222 | buildActionMask = 2147483647; 223 | files = ( 224 | ); 225 | inputFileListPaths = ( 226 | "${PODS_ROOT}/Target Support Files/Pods-RNZoomUSBridgeExample/Pods-RNZoomUSBridgeExample-resources-${CONFIGURATION}-input-files.xcfilelist", 227 | ); 228 | name = "[CP] Copy Pods Resources"; 229 | outputFileListPaths = ( 230 | "${PODS_ROOT}/Target Support Files/Pods-RNZoomUSBridgeExample/Pods-RNZoomUSBridgeExample-resources-${CONFIGURATION}-output-files.xcfilelist", 231 | ); 232 | runOnlyForDeploymentPostprocessing = 0; 233 | shellPath = /bin/sh; 234 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-RNZoomUSBridgeExample/Pods-RNZoomUSBridgeExample-resources.sh\"\n"; 235 | showEnvVarsInLog = 0; 236 | }; 237 | 3D5080A7261D86DE8C6B01A0 /* [CP] Check Pods Manifest.lock */ = { 238 | isa = PBXShellScriptBuildPhase; 239 | buildActionMask = 2147483647; 240 | files = ( 241 | ); 242 | inputFileListPaths = ( 243 | ); 244 | inputPaths = ( 245 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 246 | "${PODS_ROOT}/Manifest.lock", 247 | ); 248 | name = "[CP] Check Pods Manifest.lock"; 249 | outputFileListPaths = ( 250 | ); 251 | outputPaths = ( 252 | "$(DERIVED_FILE_DIR)/Pods-RNZoomUSBridgeExample-checkManifestLockResult.txt", 253 | ); 254 | runOnlyForDeploymentPostprocessing = 0; 255 | shellPath = /bin/sh; 256 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 257 | showEnvVarsInLog = 0; 258 | }; 259 | FD10A7F022414F080027D42C /* Start Packager */ = { 260 | isa = PBXShellScriptBuildPhase; 261 | buildActionMask = 2147483647; 262 | files = ( 263 | ); 264 | inputFileListPaths = ( 265 | ); 266 | inputPaths = ( 267 | ); 268 | name = "Start Packager"; 269 | outputFileListPaths = ( 270 | ); 271 | outputPaths = ( 272 | ); 273 | runOnlyForDeploymentPostprocessing = 0; 274 | shellPath = /bin/sh; 275 | shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"; 276 | showEnvVarsInLog = 0; 277 | }; 278 | /* End PBXShellScriptBuildPhase section */ 279 | 280 | /* Begin PBXSourcesBuildPhase section */ 281 | 13B07F871A680F5B00A75B9A /* Sources */ = { 282 | isa = PBXSourcesBuildPhase; 283 | buildActionMask = 2147483647; 284 | files = ( 285 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 286 | 3CFB1C9526830E51003A809B /* Fix.swift in Sources */, 287 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 288 | ); 289 | runOnlyForDeploymentPostprocessing = 0; 290 | }; 291 | /* End PBXSourcesBuildPhase section */ 292 | 293 | /* Begin XCBuildConfiguration section */ 294 | 13B07F941A680F5B00A75B9A /* Debug */ = { 295 | isa = XCBuildConfiguration; 296 | baseConfigurationReference = AB8204B2A565913AB1986D94 /* Pods-RNZoomUSBridgeExample.debug.xcconfig */; 297 | buildSettings = { 298 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 299 | CLANG_ENABLE_MODULES = YES; 300 | CODE_SIGN_IDENTITY = "Apple Development"; 301 | CODE_SIGN_STYLE = Automatic; 302 | CURRENT_PROJECT_VERSION = 1; 303 | DEVELOPMENT_TEAM = ""; 304 | ENABLE_BITCODE = NO; 305 | FRAMEWORK_SEARCH_PATHS = ""; 306 | INFOPLIST_FILE = RNZoomUSBridgeExample/Info.plist; 307 | LD_RUNPATH_SEARCH_PATHS = ( 308 | "$(inherited)", 309 | "@executable_path/Frameworks", 310 | ); 311 | OTHER_LDFLAGS = ( 312 | "$(inherited)", 313 | "-ObjC", 314 | "-lc++", 315 | ); 316 | PRODUCT_BUNDLE_IDENTIFIER = com.looptifyapp.test; 317 | PRODUCT_NAME = RNZoomUSBridgeExample; 318 | PROVISIONING_PROFILE_SPECIFIER = ""; 319 | SWIFT_OBJC_BRIDGING_HEADER = "RNZoomUSBridgeExample-Bridging-Header.h"; 320 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 321 | SWIFT_VERSION = 5.0; 322 | VERSIONING_SYSTEM = "apple-generic"; 323 | }; 324 | name = Debug; 325 | }; 326 | 13B07F951A680F5B00A75B9A /* Release */ = { 327 | isa = XCBuildConfiguration; 328 | baseConfigurationReference = 5AC22709AC55BB04317C679D /* Pods-RNZoomUSBridgeExample.release.xcconfig */; 329 | buildSettings = { 330 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 331 | CLANG_ENABLE_MODULES = YES; 332 | CODE_SIGN_IDENTITY = "Apple Development"; 333 | CODE_SIGN_STYLE = Automatic; 334 | CURRENT_PROJECT_VERSION = 1; 335 | DEVELOPMENT_TEAM = ""; 336 | ENABLE_BITCODE = NO; 337 | FRAMEWORK_SEARCH_PATHS = ""; 338 | INFOPLIST_FILE = RNZoomUSBridgeExample/Info.plist; 339 | LD_RUNPATH_SEARCH_PATHS = ( 340 | "$(inherited)", 341 | "@executable_path/Frameworks", 342 | ); 343 | OTHER_LDFLAGS = ( 344 | "$(inherited)", 345 | "-ObjC", 346 | "-lc++", 347 | ); 348 | PRODUCT_BUNDLE_IDENTIFIER = com.looptifyapp.test; 349 | PRODUCT_NAME = RNZoomUSBridgeExample; 350 | PROVISIONING_PROFILE_SPECIFIER = ""; 351 | SWIFT_OBJC_BRIDGING_HEADER = "RNZoomUSBridgeExample-Bridging-Header.h"; 352 | SWIFT_VERSION = 5.0; 353 | VERSIONING_SYSTEM = "apple-generic"; 354 | }; 355 | name = Release; 356 | }; 357 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 358 | isa = XCBuildConfiguration; 359 | buildSettings = { 360 | ALWAYS_SEARCH_USER_PATHS = NO; 361 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 362 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 363 | CLANG_CXX_LIBRARY = "libc++"; 364 | CLANG_ENABLE_MODULES = YES; 365 | CLANG_ENABLE_OBJC_ARC = YES; 366 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 367 | CLANG_WARN_BOOL_CONVERSION = YES; 368 | CLANG_WARN_COMMA = YES; 369 | CLANG_WARN_CONSTANT_CONVERSION = YES; 370 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 371 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 372 | CLANG_WARN_EMPTY_BODY = YES; 373 | CLANG_WARN_ENUM_CONVERSION = YES; 374 | CLANG_WARN_INFINITE_RECURSION = YES; 375 | CLANG_WARN_INT_CONVERSION = YES; 376 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 377 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 378 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 379 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 380 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 381 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 382 | CLANG_WARN_STRICT_PROTOTYPES = YES; 383 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 384 | CLANG_WARN_UNREACHABLE_CODE = YES; 385 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 386 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 387 | COPY_PHASE_STRIP = NO; 388 | ENABLE_STRICT_OBJC_MSGSEND = YES; 389 | ENABLE_TESTABILITY = YES; 390 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "arm64 "; 391 | GCC_C_LANGUAGE_STANDARD = gnu99; 392 | GCC_DYNAMIC_NO_PIC = NO; 393 | GCC_NO_COMMON_BLOCKS = YES; 394 | GCC_OPTIMIZATION_LEVEL = 0; 395 | GCC_PREPROCESSOR_DEFINITIONS = ( 396 | "DEBUG=1", 397 | "$(inherited)", 398 | ); 399 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 400 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 401 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 402 | GCC_WARN_UNDECLARED_SELECTOR = YES; 403 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 404 | GCC_WARN_UNUSED_FUNCTION = YES; 405 | GCC_WARN_UNUSED_VARIABLE = YES; 406 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 407 | LD_RUNPATH_SEARCH_PATHS = ( 408 | /usr/lib/swift, 409 | "$(inherited)", 410 | ); 411 | LIBRARY_SEARCH_PATHS = ( 412 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 413 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", 414 | "\"$(inherited)\"", 415 | ); 416 | MTL_ENABLE_DEBUG_INFO = YES; 417 | ONLY_ACTIVE_ARCH = YES; 418 | SDKROOT = iphoneos; 419 | }; 420 | name = Debug; 421 | }; 422 | 83CBBA211A601CBA00E9B192 /* Release */ = { 423 | isa = XCBuildConfiguration; 424 | buildSettings = { 425 | ALWAYS_SEARCH_USER_PATHS = NO; 426 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 427 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 428 | CLANG_CXX_LIBRARY = "libc++"; 429 | CLANG_ENABLE_MODULES = YES; 430 | CLANG_ENABLE_OBJC_ARC = YES; 431 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 432 | CLANG_WARN_BOOL_CONVERSION = YES; 433 | CLANG_WARN_COMMA = YES; 434 | CLANG_WARN_CONSTANT_CONVERSION = YES; 435 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 436 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 437 | CLANG_WARN_EMPTY_BODY = YES; 438 | CLANG_WARN_ENUM_CONVERSION = YES; 439 | CLANG_WARN_INFINITE_RECURSION = YES; 440 | CLANG_WARN_INT_CONVERSION = YES; 441 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 442 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 443 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 444 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 445 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 446 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 447 | CLANG_WARN_STRICT_PROTOTYPES = YES; 448 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 449 | CLANG_WARN_UNREACHABLE_CODE = YES; 450 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 451 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 452 | COPY_PHASE_STRIP = YES; 453 | ENABLE_NS_ASSERTIONS = NO; 454 | ENABLE_STRICT_OBJC_MSGSEND = YES; 455 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "arm64 "; 456 | GCC_C_LANGUAGE_STANDARD = gnu99; 457 | GCC_NO_COMMON_BLOCKS = YES; 458 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 459 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 460 | GCC_WARN_UNDECLARED_SELECTOR = YES; 461 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 462 | GCC_WARN_UNUSED_FUNCTION = YES; 463 | GCC_WARN_UNUSED_VARIABLE = YES; 464 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 465 | LD_RUNPATH_SEARCH_PATHS = ( 466 | /usr/lib/swift, 467 | "$(inherited)", 468 | ); 469 | LIBRARY_SEARCH_PATHS = ( 470 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 471 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", 472 | "\"$(inherited)\"", 473 | ); 474 | MTL_ENABLE_DEBUG_INFO = NO; 475 | SDKROOT = iphoneos; 476 | VALIDATE_PRODUCT = YES; 477 | }; 478 | name = Release; 479 | }; 480 | /* End XCBuildConfiguration section */ 481 | 482 | /* Begin XCConfigurationList section */ 483 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "RNZoomUSBridgeExample" */ = { 484 | isa = XCConfigurationList; 485 | buildConfigurations = ( 486 | 13B07F941A680F5B00A75B9A /* Debug */, 487 | 13B07F951A680F5B00A75B9A /* Release */, 488 | ); 489 | defaultConfigurationIsVisible = 0; 490 | defaultConfigurationName = Release; 491 | }; 492 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "RNZoomUSBridgeExample" */ = { 493 | isa = XCConfigurationList; 494 | buildConfigurations = ( 495 | 83CBBA201A601CBA00E9B192 /* Debug */, 496 | 83CBBA211A601CBA00E9B192 /* Release */, 497 | ); 498 | defaultConfigurationIsVisible = 0; 499 | defaultConfigurationName = Release; 500 | }; 501 | /* End XCConfigurationList section */ 502 | }; 503 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 504 | } 505 | --------------------------------------------------------------------------------