@telnyx/react-voice-commons-sdk 0.1.4 → 0.1.6
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/CHANGELOG.md +31 -16
- package/README.md +469 -469
- package/TelnyxVoiceCommons.podspec +31 -31
- package/android/build/.transforms/35d64beab84343a7420320f8057c40b9/results.bin +1 -0
- package/android/build/.transforms/35d64beab84343a7420320f8057c40b9/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/results.bin +1 -0
- package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/BuildConfig.dex +0 -0
- package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/CallForegroundService$Companion.dex +0 -0
- package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/CallForegroundService.dex +0 -0
- package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/TelnyxFirebaseMessagingService.dex +0 -0
- package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/TelnyxMainActivity$Companion.dex +0 -0
- package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/TelnyxMainActivity.dex +0 -0
- package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/TelnyxNotificationActionReceiver.dex +0 -0
- package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/TelnyxNotificationHelper$Companion.dex +0 -0
- package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/TelnyxNotificationHelper.dex +0 -0
- package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/VoicePnBridgeModule$Companion.dex +0 -0
- package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/VoicePnBridgeModule.dex +0 -0
- package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/VoicePnBridgePackage.dex +0 -0
- package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/VoicePnManager.dex +0 -0
- package/android/build/.transforms/81896f393ea3c2e44a76283db01ad461/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
- package/android/build/.transforms/8ebc6907344eccd2b9c23d903854d4fb/results.bin +1 -0
- package/android/build/.transforms/8ebc6907344eccd2b9c23d903854d4fb/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/.transforms/af1ab9e262e91ec4942977987fb9a0ae/results.bin +1 -0
- package/android/build/.transforms/af1ab9e262e91ec4942977987fb9a0ae/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/BuildConfig.dex +0 -0
- package/android/build/.transforms/af1ab9e262e91ec4942977987fb9a0ae/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/TelnyxFirebaseMessagingService.dex +0 -0
- package/android/build/.transforms/af1ab9e262e91ec4942977987fb9a0ae/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/TelnyxMainActivity$Companion.dex +0 -0
- package/android/build/.transforms/af1ab9e262e91ec4942977987fb9a0ae/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/TelnyxMainActivity.dex +0 -0
- package/android/build/.transforms/af1ab9e262e91ec4942977987fb9a0ae/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/TelnyxNotificationActionReceiver.dex +0 -0
- package/android/build/.transforms/af1ab9e262e91ec4942977987fb9a0ae/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/TelnyxNotificationHelper$Companion.dex +0 -0
- package/android/build/.transforms/af1ab9e262e91ec4942977987fb9a0ae/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/TelnyxNotificationHelper.dex +0 -0
- package/android/build/.transforms/af1ab9e262e91ec4942977987fb9a0ae/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/VoicePnBridgeModule.dex +0 -0
- package/android/build/.transforms/af1ab9e262e91ec4942977987fb9a0ae/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/VoicePnBridgePackage.dex +0 -0
- package/android/build/.transforms/af1ab9e262e91ec4942977987fb9a0ae/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/telnyx/react_voice_commons/VoicePnManager.dex +0 -0
- package/android/build/.transforms/af1ab9e262e91ec4942977987fb9a0ae/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
- package/android/build/generated/source/buildConfig/debug/com/telnyx/react_voice_commons/BuildConfig.java +10 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +42 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
- package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
- package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
- package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +0 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +1 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
- package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +2 -0
- package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/telnyx_react-voice-commons-sdk_debug.kotlin_module +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/telnyx/react_voice_commons/BuildConfig.class +0 -0
- package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +2 -0
- package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +75 -0
- package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +42 -0
- package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
- package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/telnyx_react-voice-commons-sdk_debug.kotlin_module +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/BuildConfig.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/CallForegroundService$Companion.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/CallForegroundService.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/TelnyxFirebaseMessagingService.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/TelnyxMainActivity$Companion.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/TelnyxMainActivity.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/TelnyxNotificationActionReceiver.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/TelnyxNotificationHelper$Companion.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/TelnyxNotificationHelper.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/VoicePnBridgeModule$Companion.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/VoicePnBridgeModule.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/VoicePnBridgePackage.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/telnyx/react_voice_commons/VoicePnManager.class +0 -0
- package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +1 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +2 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +82 -0
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/build/tmp/kotlin-classes/debug/META-INF/telnyx_react-voice-commons-sdk_debug.kotlin_module +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/telnyx/react_voice_commons/CallForegroundService$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/telnyx/react_voice_commons/CallForegroundService.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/telnyx/react_voice_commons/TelnyxFirebaseMessagingService.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/telnyx/react_voice_commons/TelnyxMainActivity$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/telnyx/react_voice_commons/TelnyxMainActivity.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/telnyx/react_voice_commons/TelnyxNotificationActionReceiver.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/telnyx/react_voice_commons/TelnyxNotificationHelper$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/telnyx/react_voice_commons/TelnyxNotificationHelper.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/telnyx/react_voice_commons/VoicePnBridgeModule$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/telnyx/react_voice_commons/VoicePnBridgeModule.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/telnyx/react_voice_commons/VoicePnBridgePackage.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/telnyx/react_voice_commons/VoicePnManager.class +0 -0
- package/android/build.gradle +45 -0
- package/android/local.properties +8 -0
- package/android/src/main/AndroidManifest.xml +38 -0
- package/android/src/main/java/com/telnyx/react_voice_commons/CallForegroundService.kt +83 -0
- package/android/src/main/java/com/telnyx/react_voice_commons/TelnyxFirebaseMessagingService.kt +179 -0
- package/android/src/main/java/com/telnyx/react_voice_commons/TelnyxMainActivity.kt +216 -0
- package/android/src/main/java/com/telnyx/react_voice_commons/TelnyxNotificationActionReceiver.kt +177 -0
- package/android/src/main/java/com/telnyx/react_voice_commons/TelnyxNotificationHelper.kt +277 -0
- package/android/src/main/java/com/telnyx/react_voice_commons/VoicePnBridgeModule.kt +247 -0
- package/android/src/main/java/com/telnyx/react_voice_commons/VoicePnBridgePackage.kt +17 -0
- package/android/src/main/java/com/telnyx/react_voice_commons/VoicePnManager.kt +154 -0
- package/ios/CallKitBridge.m +43 -43
- package/ios/CallKitBridge.swift +874 -874
- package/ios/VoicePnBridge.m +30 -30
- package/ios/VoicePnBridge.swift +86 -86
- package/lib/callkit/callkit-coordinator.d.ts +114 -110
- package/lib/callkit/callkit-coordinator.js +706 -664
- package/lib/callkit/callkit.d.ts +41 -41
- package/lib/callkit/callkit.js +242 -252
- package/lib/callkit/index.js +47 -15
- package/lib/callkit/use-callkit.d.ts +19 -19
- package/lib/callkit/use-callkit.js +310 -270
- package/lib/context/TelnyxVoiceContext.d.ts +9 -9
- package/lib/context/TelnyxVoiceContext.js +13 -10
- package/lib/hooks/use-callkit-coordinator.d.ts +17 -9
- package/lib/hooks/use-callkit-coordinator.js +50 -45
- package/lib/hooks/useAppReadyNotifier.js +15 -13
- package/lib/hooks/useAppStateHandler.d.ts +11 -6
- package/lib/hooks/useAppStateHandler.js +110 -95
- package/lib/index.d.ts +21 -3
- package/lib/index.js +201 -50
- package/lib/internal/CallKitHandler.d.ts +6 -6
- package/lib/internal/CallKitHandler.js +104 -96
- package/lib/internal/callkit-manager.d.ts +57 -57
- package/lib/internal/callkit-manager.js +316 -299
- package/lib/internal/calls/call-state-controller.d.ts +78 -73
- package/lib/internal/calls/call-state-controller.js +326 -265
- package/lib/internal/session/session-manager.d.ts +71 -71
- package/lib/internal/session/session-manager.js +437 -360
- package/lib/internal/user-defaults-helpers.js +39 -49
- package/lib/internal/voice-pn-bridge.d.ts +112 -104
- package/lib/internal/voice-pn-bridge.js +193 -203
- package/lib/models/call-state.d.ts +46 -46
- package/lib/models/call-state.js +74 -70
- package/lib/models/call.d.ts +173 -157
- package/lib/models/call.js +492 -448
- package/lib/models/config.d.ts +18 -11
- package/lib/models/config.js +35 -37
- package/lib/models/connection-state.d.ts +10 -10
- package/lib/models/connection-state.js +16 -16
- package/lib/telnyx-voice-app.d.ts +28 -28
- package/lib/telnyx-voice-app.js +561 -509
- package/lib/telnyx-voip-client.d.ts +174 -167
- package/lib/telnyx-voip-client.js +397 -385
- package/package.json +116 -115
- package/src/callkit/callkit-coordinator.ts +830 -830
- package/src/internal/calls/call-state-controller.ts +407 -407
- package/src/internal/session/session-manager.ts +483 -483
- package/src/internal/voice-pn-bridge.ts +266 -266
- package/src/models/call-state.ts +105 -105
- package/src/models/call.ts +502 -502
- package/src/telnyx-voice-app.tsx +787 -788
- package/src/telnyx-voip-client.ts +551 -551
- package/src/types/telnyx-sdk.d.ts +93 -93
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
package com.telnyx.react_voice_commons
|
|
2
|
+
|
|
3
|
+
import android.content.Intent
|
|
4
|
+
import android.os.Build
|
|
5
|
+
import android.util.Log
|
|
6
|
+
import com.facebook.react.bridge.ReactApplicationContext
|
|
7
|
+
import com.facebook.react.bridge.ReactContextBaseJavaModule
|
|
8
|
+
import com.facebook.react.bridge.ReactMethod
|
|
9
|
+
import com.facebook.react.bridge.Promise
|
|
10
|
+
import com.facebook.react.bridge.WritableMap
|
|
11
|
+
import com.facebook.react.bridge.Arguments
|
|
12
|
+
import com.facebook.react.modules.core.DeviceEventManagerModule
|
|
13
|
+
|
|
14
|
+
class VoicePnBridgeModule(reactContext: ReactApplicationContext) : ReactContextBaseJavaModule(reactContext) {
|
|
15
|
+
|
|
16
|
+
companion object {
|
|
17
|
+
private const val TAG = "VoicePnBridgeModule"
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
override fun getName(): String {
|
|
21
|
+
return "VoicePnBridge"
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@ReactMethod
|
|
25
|
+
fun getPendingPushAction(promise: Promise) {
|
|
26
|
+
try {
|
|
27
|
+
val (action, metadata) = VoicePnManager.getPendingPushAction(reactApplicationContext)
|
|
28
|
+
|
|
29
|
+
Log.d(TAG, "Retrieved pending action: '$action'")
|
|
30
|
+
Log.d(TAG, "Retrieved metadata: '$metadata'")
|
|
31
|
+
Log.d(TAG, "Metadata length: ${metadata?.length ?: 0}")
|
|
32
|
+
|
|
33
|
+
val result = Arguments.createMap()
|
|
34
|
+
result.putString("action", action)
|
|
35
|
+
result.putString("metadata", metadata)
|
|
36
|
+
|
|
37
|
+
promise.resolve(result)
|
|
38
|
+
} catch (e: Exception) {
|
|
39
|
+
Log.e(TAG, "Error getting pending push action", e)
|
|
40
|
+
promise.reject("GET_PENDING_PUSH_ACTION_ERROR", e.message, e)
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@ReactMethod
|
|
45
|
+
fun setPendingPushAction(action: String, metadata: String, promise: Promise) {
|
|
46
|
+
try {
|
|
47
|
+
Log.d(TAG, "Setting pending push action: '$action' with metadata length: ${metadata.length}")
|
|
48
|
+
val result = VoicePnManager.setPendingPushAction(reactApplicationContext, action, metadata)
|
|
49
|
+
promise.resolve(result)
|
|
50
|
+
} catch (e: Exception) {
|
|
51
|
+
Log.e(TAG, "Error setting pending push action", e)
|
|
52
|
+
promise.reject("SET_PENDING_PUSH_ACTION_ERROR", e.message, e)
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@ReactMethod
|
|
57
|
+
fun clearPendingPushAction(promise: Promise) {
|
|
58
|
+
try {
|
|
59
|
+
val result = VoicePnManager.clearPendingPushAction(reactApplicationContext)
|
|
60
|
+
promise.resolve(result)
|
|
61
|
+
} catch (e: Exception) {
|
|
62
|
+
promise.reject("CLEAR_PENDING_PUSH_ACTION_ERROR", e.message, e)
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* React Native → Android: Get any pending call action from notification buttons
|
|
68
|
+
* Uses the same reliable pattern as getPendingPushAction
|
|
69
|
+
*/
|
|
70
|
+
@ReactMethod
|
|
71
|
+
fun getPendingCallAction(promise: Promise) {
|
|
72
|
+
try {
|
|
73
|
+
val (action, callId, timestamp) = VoicePnManager.getPendingCallAction(reactApplicationContext)
|
|
74
|
+
|
|
75
|
+
Log.d(TAG, "Retrieved pending call action: '$action' for callId: '$callId'")
|
|
76
|
+
|
|
77
|
+
val result = Arguments.createMap()
|
|
78
|
+
result.putString("action", action)
|
|
79
|
+
result.putString("callId", callId)
|
|
80
|
+
result.putDouble("timestamp", timestamp?.toDouble() ?: 0.0)
|
|
81
|
+
|
|
82
|
+
promise.resolve(result)
|
|
83
|
+
} catch (e: Exception) {
|
|
84
|
+
Log.e(TAG, "Error getting pending call action", e)
|
|
85
|
+
promise.reject("GET_PENDING_CALL_ACTION_ERROR", e.message, e)
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* React Native → Android: Clear any pending call action
|
|
91
|
+
*/
|
|
92
|
+
@ReactMethod
|
|
93
|
+
fun clearPendingCallAction(promise: Promise) {
|
|
94
|
+
try {
|
|
95
|
+
val result = VoicePnManager.clearPendingCallAction(reactApplicationContext)
|
|
96
|
+
promise.resolve(result)
|
|
97
|
+
} catch (e: Exception) {
|
|
98
|
+
Log.e(TAG, "Error clearing pending call action", e)
|
|
99
|
+
promise.reject("CLEAR_PENDING_CALL_ACTION_ERROR", e.message, e)
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* React Native → Android: End/hang up the current call
|
|
105
|
+
*/
|
|
106
|
+
@ReactMethod
|
|
107
|
+
fun endCall(callId: String?, promise: Promise) {
|
|
108
|
+
try {
|
|
109
|
+
Log.d(TAG, "endCall called from React Native for callId: $callId")
|
|
110
|
+
|
|
111
|
+
// Hide any ongoing call notification and stop the foreground service
|
|
112
|
+
TelnyxNotificationHelper.hideOngoingCallNotificationFromContext(reactApplicationContext)
|
|
113
|
+
|
|
114
|
+
// Stop the foreground service that's keeping the notification alive
|
|
115
|
+
try {
|
|
116
|
+
val serviceIntent = Intent(reactApplicationContext, CallForegroundService::class.java).apply {
|
|
117
|
+
setAction(CallForegroundService.ACTION_STOP_FOREGROUND_SERVICE)
|
|
118
|
+
}
|
|
119
|
+
reactApplicationContext.startService(serviceIntent)
|
|
120
|
+
Log.d(TAG, "Stopped CallForegroundService from endCall")
|
|
121
|
+
} catch (e: Exception) {
|
|
122
|
+
Log.e(TAG, "Failed to stop CallForegroundService from endCall", e)
|
|
123
|
+
// Don't fail the call end if service stop fails
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// Store the call action for any listeners (using same pattern)
|
|
127
|
+
VoicePnManager.setPendingCallAction(reactApplicationContext, "call_ended_from_rn", callId, System.currentTimeMillis())
|
|
128
|
+
|
|
129
|
+
promise.resolve(true)
|
|
130
|
+
} catch (e: Exception) {
|
|
131
|
+
Log.e(TAG, "Error ending call", e)
|
|
132
|
+
promise.reject("END_CALL_ERROR", e.message, e)
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* React Native → Android: Show ongoing call notification
|
|
138
|
+
*/
|
|
139
|
+
@ReactMethod
|
|
140
|
+
fun showOngoingCallNotification(callerName: String?, callerNumber: String?, callId: String?, promise: Promise) {
|
|
141
|
+
try {
|
|
142
|
+
Log.d(TAG, "showOngoingCallNotification called from React Native")
|
|
143
|
+
|
|
144
|
+
val notificationHelper = TelnyxNotificationHelper(reactApplicationContext)
|
|
145
|
+
notificationHelper.showOngoingCallNotification(
|
|
146
|
+
callerName ?: "Unknown Caller",
|
|
147
|
+
callerNumber ?: "",
|
|
148
|
+
callId ?: "unknown"
|
|
149
|
+
)
|
|
150
|
+
|
|
151
|
+
// Also start the foreground service to keep the WebRTC connection alive
|
|
152
|
+
try {
|
|
153
|
+
val serviceIntent = Intent(reactApplicationContext, CallForegroundService::class.java).apply {
|
|
154
|
+
setAction(CallForegroundService.ACTION_START_FOREGROUND_SERVICE)
|
|
155
|
+
putExtra(CallForegroundService.EXTRA_CALLER_NAME, callerName ?: "Unknown Caller")
|
|
156
|
+
putExtra(CallForegroundService.EXTRA_CALLER_NUMBER, callerNumber ?: "")
|
|
157
|
+
putExtra(CallForegroundService.EXTRA_CALL_ID, callId ?: "unknown")
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// Use startForegroundService for API 26+, startService for older versions
|
|
161
|
+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
|
162
|
+
reactApplicationContext.startForegroundService(serviceIntent)
|
|
163
|
+
} else {
|
|
164
|
+
reactApplicationContext.startService(serviceIntent)
|
|
165
|
+
}
|
|
166
|
+
Log.d(TAG, "Started CallForegroundService for ongoing call")
|
|
167
|
+
} catch (e: Exception) {
|
|
168
|
+
Log.e(TAG, "Failed to start CallForegroundService", e)
|
|
169
|
+
// Don't fail the notification if service start fails
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
promise.resolve(true)
|
|
173
|
+
} catch (e: Exception) {
|
|
174
|
+
Log.e(TAG, "Error showing ongoing call notification", e)
|
|
175
|
+
promise.reject("SHOW_ONGOING_NOTIFICATION_ERROR", e.message, e)
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* React Native → Android: Hide ongoing call notification
|
|
181
|
+
*/
|
|
182
|
+
@ReactMethod
|
|
183
|
+
fun hideOngoingCallNotification(promise: Promise) {
|
|
184
|
+
try {
|
|
185
|
+
Log.d(TAG, "hideOngoingCallNotification called from React Native")
|
|
186
|
+
|
|
187
|
+
TelnyxNotificationHelper.hideOngoingCallNotificationFromContext(reactApplicationContext)
|
|
188
|
+
|
|
189
|
+
// Also stop the foreground service
|
|
190
|
+
try {
|
|
191
|
+
val serviceIntent = Intent(reactApplicationContext, CallForegroundService::class.java).apply {
|
|
192
|
+
setAction(CallForegroundService.ACTION_STOP_FOREGROUND_SERVICE)
|
|
193
|
+
}
|
|
194
|
+
reactApplicationContext.startService(serviceIntent)
|
|
195
|
+
Log.d(TAG, "Stopped CallForegroundService")
|
|
196
|
+
} catch (e: Exception) {
|
|
197
|
+
Log.e(TAG, "Failed to stop CallForegroundService", e)
|
|
198
|
+
// Don't fail the notification hiding if service stop fails
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
promise.resolve(true)
|
|
202
|
+
} catch (e: Exception) {
|
|
203
|
+
Log.e(TAG, "Error hiding ongoing call notification", e)
|
|
204
|
+
promise.reject("HIDE_ONGOING_NOTIFICATION_ERROR", e.message, e)
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* React Native → Android: Hide any incoming call notification
|
|
210
|
+
*/
|
|
211
|
+
@ReactMethod
|
|
212
|
+
fun hideIncomingCallNotification(promise: Promise) {
|
|
213
|
+
try {
|
|
214
|
+
Log.d(TAG, "hideIncomingCallNotification called from React Native")
|
|
215
|
+
|
|
216
|
+
TelnyxNotificationHelper.hideNotificationFromContext(reactApplicationContext)
|
|
217
|
+
|
|
218
|
+
promise.resolve(true)
|
|
219
|
+
} catch (e: Exception) {
|
|
220
|
+
Log.e(TAG, "Error hiding incoming call notification", e)
|
|
221
|
+
promise.reject("HIDE_INCOMING_NOTIFICATION_ERROR", e.message, e)
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Emit call action event to React Native (for immediate notification)
|
|
227
|
+
* Called from TelnyxMainActivity when user taps notification action
|
|
228
|
+
*/
|
|
229
|
+
fun emitCallActionEvent(action: String, callId: String) {
|
|
230
|
+
try {
|
|
231
|
+
Log.d(TAG, "Emitting call action event to React Native: action=$action, callId=$callId")
|
|
232
|
+
|
|
233
|
+
val params = Arguments.createMap()
|
|
234
|
+
params.putString("action", action)
|
|
235
|
+
params.putString("callId", callId)
|
|
236
|
+
params.putDouble("timestamp", System.currentTimeMillis().toDouble())
|
|
237
|
+
|
|
238
|
+
reactApplicationContext
|
|
239
|
+
.getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter::class.java)
|
|
240
|
+
?.emit("TelnyxCallAction", params)
|
|
241
|
+
|
|
242
|
+
Log.d(TAG, "Call action event emitted successfully")
|
|
243
|
+
} catch (e: Exception) {
|
|
244
|
+
Log.e(TAG, "Error emitting call action event", e)
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
package com.telnyx.react_voice_commons
|
|
2
|
+
|
|
3
|
+
import com.facebook.react.ReactPackage
|
|
4
|
+
import com.facebook.react.bridge.NativeModule
|
|
5
|
+
import com.facebook.react.bridge.ReactApplicationContext
|
|
6
|
+
import com.facebook.react.uimanager.ViewManager
|
|
7
|
+
|
|
8
|
+
class VoicePnBridgePackage : ReactPackage {
|
|
9
|
+
|
|
10
|
+
override fun createNativeModules(reactContext: ReactApplicationContext): List<NativeModule> {
|
|
11
|
+
return listOf(VoicePnBridgeModule(reactContext))
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
override fun createViewManagers(reactContext: ReactApplicationContext): List<ViewManager<*, *>> {
|
|
15
|
+
return emptyList()
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
package com.telnyx.react_voice_commons
|
|
2
|
+
|
|
3
|
+
import android.content.Context
|
|
4
|
+
import android.content.SharedPreferences
|
|
5
|
+
import android.util.Log
|
|
6
|
+
|
|
7
|
+
object VoicePnManager {
|
|
8
|
+
|
|
9
|
+
private const val TAG = "VoicePnManager"
|
|
10
|
+
private const val PREFS_NAME = "telnyx_voice_prefs"
|
|
11
|
+
|
|
12
|
+
private fun getSharedPreferences(context: Context): SharedPreferences {
|
|
13
|
+
return context.getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE)
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// UserDefaults equivalent functions
|
|
17
|
+
fun getVoipToken(context: Context): String? {
|
|
18
|
+
Log.d(TAG, "getVoipToken called")
|
|
19
|
+
return getSharedPreferences(context).getString("voip_token", null)
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
fun setVoipToken(context: Context, token: String?) {
|
|
23
|
+
Log.d(TAG, "setVoipToken called with: $token")
|
|
24
|
+
val editor = getSharedPreferences(context).edit()
|
|
25
|
+
if (token != null) {
|
|
26
|
+
editor.putString("voip_token", token)
|
|
27
|
+
} else {
|
|
28
|
+
editor.remove("voip_token")
|
|
29
|
+
}
|
|
30
|
+
editor.apply()
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
fun getPendingVoipPush(context: Context): String? {
|
|
34
|
+
Log.d(TAG, "getPendingVoipPush called")
|
|
35
|
+
return getSharedPreferences(context).getString("pending_voip_push", null)
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
fun setPendingVoipPush(context: Context, push: String?) {
|
|
39
|
+
Log.d(TAG, "setPendingVoipPush called with: $push")
|
|
40
|
+
val editor = getSharedPreferences(context).edit()
|
|
41
|
+
if (push != null) {
|
|
42
|
+
editor.putString("pending_voip_push", push)
|
|
43
|
+
} else {
|
|
44
|
+
editor.remove("pending_voip_push")
|
|
45
|
+
}
|
|
46
|
+
editor.apply()
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
fun clearPendingVoipPush(context: Context): Boolean {
|
|
50
|
+
Log.d(TAG, "clearPendingVoipPush called")
|
|
51
|
+
val editor = getSharedPreferences(context).edit()
|
|
52
|
+
editor.remove("pending_voip_push")
|
|
53
|
+
editor.apply()
|
|
54
|
+
return true
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
fun getPendingVoipAction(context: Context): String? {
|
|
58
|
+
Log.d(TAG, "getPendingVoipAction called")
|
|
59
|
+
return getSharedPreferences(context).getString("pending_voip_action", null)
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
fun setPendingVoipAction(context: Context, action: String?) {
|
|
63
|
+
Log.d(TAG, "setPendingVoipAction called with: $action")
|
|
64
|
+
val editor = getSharedPreferences(context).edit()
|
|
65
|
+
if (action != null) {
|
|
66
|
+
editor.putString("pending_voip_action", action)
|
|
67
|
+
} else {
|
|
68
|
+
editor.remove("pending_voip_action")
|
|
69
|
+
}
|
|
70
|
+
editor.apply()
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
fun clearPendingVoipAction(context: Context): Boolean {
|
|
74
|
+
Log.d(TAG, "clearPendingVoipAction called")
|
|
75
|
+
val editor = getSharedPreferences(context).edit()
|
|
76
|
+
editor.remove("pending_voip_action")
|
|
77
|
+
editor.apply()
|
|
78
|
+
return true
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// PnModule functions
|
|
82
|
+
fun setPendingPushAction(context: Context, action: String, metadata: String) {
|
|
83
|
+
Log.d(TAG, "setPendingPushAction called with action: $action")
|
|
84
|
+
val editor = getSharedPreferences(context).edit()
|
|
85
|
+
editor.putString("pending_push_action", action)
|
|
86
|
+
editor.putString("pending_push_metadata", metadata)
|
|
87
|
+
editor.apply()
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
fun getPendingPushAction(context: Context): Pair<String?, String?> {
|
|
91
|
+
Log.d(TAG, "getPendingPushAction called")
|
|
92
|
+
val prefs = getSharedPreferences(context)
|
|
93
|
+
val action = prefs.getString("pending_push_action", null)
|
|
94
|
+
val metadata = prefs.getString("pending_push_metadata", null)
|
|
95
|
+
return Pair(action, metadata)
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
fun clearPendingPushAction(context: Context): Boolean {
|
|
99
|
+
Log.d(TAG, "clearPendingPushAction called")
|
|
100
|
+
val editor = getSharedPreferences(context).edit()
|
|
101
|
+
editor.remove("pending_push_action")
|
|
102
|
+
editor.remove("pending_push_metadata")
|
|
103
|
+
editor.apply()
|
|
104
|
+
return true
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
fun checkPendingPushAction(context: Context): Boolean {
|
|
108
|
+
Log.d(TAG, "checkPendingPushAction called")
|
|
109
|
+
val (pendingAction, pendingMetadata) = getPendingPushAction(context)
|
|
110
|
+
|
|
111
|
+
if (pendingAction != null && pendingMetadata != null) {
|
|
112
|
+
Log.d(TAG, "Found pending action: $pendingAction")
|
|
113
|
+
// Clear after checking
|
|
114
|
+
clearPendingPushAction(context)
|
|
115
|
+
return true
|
|
116
|
+
} else {
|
|
117
|
+
Log.d(TAG, "No pending action found")
|
|
118
|
+
return false
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// Call action management (using same pattern as push actions)
|
|
123
|
+
fun setPendingCallAction(context: Context, action: String, callId: String?, timestamp: Long) {
|
|
124
|
+
Log.d(TAG, "setPendingCallAction called with action: $action, callId: $callId")
|
|
125
|
+
val editor = getSharedPreferences(context).edit()
|
|
126
|
+
editor.putString("pending_call_action", action)
|
|
127
|
+
editor.putString("pending_call_id", callId)
|
|
128
|
+
editor.putLong("pending_call_timestamp", timestamp)
|
|
129
|
+
editor.apply()
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
fun getPendingCallAction(context: Context): Triple<String?, String?, Long?> {
|
|
133
|
+
Log.d(TAG, "getPendingCallAction called")
|
|
134
|
+
val prefs = getSharedPreferences(context)
|
|
135
|
+
val action = prefs.getString("pending_call_action", null)
|
|
136
|
+
val callId = prefs.getString("pending_call_id", null)
|
|
137
|
+
val timestamp = if (prefs.contains("pending_call_timestamp")) {
|
|
138
|
+
prefs.getLong("pending_call_timestamp", 0)
|
|
139
|
+
} else {
|
|
140
|
+
null
|
|
141
|
+
}
|
|
142
|
+
return Triple(action, callId, timestamp)
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
fun clearPendingCallAction(context: Context): Boolean {
|
|
146
|
+
Log.d(TAG, "clearPendingCallAction called")
|
|
147
|
+
val editor = getSharedPreferences(context).edit()
|
|
148
|
+
editor.remove("pending_call_action")
|
|
149
|
+
editor.remove("pending_call_id")
|
|
150
|
+
editor.remove("pending_call_timestamp")
|
|
151
|
+
editor.apply()
|
|
152
|
+
return true
|
|
153
|
+
}
|
|
154
|
+
}
|
package/ios/CallKitBridge.m
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
#import <React/RCTBridgeModule.h>
|
|
2
|
-
#import <React/RCTEventEmitter.h>
|
|
3
|
-
|
|
4
|
-
@interface RCT_EXTERN_MODULE(CallKitBridge, RCTEventEmitter)
|
|
5
|
-
|
|
6
|
-
RCT_EXTERN_METHOD(startOutgoingCall:(NSString *)callUUID
|
|
7
|
-
handle:(NSString *)handle
|
|
8
|
-
displayName:(NSString *)displayName
|
|
9
|
-
resolver:(RCTPromiseResolveBlock)resolve
|
|
10
|
-
rejecter:(RCTPromiseRejectBlock)reject)
|
|
11
|
-
|
|
12
|
-
RCT_EXTERN_METHOD(reportIncomingCall:(NSString *)callUUID
|
|
13
|
-
handle:(NSString *)handle
|
|
14
|
-
displayName:(NSString *)displayName
|
|
15
|
-
resolver:(RCTPromiseResolveBlock)resolve
|
|
16
|
-
rejecter:(RCTPromiseRejectBlock)reject)
|
|
17
|
-
|
|
18
|
-
RCT_EXTERN_METHOD(answerCall:(NSString *)callUUID
|
|
19
|
-
resolver:(RCTPromiseResolveBlock)resolve
|
|
20
|
-
rejecter:(RCTPromiseRejectBlock)reject)
|
|
21
|
-
|
|
22
|
-
RCT_EXTERN_METHOD(endCall:(NSString *)callUUID
|
|
23
|
-
resolver:(RCTPromiseResolveBlock)resolve
|
|
24
|
-
rejecter:(RCTPromiseRejectBlock)reject)
|
|
25
|
-
|
|
26
|
-
RCT_EXTERN_METHOD(reportCallConnected:(NSString *)callUUID
|
|
27
|
-
resolver:(RCTPromiseResolveBlock)resolve
|
|
28
|
-
rejecter:(RCTPromiseRejectBlock)reject)
|
|
29
|
-
|
|
30
|
-
RCT_EXTERN_METHOD(reportCallEnded:(NSString *)callUUID
|
|
31
|
-
reason:(NSNumber *)reason
|
|
32
|
-
resolver:(RCTPromiseResolveBlock)resolve
|
|
33
|
-
rejecter:(RCTPromiseRejectBlock)reject)
|
|
34
|
-
|
|
35
|
-
RCT_EXTERN_METHOD(updateCall:(NSString *)callUUID
|
|
36
|
-
displayName:(NSString *)displayName
|
|
37
|
-
handle:(NSString *)handle
|
|
38
|
-
resolver:(RCTPromiseResolveBlock)resolve
|
|
39
|
-
rejecter:(RCTPromiseRejectBlock)reject)
|
|
40
|
-
|
|
41
|
-
RCT_EXTERN_METHOD(getActiveCalls:(RCTPromiseResolveBlock)resolve
|
|
42
|
-
rejecter:(RCTPromiseRejectBlock)reject)
|
|
43
|
-
|
|
1
|
+
#import <React/RCTBridgeModule.h>
|
|
2
|
+
#import <React/RCTEventEmitter.h>
|
|
3
|
+
|
|
4
|
+
@interface RCT_EXTERN_MODULE(CallKitBridge, RCTEventEmitter)
|
|
5
|
+
|
|
6
|
+
RCT_EXTERN_METHOD(startOutgoingCall:(NSString *)callUUID
|
|
7
|
+
handle:(NSString *)handle
|
|
8
|
+
displayName:(NSString *)displayName
|
|
9
|
+
resolver:(RCTPromiseResolveBlock)resolve
|
|
10
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
11
|
+
|
|
12
|
+
RCT_EXTERN_METHOD(reportIncomingCall:(NSString *)callUUID
|
|
13
|
+
handle:(NSString *)handle
|
|
14
|
+
displayName:(NSString *)displayName
|
|
15
|
+
resolver:(RCTPromiseResolveBlock)resolve
|
|
16
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
17
|
+
|
|
18
|
+
RCT_EXTERN_METHOD(answerCall:(NSString *)callUUID
|
|
19
|
+
resolver:(RCTPromiseResolveBlock)resolve
|
|
20
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
21
|
+
|
|
22
|
+
RCT_EXTERN_METHOD(endCall:(NSString *)callUUID
|
|
23
|
+
resolver:(RCTPromiseResolveBlock)resolve
|
|
24
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
25
|
+
|
|
26
|
+
RCT_EXTERN_METHOD(reportCallConnected:(NSString *)callUUID
|
|
27
|
+
resolver:(RCTPromiseResolveBlock)resolve
|
|
28
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
29
|
+
|
|
30
|
+
RCT_EXTERN_METHOD(reportCallEnded:(NSString *)callUUID
|
|
31
|
+
reason:(NSNumber *)reason
|
|
32
|
+
resolver:(RCTPromiseResolveBlock)resolve
|
|
33
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
34
|
+
|
|
35
|
+
RCT_EXTERN_METHOD(updateCall:(NSString *)callUUID
|
|
36
|
+
displayName:(NSString *)displayName
|
|
37
|
+
handle:(NSString *)handle
|
|
38
|
+
resolver:(RCTPromiseResolveBlock)resolve
|
|
39
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
40
|
+
|
|
41
|
+
RCT_EXTERN_METHOD(getActiveCalls:(RCTPromiseResolveBlock)resolve
|
|
42
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
43
|
+
|
|
44
44
|
@end
|