@appsonair.ir/react-native 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/build/.transforms/200c703f56cba8293fae35d5b35891b9/results.bin +1 -0
- package/android/build/.transforms/200c703f56cba8293fae35d5b35891b9/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/.transforms/258459e9c210bd80984731dbf1be5d94/results.bin +1 -0
- package/android/build/.transforms/258459e9c210bd80984731dbf1be5d94/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/otaupdater/BuildConfig.dex +0 -0
- package/android/build/.transforms/258459e9c210bd80984731dbf1be5d94/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/otaupdater/OTAApkInstallHelper.dex +0 -0
- package/android/build/.transforms/258459e9c210bd80984731dbf1be5d94/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/otaupdater/OTAReactHostFactory.dex +0 -0
- package/android/build/.transforms/258459e9c210bd80984731dbf1be5d94/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/otaupdater/OTARestartActivity.dex +0 -0
- package/android/build/.transforms/258459e9c210bd80984731dbf1be5d94/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/otaupdater/OTARestartHelper.dex +0 -0
- package/android/build/.transforms/258459e9c210bd80984731dbf1be5d94/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/otaupdater/OTAUpdaterModule$1.dex +0 -0
- package/android/build/.transforms/258459e9c210bd80984731dbf1be5d94/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/otaupdater/OTAUpdaterModule$Companion.dex +0 -0
- package/android/build/.transforms/258459e9c210bd80984731dbf1be5d94/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/otaupdater/OTAUpdaterModule.dex +0 -0
- package/android/build/.transforms/258459e9c210bd80984731dbf1be5d94/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/otaupdater/OTAUpdaterPackage.dex +0 -0
- package/android/build/.transforms/258459e9c210bd80984731dbf1be5d94/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/otaupdater/OTAUpdaterStorage$NativeInfo.dex +0 -0
- package/android/build/.transforms/258459e9c210bd80984731dbf1be5d94/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/otaupdater/OTAUpdaterStorage.dex +0 -0
- package/android/build/.transforms/258459e9c210bd80984731dbf1be5d94/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/otaupdater/OTAZipExtractHelper.dex +0 -0
- package/android/build/.transforms/258459e9c210bd80984731dbf1be5d94/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
- package/android/build/generated/source/buildConfig/debug/com/otaupdater/BuildConfig.java +10 -0
- package/android/build/generated/source/codegen/jni/CMakeLists.txt +28 -0
- package/android/build/generated/source/codegen/jni/OtaUpdaterSpec-generated.cpp +22 -0
- package/android/build/generated/source/codegen/jni/OtaUpdaterSpec.h +24 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/OtaUpdaterSpec/ComponentDescriptors.cpp +22 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/OtaUpdaterSpec/ComponentDescriptors.h +24 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/OtaUpdaterSpec/EventEmitters.cpp +16 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/OtaUpdaterSpec/EventEmitters.h +17 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/OtaUpdaterSpec/OtaUpdaterSpecJSI.h +19 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/OtaUpdaterSpec/Props.cpp +19 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/OtaUpdaterSpec/Props.h +18 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/OtaUpdaterSpec/ShadowNodes.cpp +17 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/OtaUpdaterSpec/ShadowNodes.h +23 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/OtaUpdaterSpec/States.cpp +16 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/OtaUpdaterSpec/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 +27 -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 +1 -0
- package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/xml_ota_file_paths.xml.flat +0 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +2 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugAssets/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/java_res/debug/processDebugJavaRes/out/META-INF/ota-updater_debug.kotlin_module +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/otaupdater/BuildConfig.class +0 -0
- package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +3 -0
- package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +43 -0
- package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +27 -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/packaged_res/debug/packageDebugResources/xml/ota_file_paths.xml +6 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/ota-updater_debug.kotlin_module +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/otaupdater/BuildConfig.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/otaupdater/OTAApkInstallHelper.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/otaupdater/OTAReactHostFactory.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/otaupdater/OTARestartActivity.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/otaupdater/OTARestartHelper.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/otaupdater/OTAUpdaterModule$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/otaupdater/OTAUpdaterModule$Companion.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/otaupdater/OTAUpdaterModule.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/otaupdater/OTAUpdaterPackage.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/otaupdater/OTAUpdaterStorage$NativeInfo.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/otaupdater/OTAUpdaterStorage.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/otaupdater/OTAZipExtractHelper.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 +2 -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 +48 -0
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/build/tmp/kotlin-classes/debug/META-INF/ota-updater_debug.kotlin_module +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/otaupdater/OTAApkInstallHelper.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/otaupdater/OTAReactHostFactory.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/otaupdater/OTARestartActivity.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/otaupdater/OTARestartHelper.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/otaupdater/OTAUpdaterModule$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/otaupdater/OTAUpdaterModule$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/otaupdater/OTAUpdaterModule.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/otaupdater/OTAUpdaterPackage.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/otaupdater/OTAUpdaterStorage$NativeInfo.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/otaupdater/OTAUpdaterStorage.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/otaupdater/OTAZipExtractHelper.class +0 -0
- package/android/build.gradle +68 -0
- package/android/src/main/AndroidManifest.xml +21 -0
- package/android/src/main/java/com/otaupdater/OTAApkInstallHelper.kt +88 -0
- package/android/src/main/java/com/otaupdater/OTARestartActivity.kt +49 -0
- package/android/src/main/java/com/otaupdater/OTARestartHelper.kt +45 -0
- package/android/src/main/java/com/otaupdater/OTAUpdaterModule.kt +159 -0
- package/android/src/main/java/com/otaupdater/OTAUpdaterPackage.kt +16 -0
- package/android/src/main/java/com/otaupdater/OTAUpdaterStorage.kt +196 -0
- package/android/src/main/java/com/otaupdater/OTAZipExtractHelper.kt +62 -0
- package/android/src/main/res/xml/ota_file_paths.xml +6 -0
- package/android/src/reacthost76/java/com/otaupdater/OTAReactHostFactory.kt +84 -0
- package/ios/OTAUpdaterNative.h +4 -0
- package/ios/OTAUpdaterNative.m +110 -0
- package/lib/api.d.ts +1 -0
- package/lib/api.js +8 -0
- package/lib/config.d.ts +3 -0
- package/lib/config.js +11 -0
- package/lib/debug.d.ts +4 -0
- package/lib/debug.js +23 -0
- package/lib/index.d.ts +26 -0
- package/lib/index.js +74 -0
- package/lib/progress.d.ts +2 -0
- package/lib/progress.js +11 -0
- package/lib/projectConfig.d.ts +6 -0
- package/lib/projectConfig.js +47 -0
- package/lib/storage.d.ts +1 -0
- package/lib/storage.js +10 -0
- package/lib/sync.d.ts +50 -0
- package/lib/sync.js +728 -0
- package/lib/types.d.ts +97 -0
- package/lib/types.js +15 -0
- package/lib/ui/OTAUpdateModal.d.ts +8 -0
- package/lib/ui/OTAUpdateModal.js +138 -0
- package/lib/ui/OTAUpdateProvider.d.ts +3 -0
- package/lib/ui/OTAUpdateProvider.js +102 -0
- package/lib/zipExtract.d.ts +1 -0
- package/lib/zipExtract.js +113 -0
- package/package.json +46 -0
- package/react-native.config.js +12 -0
package/lib/debug.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setOtaDebug = setOtaDebug;
|
|
4
|
+
exports.isOtaDebugEnabled = isOtaDebugEnabled;
|
|
5
|
+
exports.otaLog = otaLog;
|
|
6
|
+
exports.otaWarn = otaWarn;
|
|
7
|
+
let debugEnabled = typeof __DEV__ !== 'undefined' ? __DEV__ : false;
|
|
8
|
+
function setOtaDebug(enabled) {
|
|
9
|
+
debugEnabled = enabled;
|
|
10
|
+
}
|
|
11
|
+
function isOtaDebugEnabled() {
|
|
12
|
+
return debugEnabled;
|
|
13
|
+
}
|
|
14
|
+
function otaLog(...args) {
|
|
15
|
+
if (debugEnabled) {
|
|
16
|
+
console.log('[OTA]', ...args);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
function otaWarn(...args) {
|
|
20
|
+
if (debugEnabled) {
|
|
21
|
+
console.warn('[OTA]', ...args);
|
|
22
|
+
}
|
|
23
|
+
}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { configure, getConfig } from './config';
|
|
2
|
+
import { configureFromProject, getDeploymentKey, isOtaConfigured, resolveUpdaterConfig } from './projectConfig';
|
|
3
|
+
import { sync, restartApp, installApk, resumePendingApkInstall, clearUpdate, getInstalledBundlePath, notifyAppReady, isSyncInProgress } from './sync';
|
|
4
|
+
import { UpdateCheckResult } from './types';
|
|
5
|
+
export { configure, getConfig };
|
|
6
|
+
export { configureFromProject, getDeploymentKey, isOtaConfigured, resolveUpdaterConfig, };
|
|
7
|
+
export type { ProjectOtaConfig } from './types';
|
|
8
|
+
export declare function getCurrentLabel(): Promise<string | null>;
|
|
9
|
+
export declare function checkUpdate(): Promise<UpdateCheckResult>;
|
|
10
|
+
export { sync, restartApp, installApk, resumePendingApkInstall, clearUpdate, getInstalledBundlePath, notifyAppReady, isSyncInProgress };
|
|
11
|
+
export { OTAUpdateModal } from './ui/OTAUpdateModal';
|
|
12
|
+
export { OTAUpdateProvider } from './ui/OTAUpdateProvider';
|
|
13
|
+
export declare const OTAUpdater: {
|
|
14
|
+
configure: typeof configure;
|
|
15
|
+
getConfig: typeof getConfig;
|
|
16
|
+
getCurrentLabel: typeof getCurrentLabel;
|
|
17
|
+
checkUpdate: typeof checkUpdate;
|
|
18
|
+
sync: typeof sync;
|
|
19
|
+
restartApp: typeof restartApp;
|
|
20
|
+
installApk: typeof installApk;
|
|
21
|
+
resumePendingApkInstall: typeof resumePendingApkInstall;
|
|
22
|
+
clearUpdate: typeof clearUpdate;
|
|
23
|
+
getInstalledBundlePath: typeof getInstalledBundlePath;
|
|
24
|
+
notifyAppReady: typeof notifyAppReady;
|
|
25
|
+
};
|
|
26
|
+
export * from './types';
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
+
};
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
exports.OTAUpdater = exports.OTAUpdateProvider = exports.OTAUpdateModal = exports.isSyncInProgress = exports.notifyAppReady = exports.getInstalledBundlePath = exports.clearUpdate = exports.resumePendingApkInstall = exports.installApk = exports.restartApp = exports.sync = exports.resolveUpdaterConfig = exports.isOtaConfigured = exports.getDeploymentKey = exports.configureFromProject = exports.getConfig = exports.configure = void 0;
|
|
21
|
+
exports.getCurrentLabel = getCurrentLabel;
|
|
22
|
+
exports.checkUpdate = checkUpdate;
|
|
23
|
+
const react_native_device_info_1 = __importDefault(require("react-native-device-info"));
|
|
24
|
+
const react_native_1 = require("react-native");
|
|
25
|
+
const config_1 = require("./config");
|
|
26
|
+
Object.defineProperty(exports, "configure", { enumerable: true, get: function () { return config_1.configure; } });
|
|
27
|
+
Object.defineProperty(exports, "getConfig", { enumerable: true, get: function () { return config_1.getConfig; } });
|
|
28
|
+
const projectConfig_1 = require("./projectConfig");
|
|
29
|
+
Object.defineProperty(exports, "configureFromProject", { enumerable: true, get: function () { return projectConfig_1.configureFromProject; } });
|
|
30
|
+
Object.defineProperty(exports, "getDeploymentKey", { enumerable: true, get: function () { return projectConfig_1.getDeploymentKey; } });
|
|
31
|
+
Object.defineProperty(exports, "isOtaConfigured", { enumerable: true, get: function () { return projectConfig_1.isOtaConfigured; } });
|
|
32
|
+
Object.defineProperty(exports, "resolveUpdaterConfig", { enumerable: true, get: function () { return projectConfig_1.resolveUpdaterConfig; } });
|
|
33
|
+
const sync_1 = require("./sync");
|
|
34
|
+
Object.defineProperty(exports, "sync", { enumerable: true, get: function () { return sync_1.sync; } });
|
|
35
|
+
Object.defineProperty(exports, "restartApp", { enumerable: true, get: function () { return sync_1.restartApp; } });
|
|
36
|
+
Object.defineProperty(exports, "installApk", { enumerable: true, get: function () { return sync_1.installApk; } });
|
|
37
|
+
Object.defineProperty(exports, "resumePendingApkInstall", { enumerable: true, get: function () { return sync_1.resumePendingApkInstall; } });
|
|
38
|
+
Object.defineProperty(exports, "clearUpdate", { enumerable: true, get: function () { return sync_1.clearUpdate; } });
|
|
39
|
+
Object.defineProperty(exports, "getInstalledBundlePath", { enumerable: true, get: function () { return sync_1.getInstalledBundlePath; } });
|
|
40
|
+
Object.defineProperty(exports, "notifyAppReady", { enumerable: true, get: function () { return sync_1.notifyAppReady; } });
|
|
41
|
+
Object.defineProperty(exports, "isSyncInProgress", { enumerable: true, get: function () { return sync_1.isSyncInProgress; } });
|
|
42
|
+
async function getCurrentLabel() {
|
|
43
|
+
const meta = await (0, sync_1.getStoredBundleMeta)();
|
|
44
|
+
return meta?.label ?? null;
|
|
45
|
+
}
|
|
46
|
+
async function checkUpdate() {
|
|
47
|
+
const config = (0, config_1.getConfig)();
|
|
48
|
+
if (!config) {
|
|
49
|
+
throw new Error('OTAUpdater.configure() must be called first');
|
|
50
|
+
}
|
|
51
|
+
const appVersion = react_native_device_info_1.default.getVersion();
|
|
52
|
+
const meta = await (0, sync_1.getStoredBundleMeta)();
|
|
53
|
+
const clientUniqueId = await (0, sync_1.getClientUniqueId)();
|
|
54
|
+
const deviceAbi = react_native_1.Platform.OS === 'android' ? await (0, sync_1.getDeviceAbi)() : undefined;
|
|
55
|
+
return (0, sync_1.checkForUpdate)(config.serverUrl, config.deploymentKey, appVersion, meta?.label, meta?.packageHash, clientUniqueId, react_native_1.Platform.OS === 'android' ? react_native_device_info_1.default.getBuildNumber() : undefined, deviceAbi);
|
|
56
|
+
}
|
|
57
|
+
var OTAUpdateModal_1 = require("./ui/OTAUpdateModal");
|
|
58
|
+
Object.defineProperty(exports, "OTAUpdateModal", { enumerable: true, get: function () { return OTAUpdateModal_1.OTAUpdateModal; } });
|
|
59
|
+
var OTAUpdateProvider_1 = require("./ui/OTAUpdateProvider");
|
|
60
|
+
Object.defineProperty(exports, "OTAUpdateProvider", { enumerable: true, get: function () { return OTAUpdateProvider_1.OTAUpdateProvider; } });
|
|
61
|
+
exports.OTAUpdater = {
|
|
62
|
+
configure: config_1.configure,
|
|
63
|
+
getConfig: config_1.getConfig,
|
|
64
|
+
getCurrentLabel,
|
|
65
|
+
checkUpdate,
|
|
66
|
+
sync: sync_1.sync,
|
|
67
|
+
restartApp: sync_1.restartApp,
|
|
68
|
+
installApk: sync_1.installApk,
|
|
69
|
+
resumePendingApkInstall: sync_1.resumePendingApkInstall,
|
|
70
|
+
clearUpdate: sync_1.clearUpdate,
|
|
71
|
+
getInstalledBundlePath: sync_1.getInstalledBundlePath,
|
|
72
|
+
notifyAppReady: sync_1.notifyAppReady,
|
|
73
|
+
};
|
|
74
|
+
__exportStar(require("./types"), exports);
|
package/lib/progress.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.subscribeProgress = exports.hideProgress = exports.getProgressState = exports.getModalTitle = exports.getMessageForStatus = exports.delay = exports.defaultMessages = void 0;
|
|
4
|
+
var sync_1 = require("./sync");
|
|
5
|
+
Object.defineProperty(exports, "defaultMessages", { enumerable: true, get: function () { return sync_1.defaultMessages; } });
|
|
6
|
+
Object.defineProperty(exports, "delay", { enumerable: true, get: function () { return sync_1.delay; } });
|
|
7
|
+
Object.defineProperty(exports, "getMessageForStatus", { enumerable: true, get: function () { return sync_1.getMessageForStatus; } });
|
|
8
|
+
Object.defineProperty(exports, "getModalTitle", { enumerable: true, get: function () { return sync_1.getModalTitle; } });
|
|
9
|
+
Object.defineProperty(exports, "getProgressState", { enumerable: true, get: function () { return sync_1.getProgressState; } });
|
|
10
|
+
Object.defineProperty(exports, "hideProgress", { enumerable: true, get: function () { return sync_1.hideProgress; } });
|
|
11
|
+
Object.defineProperty(exports, "subscribeProgress", { enumerable: true, get: function () { return sync_1.subscribeProgress; } });
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { OTAUpdaterConfig, ProjectOtaConfig } from './types';
|
|
2
|
+
export type { ProjectOtaConfig };
|
|
3
|
+
export declare function getDeploymentKey(projectConfig: ProjectOtaConfig, isDev?: boolean): string;
|
|
4
|
+
export declare function resolveUpdaterConfig(projectConfig: ProjectOtaConfig, isDev?: boolean): OTAUpdaterConfig | null;
|
|
5
|
+
export declare function isOtaConfigured(projectConfig?: ProjectOtaConfig, isDev?: boolean): boolean;
|
|
6
|
+
export declare function configureFromProject(projectConfig: ProjectOtaConfig, isDev?: boolean): boolean;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getDeploymentKey = getDeploymentKey;
|
|
4
|
+
exports.resolveUpdaterConfig = resolveUpdaterConfig;
|
|
5
|
+
exports.isOtaConfigured = isOtaConfigured;
|
|
6
|
+
exports.configureFromProject = configureFromProject;
|
|
7
|
+
const config_1 = require("./config");
|
|
8
|
+
function getIsDev(isDev) {
|
|
9
|
+
if (typeof isDev === 'boolean') {
|
|
10
|
+
return isDev;
|
|
11
|
+
}
|
|
12
|
+
return typeof __DEV__ !== 'undefined' ? __DEV__ : false;
|
|
13
|
+
}
|
|
14
|
+
function getDeploymentKey(projectConfig, isDev) {
|
|
15
|
+
const dev = getIsDev(isDev);
|
|
16
|
+
return dev
|
|
17
|
+
? projectConfig.deployments.staging
|
|
18
|
+
: projectConfig.deployments.production;
|
|
19
|
+
}
|
|
20
|
+
function resolveUpdaterConfig(projectConfig, isDev) {
|
|
21
|
+
const deploymentKey = getDeploymentKey(projectConfig, isDev);
|
|
22
|
+
if (!projectConfig.serverUrl || !deploymentKey) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
serverUrl: projectConfig.serverUrl,
|
|
27
|
+
deploymentKey,
|
|
28
|
+
installMode: projectConfig.installMode,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function isOtaConfigured(projectConfig, isDev) {
|
|
32
|
+
if ((0, config_1.getConfig)()) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
if (!projectConfig) {
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
return resolveUpdaterConfig(projectConfig, isDev) !== null;
|
|
39
|
+
}
|
|
40
|
+
function configureFromProject(projectConfig, isDev) {
|
|
41
|
+
const resolved = resolveUpdaterConfig(projectConfig, isDev);
|
|
42
|
+
if (!resolved) {
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
(0, config_1.configure)(resolved);
|
|
46
|
+
return true;
|
|
47
|
+
}
|
package/lib/storage.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { clearStoredBundleMeta, getClientUniqueId, getStoredBundleMeta, markRestartPending, setStoredBundleMeta, shouldSkipSyncAfterRestart, } from './sync';
|
package/lib/storage.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.shouldSkipSyncAfterRestart = exports.setStoredBundleMeta = exports.markRestartPending = exports.getStoredBundleMeta = exports.getClientUniqueId = exports.clearStoredBundleMeta = void 0;
|
|
4
|
+
var sync_1 = require("./sync");
|
|
5
|
+
Object.defineProperty(exports, "clearStoredBundleMeta", { enumerable: true, get: function () { return sync_1.clearStoredBundleMeta; } });
|
|
6
|
+
Object.defineProperty(exports, "getClientUniqueId", { enumerable: true, get: function () { return sync_1.getClientUniqueId; } });
|
|
7
|
+
Object.defineProperty(exports, "getStoredBundleMeta", { enumerable: true, get: function () { return sync_1.getStoredBundleMeta; } });
|
|
8
|
+
Object.defineProperty(exports, "markRestartPending", { enumerable: true, get: function () { return sync_1.markRestartPending; } });
|
|
9
|
+
Object.defineProperty(exports, "setStoredBundleMeta", { enumerable: true, get: function () { return sync_1.setStoredBundleMeta; } });
|
|
10
|
+
Object.defineProperty(exports, "shouldSkipSyncAfterRestart", { enumerable: true, get: function () { return sync_1.shouldSkipSyncAfterRestart; } });
|
package/lib/sync.d.ts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { OTAProgressMessages, StoredBundleMeta, SyncOptions, SyncResult, SyncStatus, UpdateCheckResult } from './types';
|
|
2
|
+
export interface OTAProgressState {
|
|
3
|
+
visible: boolean;
|
|
4
|
+
status: SyncStatus;
|
|
5
|
+
progress: number;
|
|
6
|
+
message: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
error?: string;
|
|
10
|
+
}
|
|
11
|
+
type ProgressListener = (state: OTAProgressState) => void;
|
|
12
|
+
export declare function getProgressState(): OTAProgressState;
|
|
13
|
+
export declare function subscribeProgress(listener: ProgressListener): () => void;
|
|
14
|
+
export declare function hideProgress(): void;
|
|
15
|
+
export declare const defaultMessages: {
|
|
16
|
+
title: string;
|
|
17
|
+
checking: string;
|
|
18
|
+
downloading: string;
|
|
19
|
+
installing: string;
|
|
20
|
+
restarting: string;
|
|
21
|
+
error: string;
|
|
22
|
+
upToDate: string;
|
|
23
|
+
};
|
|
24
|
+
export declare function getMessageForStatus(status: SyncStatus, messages?: Partial<typeof defaultMessages>): string;
|
|
25
|
+
export declare function getModalTitle(messages?: Partial<typeof defaultMessages>): string;
|
|
26
|
+
export declare function delay(ms: number): Promise<void>;
|
|
27
|
+
export declare function getStoredBundleMeta(): Promise<StoredBundleMeta | null>;
|
|
28
|
+
export declare function setStoredBundleMeta(meta: StoredBundleMeta): Promise<void>;
|
|
29
|
+
export declare function getClientUniqueId(): Promise<string>;
|
|
30
|
+
export declare function clearStoredBundleMeta(): Promise<void>;
|
|
31
|
+
export declare function markRestartPending(): Promise<void>;
|
|
32
|
+
export declare function shouldSkipSyncAfterRestart(): Promise<boolean>;
|
|
33
|
+
export declare function getDeviceAbi(): Promise<string | undefined>;
|
|
34
|
+
export declare function checkForUpdate(serverUrl: string, deploymentKey: string, appVersion: string, label?: string, packageHash?: string, clientUniqueId?: string, buildNumber?: string, deviceAbi?: string): Promise<UpdateCheckResult>;
|
|
35
|
+
export declare function getBundleReleaseDir(label: string): string;
|
|
36
|
+
export declare function getBundleFilePath(label: string): string;
|
|
37
|
+
export declare function getApkFilePath(label: string): string;
|
|
38
|
+
export declare function downloadBundle(downloadUrl: string, deploymentKey: string, label: string, expectedSize?: number, onProgress?: (progress: number) => void, extension?: 'bundle' | 'apk', deviceAbi?: string, packageFormat?: 'bundle' | 'zip', expectedHash?: string): Promise<string>;
|
|
39
|
+
export declare function verifyBundleHash(filePath: string, expectedHash: string): Promise<boolean>;
|
|
40
|
+
type ProgressCallback = (status: SyncStatus, progress?: number) => void;
|
|
41
|
+
export declare function isSyncInProgress(): boolean;
|
|
42
|
+
export declare function restartApp(): Promise<void>;
|
|
43
|
+
export type ApkInstallResult = 'started' | 'permission_required';
|
|
44
|
+
export declare function installApk(apkPath: string): Promise<ApkInstallResult>;
|
|
45
|
+
export declare function resumePendingApkInstall(): Promise<void>;
|
|
46
|
+
export declare function sync(options?: SyncOptions, onProgress?: ProgressCallback, messages?: OTAProgressMessages): Promise<SyncResult>;
|
|
47
|
+
export declare function getInstalledBundlePath(): Promise<string | null>;
|
|
48
|
+
export declare function clearUpdate(): Promise<void>;
|
|
49
|
+
export declare function notifyAppReady(): Promise<SyncStatus>;
|
|
50
|
+
export {};
|