@kaleyra/video-react-native-module 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +165 -0
- package/README.md +292 -0
- package/android/build.gradle +100 -0
- package/android/gradle.properties +9 -0
- package/android/settings.gradle +6 -0
- package/android/src/main/AndroidManifest.xml +1 -0
- package/android/src/main/assets/kaleyra_video_wrapper_info.txt +1 -0
- package/android/src/main/java/com/kaleyra/video_react_native_module/ReactNativeAccessTokenProvider.kt +22 -0
- package/android/src/main/java/com/kaleyra/video_react_native_module/ReactNativeContextContainer.kt +9 -0
- package/android/src/main/java/com/kaleyra/video_react_native_module/ReactNativeVideoHybridBridge.kt +30 -0
- package/android/src/main/java/com/kaleyra/video_react_native_module/VideoNativeEmitter.kt +45 -0
- package/android/src/main/java/com/kaleyra/video_react_native_module/VideoNativeModule.kt +109 -0
- package/android/src/main/java/com/kaleyra/video_react_native_module/VideoReactPackage.kt +20 -0
- package/index.ts +47 -0
- package/ios/PluginInfo/_KaleyraVideoHybridVersionInfo.swift +31 -0
- package/ios/ReactEvents/ReactNativeEventEmitter.swift +31 -0
- package/ios/ReactEvents/VideoNativeEmitter.m +17 -0
- package/ios/ReactEvents/VideoNativeEmitter.swift +42 -0
- package/ios/ReactNativePlugin-Bridging-Header.h +5 -0
- package/ios/ReactNativePlugin.xcodeproj/project.pbxproj +301 -0
- package/ios/VideoNativeModule.m +45 -0
- package/ios/VideoNativeModule.swift +154 -0
- package/lib/commonjs/index.js +12 -0
- package/lib/commonjs/native-bridge/TypeScript/Environments.js +41 -0
- package/lib/commonjs/native-bridge/TypeScript/Events.js +46 -0
- package/lib/commonjs/native-bridge/TypeScript/Regions.js +47 -0
- package/lib/commonjs/native-bridge/TypeScript/UserDetailsFormatValidator.js +32 -0
- package/lib/commonjs/native-bridge/TypeScript/errors/IllegalArgumentError.js +12 -0
- package/lib/commonjs/native-bridge/TypeScript/types/AccessTokenRequest.js +4 -0
- package/lib/commonjs/native-bridge/TypeScript/types/AccessTokenResponse.js +36 -0
- package/lib/commonjs/native-bridge/TypeScript/types/AudioCallOptions.js +4 -0
- package/lib/commonjs/native-bridge/TypeScript/types/AudioCallType.js +19 -0
- package/lib/commonjs/native-bridge/TypeScript/types/CallDisplayMode.js +23 -0
- package/lib/commonjs/native-bridge/TypeScript/types/CallKitConfiguration.js +4 -0
- package/lib/commonjs/native-bridge/TypeScript/types/CallOptions.js +4 -0
- package/lib/commonjs/native-bridge/TypeScript/types/CallType.js +23 -0
- package/lib/commonjs/native-bridge/TypeScript/types/ChatToolConfiguration.js +4 -0
- package/lib/commonjs/native-bridge/TypeScript/types/CreateCallOptions.js +4 -0
- package/lib/commonjs/native-bridge/TypeScript/types/Environment.js +4 -0
- package/lib/commonjs/native-bridge/TypeScript/types/IosConfiguration.js +4 -0
- package/lib/commonjs/native-bridge/TypeScript/types/KaleyraVideoConfiguration.js +4 -0
- package/lib/commonjs/native-bridge/TypeScript/types/RecordingType.js +23 -0
- package/lib/commonjs/native-bridge/TypeScript/types/Region.js +4 -0
- package/lib/commonjs/native-bridge/TypeScript/types/ScreenShareToolConfiguration.js +4 -0
- package/lib/commonjs/native-bridge/TypeScript/types/Session.js +4 -0
- package/lib/commonjs/native-bridge/TypeScript/types/Tools.js +4 -0
- package/lib/commonjs/native-bridge/TypeScript/types/UserDetails.js +4 -0
- package/lib/commonjs/native-bridge/TypeScript/types/UserDetailsFormat.js +4 -0
- package/lib/commonjs/native-bridge/TypeScript/types/VoipHandlingStrategy.js +19 -0
- package/lib/commonjs/src/KaleyraVideo.js +259 -0
- package/lib/commonjs/src/ReactNativeEventEmitter.js +40 -0
- package/lib/commonjs/src/events/Events.js +4 -0
- package/lib/module/index.js +2 -0
- package/lib/module/native-bridge/TypeScript/Environments.js +37 -0
- package/lib/module/native-bridge/TypeScript/Events.js +43 -0
- package/lib/module/native-bridge/TypeScript/Regions.js +43 -0
- package/lib/module/native-bridge/TypeScript/UserDetailsFormatValidator.js +28 -0
- package/lib/module/native-bridge/TypeScript/errors/IllegalArgumentError.js +8 -0
- package/lib/module/native-bridge/TypeScript/types/AccessTokenRequest.js +3 -0
- package/lib/module/native-bridge/TypeScript/types/AccessTokenResponse.js +32 -0
- package/lib/module/native-bridge/TypeScript/types/AudioCallOptions.js +3 -0
- package/lib/module/native-bridge/TypeScript/types/AudioCallType.js +16 -0
- package/lib/module/native-bridge/TypeScript/types/CallDisplayMode.js +20 -0
- package/lib/module/native-bridge/TypeScript/types/CallKitConfiguration.js +3 -0
- package/lib/module/native-bridge/TypeScript/types/CallOptions.js +3 -0
- package/lib/module/native-bridge/TypeScript/types/CallType.js +20 -0
- package/lib/module/native-bridge/TypeScript/types/ChatToolConfiguration.js +3 -0
- package/lib/module/native-bridge/TypeScript/types/CreateCallOptions.js +3 -0
- package/lib/module/native-bridge/TypeScript/types/Environment.js +3 -0
- package/lib/module/native-bridge/TypeScript/types/IosConfiguration.js +3 -0
- package/lib/module/native-bridge/TypeScript/types/KaleyraVideoConfiguration.js +3 -0
- package/lib/module/native-bridge/TypeScript/types/RecordingType.js +20 -0
- package/lib/module/native-bridge/TypeScript/types/Region.js +3 -0
- package/lib/module/native-bridge/TypeScript/types/ScreenShareToolConfiguration.js +3 -0
- package/lib/module/native-bridge/TypeScript/types/Session.js +3 -0
- package/lib/module/native-bridge/TypeScript/types/Tools.js +3 -0
- package/lib/module/native-bridge/TypeScript/types/UserDetails.js +3 -0
- package/lib/module/native-bridge/TypeScript/types/UserDetailsFormat.js +3 -0
- package/lib/module/native-bridge/TypeScript/types/VoipHandlingStrategy.js +16 -0
- package/lib/module/src/KaleyraVideo.js +249 -0
- package/lib/module/src/ReactNativeEventEmitter.js +36 -0
- package/lib/module/src/events/Events.js +3 -0
- package/lib/typescript/index.d.ts +2 -0
- package/lib/typescript/native-bridge/TypeScript/Environments.d.ts +28 -0
- package/lib/typescript/native-bridge/TypeScript/Events.d.ts +40 -0
- package/lib/typescript/native-bridge/TypeScript/Regions.d.ts +32 -0
- package/lib/typescript/native-bridge/TypeScript/UserDetailsFormatValidator.d.ts +4 -0
- package/lib/typescript/native-bridge/TypeScript/errors/IllegalArgumentError.d.ts +6 -0
- package/lib/typescript/native-bridge/TypeScript/types/AccessTokenRequest.d.ts +4 -0
- package/lib/typescript/native-bridge/TypeScript/types/AccessTokenResponse.d.ts +12 -0
- package/lib/typescript/native-bridge/TypeScript/types/AudioCallOptions.d.ts +11 -0
- package/lib/typescript/native-bridge/TypeScript/types/AudioCallType.d.ts +13 -0
- package/lib/typescript/native-bridge/TypeScript/types/CallDisplayMode.d.ts +17 -0
- package/lib/typescript/native-bridge/TypeScript/types/CallKitConfiguration.d.ts +26 -0
- package/lib/typescript/native-bridge/TypeScript/types/CallOptions.d.ts +13 -0
- package/lib/typescript/native-bridge/TypeScript/types/CallType.d.ts +17 -0
- package/lib/typescript/native-bridge/TypeScript/types/ChatToolConfiguration.d.ts +15 -0
- package/lib/typescript/native-bridge/TypeScript/types/CreateCallOptions.d.ts +15 -0
- package/lib/typescript/native-bridge/TypeScript/types/Environment.d.ts +9 -0
- package/lib/typescript/native-bridge/TypeScript/types/IosConfiguration.d.ts +23 -0
- package/lib/typescript/native-bridge/TypeScript/types/KaleyraVideoConfiguration.d.ts +33 -0
- package/lib/typescript/native-bridge/TypeScript/types/RecordingType.d.ts +17 -0
- package/lib/typescript/native-bridge/TypeScript/types/Region.d.ts +9 -0
- package/lib/typescript/native-bridge/TypeScript/types/ScreenShareToolConfiguration.d.ts +19 -0
- package/lib/typescript/native-bridge/TypeScript/types/Session.d.ts +16 -0
- package/lib/typescript/native-bridge/TypeScript/types/Tools.d.ts +42 -0
- package/lib/typescript/native-bridge/TypeScript/types/UserDetails.d.ts +29 -0
- package/lib/typescript/native-bridge/TypeScript/types/UserDetailsFormat.d.ts +19 -0
- package/lib/typescript/native-bridge/TypeScript/types/VoipHandlingStrategy.d.ts +13 -0
- package/lib/typescript/src/KaleyraVideo.d.ts +125 -0
- package/lib/typescript/src/ReactNativeEventEmitter.d.ts +15 -0
- package/lib/typescript/src/events/Events.d.ts +37 -0
- package/native-bridge/LICENSE +165 -0
- package/native-bridge/TypeScript/Environments.ts +44 -0
- package/native-bridge/TypeScript/Events.ts +43 -0
- package/native-bridge/TypeScript/Regions.ts +51 -0
- package/native-bridge/TypeScript/UserDetailsFormatValidator.ts +35 -0
- package/native-bridge/TypeScript/errors/IllegalArgumentError.ts +9 -0
- package/native-bridge/TypeScript/types/AccessTokenRequest.ts +7 -0
- package/native-bridge/TypeScript/types/AccessTokenResponse.ts +41 -0
- package/native-bridge/TypeScript/types/AudioCallOptions.ts +15 -0
- package/native-bridge/TypeScript/types/AudioCallType.ts +17 -0
- package/native-bridge/TypeScript/types/CallDisplayMode.ts +22 -0
- package/native-bridge/TypeScript/types/CallKitConfiguration.ts +32 -0
- package/native-bridge/TypeScript/types/CallOptions.ts +18 -0
- package/native-bridge/TypeScript/types/CallType.ts +22 -0
- package/native-bridge/TypeScript/types/ChatToolConfiguration.ts +21 -0
- package/native-bridge/TypeScript/types/CreateCallOptions.ts +20 -0
- package/native-bridge/TypeScript/types/Environment.ts +12 -0
- package/native-bridge/TypeScript/types/IosConfiguration.ts +29 -0
- package/native-bridge/TypeScript/types/KaleyraVideoConfiguration.ts +42 -0
- package/native-bridge/TypeScript/types/RecordingType.ts +22 -0
- package/native-bridge/TypeScript/types/Region.ts +12 -0
- package/native-bridge/TypeScript/types/ScreenShareToolConfiguration.ts +24 -0
- package/native-bridge/TypeScript/types/Session.ts +20 -0
- package/native-bridge/TypeScript/types/Tools.ts +50 -0
- package/native-bridge/TypeScript/types/UserDetails.ts +37 -0
- package/native-bridge/TypeScript/types/UserDetailsFormat.ts +23 -0
- package/native-bridge/TypeScript/types/VoipHandlingStrategy.ts +17 -0
- package/native-bridge/android/build.gradle +72 -0
- package/native-bridge/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/native-bridge/android/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/native-bridge/android/gradle.properties +22 -0
- package/native-bridge/android/gradlew +234 -0
- package/native-bridge/android/gradlew.bat +89 -0
- package/native-bridge/android/settings.gradle +1 -0
- package/native-bridge/android/src/main/AndroidManifest.xml +1 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/AccessTokenProvider.kt +8 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/CallOptionsProxy.kt +9 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/ContextContainer.kt +10 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/DTOs.kt +407 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/SDKAccessTokenProviderProxy.kt +16 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/VideoHybridBridge.kt +21 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/VideoSDKHybridBridge.kt +64 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/configurator/CachedSDKConfigurator.kt +15 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/configurator/VideoSDKConfigurator.kt +46 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/connector/CachedUserConnector.kt +15 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/connector/VideoSDKCachedUserConnector.kt +60 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/events/Events.kt +29 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/events/EventsEmitter.kt +8 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/events/EventsReporter.kt +9 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/events/reporter/CallEventsReporter.kt +54 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/events/reporter/ChatEventsReporter.kt +43 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/events/reporter/CrossPlatformModuleStatus.kt +29 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/events/reporter/ModuleEventsReporter.kt +34 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/events/reporter/SDKEventsReporter.kt +63 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/extensions/CallDisplayExtension.kt +15 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/extensions/ConfigurationExtension.kt +39 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/extensions/EnvironmentExtension.kt +12 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/extensions/RecordingTypeExtension.kt +15 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/extensions/RegionExtension.kt +13 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/extensions/ScreenShareToolConfigurationExtension.kt +15 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/extensions/ToolsExtension.kt +95 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/extensions/UserExtensions.kt +35 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/notifications/KaleyraVideoNotificationReceiver.kt +139 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/notifications/KaleyraVideoNotificationService.kt +85 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/repository/ConfigurationEntity.kt +27 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/repository/ConnectedUserEntity.kt +30 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/repository/Converters.kt +25 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/repository/UserDetailsDao.kt +21 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/repository/UserDetailsEntity.kt +22 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/repository/VideoHybridBridgeRepository.kt +39 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/ui/SDKUserInterfacePresenter.kt +49 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/ui/UserInterfacePresenter.kt +14 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/user_details/CachedUserDetails.kt +18 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/user_details/CachedUserDetailsFormatter.kt +59 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/user_details/SDKCachedUserDetails.kt +74 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/utils/CaseInsensitiveEnumTypeAdapterFactory.kt +48 -0
- package/native-bridge/android/src/main/java/com/kaleyra/video_hybrid_native_bridge/utils/TLSSocketFactoryCompat.kt +76 -0
- package/native-bridge/iOS/KaleyraVideoHybridNativeBridge.xcodeproj/project.pbxproj +1399 -0
- package/native-bridge/iOS/KaleyraVideoHybridNativeBridge.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/native-bridge/iOS/KaleyraVideoHybridNativeBridge.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/native-bridge/iOS/KaleyraVideoHybridNativeBridge.xcodeproj/xcshareddata/IDETemplateMacros.plist +9 -0
- package/native-bridge/iOS/KaleyraVideoHybridNativeBridge.xcodeproj/xcshareddata/xcschemes/KaleyraVideoHybridNativeBridge.xcscheme +79 -0
- package/native-bridge/iOS/KaleyraVideoHybridNativeBridge.xcworkspace/contents.xcworkspacedata +10 -0
- package/native-bridge/iOS/KaleyraVideoHybridNativeBridge.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/native-bridge/iOS/Podfile +28 -0
- package/native-bridge/iOS/Podfile.lock +20 -0
- package/native-bridge/iOS/Source/Abstractions/BandyerSDKProtocol.swift +24 -0
- package/native-bridge/iOS/Source/Abstractions/CallWindowProtocol.swift +18 -0
- package/native-bridge/iOS/Source/AccessToken/AccessTokenRequester.swift +9 -0
- package/native-bridge/iOS/Source/AccessToken/TokenProvider.swift +78 -0
- package/native-bridge/iOS/Source/Broadcast/BroadcastConfigurationPlistReader.swift +49 -0
- package/native-bridge/iOS/Source/Concurrency/DispatchQueue+isMain.swift +19 -0
- package/native-bridge/iOS/Source/Concurrency/Lock.swift +21 -0
- package/native-bridge/iOS/Source/Concurrency/MainQueueDispatcher.swift +23 -0
- package/native-bridge/iOS/Source/Concurrency/MainQueueRelay.swift +18 -0
- package/native-bridge/iOS/Source/DTOs/AccessTokenRequest+Encodable.swift +27 -0
- package/native-bridge/iOS/Source/DTOs/AccessTokenResponse+Decodable.swift +24 -0
- package/native-bridge/iOS/Source/DTOs/Array+JSON.swift +6 -0
- package/native-bridge/iOS/Source/DTOs/AudioCallOptions+Bandyer.swift +14 -0
- package/native-bridge/iOS/Source/DTOs/AudioCallOptions+Decodable.swift +18 -0
- package/native-bridge/iOS/Source/DTOs/AudioCallOptions+Equatable.swift +12 -0
- package/native-bridge/iOS/Source/DTOs/AudioCallType+Bandyer.swift +18 -0
- package/native-bridge/iOS/Source/DTOs/AudioCallType+Decodable.swift +25 -0
- package/native-bridge/iOS/Source/DTOs/CallKitConfiguration+Decodable.swift +20 -0
- package/native-bridge/iOS/Source/DTOs/CallOptions+Bandyer.swift +14 -0
- package/native-bridge/iOS/Source/DTOs/CallOptions+Decodable.swift +16 -0
- package/native-bridge/iOS/Source/DTOs/CallOptions+Equatable.swift +12 -0
- package/native-bridge/iOS/Source/DTOs/CallType+Bandyer.swift +20 -0
- package/native-bridge/iOS/Source/DTOs/CallType+Decodable.swift +27 -0
- package/native-bridge/iOS/Source/DTOs/ChatToolConfiguration+Decodable.swift +18 -0
- package/native-bridge/iOS/Source/DTOs/CreateCallOptions+Decodable.swift +22 -0
- package/native-bridge/iOS/Source/DTOs/CreateCallOptions+Equatable.swift +13 -0
- package/native-bridge/iOS/Source/DTOs/CreateCallOptions+Intent.swift +17 -0
- package/native-bridge/iOS/Source/DTOs/DTOs.swift +314 -0
- package/native-bridge/iOS/Source/DTOs/Environment+Bandyer.swift +20 -0
- package/native-bridge/iOS/Source/DTOs/Environment+Decodable.swift +16 -0
- package/native-bridge/iOS/Source/DTOs/IosConfiguration+Decodable.swift +18 -0
- package/native-bridge/iOS/Source/DTOs/JSONDecodable.swift +27 -0
- package/native-bridge/iOS/Source/DTOs/KaleyraVideoConfiguration+Bandyer.swift +158 -0
- package/native-bridge/iOS/Source/DTOs/KaleyraVideoConfiguration+Decodable.swift +28 -0
- package/native-bridge/iOS/Source/DTOs/KaleyraVideoConfiguration+UserInterfacePresenterConfiguration.swift +29 -0
- package/native-bridge/iOS/Source/DTOs/RecordingType+Bandyer.swift +33 -0
- package/native-bridge/iOS/Source/DTOs/RecordingType+Decodable.swift +27 -0
- package/native-bridge/iOS/Source/DTOs/Region+Bandyer.swift +22 -0
- package/native-bridge/iOS/Source/DTOs/Region+Decodable.swift +16 -0
- package/native-bridge/iOS/Source/DTOs/ScreenShareToolConfiguration+Decodable.swift +18 -0
- package/native-bridge/iOS/Source/DTOs/Tools+Decodable.swift +24 -0
- package/native-bridge/iOS/Source/DTOs/UserDetails+Bandyer.swift +18 -0
- package/native-bridge/iOS/Source/DTOs/UserDetails+Decodable.swift +28 -0
- package/native-bridge/iOS/Source/DTOs/UserDetailsFormat+Decodable.swift +19 -0
- package/native-bridge/iOS/Source/DTOs/VoipHandlingStrategy+Decodable.swift +25 -0
- package/native-bridge/iOS/Source/Events/Emitter/EventEmitter.swift +8 -0
- package/native-bridge/iOS/Source/Events/Events+CaseIterable.swift +18 -0
- package/native-bridge/iOS/Source/Events/Events+Description.swift +28 -0
- package/native-bridge/iOS/Source/Events/Events.swift +21 -0
- package/native-bridge/iOS/Source/Events/Reporters/CallClientEventsReporter.swift +46 -0
- package/native-bridge/iOS/Source/Events/Reporters/ChatClientEventsReporter.swift +46 -0
- package/native-bridge/iOS/Source/Events/Reporters/ClientState.swift +61 -0
- package/native-bridge/iOS/Source/Events/Reporters/EventsReporter.swift +69 -0
- package/native-bridge/iOS/Source/Events/Reporters/PushTokenEventsReporter.swift +34 -0
- package/native-bridge/iOS/Source/Extensions/URL+FromString.swift +26 -0
- package/native-bridge/iOS/Source/KaleyraVideoHybridNativeBridge.h +14 -0
- package/native-bridge/iOS/Source/NativeHybridBridge/VideoHybridNativeBridge.swift +173 -0
- package/native-bridge/iOS/Source/NativeHybridBridge/VideoHybridNativeBridgeError.swift +33 -0
- package/native-bridge/iOS/Source/UI/KaleyraVideoSDKUserInterfacePresenter.swift +249 -0
- package/native-bridge/iOS/Source/UI/Presenters/PresentingViewControllerViewControllerPresenter.swift +44 -0
- package/native-bridge/iOS/Source/UI/Presenters/ViewControllerPresenter.swift +17 -0
- package/native-bridge/iOS/Source/UI/Presenters/WindowViewControllerPresenter.swift +111 -0
- package/native-bridge/iOS/Source/UI/UserInterfacePresenter+MainQueueRelay.swift +30 -0
- package/native-bridge/iOS/Source/UI/UserInterfacePresenter.swift +14 -0
- package/native-bridge/iOS/Source/User Details/Cache/UsersDetailsCache.swift +36 -0
- package/native-bridge/iOS/Source/User Details/Formatter/FormatterProxy.swift +47 -0
- package/native-bridge/iOS/Source/User Details/Formatter/UserDetailsFormatter.swift +83 -0
- package/native-bridge/iOS/Source/User Details/Providers/UsersDetailsProvider.swift +39 -0
- package/package.json +147 -0
- package/src/KaleyraVideo.ts +343 -0
- package/src/ReactNativeEventEmitter.ts +51 -0
- package/src/events/Events.ts +46 -0
- package/video-react-native-module.podspec +36 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
package com.kaleyra.video_react_native_module
|
|
2
|
+
|
|
3
|
+
import com.kaleyra.video_hybrid_native_bridge.events.Events
|
|
4
|
+
import com.kaleyra.video_hybrid_native_bridge.events.EventsEmitter
|
|
5
|
+
import com.facebook.react.bridge.ReactApplicationContext
|
|
6
|
+
import com.facebook.react.bridge.ReactContextBaseJavaModule
|
|
7
|
+
import com.facebook.react.bridge.ReactMethod
|
|
8
|
+
import com.facebook.react.modules.core.DeviceEventManagerModule
|
|
9
|
+
|
|
10
|
+
class VideoNativeEmitter(
|
|
11
|
+
private val reactContext: ReactApplicationContext,
|
|
12
|
+
) : ReactContextBaseJavaModule(reactContext), EventsEmitter {
|
|
13
|
+
|
|
14
|
+
companion object {
|
|
15
|
+
private const val NAME = "VideoNativeEmitter"
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
override fun getName(): String = NAME
|
|
19
|
+
|
|
20
|
+
private var channel: DeviceEventManagerModule.RCTDeviceEventEmitter? = null
|
|
21
|
+
|
|
22
|
+
override fun initialize() {
|
|
23
|
+
super.initialize()
|
|
24
|
+
channel = reactContext.getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter::class.java)
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@ReactMethod
|
|
28
|
+
fun addListener(type: String?) {
|
|
29
|
+
// Keep: Required for RN built in Event Emitter Calls.
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@ReactMethod
|
|
33
|
+
fun removeListeners(type: Int?) {
|
|
34
|
+
// Keep: Required for RN built in Event Emitter Calls.
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
override fun sendEvent(event: Events, args: Any?) {
|
|
38
|
+
channel?.emit(event.value, VideoNativeModule.gson.toJson(args))
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
fun sendAccessTokenRequest(args: Any?) {
|
|
42
|
+
channel?.emit(Events.AccessTokenRequest.value, VideoNativeModule.gson.toJson(args))
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
// Copyright © 2018-2023 Kaleyra S.p.a. All Rights Reserved.
|
|
2
|
+
// See LICENSE for licensing information
|
|
3
|
+
|
|
4
|
+
package com.kaleyra.video_react_native_module
|
|
5
|
+
|
|
6
|
+
import com.kaleyra.video_hybrid_native_bridge.utils.CaseInsensitiveEnumTypeAdapterFactory
|
|
7
|
+
import com.facebook.react.bridge.ReactApplicationContext
|
|
8
|
+
import com.facebook.react.bridge.ReactContextBaseJavaModule
|
|
9
|
+
import com.facebook.react.bridge.ReactMethod
|
|
10
|
+
import com.google.gson.GsonBuilder
|
|
11
|
+
import kotlin.reflect.jvm.javaType
|
|
12
|
+
import kotlin.reflect.jvm.kotlinFunction
|
|
13
|
+
|
|
14
|
+
class VideoNativeModule(
|
|
15
|
+
private val reactContext: ReactApplicationContext,
|
|
16
|
+
private val videoNativeEmitter: VideoNativeEmitter
|
|
17
|
+
) : ReactContextBaseJavaModule(reactContext) {
|
|
18
|
+
|
|
19
|
+
companion object {
|
|
20
|
+
const val NAME = "VideoNativeModule"
|
|
21
|
+
internal val gson = GsonBuilder().registerTypeAdapterFactory(
|
|
22
|
+
CaseInsensitiveEnumTypeAdapterFactory()
|
|
23
|
+
).create()
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
private lateinit var reactNativeVideoHybridBridge: ReactNativeVideoHybridBridge
|
|
27
|
+
|
|
28
|
+
fun ReactNativeVideoHybridBridge.invoke(
|
|
29
|
+
functionName: String,
|
|
30
|
+
params: String? = null
|
|
31
|
+
): Boolean {
|
|
32
|
+
this::class.java.methods
|
|
33
|
+
.filter { it.name == functionName }
|
|
34
|
+
.mapNotNull { it.kotlinFunction }
|
|
35
|
+
.maxByOrNull { it.parameters.size }
|
|
36
|
+
?.let { function ->
|
|
37
|
+
params?.let {
|
|
38
|
+
val arg = gson.fromJson<Any>(params, function.parameters[1].type.javaType)
|
|
39
|
+
function.call(this, arg)
|
|
40
|
+
} ?: function.call(this)
|
|
41
|
+
return true
|
|
42
|
+
}
|
|
43
|
+
return false
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
override fun initialize() {
|
|
48
|
+
super.initialize()
|
|
49
|
+
reactNativeVideoHybridBridge = ReactNativeVideoHybridBridge(reactContext, videoNativeEmitter)
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
override fun getName(): String = NAME
|
|
53
|
+
|
|
54
|
+
@ReactMethod
|
|
55
|
+
fun addListener(type: String?) {
|
|
56
|
+
// Keep: Required for RN built in Event Emitter Calls.
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@ReactMethod
|
|
60
|
+
fun removeListeners(type: Int?) {
|
|
61
|
+
// Keep: Required for RN built in Event Emitter Calls.
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@ReactMethod
|
|
65
|
+
fun configure(payload: String) = reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::configureBridge.name, payload)
|
|
66
|
+
|
|
67
|
+
@ReactMethod
|
|
68
|
+
fun connect(payload: String) = reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::connect.name, payload)
|
|
69
|
+
|
|
70
|
+
@ReactMethod
|
|
71
|
+
fun setAccessTokenResponse(payload: String) = reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::setAccessTokenResponse.name, payload)
|
|
72
|
+
|
|
73
|
+
@ReactMethod
|
|
74
|
+
private fun disconnect() = reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::disconnect.name)
|
|
75
|
+
|
|
76
|
+
@ReactMethod
|
|
77
|
+
fun reset() = reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::reset.name)
|
|
78
|
+
|
|
79
|
+
@ReactMethod
|
|
80
|
+
private fun clearUserCache() = reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::clearUserCache.name)
|
|
81
|
+
|
|
82
|
+
@ReactMethod
|
|
83
|
+
fun handlePushNotificationPayload(payload: String) = reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::handlePushNotificationPayload.name, payload)
|
|
84
|
+
|
|
85
|
+
@ReactMethod
|
|
86
|
+
fun verifyCurrentCall(payload: Boolean) = reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::verifyCurrentCall.name, payload.toString())
|
|
87
|
+
|
|
88
|
+
@ReactMethod
|
|
89
|
+
fun setDisplayModeForCurrentCall(payload: String) = reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::setDisplayModeForCurrentCall.name, payload)
|
|
90
|
+
|
|
91
|
+
@ReactMethod
|
|
92
|
+
fun startCall(payload: String)= reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::startCall.name, payload)
|
|
93
|
+
|
|
94
|
+
@ReactMethod
|
|
95
|
+
fun startCallUrl(payload: String) = reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::startCallUrl.name, payload)
|
|
96
|
+
|
|
97
|
+
@ReactMethod
|
|
98
|
+
fun setUserDetailsFormat(payload: String)= reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::setUserDetailsFormat.name, payload)
|
|
99
|
+
|
|
100
|
+
@ReactMethod
|
|
101
|
+
fun startChat(payload: String) = reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::startChat.name, payload)
|
|
102
|
+
|
|
103
|
+
@ReactMethod
|
|
104
|
+
fun addUsersDetails(payload: String) = reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::addUsersDetails.name, payload)
|
|
105
|
+
|
|
106
|
+
@ReactMethod
|
|
107
|
+
fun removeUsersDetails() = reactNativeVideoHybridBridge.invoke(reactNativeVideoHybridBridge::removeUserDetails.name)
|
|
108
|
+
|
|
109
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Copyright © 2018-2023 Kaleyra S.p.a. All Rights Reserved.
|
|
2
|
+
// See LICENSE for licensing information
|
|
3
|
+
|
|
4
|
+
package com.kaleyra.video_react_native_module
|
|
5
|
+
|
|
6
|
+
import com.facebook.react.ReactPackage
|
|
7
|
+
import com.facebook.react.bridge.NativeModule
|
|
8
|
+
import com.facebook.react.bridge.ReactApplicationContext
|
|
9
|
+
import com.facebook.react.uimanager.ViewManager
|
|
10
|
+
|
|
11
|
+
class VideoReactPackage : ReactPackage {
|
|
12
|
+
override fun createNativeModules(reactContext: ReactApplicationContext): List<NativeModule> {
|
|
13
|
+
val eventsEmitter = VideoNativeEmitter(reactContext)
|
|
14
|
+
return listOf(VideoNativeModule(reactContext, eventsEmitter), eventsEmitter)
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
override fun createViewManagers(reactContext: ReactApplicationContext): List<ViewManager<*, *>> {
|
|
18
|
+
return emptyList()
|
|
19
|
+
}
|
|
20
|
+
}
|
package/index.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import {
|
|
2
|
+
KaleyraVideo,
|
|
3
|
+
KaleyraVideoConfiguration,
|
|
4
|
+
CreateCallOptions,
|
|
5
|
+
Tools,
|
|
6
|
+
ScreenShareToolConfiguration,
|
|
7
|
+
ChatToolConfiguration,
|
|
8
|
+
AudioCallOptions,
|
|
9
|
+
AudioCallType,
|
|
10
|
+
CallOptions,
|
|
11
|
+
RecordingType,
|
|
12
|
+
IosConfiguration,
|
|
13
|
+
CallKitConfiguration,
|
|
14
|
+
VoipHandlingStrategy,
|
|
15
|
+
CallType,
|
|
16
|
+
Regions,
|
|
17
|
+
UserDetails,
|
|
18
|
+
UserDetailsFormat,
|
|
19
|
+
CallDisplayMode,
|
|
20
|
+
Session,
|
|
21
|
+
Environments,
|
|
22
|
+
Events,
|
|
23
|
+
} from './src/KaleyraVideo';
|
|
24
|
+
|
|
25
|
+
export {
|
|
26
|
+
KaleyraVideo,
|
|
27
|
+
KaleyraVideoConfiguration,
|
|
28
|
+
CreateCallOptions,
|
|
29
|
+
Tools,
|
|
30
|
+
ScreenShareToolConfiguration,
|
|
31
|
+
ChatToolConfiguration,
|
|
32
|
+
AudioCallOptions,
|
|
33
|
+
AudioCallType,
|
|
34
|
+
CallOptions,
|
|
35
|
+
RecordingType,
|
|
36
|
+
IosConfiguration,
|
|
37
|
+
CallKitConfiguration,
|
|
38
|
+
VoipHandlingStrategy,
|
|
39
|
+
CallType,
|
|
40
|
+
Regions,
|
|
41
|
+
UserDetails,
|
|
42
|
+
UserDetailsFormat,
|
|
43
|
+
CallDisplayMode,
|
|
44
|
+
Session,
|
|
45
|
+
Environments,
|
|
46
|
+
Events,
|
|
47
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// Copyright © 2018-2023 Kaleyra S.p.a. All Rights Reserved.
|
|
2
|
+
// See LICENSE for licensing information
|
|
3
|
+
|
|
4
|
+
import Foundation
|
|
5
|
+
|
|
6
|
+
@objc(_KaleyraVideoHybridVersionInfo)
|
|
7
|
+
class _KaleyraVideoHybridVersionInfo: NSObject {
|
|
8
|
+
|
|
9
|
+
@objc
|
|
10
|
+
static let krvVersion: String = "1.0.0"
|
|
11
|
+
|
|
12
|
+
@objc
|
|
13
|
+
static let krvPlatform: String = "react"
|
|
14
|
+
|
|
15
|
+
override var debugDescription: String {
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
---------------------------------------
|
|
19
|
+
|
|
20
|
+
Kaleya Video \(_KaleyraVideoHybridVersionInfo.krvPlatform.capitalized) Module info:
|
|
21
|
+
- Version: \(_KaleyraVideoHybridVersionInfo.krvVersion)
|
|
22
|
+
|
|
23
|
+
---------------------------------------
|
|
24
|
+
|
|
25
|
+
"""
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
func printDebugDescription() {
|
|
29
|
+
debugPrint(NSString(string: debugDescription))
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// Copyright © 2018-2023 Kaleyra S.p.a. All Rights Reserved.
|
|
2
|
+
// See LICENSE for licensing information
|
|
3
|
+
|
|
4
|
+
import Foundation
|
|
5
|
+
import React
|
|
6
|
+
|
|
7
|
+
class ReactNativeEventEmitter: EventEmitter, AccessTokenRequester {
|
|
8
|
+
|
|
9
|
+
// MARK: - Properties
|
|
10
|
+
|
|
11
|
+
private var emitter: VideoNativeEmitter? {
|
|
12
|
+
VideoNativeEmitter.shared
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// MARK: Event Emission
|
|
16
|
+
|
|
17
|
+
func sendEvent(_ event: Events, args: Any?) {
|
|
18
|
+
sendEvent(event.description, args: args)
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
private func sendEvent(_ eventName: String, args: Any?) {
|
|
22
|
+
guard let emitter = emitter else { return }
|
|
23
|
+
emitter.sendEvent(withName: eventName, body: args)
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// MARK: - Request Access Token
|
|
27
|
+
|
|
28
|
+
func requestAccessToken(request: AccessTokenRequest) throws {
|
|
29
|
+
sendEvent(.accessTokenRequest, args: try request.JSONEncoded())
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Copyright © 2018-2023 Kaleyra S.p.a. All Rights Reserved.
|
|
2
|
+
// See LICENSE for licensing information
|
|
3
|
+
|
|
4
|
+
#import <Foundation/Foundation.h>
|
|
5
|
+
#import <React/RCTBridgeModule.h>
|
|
6
|
+
#import <React/RCTEventEmitter.h>
|
|
7
|
+
|
|
8
|
+
@interface RCT_EXTERN_MODULE(VideoNativeEmitter, RCTEventEmitter)
|
|
9
|
+
|
|
10
|
+
RCT_EXTERN_METHOD(supportedEvents)
|
|
11
|
+
|
|
12
|
+
+ (BOOL)requiresMainQueueSetup
|
|
13
|
+
{
|
|
14
|
+
return NO;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// Copyright © 2018-2023 Kaleyra S.p.a. All Rights Reserved.
|
|
2
|
+
// See LICENSE for licensing information
|
|
3
|
+
|
|
4
|
+
import Foundation
|
|
5
|
+
import React
|
|
6
|
+
|
|
7
|
+
@objc(VideoNativeEmitter)
|
|
8
|
+
class VideoNativeEmitter: RCTEventEmitter {
|
|
9
|
+
|
|
10
|
+
public static var shared: VideoNativeEmitter?
|
|
11
|
+
|
|
12
|
+
private var hasListeners = false
|
|
13
|
+
|
|
14
|
+
// MARK: - Init
|
|
15
|
+
|
|
16
|
+
override init() {
|
|
17
|
+
super.init()
|
|
18
|
+
VideoNativeEmitter.shared = self
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// MARK: - RCTEventEmitter
|
|
22
|
+
|
|
23
|
+
@objc(supportedEvents)
|
|
24
|
+
override func supportedEvents() -> [String]! {
|
|
25
|
+
var supportedEvents = Events.allCases.map({ $0.description })
|
|
26
|
+
supportedEvents.append("accessTokenRequest")
|
|
27
|
+
return supportedEvents
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
override func startObserving() {
|
|
31
|
+
hasListeners = true
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
override func stopObserving() {
|
|
35
|
+
hasListeners = false
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
override func sendEvent(withName name: String!, body: Any!) {
|
|
39
|
+
guard hasListeners else { return }
|
|
40
|
+
super.sendEvent(withName: name, body: body)
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
// !$*UTF8*$!
|
|
2
|
+
{
|
|
3
|
+
archiveVersion = 1;
|
|
4
|
+
classes = {
|
|
5
|
+
};
|
|
6
|
+
objectVersion = 46;
|
|
7
|
+
objects = {
|
|
8
|
+
|
|
9
|
+
/* Begin PBXBuildFile section */
|
|
10
|
+
F4FF95D7245B92E800C19C63 /* ReactNativePlugin.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4FF95D6245B92E800C19C63 /* ReactNativePlugin.swift */; };
|
|
11
|
+
F9937530299E52A600AC3731 /* ReactNativeEventEmitter.swift in Sources */ = {isa = PBXBuildFile; fileRef = F993752F299E52A600AC3731 /* ReactNativeEventEmitter.swift */; };
|
|
12
|
+
F9B1CD0029A66F17009F9F4C /* NativeEmitter.swift in Sources */ = {isa = PBXBuildFile; fileRef = F9B1CCFE29A66F17009F9F4C /* NativeEmitter.swift */; };
|
|
13
|
+
F9B1CD0129A66F17009F9F4C /* NativeEmitter.m in Sources */ = {isa = PBXBuildFile; fileRef = F9B1CCFF29A66F17009F9F4C /* NativeEmitter.m */; };
|
|
14
|
+
/* End PBXBuildFile section */
|
|
15
|
+
|
|
16
|
+
/* Begin PBXCopyFilesBuildPhase section */
|
|
17
|
+
58B511D91A9E6C8500147676 /* CopyFiles */ = {
|
|
18
|
+
isa = PBXCopyFilesBuildPhase;
|
|
19
|
+
buildActionMask = 2147483647;
|
|
20
|
+
dstPath = "include/$(PRODUCT_NAME)";
|
|
21
|
+
dstSubfolderSpec = 16;
|
|
22
|
+
files = (
|
|
23
|
+
);
|
|
24
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
25
|
+
};
|
|
26
|
+
/* End PBXCopyFilesBuildPhase section */
|
|
27
|
+
|
|
28
|
+
/* Begin PBXFileReference section */
|
|
29
|
+
134814201AA4EA6300B7C361 /* libReactNativePlugin.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libReactNativePlugin.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
30
|
+
B3E7B5891CC2AC0600A0062D /* ReactNativePlugin.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ReactNativePlugin.m; sourceTree = "<group>"; };
|
|
31
|
+
F4FF95D5245B92E700C19C63 /* ReactNativePlugin-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ReactNativePlugin-Bridging-Header.h"; sourceTree = "<group>"; };
|
|
32
|
+
F4FF95D6245B92E800C19C63 /* ReactNativePlugin.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReactNativePlugin.swift; sourceTree = "<group>"; };
|
|
33
|
+
F993752F299E52A600AC3731 /* ReactNativeEventEmitter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReactNativeEventEmitter.swift; sourceTree = "<group>"; };
|
|
34
|
+
F9B1CCFE29A66F17009F9F4C /* NativeEmitter.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NativeEmitter.swift; sourceTree = "<group>"; };
|
|
35
|
+
F9B1CCFF29A66F17009F9F4C /* NativeEmitter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NativeEmitter.m; sourceTree = "<group>"; };
|
|
36
|
+
/* End PBXFileReference section */
|
|
37
|
+
|
|
38
|
+
/* Begin PBXFrameworksBuildPhase section */
|
|
39
|
+
58B511D81A9E6C8500147676 /* Frameworks */ = {
|
|
40
|
+
isa = PBXFrameworksBuildPhase;
|
|
41
|
+
buildActionMask = 2147483647;
|
|
42
|
+
files = (
|
|
43
|
+
);
|
|
44
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
45
|
+
};
|
|
46
|
+
/* End PBXFrameworksBuildPhase section */
|
|
47
|
+
|
|
48
|
+
/* Begin PBXGroup section */
|
|
49
|
+
134814211AA4EA7D00B7C361 /* Products */ = {
|
|
50
|
+
isa = PBXGroup;
|
|
51
|
+
children = (
|
|
52
|
+
134814201AA4EA6300B7C361 /* libReactNativePlugin.a */,
|
|
53
|
+
);
|
|
54
|
+
name = Products;
|
|
55
|
+
sourceTree = "<group>";
|
|
56
|
+
};
|
|
57
|
+
58B511D21A9E6C8500147676 = {
|
|
58
|
+
isa = PBXGroup;
|
|
59
|
+
children = (
|
|
60
|
+
F9EB549829CB1B3600BBF451 /* ReactEvents */,
|
|
61
|
+
F4FF95D6245B92E800C19C63 /* ReactNativePlugin.swift */,
|
|
62
|
+
B3E7B5891CC2AC0600A0062D /* ReactNativePlugin.m */,
|
|
63
|
+
F4FF95D5245B92E700C19C63 /* ReactNativePlugin-Bridging-Header.h */,
|
|
64
|
+
134814211AA4EA7D00B7C361 /* Products */,
|
|
65
|
+
);
|
|
66
|
+
sourceTree = "<group>";
|
|
67
|
+
};
|
|
68
|
+
F9EB549829CB1B3600BBF451 /* ReactEvents */ = {
|
|
69
|
+
isa = PBXGroup;
|
|
70
|
+
children = (
|
|
71
|
+
F9B1CCFF29A66F17009F9F4C /* NativeEmitter.m */,
|
|
72
|
+
F9B1CCFE29A66F17009F9F4C /* NativeEmitter.swift */,
|
|
73
|
+
F993752F299E52A600AC3731 /* ReactNativeEventEmitter.swift */,
|
|
74
|
+
);
|
|
75
|
+
path = ReactEvents;
|
|
76
|
+
sourceTree = "<group>";
|
|
77
|
+
};
|
|
78
|
+
/* End PBXGroup section */
|
|
79
|
+
|
|
80
|
+
/* Begin PBXNativeTarget section */
|
|
81
|
+
58B511DA1A9E6C8500147676 /* ReactNativePlugin */ = {
|
|
82
|
+
isa = PBXNativeTarget;
|
|
83
|
+
buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "ReactNativePlugin" */;
|
|
84
|
+
buildPhases = (
|
|
85
|
+
58B511D71A9E6C8500147676 /* Sources */,
|
|
86
|
+
58B511D81A9E6C8500147676 /* Frameworks */,
|
|
87
|
+
58B511D91A9E6C8500147676 /* CopyFiles */,
|
|
88
|
+
);
|
|
89
|
+
buildRules = (
|
|
90
|
+
);
|
|
91
|
+
dependencies = (
|
|
92
|
+
);
|
|
93
|
+
name = ReactNativePlugin;
|
|
94
|
+
productName = RCTDataManager;
|
|
95
|
+
productReference = 134814201AA4EA6300B7C361 /* libReactNativePlugin.a */;
|
|
96
|
+
productType = "com.apple.product-type.library.static";
|
|
97
|
+
};
|
|
98
|
+
/* End PBXNativeTarget section */
|
|
99
|
+
|
|
100
|
+
/* Begin PBXProject section */
|
|
101
|
+
58B511D31A9E6C8500147676 /* Project object */ = {
|
|
102
|
+
isa = PBXProject;
|
|
103
|
+
attributes = {
|
|
104
|
+
LastUpgradeCheck = 0920;
|
|
105
|
+
ORGANIZATIONNAME = Facebook;
|
|
106
|
+
TargetAttributes = {
|
|
107
|
+
58B511DA1A9E6C8500147676 = {
|
|
108
|
+
CreatedOnToolsVersion = 6.1.1;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "ReactNativePlugin" */;
|
|
113
|
+
compatibilityVersion = "Xcode 3.2";
|
|
114
|
+
developmentRegion = English;
|
|
115
|
+
hasScannedForEncodings = 0;
|
|
116
|
+
knownRegions = (
|
|
117
|
+
English,
|
|
118
|
+
en,
|
|
119
|
+
);
|
|
120
|
+
mainGroup = 58B511D21A9E6C8500147676;
|
|
121
|
+
productRefGroup = 58B511D21A9E6C8500147676;
|
|
122
|
+
projectDirPath = "";
|
|
123
|
+
projectRoot = "";
|
|
124
|
+
targets = (
|
|
125
|
+
58B511DA1A9E6C8500147676 /* ReactNativePlugin */,
|
|
126
|
+
);
|
|
127
|
+
};
|
|
128
|
+
/* End PBXProject section */
|
|
129
|
+
|
|
130
|
+
/* Begin PBXSourcesBuildPhase section */
|
|
131
|
+
58B511D71A9E6C8500147676 /* Sources */ = {
|
|
132
|
+
isa = PBXSourcesBuildPhase;
|
|
133
|
+
buildActionMask = 2147483647;
|
|
134
|
+
files = (
|
|
135
|
+
F4FF95D7245B92E800C19C63 /* ReactNativePlugin.swift in Sources */,
|
|
136
|
+
F9937530299E52A600AC3731 /* ReactNativeEventEmitter.swift in Sources */,
|
|
137
|
+
F9B1CD0129A66F17009F9F4C /* NativeEmitter.m in Sources */,
|
|
138
|
+
F9B1CD0029A66F17009F9F4C /* NativeEmitter.swift in Sources */,
|
|
139
|
+
);
|
|
140
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
141
|
+
};
|
|
142
|
+
/* End PBXSourcesBuildPhase section */
|
|
143
|
+
|
|
144
|
+
/* Begin XCBuildConfiguration section */
|
|
145
|
+
58B511ED1A9E6C8500147676 /* Debug */ = {
|
|
146
|
+
isa = XCBuildConfiguration;
|
|
147
|
+
buildSettings = {
|
|
148
|
+
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
149
|
+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
|
150
|
+
CLANG_CXX_LIBRARY = "libc++";
|
|
151
|
+
CLANG_ENABLE_MODULES = YES;
|
|
152
|
+
CLANG_ENABLE_OBJC_ARC = YES;
|
|
153
|
+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
|
154
|
+
CLANG_WARN_BOOL_CONVERSION = YES;
|
|
155
|
+
CLANG_WARN_COMMA = YES;
|
|
156
|
+
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
|
157
|
+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
|
158
|
+
CLANG_WARN_EMPTY_BODY = YES;
|
|
159
|
+
CLANG_WARN_ENUM_CONVERSION = YES;
|
|
160
|
+
CLANG_WARN_INFINITE_RECURSION = YES;
|
|
161
|
+
CLANG_WARN_INT_CONVERSION = YES;
|
|
162
|
+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
|
163
|
+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
|
164
|
+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
165
|
+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
|
166
|
+
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
|
167
|
+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
|
168
|
+
CLANG_WARN_UNREACHABLE_CODE = YES;
|
|
169
|
+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
|
170
|
+
COPY_PHASE_STRIP = NO;
|
|
171
|
+
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
172
|
+
ENABLE_TESTABILITY = YES;
|
|
173
|
+
"EXCLUDED_ARCHS[sdk=*]" = arm64;
|
|
174
|
+
GCC_C_LANGUAGE_STANDARD = gnu99;
|
|
175
|
+
GCC_DYNAMIC_NO_PIC = NO;
|
|
176
|
+
GCC_NO_COMMON_BLOCKS = YES;
|
|
177
|
+
GCC_OPTIMIZATION_LEVEL = 0;
|
|
178
|
+
GCC_PREPROCESSOR_DEFINITIONS = (
|
|
179
|
+
"DEBUG=1",
|
|
180
|
+
"$(inherited)",
|
|
181
|
+
);
|
|
182
|
+
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
|
183
|
+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
184
|
+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
|
185
|
+
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
|
186
|
+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
187
|
+
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
188
|
+
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
189
|
+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
|
|
190
|
+
MTL_ENABLE_DEBUG_INFO = YES;
|
|
191
|
+
ONLY_ACTIVE_ARCH = YES;
|
|
192
|
+
SDKROOT = iphoneos;
|
|
193
|
+
};
|
|
194
|
+
name = Debug;
|
|
195
|
+
};
|
|
196
|
+
58B511EE1A9E6C8500147676 /* Release */ = {
|
|
197
|
+
isa = XCBuildConfiguration;
|
|
198
|
+
buildSettings = {
|
|
199
|
+
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
200
|
+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
|
201
|
+
CLANG_CXX_LIBRARY = "libc++";
|
|
202
|
+
CLANG_ENABLE_MODULES = YES;
|
|
203
|
+
CLANG_ENABLE_OBJC_ARC = YES;
|
|
204
|
+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
|
205
|
+
CLANG_WARN_BOOL_CONVERSION = YES;
|
|
206
|
+
CLANG_WARN_COMMA = YES;
|
|
207
|
+
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
|
208
|
+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
|
209
|
+
CLANG_WARN_EMPTY_BODY = YES;
|
|
210
|
+
CLANG_WARN_ENUM_CONVERSION = YES;
|
|
211
|
+
CLANG_WARN_INFINITE_RECURSION = YES;
|
|
212
|
+
CLANG_WARN_INT_CONVERSION = YES;
|
|
213
|
+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
|
214
|
+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
|
215
|
+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
216
|
+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
|
217
|
+
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
|
218
|
+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
|
219
|
+
CLANG_WARN_UNREACHABLE_CODE = YES;
|
|
220
|
+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
|
221
|
+
COPY_PHASE_STRIP = YES;
|
|
222
|
+
ENABLE_NS_ASSERTIONS = NO;
|
|
223
|
+
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
224
|
+
"EXCLUDED_ARCHS[sdk=*]" = arm64;
|
|
225
|
+
GCC_C_LANGUAGE_STANDARD = gnu99;
|
|
226
|
+
GCC_NO_COMMON_BLOCKS = YES;
|
|
227
|
+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
228
|
+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
|
229
|
+
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
|
230
|
+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
231
|
+
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
232
|
+
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
233
|
+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
|
|
234
|
+
MTL_ENABLE_DEBUG_INFO = NO;
|
|
235
|
+
SDKROOT = iphoneos;
|
|
236
|
+
VALIDATE_PRODUCT = YES;
|
|
237
|
+
};
|
|
238
|
+
name = Release;
|
|
239
|
+
};
|
|
240
|
+
58B511F01A9E6C8500147676 /* Debug */ = {
|
|
241
|
+
isa = XCBuildConfiguration;
|
|
242
|
+
buildSettings = {
|
|
243
|
+
HEADER_SEARCH_PATHS = (
|
|
244
|
+
"$(inherited)",
|
|
245
|
+
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
|
|
246
|
+
"$(SRCROOT)/../../../React/**",
|
|
247
|
+
"$(SRCROOT)/../../react-native/React/**",
|
|
248
|
+
);
|
|
249
|
+
LIBRARY_SEARCH_PATHS = "$(inherited)";
|
|
250
|
+
OTHER_LDFLAGS = "-ObjC";
|
|
251
|
+
PRODUCT_NAME = ReactNativePlugin;
|
|
252
|
+
SKIP_INSTALL = YES;
|
|
253
|
+
SWIFT_OBJC_BRIDGING_HEADER = "ReactNativePlugin-Bridging-Header.h";
|
|
254
|
+
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
|
255
|
+
SWIFT_VERSION = 5.0;
|
|
256
|
+
};
|
|
257
|
+
name = Debug;
|
|
258
|
+
};
|
|
259
|
+
58B511F11A9E6C8500147676 /* Release */ = {
|
|
260
|
+
isa = XCBuildConfiguration;
|
|
261
|
+
buildSettings = {
|
|
262
|
+
HEADER_SEARCH_PATHS = (
|
|
263
|
+
"$(inherited)",
|
|
264
|
+
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
|
|
265
|
+
"$(SRCROOT)/../../../React/**",
|
|
266
|
+
"$(SRCROOT)/../../react-native/React/**",
|
|
267
|
+
);
|
|
268
|
+
LIBRARY_SEARCH_PATHS = "$(inherited)";
|
|
269
|
+
OTHER_LDFLAGS = "-ObjC";
|
|
270
|
+
PRODUCT_NAME = ReactNativePlugin;
|
|
271
|
+
SKIP_INSTALL = YES;
|
|
272
|
+
SWIFT_OBJC_BRIDGING_HEADER = "ReactNativePlugin-Bridging-Header.h";
|
|
273
|
+
SWIFT_VERSION = 5.0;
|
|
274
|
+
};
|
|
275
|
+
name = Release;
|
|
276
|
+
};
|
|
277
|
+
/* End XCBuildConfiguration section */
|
|
278
|
+
|
|
279
|
+
/* Begin XCConfigurationList section */
|
|
280
|
+
58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "ReactNativePlugin" */ = {
|
|
281
|
+
isa = XCConfigurationList;
|
|
282
|
+
buildConfigurations = (
|
|
283
|
+
58B511ED1A9E6C8500147676 /* Debug */,
|
|
284
|
+
58B511EE1A9E6C8500147676 /* Release */,
|
|
285
|
+
);
|
|
286
|
+
defaultConfigurationIsVisible = 0;
|
|
287
|
+
defaultConfigurationName = Release;
|
|
288
|
+
};
|
|
289
|
+
58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "ReactNativePlugin" */ = {
|
|
290
|
+
isa = XCConfigurationList;
|
|
291
|
+
buildConfigurations = (
|
|
292
|
+
58B511F01A9E6C8500147676 /* Debug */,
|
|
293
|
+
58B511F11A9E6C8500147676 /* Release */,
|
|
294
|
+
);
|
|
295
|
+
defaultConfigurationIsVisible = 0;
|
|
296
|
+
defaultConfigurationName = Release;
|
|
297
|
+
};
|
|
298
|
+
/* End XCConfigurationList section */
|
|
299
|
+
};
|
|
300
|
+
rootObject = 58B511D31A9E6C8500147676 /* Project object */;
|
|
301
|
+
}
|