@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.
Files changed (209) hide show
  1. package/android/build/.transforms/200c703f56cba8293fae35d5b35891b9/results.bin +1 -0
  2. package/android/build/.transforms/200c703f56cba8293fae35d5b35891b9/transformed/classes/classes_dex/classes.dex +0 -0
  3. package/android/build/.transforms/258459e9c210bd80984731dbf1be5d94/results.bin +1 -0
  4. package/android/build/.transforms/258459e9c210bd80984731dbf1be5d94/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/otaupdater/BuildConfig.dex +0 -0
  5. package/android/build/.transforms/258459e9c210bd80984731dbf1be5d94/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/otaupdater/OTAApkInstallHelper.dex +0 -0
  6. package/android/build/.transforms/258459e9c210bd80984731dbf1be5d94/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/otaupdater/OTAReactHostFactory.dex +0 -0
  7. package/android/build/.transforms/258459e9c210bd80984731dbf1be5d94/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/otaupdater/OTARestartActivity.dex +0 -0
  8. package/android/build/.transforms/258459e9c210bd80984731dbf1be5d94/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/otaupdater/OTARestartHelper.dex +0 -0
  9. package/android/build/.transforms/258459e9c210bd80984731dbf1be5d94/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/otaupdater/OTAUpdaterModule$1.dex +0 -0
  10. package/android/build/.transforms/258459e9c210bd80984731dbf1be5d94/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/otaupdater/OTAUpdaterModule$Companion.dex +0 -0
  11. package/android/build/.transforms/258459e9c210bd80984731dbf1be5d94/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/otaupdater/OTAUpdaterModule.dex +0 -0
  12. package/android/build/.transforms/258459e9c210bd80984731dbf1be5d94/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/otaupdater/OTAUpdaterPackage.dex +0 -0
  13. package/android/build/.transforms/258459e9c210bd80984731dbf1be5d94/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/otaupdater/OTAUpdaterStorage$NativeInfo.dex +0 -0
  14. package/android/build/.transforms/258459e9c210bd80984731dbf1be5d94/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/otaupdater/OTAUpdaterStorage.dex +0 -0
  15. package/android/build/.transforms/258459e9c210bd80984731dbf1be5d94/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/otaupdater/OTAZipExtractHelper.dex +0 -0
  16. package/android/build/.transforms/258459e9c210bd80984731dbf1be5d94/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
  17. package/android/build/generated/source/buildConfig/debug/com/otaupdater/BuildConfig.java +10 -0
  18. package/android/build/generated/source/codegen/jni/CMakeLists.txt +28 -0
  19. package/android/build/generated/source/codegen/jni/OtaUpdaterSpec-generated.cpp +22 -0
  20. package/android/build/generated/source/codegen/jni/OtaUpdaterSpec.h +24 -0
  21. package/android/build/generated/source/codegen/jni/react/renderer/components/OtaUpdaterSpec/ComponentDescriptors.cpp +22 -0
  22. package/android/build/generated/source/codegen/jni/react/renderer/components/OtaUpdaterSpec/ComponentDescriptors.h +24 -0
  23. package/android/build/generated/source/codegen/jni/react/renderer/components/OtaUpdaterSpec/EventEmitters.cpp +16 -0
  24. package/android/build/generated/source/codegen/jni/react/renderer/components/OtaUpdaterSpec/EventEmitters.h +17 -0
  25. package/android/build/generated/source/codegen/jni/react/renderer/components/OtaUpdaterSpec/OtaUpdaterSpecJSI.h +19 -0
  26. package/android/build/generated/source/codegen/jni/react/renderer/components/OtaUpdaterSpec/Props.cpp +19 -0
  27. package/android/build/generated/source/codegen/jni/react/renderer/components/OtaUpdaterSpec/Props.h +18 -0
  28. package/android/build/generated/source/codegen/jni/react/renderer/components/OtaUpdaterSpec/ShadowNodes.cpp +17 -0
  29. package/android/build/generated/source/codegen/jni/react/renderer/components/OtaUpdaterSpec/ShadowNodes.h +23 -0
  30. package/android/build/generated/source/codegen/jni/react/renderer/components/OtaUpdaterSpec/States.cpp +16 -0
  31. package/android/build/generated/source/codegen/jni/react/renderer/components/OtaUpdaterSpec/States.h +20 -0
  32. package/android/build/generated/source/codegen/schema.json +1 -0
  33. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +27 -0
  34. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
  35. package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
  36. package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
  37. package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  38. package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
  39. package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +1 -0
  40. package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/xml_ota_file_paths.xml.flat +0 -0
  41. package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +2 -0
  42. package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
  43. package/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +2 -0
  44. package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
  45. package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
  46. package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/ota-updater_debug.kotlin_module +0 -0
  47. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/otaupdater/BuildConfig.class +0 -0
  48. package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +3 -0
  49. package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +43 -0
  50. package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +27 -0
  51. package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
  52. package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
  53. package/android/build/intermediates/packaged_res/debug/packageDebugResources/xml/ota_file_paths.xml +6 -0
  54. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/ota-updater_debug.kotlin_module +0 -0
  55. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/otaupdater/BuildConfig.class +0 -0
  56. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/otaupdater/OTAApkInstallHelper.class +0 -0
  57. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/otaupdater/OTAReactHostFactory.class +0 -0
  58. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/otaupdater/OTARestartActivity.class +0 -0
  59. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/otaupdater/OTARestartHelper.class +0 -0
  60. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/otaupdater/OTAUpdaterModule$1.class +0 -0
  61. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/otaupdater/OTAUpdaterModule$Companion.class +0 -0
  62. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/otaupdater/OTAUpdaterModule.class +0 -0
  63. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/otaupdater/OTAUpdaterPackage.class +0 -0
  64. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/otaupdater/OTAUpdaterStorage$NativeInfo.class +0 -0
  65. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/otaupdater/OTAUpdaterStorage.class +0 -0
  66. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/otaupdater/OTAZipExtractHelper.class +0 -0
  67. package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  68. package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +2 -0
  69. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
  70. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
  71. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
  72. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
  73. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
  74. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
  75. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
  76. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
  77. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
  78. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
  79. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
  80. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
  81. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
  82. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
  83. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
  84. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
  85. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
  86. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
  87. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
  88. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
  89. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
  90. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab +0 -0
  91. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream +0 -0
  92. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream.len +0 -0
  93. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.len +0 -0
  94. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
  95. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i +0 -0
  96. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i.len +0 -0
  97. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
  98. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
  99. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
  100. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
  101. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
  102. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
  103. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
  104. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
  105. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
  106. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
  107. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
  108. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
  109. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
  110. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
  111. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
  112. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
  113. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
  114. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
  115. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
  116. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
  117. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
  118. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
  119. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
  120. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
  121. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
  122. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
  123. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
  124. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
  125. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
  126. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
  127. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
  128. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
  129. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
  130. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
  131. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
  132. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +2 -0
  133. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
  134. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
  135. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
  136. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
  137. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
  138. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
  139. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
  140. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
  141. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
  142. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
  143. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
  144. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
  145. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
  146. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
  147. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
  148. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
  149. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
  150. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
  151. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
  152. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
  153. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
  154. package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
  155. package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
  156. package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
  157. package/android/build/outputs/logs/manifest-merger-debug-report.txt +48 -0
  158. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  159. package/android/build/tmp/kotlin-classes/debug/META-INF/ota-updater_debug.kotlin_module +0 -0
  160. package/android/build/tmp/kotlin-classes/debug/com/otaupdater/OTAApkInstallHelper.class +0 -0
  161. package/android/build/tmp/kotlin-classes/debug/com/otaupdater/OTAReactHostFactory.class +0 -0
  162. package/android/build/tmp/kotlin-classes/debug/com/otaupdater/OTARestartActivity.class +0 -0
  163. package/android/build/tmp/kotlin-classes/debug/com/otaupdater/OTARestartHelper.class +0 -0
  164. package/android/build/tmp/kotlin-classes/debug/com/otaupdater/OTAUpdaterModule$1.class +0 -0
  165. package/android/build/tmp/kotlin-classes/debug/com/otaupdater/OTAUpdaterModule$Companion.class +0 -0
  166. package/android/build/tmp/kotlin-classes/debug/com/otaupdater/OTAUpdaterModule.class +0 -0
  167. package/android/build/tmp/kotlin-classes/debug/com/otaupdater/OTAUpdaterPackage.class +0 -0
  168. package/android/build/tmp/kotlin-classes/debug/com/otaupdater/OTAUpdaterStorage$NativeInfo.class +0 -0
  169. package/android/build/tmp/kotlin-classes/debug/com/otaupdater/OTAUpdaterStorage.class +0 -0
  170. package/android/build/tmp/kotlin-classes/debug/com/otaupdater/OTAZipExtractHelper.class +0 -0
  171. package/android/build.gradle +68 -0
  172. package/android/src/main/AndroidManifest.xml +21 -0
  173. package/android/src/main/java/com/otaupdater/OTAApkInstallHelper.kt +88 -0
  174. package/android/src/main/java/com/otaupdater/OTARestartActivity.kt +49 -0
  175. package/android/src/main/java/com/otaupdater/OTARestartHelper.kt +45 -0
  176. package/android/src/main/java/com/otaupdater/OTAUpdaterModule.kt +159 -0
  177. package/android/src/main/java/com/otaupdater/OTAUpdaterPackage.kt +16 -0
  178. package/android/src/main/java/com/otaupdater/OTAUpdaterStorage.kt +196 -0
  179. package/android/src/main/java/com/otaupdater/OTAZipExtractHelper.kt +62 -0
  180. package/android/src/main/res/xml/ota_file_paths.xml +6 -0
  181. package/android/src/reacthost76/java/com/otaupdater/OTAReactHostFactory.kt +84 -0
  182. package/ios/OTAUpdaterNative.h +4 -0
  183. package/ios/OTAUpdaterNative.m +110 -0
  184. package/lib/api.d.ts +1 -0
  185. package/lib/api.js +8 -0
  186. package/lib/config.d.ts +3 -0
  187. package/lib/config.js +11 -0
  188. package/lib/debug.d.ts +4 -0
  189. package/lib/debug.js +23 -0
  190. package/lib/index.d.ts +26 -0
  191. package/lib/index.js +74 -0
  192. package/lib/progress.d.ts +2 -0
  193. package/lib/progress.js +11 -0
  194. package/lib/projectConfig.d.ts +6 -0
  195. package/lib/projectConfig.js +47 -0
  196. package/lib/storage.d.ts +1 -0
  197. package/lib/storage.js +10 -0
  198. package/lib/sync.d.ts +50 -0
  199. package/lib/sync.js +728 -0
  200. package/lib/types.d.ts +97 -0
  201. package/lib/types.js +15 -0
  202. package/lib/ui/OTAUpdateModal.d.ts +8 -0
  203. package/lib/ui/OTAUpdateModal.js +138 -0
  204. package/lib/ui/OTAUpdateProvider.d.ts +3 -0
  205. package/lib/ui/OTAUpdateProvider.js +102 -0
  206. package/lib/zipExtract.d.ts +1 -0
  207. package/lib/zipExtract.js +113 -0
  208. package/package.json +46 -0
  209. 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);
@@ -0,0 +1,2 @@
1
+ export type { OTAProgressState } from './sync';
2
+ export { defaultMessages, delay, getMessageForStatus, getModalTitle, getProgressState, hideProgress, subscribeProgress, } from './sync';
@@ -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
+ }
@@ -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 {};