@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
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import { Call } from '@telnyx/react-native-voice-sdk';
|
|
2
2
|
import { TelnyxVoipClient } from '../telnyx-voip-client';
|
|
3
3
|
export declare function useCallKitCoordinator(): {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
reportIncomingCall: (
|
|
5
|
+
call: Call,
|
|
6
|
+
callerName: string,
|
|
7
|
+
callerNumber: string
|
|
8
|
+
) => Promise<string | null>;
|
|
9
|
+
startOutgoingCall: (
|
|
10
|
+
call: Call,
|
|
11
|
+
destinationNumber: string,
|
|
12
|
+
displayName?: string
|
|
13
|
+
) => Promise<string | null>;
|
|
14
|
+
answerCallFromUI: (call: Call) => Promise<boolean>;
|
|
15
|
+
endCallFromUI: (call: Call) => Promise<boolean>;
|
|
16
|
+
getCallKitUUID: (call: Call) => string | null;
|
|
17
|
+
getWebRTCCall: (callKitUUID: string) => Call | null;
|
|
18
|
+
linkExistingCallKitCall: (call: Call, callKitUUID: string) => void;
|
|
19
|
+
isAvailable: () => boolean;
|
|
20
|
+
setVoipClient: (voipClient: TelnyxVoipClient) => void;
|
|
13
21
|
};
|
|
@@ -1,48 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
var __importDefault =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
var __importDefault =
|
|
3
|
+
(this && this.__importDefault) ||
|
|
4
|
+
function (mod) {
|
|
5
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
6
|
+
};
|
|
7
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
6
8
|
exports.useCallKitCoordinator = useCallKitCoordinator;
|
|
7
|
-
const react_1 = require(
|
|
8
|
-
const callkit_coordinator_1 = __importDefault(require(
|
|
9
|
+
const react_1 = require('react');
|
|
10
|
+
const callkit_coordinator_1 = __importDefault(require('../callkit/callkit-coordinator'));
|
|
9
11
|
function useCallKitCoordinator() {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
12
|
+
const reportIncomingCall = (0, react_1.useCallback)(async (call, callerName, callerNumber) => {
|
|
13
|
+
return callkit_coordinator_1.default.reportIncomingCall(call, callerName, callerNumber);
|
|
14
|
+
}, []);
|
|
15
|
+
const startOutgoingCall = (0, react_1.useCallback)(
|
|
16
|
+
async (call, destinationNumber, displayName) => {
|
|
17
|
+
return callkit_coordinator_1.default.startOutgoingCall(call, destinationNumber, displayName);
|
|
18
|
+
},
|
|
19
|
+
[]
|
|
20
|
+
);
|
|
21
|
+
const answerCallFromUI = (0, react_1.useCallback)(async (call) => {
|
|
22
|
+
return callkit_coordinator_1.default.answerCallFromUI(call);
|
|
23
|
+
}, []);
|
|
24
|
+
const endCallFromUI = (0, react_1.useCallback)(async (call) => {
|
|
25
|
+
return callkit_coordinator_1.default.endCallFromUI(call);
|
|
26
|
+
}, []);
|
|
27
|
+
const getCallKitUUID = (0, react_1.useCallback)((call) => {
|
|
28
|
+
return callkit_coordinator_1.default.getCallKitUUID(call);
|
|
29
|
+
}, []);
|
|
30
|
+
const getWebRTCCall = (0, react_1.useCallback)((callKitUUID) => {
|
|
31
|
+
return callkit_coordinator_1.default.getWebRTCCall(callKitUUID);
|
|
32
|
+
}, []);
|
|
33
|
+
const linkExistingCallKitCall = (0, react_1.useCallback)((call, callKitUUID) => {
|
|
34
|
+
callkit_coordinator_1.default.linkExistingCallKitCall(call, callKitUUID);
|
|
35
|
+
}, []);
|
|
36
|
+
const isAvailable = (0, react_1.useCallback)(() => {
|
|
37
|
+
return callkit_coordinator_1.default.isAvailable();
|
|
38
|
+
}, []);
|
|
39
|
+
const setVoipClient = (0, react_1.useCallback)((voipClient) => {
|
|
40
|
+
callkit_coordinator_1.default.setVoipClient(voipClient);
|
|
41
|
+
}, []);
|
|
42
|
+
return {
|
|
43
|
+
reportIncomingCall,
|
|
44
|
+
startOutgoingCall,
|
|
45
|
+
answerCallFromUI,
|
|
46
|
+
endCallFromUI,
|
|
47
|
+
getCallKitUUID,
|
|
48
|
+
getWebRTCCall,
|
|
49
|
+
linkExistingCallKitCall,
|
|
50
|
+
isAvailable,
|
|
51
|
+
setVoipClient,
|
|
52
|
+
};
|
|
48
53
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
3
|
exports.useAppReadyNotifier = void 0;
|
|
4
|
-
const react_1 = require(
|
|
5
|
-
const react_native_1 = require(
|
|
4
|
+
const react_1 = require('react');
|
|
5
|
+
const react_native_1 = require('react-native');
|
|
6
6
|
/**
|
|
7
7
|
* Hook to notify the native side when React Native is ready
|
|
8
8
|
* Call this hook when your main screen/login screen is visible and ready
|
|
@@ -12,14 +12,16 @@ const react_native_1 = require("react-native");
|
|
|
12
12
|
* handled automatically by the native Android services, so this hook is simplified.
|
|
13
13
|
*/
|
|
14
14
|
const useAppReadyNotifier = () => {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
15
|
+
(0, react_1.useEffect)(() => {
|
|
16
|
+
// Only notify on Android since this is Android-specific functionality
|
|
17
|
+
if (react_native_1.Platform.OS === 'android') {
|
|
18
|
+
console.log(
|
|
19
|
+
'useAppReadyNotifier: React Native is ready (native services handle FCM automatically)'
|
|
20
|
+
);
|
|
21
|
+
// Note: The VoicePnManager in the native Android code automatically handles
|
|
22
|
+
// push notification state when the Firebase messaging service receives notifications.
|
|
23
|
+
// No JavaScript module communication is needed anymore.
|
|
24
|
+
}
|
|
25
|
+
}, []);
|
|
24
26
|
};
|
|
25
27
|
exports.useAppReadyNotifier = useAppReadyNotifier;
|
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
import { AppStateStatus } from 'react-native';
|
|
2
2
|
import { TelnyxVoipClient } from '../telnyx-voip-client';
|
|
3
3
|
interface UseAppStateHandlerOptions {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
voipClient: TelnyxVoipClient;
|
|
5
|
+
disconnectOnBackground?: boolean;
|
|
6
|
+
navigateToLoginOnDisconnect?: boolean;
|
|
7
|
+
debug?: boolean;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Hook to handle app state changes for VoIP behavior
|
|
11
11
|
* When app goes to background without an active call, disconnect socket and redirect to login
|
|
12
12
|
*/
|
|
13
|
-
export declare const useAppStateHandler: ({
|
|
14
|
-
|
|
13
|
+
export declare const useAppStateHandler: ({
|
|
14
|
+
voipClient,
|
|
15
|
+
disconnectOnBackground,
|
|
16
|
+
navigateToLoginOnDisconnect,
|
|
17
|
+
debug,
|
|
18
|
+
}: UseAppStateHandlerOptions) => {
|
|
19
|
+
currentAppState: AppStateStatus;
|
|
15
20
|
};
|
|
16
21
|
export {};
|
|
@@ -1,105 +1,120 @@
|
|
|
1
|
-
|
|
2
|
-
var __importDefault =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
var __importDefault =
|
|
3
|
+
(this && this.__importDefault) ||
|
|
4
|
+
function (mod) {
|
|
5
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
6
|
+
};
|
|
7
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
6
8
|
exports.useAppStateHandler = void 0;
|
|
7
|
-
const react_1 = require(
|
|
8
|
-
const react_native_1 = require(
|
|
9
|
-
const expo_router_1 = require(
|
|
10
|
-
const async_storage_1 = __importDefault(require(
|
|
11
|
-
const connection_state_1 = require(
|
|
12
|
-
const call_state_1 = require(
|
|
9
|
+
const react_1 = require('react');
|
|
10
|
+
const react_native_1 = require('react-native');
|
|
11
|
+
const expo_router_1 = require('expo-router');
|
|
12
|
+
const async_storage_1 = __importDefault(require('@react-native-async-storage/async-storage'));
|
|
13
|
+
const connection_state_1 = require('../models/connection-state');
|
|
14
|
+
const call_state_1 = require('../models/call-state');
|
|
13
15
|
/**
|
|
14
16
|
* Hook to handle app state changes for VoIP behavior
|
|
15
17
|
* When app goes to background without an active call, disconnect socket and redirect to login
|
|
16
18
|
*/
|
|
17
|
-
const useAppStateHandler = ({
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
// Use a small delay to ensure the disconnect completes
|
|
74
|
-
setTimeout(() => {
|
|
75
|
-
log('AppStateHandler: Navigating to login screen');
|
|
76
|
-
expo_router_1.router.replace('/');
|
|
77
|
-
}, 100);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
catch (error) {
|
|
81
|
-
console.error('AppStateHandler: Error during background disconnect:', error);
|
|
82
|
-
}
|
|
19
|
+
const useAppStateHandler = ({
|
|
20
|
+
voipClient,
|
|
21
|
+
disconnectOnBackground = true,
|
|
22
|
+
navigateToLoginOnDisconnect = true,
|
|
23
|
+
debug = false,
|
|
24
|
+
}) => {
|
|
25
|
+
const appState = (0, react_1.useRef)(react_native_1.AppState.currentState);
|
|
26
|
+
const log = debug ? console.log : () => {};
|
|
27
|
+
(0, react_1.useEffect)(() => {
|
|
28
|
+
const handleAppStateChange = async (nextAppState) => {
|
|
29
|
+
log('AppStateHandler: App state changed from', appState.current, 'to', nextAppState);
|
|
30
|
+
// When app goes to background
|
|
31
|
+
if (appState.current.match(/active/) && nextAppState === 'background') {
|
|
32
|
+
log('AppStateHandler: App went to background, checking for active calls...');
|
|
33
|
+
const connectionState = voipClient.currentConnectionState;
|
|
34
|
+
if (connectionState !== connection_state_1.TelnyxConnectionState.CONNECTED) {
|
|
35
|
+
log('AppStateHandler: Not connected, skipping background handling');
|
|
36
|
+
appState.current = nextAppState;
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
// Check if there's an active call (including ringing calls)
|
|
40
|
+
const activeCalls = voipClient.currentCalls;
|
|
41
|
+
const hasActiveCall =
|
|
42
|
+
activeCalls.length > 0 &&
|
|
43
|
+
activeCalls.some(
|
|
44
|
+
(call) =>
|
|
45
|
+
call_state_1.CallStateHelpers.isActive(call.currentState) ||
|
|
46
|
+
call.currentState === call_state_1.TelnyxCallState.RINGING
|
|
47
|
+
);
|
|
48
|
+
log('AppStateHandler: Active call check:', {
|
|
49
|
+
callCount: activeCalls.length,
|
|
50
|
+
hasActiveCall,
|
|
51
|
+
callStates: activeCalls.map((call) => ({
|
|
52
|
+
callId: call.callId,
|
|
53
|
+
currentState: call.currentState,
|
|
54
|
+
destination: call.destination,
|
|
55
|
+
isIncoming: call.isIncoming,
|
|
56
|
+
})),
|
|
57
|
+
});
|
|
58
|
+
if (!hasActiveCall && disconnectOnBackground) {
|
|
59
|
+
// Check if there's a push notification call in progress
|
|
60
|
+
const isPushNotificationInProgress = await async_storage_1.default.getItem(
|
|
61
|
+
'@push_notification_payload'
|
|
62
|
+
);
|
|
63
|
+
if (isPushNotificationInProgress) {
|
|
64
|
+
log('AppStateHandler: Push notification call in progress, keeping socket connected');
|
|
65
|
+
// Wait a bit longer before allowing disconnection to give time for WebRTC call to establish
|
|
66
|
+
setTimeout(async () => {
|
|
67
|
+
const stillInProgress = await async_storage_1.default.getItem(
|
|
68
|
+
'@push_notification_payload'
|
|
69
|
+
);
|
|
70
|
+
if (!stillInProgress) {
|
|
71
|
+
log('AppStateHandler: Push notification call completed, now disconnecting socket');
|
|
72
|
+
await voipClient.logout();
|
|
73
|
+
if (navigateToLoginOnDisconnect) {
|
|
74
|
+
expo_router_1.router.replace('/');
|
|
83
75
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
// When app comes to foreground
|
|
89
|
-
if (appState.current.match(/background/) && nextAppState === 'active') {
|
|
90
|
-
log('AppStateHandler: App came to foreground');
|
|
91
|
-
// User will need to manually login again when returning from background
|
|
92
|
-
// Auto-login only happens for push notification calls
|
|
93
|
-
}
|
|
76
|
+
}
|
|
77
|
+
}, 5000); // Wait 5 seconds
|
|
94
78
|
appState.current = nextAppState;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
log('AppStateHandler: No active call detected, disconnecting socket...');
|
|
82
|
+
try {
|
|
83
|
+
// Disconnect the socket with background reason
|
|
84
|
+
await voipClient.logout();
|
|
85
|
+
log('AppStateHandler: Socket disconnected successfully');
|
|
86
|
+
// Navigate to login screen
|
|
87
|
+
if (navigateToLoginOnDisconnect) {
|
|
88
|
+
// Use a small delay to ensure the disconnect completes
|
|
89
|
+
setTimeout(() => {
|
|
90
|
+
log('AppStateHandler: Navigating to login screen');
|
|
91
|
+
expo_router_1.router.replace('/');
|
|
92
|
+
}, 100);
|
|
93
|
+
}
|
|
94
|
+
} catch (error) {
|
|
95
|
+
console.error('AppStateHandler: Error during background disconnect:', error);
|
|
96
|
+
}
|
|
97
|
+
} else {
|
|
98
|
+
log(
|
|
99
|
+
'AppStateHandler: Active call detected or disconnect disabled, keeping socket connected'
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
// When app comes to foreground
|
|
104
|
+
if (appState.current.match(/background/) && nextAppState === 'active') {
|
|
105
|
+
log('AppStateHandler: App came to foreground');
|
|
106
|
+
// User will need to manually login again when returning from background
|
|
107
|
+
// Auto-login only happens for push notification calls
|
|
108
|
+
}
|
|
109
|
+
appState.current = nextAppState;
|
|
110
|
+
};
|
|
111
|
+
const subscription = react_native_1.AppState.addEventListener('change', handleAppStateChange);
|
|
112
|
+
return () => {
|
|
113
|
+
subscription?.remove();
|
|
103
114
|
};
|
|
115
|
+
}, [voipClient, disconnectOnBackground, navigateToLoginOnDisconnect, log]);
|
|
116
|
+
return {
|
|
117
|
+
currentAppState: appState.current,
|
|
118
|
+
};
|
|
104
119
|
};
|
|
105
120
|
exports.useAppStateHandler = useAppStateHandler;
|
package/lib/index.d.ts
CHANGED
|
@@ -8,16 +8,34 @@
|
|
|
8
8
|
* call state transitions, push notification processing, and native call UI
|
|
9
9
|
* integration.
|
|
10
10
|
*/
|
|
11
|
-
export {
|
|
11
|
+
export {
|
|
12
|
+
TelnyxVoipClient,
|
|
13
|
+
createTelnyxVoipClient,
|
|
14
|
+
createBackgroundTelnyxVoipClient,
|
|
15
|
+
} from './telnyx-voip-client';
|
|
12
16
|
export type { TelnyxVoipClientOptions } from './telnyx-voip-client';
|
|
13
17
|
export { TelnyxVoiceApp } from './telnyx-voice-app';
|
|
14
18
|
export type { TelnyxVoiceAppOptions, TelnyxVoiceAppProps } from './telnyx-voice-app';
|
|
15
19
|
export { useAppStateHandler } from './hooks/useAppStateHandler';
|
|
16
20
|
export { useTelnyxVoice } from './context/TelnyxVoiceContext';
|
|
17
21
|
export { Call } from './models/call';
|
|
18
|
-
export {
|
|
22
|
+
export {
|
|
23
|
+
TelnyxConnectionState,
|
|
24
|
+
isTelnyxConnectionState,
|
|
25
|
+
canMakeCalls,
|
|
26
|
+
isConnected,
|
|
27
|
+
isTransitioning,
|
|
28
|
+
} from './models/connection-state';
|
|
19
29
|
export { TelnyxCallState, isTelnyxCallState, CallStateHelpers } from './models/call-state';
|
|
20
|
-
export {
|
|
30
|
+
export {
|
|
31
|
+
isCredentialConfig,
|
|
32
|
+
isTokenConfig,
|
|
33
|
+
validateConfig,
|
|
34
|
+
validateCredentialConfig,
|
|
35
|
+
validateTokenConfig,
|
|
36
|
+
createCredentialConfig,
|
|
37
|
+
createTokenConfig,
|
|
38
|
+
} from './models/config';
|
|
21
39
|
export type { Config, CredentialConfig, TokenConfig } from './models/config';
|
|
22
40
|
export type { Call as TelnyxCall } from '@telnyx/react-native-voice-sdk';
|
|
23
41
|
export * from './callkit';
|