react-native-inapp-inspector 2.5.1 → 2.5.3
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/README.ar.md +151 -53
- package/README.de.md +150 -52
- package/README.es.md +139 -42
- package/README.fr.md +151 -53
- package/README.hi.md +141 -43
- package/README.ja.md +150 -69
- package/README.ko.md +153 -55
- package/README.md +73 -14
- package/README.pt-BR.md +152 -54
- package/README.ru.md +153 -55
- package/README.zh-CN.md +95 -219
- package/android/.gradle/9.2.0/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +1 -1
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/results.bin +1 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/BuildConfig.dex +0 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/InAppInspectorFloatingView$iconView$1.dex +0 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/InAppInspectorFloatingView.dex +0 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NativeNetworkInspectorSpec.dex +0 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$Companion.dex +0 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$activityEventListener$1.dex +0 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$frameCallback$1.dex +0 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$getCapturedMedia$lambda$57$$inlined$sortedByDescending$1.dex +0 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$shakeListener$1.dex +0 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$startVideoRecording$2$1.dex +0 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule.dex +0 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorPackage.dex +0 -0
- package/android/build/.transforms/ad628164ecef2a7cc593f0fd2f4050ce/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
- package/android/build/.transforms/c93e459e24d856bde563ebb048265732/results.bin +1 -0
- package/android/build/.transforms/c93e459e24d856bde563ebb048265732/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/generated/source/buildConfig/debug/com/inappinspector/BuildConfig.java +10 -0
- package/android/build/generated/source/codegen/java/com/inappinspector/NativeNetworkInspectorSpec.java +160 -0
- package/android/build/generated/source/codegen/jni/CMakeLists.txt +28 -0
- package/android/build/generated/source/codegen/jni/RNInAppInspectorSpec-generated.cpp +212 -0
- package/android/build/generated/source/codegen/jni/RNInAppInspectorSpec.h +31 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ComponentDescriptors.cpp +22 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ComponentDescriptors.h +24 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/EventEmitters.cpp +16 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/EventEmitters.h +17 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/Props.cpp +19 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/Props.h +18 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/RNInAppInspectorSpecJSI.h +300 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ShadowNodes.cpp +17 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ShadowNodes.h +23 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/States.cpp +16 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/States.h +20 -0
- package/android/build/generated/source/codegen/schema.json +1 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +7 -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/react-native-inapp-inspector_debug.kotlin_module +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/inappinspector/BuildConfig.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/inappinspector/NativeNetworkInspectorSpec.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 +7 -0
- package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +7 -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/react-native-inapp-inspector_debug.kotlin_module +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/BuildConfig.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/InAppInspectorFloatingView$iconView$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/InAppInspectorFloatingView.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NativeNetworkInspectorSpec.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$Companion.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$activityEventListener$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$frameCallback$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$getCapturedMedia$lambda$57$$inlined$sortedByDescending$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$shakeListener$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$startVideoRecording$2$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorPackage.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 +17 -0
- package/android/build/reports/problems/problems-report.html +659 -0
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/build/tmp/kotlin-classes/debug/META-INF/react-native-inapp-inspector_debug.kotlin_module +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/InAppInspectorFloatingView$iconView$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/InAppInspectorFloatingView.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$activityEventListener$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$frameCallback$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$getCapturedMedia$lambda$57$$inlined$sortedByDescending$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$shakeListener$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$startVideoRecording$2$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorPackage.class +0 -0
- package/android/src/main/java/com/inappinspector/NetworkInspectorModule.kt +154 -9
- package/dist/commonjs/capture.d.ts +5 -2
- package/dist/commonjs/capture.js +1 -1
- package/dist/commonjs/components/CountryFlag.d.ts +10 -0
- package/dist/commonjs/components/CountryFlag.js +140 -0
- package/dist/commonjs/components/EmptyState.js +6 -6
- package/dist/commonjs/components/Inspector/DeviceInfoTab.js +36 -36
- package/dist/commonjs/components/Inspector/FabLauncher.js +12 -12
- package/dist/commonjs/components/Inspector/FloatingCaptureWidget.js +23 -23
- package/dist/commonjs/components/Inspector/GlobalCrashScreenModal.js +24 -24
- package/dist/commonjs/components/Inspector/InspectorHeader.js +40 -42
- package/dist/commonjs/components/Inspector/LanguageSelectorModal.js +23 -18
- package/dist/commonjs/components/Inspector/MainScreen.js +17 -17
- package/dist/commonjs/components/Inspector/MediaGalleryTab.js +52 -34
- package/dist/commonjs/components/Inspector/MediaPreviewModal.d.ts +20 -18
- package/dist/commonjs/components/Inspector/MediaPreviewModal.js +742 -304
- package/dist/commonjs/components/Inspector/NetworkFilterModal.js +21 -21
- package/dist/commonjs/components/Inspector/SecondaryTelemetryStrip.js +6 -6
- package/dist/commonjs/components/Inspector/SocketFilterModal.js +12 -12
- package/dist/commonjs/components/Inspector/TabBar.js +3 -3
- package/dist/commonjs/components/Inspector/UpdateAvailableModal.js +2 -2
- package/dist/commonjs/components/MetaAccordion.js +17 -17
- package/dist/commonjs/components/ModuleErrorBoundary.js +4 -4
- package/dist/commonjs/components/NetworkIcons.d.ts +19 -0
- package/dist/commonjs/components/NetworkIcons.js +87 -3
- package/dist/commonjs/components/SourcePageCard.js +9 -9
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -1
- package/dist/commonjs/i18n/locales/ar.json +1 -1
- package/dist/commonjs/i18n/locales/bn.json +1 -1
- package/dist/commonjs/i18n/locales/de.json +1 -1
- package/dist/commonjs/i18n/locales/en.json +1 -1
- package/dist/commonjs/i18n/locales/es.json +1 -1
- package/dist/commonjs/i18n/locales/fr.json +1 -1
- package/dist/commonjs/i18n/locales/gu.json +1 -1
- package/dist/commonjs/i18n/locales/hi.json +1 -1
- package/dist/commonjs/i18n/locales/id.json +1 -1
- package/dist/commonjs/i18n/locales/it.json +1 -1
- package/dist/commonjs/i18n/locales/ja.json +1 -1
- package/dist/commonjs/i18n/locales/kn.json +1 -1
- package/dist/commonjs/i18n/locales/ko.json +1 -1
- package/dist/commonjs/i18n/locales/ml.json +1 -1
- package/dist/commonjs/i18n/locales/mr.json +1 -1
- package/dist/commonjs/i18n/locales/nl.json +1 -1
- package/dist/commonjs/i18n/locales/pa.json +1 -1
- package/dist/commonjs/i18n/locales/pl.json +1 -1
- package/dist/commonjs/i18n/locales/pt.json +1 -1
- package/dist/commonjs/i18n/locales/ru.json +1 -1
- package/dist/commonjs/i18n/locales/ta.json +1 -1
- package/dist/commonjs/i18n/locales/te.json +1 -1
- package/dist/commonjs/i18n/locales/tr.json +1 -1
- package/dist/commonjs/i18n/locales/vi.json +1 -1
- package/dist/commonjs/i18n/locales/zh.json +1 -1
- package/dist/commonjs/index.js +1 -1
- package/dist/commonjs/native/NativeInspector.d.ts +4 -0
- package/dist/commonjs/native/NativeInspector.js +1 -1
- package/dist/commonjs/native/NativeNetworkInspector.d.ts +1 -0
- package/dist/commonjs/styles/AppColors.d.ts +76 -0
- package/dist/commonjs/styles/AppColors.js +1 -1
- package/dist/commonjs/types/interfaces.d.ts +2 -0
- package/dist/esm/capture.d.ts +5 -2
- package/dist/esm/capture.js +1 -1
- package/dist/esm/components/CountryFlag.d.ts +10 -0
- package/dist/esm/components/CountryFlag.js +140 -0
- package/dist/esm/components/EmptyState.js +13 -13
- package/dist/esm/components/Inspector/DeviceInfoTab.js +176 -176
- package/dist/esm/components/Inspector/FabLauncher.js +37 -37
- package/dist/esm/components/Inspector/FloatingCaptureWidget.js +27 -27
- package/dist/esm/components/Inspector/GlobalCrashScreenModal.js +9 -9
- package/dist/esm/components/Inspector/InspectorHeader.js +43 -45
- package/dist/esm/components/Inspector/LanguageSelectorModal.js +107 -102
- package/dist/esm/components/Inspector/MainScreen.js +52 -52
- package/dist/esm/components/Inspector/MediaGalleryTab.js +100 -82
- package/dist/esm/components/Inspector/MediaPreviewModal.d.ts +20 -18
- package/dist/esm/components/Inspector/MediaPreviewModal.js +764 -326
- package/dist/esm/components/Inspector/NetworkFilterModal.js +37 -37
- package/dist/esm/components/Inspector/SecondaryTelemetryStrip.js +20 -20
- package/dist/esm/components/Inspector/SocketFilterModal.js +32 -32
- package/dist/esm/components/Inspector/TabBar.js +12 -12
- package/dist/esm/components/Inspector/UpdateAvailableModal.js +11 -11
- package/dist/esm/components/MetaAccordion.js +24 -24
- package/dist/esm/components/ModuleErrorBoundary.js +20 -20
- package/dist/esm/components/NetworkIcons.d.ts +19 -0
- package/dist/esm/components/NetworkIcons.js +89 -5
- package/dist/esm/components/SourcePageCard.js +21 -21
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/i18n/locales/ar.json +1 -1
- package/dist/esm/i18n/locales/bn.json +1 -1
- package/dist/esm/i18n/locales/de.json +1 -1
- package/dist/esm/i18n/locales/en.json +1 -1
- package/dist/esm/i18n/locales/es.json +1 -1
- package/dist/esm/i18n/locales/fr.json +1 -1
- package/dist/esm/i18n/locales/gu.json +1 -1
- package/dist/esm/i18n/locales/hi.json +1 -1
- package/dist/esm/i18n/locales/id.json +1 -1
- package/dist/esm/i18n/locales/it.json +1 -1
- package/dist/esm/i18n/locales/ja.json +1 -1
- package/dist/esm/i18n/locales/kn.json +1 -1
- package/dist/esm/i18n/locales/ko.json +1 -1
- package/dist/esm/i18n/locales/ml.json +1 -1
- package/dist/esm/i18n/locales/mr.json +1 -1
- package/dist/esm/i18n/locales/nl.json +1 -1
- package/dist/esm/i18n/locales/pa.json +1 -1
- package/dist/esm/i18n/locales/pl.json +1 -1
- package/dist/esm/i18n/locales/pt.json +1 -1
- package/dist/esm/i18n/locales/ru.json +1 -1
- package/dist/esm/i18n/locales/ta.json +1 -1
- package/dist/esm/i18n/locales/te.json +1 -1
- package/dist/esm/i18n/locales/tr.json +1 -1
- package/dist/esm/i18n/locales/vi.json +1 -1
- package/dist/esm/i18n/locales/zh.json +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/native/NativeInspector.d.ts +4 -0
- package/dist/esm/native/NativeInspector.js +1 -1
- package/dist/esm/native/NativeNetworkInspector.d.ts +1 -0
- package/dist/esm/styles/AppColors.d.ts +76 -0
- package/dist/esm/styles/AppColors.js +1 -1
- package/dist/esm/types/interfaces.d.ts +2 -0
- package/ios/NetworkInspectorModule.mm +487 -224
- package/package.json +1 -1
- package/react-native-inapp-inspector.podspec +1 -1
- package/src/native/NativeInspector.ts +22 -0
- package/src/native/NativeNetworkInspector.ts +1 -1
|
Binary file
|
|
Binary file
|
package/android/build/tmp/kotlin-classes/debug/com/inappinspector/InAppInspectorFloatingView.class
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule.class
ADDED
|
Binary file
|
package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorPackage.class
ADDED
|
Binary file
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
package com.inappinspector
|
|
2
2
|
|
|
3
|
+
import android.app.Activity
|
|
3
4
|
import android.app.ActivityManager
|
|
4
5
|
import android.content.Context
|
|
5
6
|
import android.content.Intent
|
|
@@ -23,6 +24,7 @@ import android.view.PixelCopy
|
|
|
23
24
|
import android.view.View
|
|
24
25
|
import android.view.Window
|
|
25
26
|
import com.facebook.react.bridge.Arguments
|
|
27
|
+
import com.facebook.react.bridge.BaseActivityEventListener
|
|
26
28
|
import com.facebook.react.bridge.Promise
|
|
27
29
|
import com.facebook.react.bridge.ReactApplicationContext
|
|
28
30
|
import com.facebook.react.bridge.ReactContextBaseJavaModule
|
|
@@ -35,6 +37,9 @@ import java.io.File
|
|
|
35
37
|
import java.io.FileOutputStream
|
|
36
38
|
import java.io.PrintWriter
|
|
37
39
|
import java.io.StringWriter
|
|
40
|
+
import java.text.SimpleDateFormat
|
|
41
|
+
import java.util.Date
|
|
42
|
+
import java.util.Locale
|
|
38
43
|
import java.util.Timer
|
|
39
44
|
import java.util.TimerTask
|
|
40
45
|
import java.util.concurrent.Executors
|
|
@@ -69,6 +74,91 @@ class NetworkInspectorModule(private val reactContext: ReactApplicationContext)
|
|
|
69
74
|
private var defaultHandler: Thread.UncaughtExceptionHandler? = null
|
|
70
75
|
private var isProtectionEnabled = false
|
|
71
76
|
|
|
77
|
+
private var pendingPickPromise: Promise? = null
|
|
78
|
+
private val PICK_MEDIA_REQUEST_CODE = 49281
|
|
79
|
+
|
|
80
|
+
private val activityEventListener = object : BaseActivityEventListener() {
|
|
81
|
+
override fun onActivityResult(activity: Activity, requestCode: Int, resultCode: Int, data: Intent?) {
|
|
82
|
+
if (requestCode == PICK_MEDIA_REQUEST_CODE) {
|
|
83
|
+
val promise = pendingPickPromise
|
|
84
|
+
pendingPickPromise = null
|
|
85
|
+
if (promise == null) return
|
|
86
|
+
|
|
87
|
+
if (resultCode != Activity.RESULT_OK || data?.data == null) {
|
|
88
|
+
promise.resolve(null)
|
|
89
|
+
return
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
captureExecutor.execute {
|
|
93
|
+
try {
|
|
94
|
+
val uri = data.data!!
|
|
95
|
+
val dir = getCapturesDirectory()
|
|
96
|
+
val contentResolver = reactContext.contentResolver
|
|
97
|
+
val mimeType = contentResolver.getType(uri) ?: ""
|
|
98
|
+
val isVideo = mimeType.startsWith("video/")
|
|
99
|
+
val isGif = mimeType.contains("gif")
|
|
100
|
+
val ext = when {
|
|
101
|
+
isVideo -> "mp4"
|
|
102
|
+
isGif -> "gif"
|
|
103
|
+
mimeType.contains("png") -> "png"
|
|
104
|
+
else -> "jpg"
|
|
105
|
+
}
|
|
106
|
+
val type = when {
|
|
107
|
+
isVideo -> "video"
|
|
108
|
+
isGif -> "gif"
|
|
109
|
+
else -> "image"
|
|
110
|
+
}
|
|
111
|
+
val timeStamp = System.currentTimeMillis()
|
|
112
|
+
val filename = "rn_iai_${timeStamp}_imported_${(1000..9999).random()}.${ext}"
|
|
113
|
+
val destFile = File(dir, filename)
|
|
114
|
+
|
|
115
|
+
contentResolver.openInputStream(uri)?.use { input ->
|
|
116
|
+
FileOutputStream(destFile).use { output ->
|
|
117
|
+
input.copyTo(output)
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
val map = Arguments.createMap().apply {
|
|
122
|
+
putString("id", filename)
|
|
123
|
+
putString("type", type)
|
|
124
|
+
putString("format", ext)
|
|
125
|
+
putString("uri", Uri.fromFile(destFile).toString())
|
|
126
|
+
putString("filename", filename)
|
|
127
|
+
putDouble("sizeBytes", destFile.length().toDouble())
|
|
128
|
+
putDouble("timestamp", destFile.lastModified().toDouble())
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
if (type == "video") {
|
|
132
|
+
try {
|
|
133
|
+
val thumbBaseName = filename.substringBeforeLast(".")
|
|
134
|
+
val thumbFile = File(dir, "${thumbBaseName}_thumb.jpg")
|
|
135
|
+
val retriever = MediaMetadataRetriever()
|
|
136
|
+
retriever.setDataSource(destFile.absolutePath)
|
|
137
|
+
val bmp = retriever.getFrameAtTime(0, MediaMetadataRetriever.OPTION_CLOSEST_SYNC)
|
|
138
|
+
if (bmp != null) {
|
|
139
|
+
FileOutputStream(thumbFile).use { fos ->
|
|
140
|
+
bmp.compress(Bitmap.CompressFormat.JPEG, 80, fos)
|
|
141
|
+
}
|
|
142
|
+
bmp.recycle()
|
|
143
|
+
map.putString("thumbnailUri", Uri.fromFile(thumbFile).toString())
|
|
144
|
+
}
|
|
145
|
+
retriever.release()
|
|
146
|
+
} catch (e: Exception) {}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
promise.resolve(map)
|
|
150
|
+
} catch (e: Exception) {
|
|
151
|
+
promise.reject("PICK_ERROR", e.message ?: "Failed to import media", e)
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
init {
|
|
159
|
+
reactContext.addActivityEventListener(activityEventListener)
|
|
160
|
+
}
|
|
161
|
+
|
|
72
162
|
|
|
73
163
|
override fun getName(): String {
|
|
74
164
|
return MODULE_NAME
|
|
@@ -737,6 +827,17 @@ class NetworkInspectorModule(private val reactContext: ReactApplicationContext)
|
|
|
737
827
|
return dir
|
|
738
828
|
}
|
|
739
829
|
|
|
830
|
+
/**
|
|
831
|
+
* Generates a filename in the format: rn_iai_{YYYYMMDD_HHmmss_SSS}_{fileType}_{random6}.{ext}
|
|
832
|
+
*/
|
|
833
|
+
private fun generateCaptureFilename(fileType: String, ext: String): String {
|
|
834
|
+
val dateFormat = SimpleDateFormat("yyyyMMdd_HHmmss_SSS", Locale.US)
|
|
835
|
+
val dateStamp = dateFormat.format(Date())
|
|
836
|
+
val chars = "abcdefghijklmnopqrstuvwxyz0123456789"
|
|
837
|
+
val random = (1..6).map { chars.random() }.joinToString("")
|
|
838
|
+
return "rn_iai_${dateStamp}_${fileType}_${random}.$ext"
|
|
839
|
+
}
|
|
840
|
+
|
|
740
841
|
private fun getActiveWindow(): Window? {
|
|
741
842
|
return reactContext.currentActivity?.window
|
|
742
843
|
}
|
|
@@ -847,7 +948,7 @@ class NetworkInspectorModule(private val reactContext: ReactApplicationContext)
|
|
|
847
948
|
}
|
|
848
949
|
|
|
849
950
|
val timestamp = System.currentTimeMillis()
|
|
850
|
-
val filename = "
|
|
951
|
+
val filename = generateCaptureFilename("screenshot", ext)
|
|
851
952
|
val file = File(getCapturesDirectory(), filename)
|
|
852
953
|
|
|
853
954
|
val bos = ByteArrayOutputStream()
|
|
@@ -979,7 +1080,7 @@ class NetworkInspectorModule(private val reactContext: ReactApplicationContext)
|
|
|
979
1080
|
recordedFrames.clear()
|
|
980
1081
|
}
|
|
981
1082
|
|
|
982
|
-
val filename = "
|
|
1083
|
+
val filename = generateCaptureFilename("video", "mp4")
|
|
983
1084
|
val file = File(getCapturesDirectory(), filename)
|
|
984
1085
|
|
|
985
1086
|
var width = 720
|
|
@@ -991,7 +1092,8 @@ class NetworkInspectorModule(private val reactContext: ReactApplicationContext)
|
|
|
991
1092
|
width = firstFrame.width
|
|
992
1093
|
height = firstFrame.height
|
|
993
1094
|
|
|
994
|
-
val
|
|
1095
|
+
val thumbBaseName = filename.substringBeforeLast(".").replace("_video_", "_thumb_")
|
|
1096
|
+
val thumbFile = File(getCapturesDirectory(), "${thumbBaseName}.jpg")
|
|
995
1097
|
FileOutputStream(thumbFile).use { fos ->
|
|
996
1098
|
firstFrame.compress(Bitmap.CompressFormat.JPEG, 85, fos)
|
|
997
1099
|
}
|
|
@@ -1041,7 +1143,7 @@ class NetworkInspectorModule(private val reactContext: ReactApplicationContext)
|
|
|
1041
1143
|
captureExecutor.execute {
|
|
1042
1144
|
try {
|
|
1043
1145
|
val timestamp = System.currentTimeMillis()
|
|
1044
|
-
val gifFile = File(getCapturesDirectory(), "
|
|
1146
|
+
val gifFile = File(getCapturesDirectory(), generateCaptureFilename("anim", "gif"))
|
|
1045
1147
|
|
|
1046
1148
|
val cleanUri = if (videoUri.startsWith("file://")) videoUri.substring(7) else videoUri
|
|
1047
1149
|
val sourceFile = File(cleanUri)
|
|
@@ -1124,7 +1226,9 @@ class NetworkInspectorModule(private val reactContext: ReactApplicationContext)
|
|
|
1124
1226
|
val files = dir.listFiles() ?: emptyArray()
|
|
1125
1227
|
val jsonArr = org.json.JSONArray()
|
|
1126
1228
|
|
|
1127
|
-
files.sortedByDescending { it.lastModified() }
|
|
1229
|
+
files.sortedByDescending { it.lastModified() }
|
|
1230
|
+
.filter { !it.name.contains("_thumb_") && !it.name.startsWith("thumb_") }
|
|
1231
|
+
.forEach { file ->
|
|
1128
1232
|
val ext = file.extension.lowercase()
|
|
1129
1233
|
val type = when (ext) {
|
|
1130
1234
|
"mp4", "mov" -> "video"
|
|
@@ -1143,8 +1247,14 @@ class NetworkInspectorModule(private val reactContext: ReactApplicationContext)
|
|
|
1143
1247
|
}
|
|
1144
1248
|
|
|
1145
1249
|
if (type == "video") {
|
|
1146
|
-
|
|
1147
|
-
val
|
|
1250
|
+
// Try new naming convention: replace _video_ with _thumb_ in base name
|
|
1251
|
+
val thumbBaseName = file.nameWithoutExtension.replace("_video_", "_thumb_")
|
|
1252
|
+
var thumbFile = File(dir, "${thumbBaseName}.jpg")
|
|
1253
|
+
// Fallback: legacy naming convention (thumb_{timestamp}.jpg)
|
|
1254
|
+
if (!thumbFile.exists()) {
|
|
1255
|
+
val suffix = file.nameWithoutExtension.removePrefix("video_")
|
|
1256
|
+
thumbFile = File(dir, "thumb_${suffix}.jpg")
|
|
1257
|
+
}
|
|
1148
1258
|
if (thumbFile.exists()) {
|
|
1149
1259
|
obj.put("thumbnailUri", Uri.fromFile(thumbFile).toString())
|
|
1150
1260
|
} else {
|
|
@@ -1204,6 +1314,40 @@ class NetworkInspectorModule(private val reactContext: ReactApplicationContext)
|
|
|
1204
1314
|
}
|
|
1205
1315
|
}
|
|
1206
1316
|
|
|
1317
|
+
@ReactMethod
|
|
1318
|
+
fun pickMedia(options: ReadableMap?, promise: Promise) {
|
|
1319
|
+
val activity = reactContext.currentActivity
|
|
1320
|
+
if (activity == null) {
|
|
1321
|
+
promise.reject("NO_ACTIVITY", "Current activity is null")
|
|
1322
|
+
return
|
|
1323
|
+
}
|
|
1324
|
+
pendingPickPromise = promise
|
|
1325
|
+
val mediaType = if (options?.hasKey("mediaType") == true) options.getString("mediaType") else "any"
|
|
1326
|
+
|
|
1327
|
+
val intent = Intent(Intent.ACTION_GET_CONTENT).apply {
|
|
1328
|
+
when (mediaType) {
|
|
1329
|
+
"image" -> {
|
|
1330
|
+
type = "image/*"
|
|
1331
|
+
}
|
|
1332
|
+
"video" -> {
|
|
1333
|
+
type = "video/*"
|
|
1334
|
+
}
|
|
1335
|
+
else -> {
|
|
1336
|
+
type = "*/*"
|
|
1337
|
+
putExtra(Intent.EXTRA_MIME_TYPES, arrayOf("image/*", "video/*"))
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
addCategory(Intent.CATEGORY_OPENABLE)
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
try {
|
|
1344
|
+
activity.startActivityForResult(Intent.createChooser(intent, "Select Media"), PICK_MEDIA_REQUEST_CODE)
|
|
1345
|
+
} catch (e: Exception) {
|
|
1346
|
+
pendingPickPromise = null
|
|
1347
|
+
promise.reject("PICK_LAUNCH_ERROR", e.message ?: "Failed to open media picker", e)
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1207
1351
|
@ReactMethod
|
|
1208
1352
|
fun copyMediaToClipboard(filePath: String, promise: Promise) {
|
|
1209
1353
|
val activity = reactContext.currentActivity ?: reactContext
|
|
@@ -1279,8 +1423,9 @@ class NetworkInspectorModule(private val reactContext: ReactApplicationContext)
|
|
|
1279
1423
|
}
|
|
1280
1424
|
|
|
1281
1425
|
val sourceBitmap = if (cleanPath.startsWith("content://")) {
|
|
1282
|
-
|
|
1283
|
-
|
|
1426
|
+
reactContext.contentResolver.openInputStream(Uri.parse(cleanPath))?.use { input ->
|
|
1427
|
+
android.graphics.BitmapFactory.decodeStream(input)
|
|
1428
|
+
}
|
|
1284
1429
|
} else {
|
|
1285
1430
|
android.graphics.BitmapFactory.decodeFile(cleanPath)
|
|
1286
1431
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { ScreenshotOptions, ScreenshotResult, RecordingOptions, RecordingResult, GifConversionOptions, CapturedMediaItem } from './native/NativeInspector';
|
|
2
|
-
export type { ScreenshotOptions, ScreenshotResult, RecordingOptions, RecordingResult, GifConversionOptions, CapturedMediaItem, };
|
|
1
|
+
import { ScreenshotOptions, ScreenshotResult, RecordingOptions, RecordingResult, GifConversionOptions, CapturedMediaItem, PickMediaOptions } from './native/NativeInspector';
|
|
2
|
+
export type { ScreenshotOptions, ScreenshotResult, RecordingOptions, RecordingResult, GifConversionOptions, CapturedMediaItem, PickMediaOptions, };
|
|
3
3
|
export type ImageFormat = 'png' | 'jpeg' | 'webp';
|
|
4
4
|
export type AudioSource = 'none' | 'app' | 'mic' | 'mixed';
|
|
5
5
|
export type RecordingFormat = 'mp4' | 'gif';
|
|
6
|
+
export declare const generateCaptureId: (fileType: string, ext: string) => string;
|
|
6
7
|
export declare const ScreenCapture: {
|
|
7
8
|
takeScreenshot: (options?: ScreenshotOptions) => Promise<ScreenshotResult | null>;
|
|
8
9
|
captureScreenshot: (options?: ScreenshotOptions) => Promise<ScreenshotResult | null>;
|
|
@@ -14,6 +15,7 @@ export declare const ScreenCapture: {
|
|
|
14
15
|
getMediaList: () => Promise<CapturedMediaItem[]>;
|
|
15
16
|
deleteMedia: (uri: string) => Promise<boolean>;
|
|
16
17
|
clearAllMedia: () => Promise<boolean>;
|
|
18
|
+
pickMedia: (options?: PickMediaOptions) => Promise<CapturedMediaItem | null>;
|
|
17
19
|
};
|
|
18
20
|
export declare const ScreenRecorder: {
|
|
19
21
|
takeScreenshot: (options?: ScreenshotOptions) => Promise<ScreenshotResult | null>;
|
|
@@ -26,5 +28,6 @@ export declare const ScreenRecorder: {
|
|
|
26
28
|
getMediaList: () => Promise<CapturedMediaItem[]>;
|
|
27
29
|
deleteMedia: (uri: string) => Promise<boolean>;
|
|
28
30
|
clearAllMedia: () => Promise<boolean>;
|
|
31
|
+
pickMedia: (options?: PickMediaOptions) => Promise<CapturedMediaItem | null>;
|
|
29
32
|
};
|
|
30
33
|
export default ScreenCapture;
|
package/dist/commonjs/capture.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ScreenRecorder=exports.ScreenCapture=void 0;const NativeInspector_1=require("./native/NativeInspector");exports.ScreenCapture={takeScreenshot:async e=>(0,NativeInspector_1.takeNativeScreenshot)(e),captureScreenshot:async e=>(0,NativeInspector_1.takeNativeScreenshot)(e),startRecording:async e=>(0,NativeInspector_1.startNativeVideoRecording)(e),stopRecording:async()=>(0,NativeInspector_1.stopNativeVideoRecording)(),isRecording:async()=>(0,NativeInspector_1.isNativeRecordingActive)(),playVideo:async e=>(0,NativeInspector_1.playNativeVideo)(e),convertToGif:async(e,
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ScreenRecorder=exports.ScreenCapture=exports.generateCaptureId=void 0;const NativeInspector_1=require("./native/NativeInspector"),generateCaptureId=(e,n)=>{const t=new Date,r=(a,s=2)=>String(a).padStart(s,"0"),c=`${t.getFullYear()}${r(t.getMonth()+1)}${r(t.getDate())}_${r(t.getHours())}${r(t.getMinutes())}${r(t.getSeconds())}_${r(t.getMilliseconds(),3)}`,o="abcdefghijklmnopqrstuvwxyz0123456789";let i="";for(let a=0;a<6;a++)i+=o[Math.floor(Math.random()*o.length)];return`rn_iai_${c}_${e}_${i}.${n}`};exports.generateCaptureId=generateCaptureId,exports.ScreenCapture={takeScreenshot:async e=>(0,NativeInspector_1.takeNativeScreenshot)(e),captureScreenshot:async e=>(0,NativeInspector_1.takeNativeScreenshot)(e),startRecording:async e=>(0,NativeInspector_1.startNativeVideoRecording)(e),stopRecording:async()=>(0,NativeInspector_1.stopNativeVideoRecording)(),isRecording:async()=>(0,NativeInspector_1.isNativeRecordingActive)(),playVideo:async e=>(0,NativeInspector_1.playNativeVideo)(e),convertToGif:async(e,n)=>(0,NativeInspector_1.convertNativeVideoToGif)(e,n),getMediaList:async()=>(0,NativeInspector_1.fetchCapturedMediaList)(),deleteMedia:async e=>(0,NativeInspector_1.deleteCapturedMediaFile)(e),clearAllMedia:async()=>(0,NativeInspector_1.clearAllCapturedMediaFiles)(),pickMedia:async e=>(0,NativeInspector_1.pickNativeMedia)(e)},exports.ScreenRecorder=exports.ScreenCapture,exports.default=exports.ScreenCapture;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
export interface CountryFlagProps {
|
|
4
|
+
code: string;
|
|
5
|
+
size?: number;
|
|
6
|
+
borderRadius?: number;
|
|
7
|
+
style?: StyleProp<ViewStyle>;
|
|
8
|
+
}
|
|
9
|
+
export declare const CountryFlag: React.FC<CountryFlagProps>;
|
|
10
|
+
export default CountryFlag;
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(i,t,l,r){r===void 0&&(r=l);var e=Object.getOwnPropertyDescriptor(t,l);(!e||("get"in e?!t.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return t[l]}}),Object.defineProperty(i,r,e)}):(function(i,t,l,r){r===void 0&&(r=l),i[r]=t[l]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(i,t){Object.defineProperty(i,"default",{enumerable:!0,value:t})}):function(i,t){i.default=t}),__importStar=this&&this.__importStar||(function(){var i=function(t){return i=Object.getOwnPropertyNames||function(l){var r=[];for(var e in l)Object.prototype.hasOwnProperty.call(l,e)&&(r[r.length]=e);return r},i(t)};return function(t){if(t&&t.__esModule)return t;var l={};if(t!=null)for(var r=i(t),e=0;e<r.length;e++)r[e]!=="default"&&__createBinding(l,t,r[e]);return __setModuleDefault(l,t),l}})(),__importDefault=this&&this.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.CountryFlag=void 0;const react_1=__importDefault(require("react")),react_native_1=require("react-native"),react_native_svg_1=__importStar(require("react-native-svg")),AppColors_1=require("../styles/AppColors"),CountryFlag=({code:i,size:t=18,borderRadius:l=3,style:r})=>{const e=t*1.35,h=t,c=(i||"").toLowerCase().trim(),F=()=>{switch(c){case"us":case"en":return<react_native_svg_1.G>
|
|
2
|
+
|
|
3
|
+
<react_native_svg_1.Rect width="24"height="18"fill="#FFFFFF"/>
|
|
4
|
+
|
|
5
|
+
<react_native_svg_1.Rect y="0"width="24"height="1.38"fill="#B22234"/>
|
|
6
|
+
<react_native_svg_1.Rect y="2.76"width="24"height="1.38"fill="#B22234"/>
|
|
7
|
+
<react_native_svg_1.Rect y="5.52"width="24"height="1.38"fill="#B22234"/>
|
|
8
|
+
<react_native_svg_1.Rect y="8.28"width="24"height="1.38"fill="#B22234"/>
|
|
9
|
+
<react_native_svg_1.Rect y="11.04"width="24"height="1.38"fill="#B22234"/>
|
|
10
|
+
<react_native_svg_1.Rect y="13.8"width="24"height="1.38"fill="#B22234"/>
|
|
11
|
+
<react_native_svg_1.Rect y="16.56"width="24"height="1.44"fill="#B22234"/>
|
|
12
|
+
|
|
13
|
+
<react_native_svg_1.Rect width="10"height="9.69"fill="#3C3B6E"/>
|
|
14
|
+
|
|
15
|
+
<react_native_svg_1.Circle cx="2.5"cy="2.5"r="0.75"fill="#FFFFFF"/>
|
|
16
|
+
<react_native_svg_1.Circle cx="5.0"cy="2.5"r="0.75"fill="#FFFFFF"/>
|
|
17
|
+
<react_native_svg_1.Circle cx="7.5"cy="2.5"r="0.75"fill="#FFFFFF"/>
|
|
18
|
+
<react_native_svg_1.Circle cx="3.75"cy="4.85"r="0.75"fill="#FFFFFF"/>
|
|
19
|
+
<react_native_svg_1.Circle cx="6.25"cy="4.85"r="0.75"fill="#FFFFFF"/>
|
|
20
|
+
<react_native_svg_1.Circle cx="2.5"cy="7.2"r="0.75"fill="#FFFFFF"/>
|
|
21
|
+
<react_native_svg_1.Circle cx="5.0"cy="7.2"r="0.75"fill="#FFFFFF"/>
|
|
22
|
+
<react_native_svg_1.Circle cx="7.5"cy="7.2"r="0.75"fill="#FFFFFF"/>
|
|
23
|
+
</react_native_svg_1.G>;case"in":case"hi":case"ta":case"te":case"kn":case"ml":case"bn":case"mr":case"gu":case"pa":return<react_native_svg_1.G>
|
|
24
|
+
|
|
25
|
+
<react_native_svg_1.Rect y="0"width="24"height="6"fill="#FF9933"/>
|
|
26
|
+
|
|
27
|
+
<react_native_svg_1.Rect y="6"width="24"height="6"fill="#FFFFFF"/>
|
|
28
|
+
|
|
29
|
+
<react_native_svg_1.Rect y="12"width="24"height="6"fill="#138808"/>
|
|
30
|
+
|
|
31
|
+
<react_native_svg_1.Circle cx="12"cy="9"r="2.2"stroke="#000080"strokeWidth="0.5"fill="none"/>
|
|
32
|
+
<react_native_svg_1.Circle cx="12"cy="9"r="0.6"fill="#000080"/>
|
|
33
|
+
<react_native_svg_1.Path d="M12 6.8v4.4M9.8 9h4.4M10.4 7.4l3.2 3.2M10.4 10.6l3.2-3.2"stroke="#000080"strokeWidth="0.35"/>
|
|
34
|
+
</react_native_svg_1.G>;case"gb":case"uk":return<react_native_svg_1.G>
|
|
35
|
+
<react_native_svg_1.Rect width="24"height="18"fill="#012169"/>
|
|
36
|
+
|
|
37
|
+
<react_native_svg_1.Path d="M0 0L24 18M24 0L0 18"stroke="#FFFFFF"strokeWidth="3.2"/>
|
|
38
|
+
|
|
39
|
+
<react_native_svg_1.Path d="M0 0L24 18M24 0L0 18"stroke="#C8102E"strokeWidth="1.6"/>
|
|
40
|
+
|
|
41
|
+
<react_native_svg_1.Path d="M12 0v18M0 9h24"stroke="#FFFFFF"strokeWidth="5.5"/>
|
|
42
|
+
|
|
43
|
+
<react_native_svg_1.Path d="M12 0v18M0 9h24"stroke="#C8102E"strokeWidth="3.2"/>
|
|
44
|
+
</react_native_svg_1.G>;case"es":return<react_native_svg_1.G>
|
|
45
|
+
|
|
46
|
+
<react_native_svg_1.Rect y="0"width="24"height="4.5"fill="#AA151B"/>
|
|
47
|
+
|
|
48
|
+
<react_native_svg_1.Rect y="4.5"width="24"height="9"fill="#F1BF00"/>
|
|
49
|
+
|
|
50
|
+
<react_native_svg_1.Rect y="13.5"width="24"height="4.5"fill="#AA151B"/>
|
|
51
|
+
|
|
52
|
+
<react_native_svg_1.Rect x="5"y="7"width="2.5"height="4"rx="0.5"fill="#AA151B"/>
|
|
53
|
+
<react_native_svg_1.Circle cx="6.25"cy="6.2"r="0.75"fill="#C8102E"/>
|
|
54
|
+
</react_native_svg_1.G>;case"fr":return<react_native_svg_1.G>
|
|
55
|
+
<react_native_svg_1.Rect x="0"y="0"width="8"height="18"fill="#002395"/>
|
|
56
|
+
<react_native_svg_1.Rect x="8"y="0"width="8"height="18"fill="#FFFFFF"/>
|
|
57
|
+
<react_native_svg_1.Rect x="16"y="0"width="8"height="18"fill="#ED2939"/>
|
|
58
|
+
</react_native_svg_1.G>;case"de":return<react_native_svg_1.G>
|
|
59
|
+
<react_native_svg_1.Rect y="0"width="24"height="6"fill="#000000"/>
|
|
60
|
+
<react_native_svg_1.Rect y="6"width="24"height="6"fill="#DD0000"/>
|
|
61
|
+
<react_native_svg_1.Rect y="12"width="24"height="6"fill="#FFCE00"/>
|
|
62
|
+
</react_native_svg_1.G>;case"zh":case"cn":return<react_native_svg_1.G>
|
|
63
|
+
<react_native_svg_1.Rect width="24"height="18"fill="#DE2910"/>
|
|
64
|
+
|
|
65
|
+
<react_native_svg_1.Polygon points="4.5,2 5.2,3.8 7,4 5.6,5.2 6,7 4.5,5.9 3,7 3.4,5.2 2,4 3.8,3.8"fill="#FFDE00"/>
|
|
66
|
+
|
|
67
|
+
<react_native_svg_1.Circle cx="8.5"cy="2.5"r="0.65"fill="#FFDE00"/>
|
|
68
|
+
<react_native_svg_1.Circle cx="9.8"cy="4.2"r="0.65"fill="#FFDE00"/>
|
|
69
|
+
<react_native_svg_1.Circle cx="9.8"cy="6.4"r="0.65"fill="#FFDE00"/>
|
|
70
|
+
<react_native_svg_1.Circle cx="8.5"cy="8.2"r="0.65"fill="#FFDE00"/>
|
|
71
|
+
</react_native_svg_1.G>;case"ja":case"jp":return<react_native_svg_1.G>
|
|
72
|
+
<react_native_svg_1.Rect width="24"height="18"fill="#FFFFFF"/>
|
|
73
|
+
<react_native_svg_1.Circle cx="12"cy="9"r="4.2"fill="#BC002D"/>
|
|
74
|
+
</react_native_svg_1.G>;case"ko":case"kr":return<react_native_svg_1.G>
|
|
75
|
+
<react_native_svg_1.Rect width="24"height="18"fill="#FFFFFF"/>
|
|
76
|
+
|
|
77
|
+
<react_native_svg_1.Circle cx="12"cy="9"r="3.6"fill="#C60C30"/>
|
|
78
|
+
<react_native_svg_1.Path d="M12 9a1.8 1.8 0 0 1 0 3.6 3.6 3.6 0 0 1 0-7.2 1.8 1.8 0 0 0 0 3.6z"fill="#003478"/>
|
|
79
|
+
|
|
80
|
+
<react_native_svg_1.Rect x="4"y="3.5"width="2"height="0.6"fill="#000000"/>
|
|
81
|
+
<react_native_svg_1.Rect x="4"y="4.5"width="2"height="0.6"fill="#000000"/>
|
|
82
|
+
<react_native_svg_1.Rect x="18"y="13"width="2"height="0.6"fill="#000000"/>
|
|
83
|
+
<react_native_svg_1.Rect x="18"y="14"width="2"height="0.6"fill="#000000"/>
|
|
84
|
+
</react_native_svg_1.G>;case"br":case"pt":return<react_native_svg_1.G>
|
|
85
|
+
<react_native_svg_1.Rect width="24"height="18"fill="#009739"/>
|
|
86
|
+
<react_native_svg_1.Polygon points="12,2 22,9 12,16 2,9"fill="#FEDD00"/>
|
|
87
|
+
<react_native_svg_1.Circle cx="12"cy="9"r="3.2"fill="#012169"/>
|
|
88
|
+
<react_native_svg_1.Path d="M9.2 8.5a3.2 3.2 0 0 1 5.6 1"stroke="#FFFFFF"strokeWidth="0.6"fill="none"/>
|
|
89
|
+
</react_native_svg_1.G>;case"ru":return<react_native_svg_1.G>
|
|
90
|
+
<react_native_svg_1.Rect y="0"width="24"height="6"fill="#FFFFFF"/>
|
|
91
|
+
<react_native_svg_1.Rect y="6"width="24"height="6"fill="#0039A6"/>
|
|
92
|
+
<react_native_svg_1.Rect y="12"width="24"height="6"fill="#D52B1E"/>
|
|
93
|
+
</react_native_svg_1.G>;case"ar":case"sa":return<react_native_svg_1.G>
|
|
94
|
+
<react_native_svg_1.Rect width="24"height="18"fill="#006C35"/>
|
|
95
|
+
|
|
96
|
+
<react_native_svg_1.Path d="M6 12h12M16 11l2 1-2 1"stroke="#FFFFFF"strokeWidth="0.8"strokeLinecap="round"/>
|
|
97
|
+
<react_native_svg_1.Circle cx="12"cy="7.5"r="1.5"stroke="#FFFFFF"strokeWidth="0.6"fill="none"/>
|
|
98
|
+
</react_native_svg_1.G>;case"it":return<react_native_svg_1.G>
|
|
99
|
+
<react_native_svg_1.Rect x="0"y="0"width="8"height="18"fill="#009246"/>
|
|
100
|
+
<react_native_svg_1.Rect x="8"y="0"width="8"height="18"fill="#FFFFFF"/>
|
|
101
|
+
<react_native_svg_1.Rect x="16"y="0"width="8"height="18"fill="#CE2B37"/>
|
|
102
|
+
</react_native_svg_1.G>;case"id":return<react_native_svg_1.G>
|
|
103
|
+
<react_native_svg_1.Rect y="0"width="24"height="9"fill="#E70011"/>
|
|
104
|
+
<react_native_svg_1.Rect y="9"width="24"height="9"fill="#FFFFFF"/>
|
|
105
|
+
</react_native_svg_1.G>;case"tr":return<react_native_svg_1.G>
|
|
106
|
+
<react_native_svg_1.Rect width="24"height="18"fill="#E30A17"/>
|
|
107
|
+
|
|
108
|
+
<react_native_svg_1.Circle cx="10"cy="9"r="3.6"fill="#FFFFFF"/>
|
|
109
|
+
<react_native_svg_1.Circle cx="11"cy="9"r="2.9"fill="#E30A17"/>
|
|
110
|
+
|
|
111
|
+
<react_native_svg_1.Polygon points="14.5,7.8 14.8,8.8 15.8,8.8 15,9.4 15.3,10.4 14.5,9.8 13.7,10.4 14,9.4 13.2,8.8 14.2,8.8"fill="#FFFFFF"/>
|
|
112
|
+
</react_native_svg_1.G>;case"vi":case"vn":return<react_native_svg_1.G>
|
|
113
|
+
<react_native_svg_1.Rect width="24"height="18"fill="#DA251D"/>
|
|
114
|
+
|
|
115
|
+
<react_native_svg_1.Polygon points="12,3.5 13.7,8.8 19.2,8.8 14.8,12 16.5,17.3 12,14 7.5,17.3 9.2,12 4.8,8.8 10.3,8.8"fill="#FFFF00"/>
|
|
116
|
+
</react_native_svg_1.G>;case"nl":return<react_native_svg_1.G>
|
|
117
|
+
<react_native_svg_1.Rect y="0"width="24"height="6"fill="#AE1C28"/>
|
|
118
|
+
<react_native_svg_1.Rect y="6"width="24"height="6"fill="#FFFFFF"/>
|
|
119
|
+
<react_native_svg_1.Rect y="12"width="24"height="6"fill="#21468B"/>
|
|
120
|
+
</react_native_svg_1.G>;case"pl":return<react_native_svg_1.G>
|
|
121
|
+
<react_native_svg_1.Rect y="0"width="24"height="9"fill="#FFFFFF"/>
|
|
122
|
+
<react_native_svg_1.Rect y="9"width="24"height="9"fill="#DC143C"/>
|
|
123
|
+
</react_native_svg_1.G>;default:return<react_native_svg_1.G>
|
|
124
|
+
<react_native_svg_1.Rect width="24"height="18"fill="#1E293B"/>
|
|
125
|
+
<react_native_svg_1.Circle cx="12"cy="9"r="6.5"stroke="#38BDF8"strokeWidth="1.2"fill="#0F172A"/>
|
|
126
|
+
<react_native_svg_1.Path d="M5.5 9h13M12 2.5a8.5 8.5 0 0 1 0 13 8.5 8.5 0 0 1 0-13z"stroke="#38BDF8"strokeWidth="1"fill="none"/>
|
|
127
|
+
</react_native_svg_1.G>}};return<react_native_1.View style={[styles.container,{width:e,height:h,borderRadius:l},r]}>
|
|
128
|
+
<react_native_svg_1.default width={e}height={h}viewBox="0 0 24 18">
|
|
129
|
+
<react_native_svg_1.Defs>
|
|
130
|
+
<react_native_svg_1.ClipPath id={`clip-${c}-${t}`}>
|
|
131
|
+
<react_native_svg_1.Rect width="24"height="18"rx={l*(24/e)}/>
|
|
132
|
+
</react_native_svg_1.ClipPath>
|
|
133
|
+
</react_native_svg_1.Defs>
|
|
134
|
+
<react_native_svg_1.G clipPath={`url(#clip-${c}-${t})`}>
|
|
135
|
+
{F()}
|
|
136
|
+
</react_native_svg_1.G>
|
|
137
|
+
|
|
138
|
+
<react_native_svg_1.Rect width="24"height="18"rx={l*(24/e)}fill="none"stroke={AppColors_1.AppColors.overlayWhite20||"rgba(255,255,255,0.2)"}strokeWidth="0.8"/>
|
|
139
|
+
</react_native_svg_1.default>
|
|
140
|
+
</react_native_1.View>};exports.CountryFlag=CountryFlag;const styles=react_native_1.StyleSheet.create({container:{overflow:"hidden",justifyContent:"center",alignItems:"center"}});exports.default=exports.CountryFlag;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(t,e,
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var a=Object.getOwnPropertyDescriptor(e,r);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,a)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),__importStar=this&&this.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[n.length]=a);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),a=0;a<n.length;a++)n[a]!=="default"&&__createBinding(r,e,n[a]);return __setModuleDefault(r,e),r}})(),__importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importStar(require("react")),react_native_1=require("react-native"),TouchableScale_1=__importDefault(require("./TouchableScale")),AnimatedEntrance_1=__importDefault(require("./AnimatedEntrance")),NetworkIcons_1=require("./NetworkIcons"),AppColors_1=require("../styles/AppColors"),styles_1=__importDefault(require("../styles")),i18n_1=require("../i18n"),EmptyState=react_1.default.memo(function({isSearch:e,searchQuery:r,customTitle:n,customSub:a,onClearSearch:i,showReload:s=!0}){const{t:o}=(0,i18n_1.useTranslation)(),l=(0,react_1.useRef)(new react_native_1.Animated.Value(1)).current;(0,react_1.useEffect)(()=>{const u=react_native_1.Animated.loop(react_native_1.Animated.sequence([react_native_1.Animated.timing(l,{toValue:1.06,duration:900,useNativeDriver:!1}),react_native_1.Animated.timing(l,{toValue:1,duration:900,useNativeDriver:!1})]));return u.start(),()=>u.stop()},[l]);const c=()=>{if(__DEV__&&react_native_1.DevSettings&&react_native_1.DevSettings.reload){react_native_1.DevSettings.reload();return}react_native_1.Alert.alert(o("common.reload","Reload"),o("common.reloadDevOnly","App reload is typically only available in development mode."))};return<AnimatedEntrance_1.default style={styles_1.default.emptyContainer}distance={14}>
|
|
2
2
|
<react_native_1.Animated.View style={[styles_1.default.emptyIconWrap,{transform:[{scale:l}]}]}>
|
|
3
3
|
<NetworkIcons_1.EmptyRadarIcon color={AppColors_1.AppColors.purple}size={32}/>
|
|
4
4
|
</react_native_1.Animated.View>
|
|
5
5
|
<react_native_1.Text style={styles_1.default.emptyTitle}>
|
|
6
|
-
{
|
|
6
|
+
{n||(e?o("common.noMatches","No matching results"):o("network.noActivity","No network activity"))}
|
|
7
7
|
</react_native_1.Text>
|
|
8
8
|
<react_native_1.Text style={styles_1.default.emptySub}>
|
|
9
|
-
{
|
|
9
|
+
{a||(e?r?`${o("common.noItemsMatched","No items matched")} "${r}"`:o("common.adjustFilters","Try adjusting your filters or search keywords."):o("network.listening","Listening for incoming API calls..."))}
|
|
10
10
|
</react_native_1.Text>
|
|
11
11
|
{e&&i&&<TouchableScale_1.default style={styles_1.default.reloadBtn}onPress={i}>
|
|
12
|
-
<react_native_1.Text style={styles_1.default.reloadBtnText}>Clear Search & Filters</react_native_1.Text>
|
|
12
|
+
<react_native_1.Text style={styles_1.default.reloadBtnText}>{o("common.clearSearchFilters","Clear Search & Filters")}</react_native_1.Text>
|
|
13
13
|
</TouchableScale_1.default>}
|
|
14
|
-
{!e&&
|
|
15
|
-
<react_native_1.Text style={styles_1.default.reloadBtnText}>Reload App</react_native_1.Text>
|
|
14
|
+
{!e&&s&&<TouchableScale_1.default style={styles_1.default.reloadBtn}onPress={c}>
|
|
15
|
+
<react_native_1.Text style={styles_1.default.reloadBtnText}>{o("common.reloadApp","Reload App")}</react_native_1.Text>
|
|
16
16
|
</TouchableScale_1.default>}
|
|
17
17
|
</AnimatedEntrance_1.default>});exports.default=EmptyState;
|