@metarouter/react-native-sdk 0.1.16 → 0.1.18
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.md +91 -23
- package/lib/MetaRouter.d.ts +2 -24
- package/lib/MetaRouter.d.ts.map +1 -1
- package/lib/MetaRouter.js +5 -52
- package/lib/analytics/IdentityManager.d.ts +14 -0
- package/lib/analytics/IdentityManager.d.ts.map +1 -0
- package/lib/analytics/IdentityManager.js +51 -0
- package/lib/analytics/MetaRouterAnalyticsClient.d.ts +64 -0
- package/lib/analytics/MetaRouterAnalyticsClient.d.ts.map +1 -0
- package/lib/analytics/MetaRouterAnalyticsClient.js +196 -0
- package/lib/analytics/enrichEvent.d.ts +3 -0
- package/lib/analytics/enrichEvent.d.ts.map +1 -0
- package/lib/analytics/enrichEvent.js +14 -0
- package/lib/analytics/init.d.ts +5 -0
- package/lib/analytics/init.d.ts.map +1 -0
- package/lib/analytics/init.js +36 -0
- package/lib/analytics/proxy/proxyClient.d.ts +4 -0
- package/lib/analytics/proxy/proxyClient.d.ts.map +1 -0
- package/lib/{proxyClient.js → analytics/proxy/proxyClient.js} +3 -4
- package/lib/analytics/types.d.ts +54 -0
- package/lib/analytics/types.d.ts.map +1 -0
- package/lib/analytics/types.js +1 -0
- package/lib/analytics/utils/anonymousId.d.ts +2 -0
- package/lib/analytics/utils/anonymousId.d.ts.map +1 -0
- package/lib/analytics/utils/anonymousId.js +26 -0
- package/lib/analytics/utils/contextInfo.d.ts +19 -0
- package/lib/analytics/utils/contextInfo.d.ts.map +1 -0
- package/lib/analytics/utils/contextInfo.js +35 -0
- package/lib/analytics/utils/logger.d.ts +5 -0
- package/lib/analytics/utils/logger.d.ts.map +1 -0
- package/lib/analytics/utils/logger.js +16 -0
- package/lib/analytics/utils/retry.d.ts +2 -0
- package/lib/analytics/utils/retry.d.ts.map +1 -0
- package/lib/analytics/utils/retry.js +17 -0
- package/lib/analytics/utils/timezone.d.ts +2 -0
- package/lib/analytics/utils/timezone.d.ts.map +1 -0
- package/lib/analytics/utils/timezone.js +8 -0
- package/lib/index.d.ts +7 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +5 -2
- package/lib/react/context.d.ts +8 -0
- package/lib/react/context.d.ts.map +1 -0
- package/lib/react/context.js +5 -0
- package/lib/react/useMetaRouter.d.ts +5 -0
- package/lib/react/useMetaRouter.d.ts.map +1 -0
- package/lib/react/useMetaRouter.js +10 -0
- package/lib/types.d.ts +9 -0
- package/lib/types.d.ts.map +1 -0
- package/lib/types.js +1 -0
- package/package.json +11 -12
- package/MetaRouterReactNativeSDK.podspec +0 -26
- package/android/build/generated/ksp/debug/java/com/reactnativecommunity/asyncstorage/next/StorageDao_Impl.java +0 -244
- package/android/build/generated/ksp/debug/java/com/reactnativecommunity/asyncstorage/next/StorageDb_Impl.java +0 -165
- package/android/build/generated/source/buildConfig/debug/com/metarouter/reactnativesdk/BuildConfig.java +0 -10
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +0 -7
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +0 -18
- package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +0 -6
- package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +0 -1
- 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 +0 -1
- package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +0 -2
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/metarouter/reactnativesdk/BuildConfig.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/metarouter/reactnativesdk/MetaRouterReactNativeSDKPackage.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/reactnativecommunity/asyncstorage/AsyncLocalStorageUtil.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/reactnativecommunity/asyncstorage/AsyncStorageErrorUtil.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/reactnativecommunity/asyncstorage/AsyncStorageExpoMigration.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/reactnativecommunity/asyncstorage/AsyncStorageModule$1.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/reactnativecommunity/asyncstorage/AsyncStorageModule$2.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/reactnativecommunity/asyncstorage/AsyncStorageModule$3.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/reactnativecommunity/asyncstorage/AsyncStorageModule$4.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/reactnativecommunity/asyncstorage/AsyncStorageModule$5.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/reactnativecommunity/asyncstorage/AsyncStorageModule$6.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/reactnativecommunity/asyncstorage/AsyncStorageModule.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/reactnativecommunity/asyncstorage/AsyncStoragePackage$1.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/reactnativecommunity/asyncstorage/AsyncStoragePackage.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/reactnativecommunity/asyncstorage/BuildConfig.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/reactnativecommunity/asyncstorage/NativeAsyncStorageModuleSpec.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/reactnativecommunity/asyncstorage/ReactDatabaseSupplier.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/reactnativecommunity/asyncstorage/SerialExecutor$1.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/reactnativecommunity/asyncstorage/SerialExecutor.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/reactnativecommunity/asyncstorage/next/StorageDao_Impl$1.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/reactnativecommunity/asyncstorage/next/StorageDao_Impl$2.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/reactnativecommunity/asyncstorage/next/StorageDao_Impl$3.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/reactnativecommunity/asyncstorage/next/StorageDao_Impl$4.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/reactnativecommunity/asyncstorage/next/StorageDao_Impl$5.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/reactnativecommunity/asyncstorage/next/StorageDao_Impl$6.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/reactnativecommunity/asyncstorage/next/StorageDao_Impl$7.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/reactnativecommunity/asyncstorage/next/StorageDao_Impl.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/reactnativecommunity/asyncstorage/next/StorageDb_Impl$1.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/reactnativecommunity/asyncstorage/next/StorageDb_Impl.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/org/linusu/RNGetRandomValuesModule.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/org/linusu/RNGetRandomValuesPackage.class +0 -0
- package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +0 -2
- package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +0 -7
- package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +0 -7
- package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +0 -1
- package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +0 -1
- package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +0 -1
- 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/java-sources-proto-map.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/java-sources-proto-map.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/java-sources-proto-map.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/java-sources-proto-map.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/java-sources-proto-map.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/java-sources-proto-map.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/java-sources-proto-map.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.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 +0 -2
- 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/outputs/logs/manifest-merger-debug-report.txt +0 -16
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/build/tmp/kotlin-classes/debug/META-INF/metarouter_react-native-sdk_debug.kotlin_module +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/asyncstorage/next/ArgumentHelpersKt.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/asyncstorage/next/AsyncStorageAccess.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/asyncstorage/next/AsyncStorageError$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/asyncstorage/next/AsyncStorageError.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/asyncstorage/next/Entry.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/asyncstorage/next/ErrorHelpersKt$createExceptionHandler$$inlined$CoroutineExceptionHandler$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/asyncstorage/next/ErrorHelpersKt.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/asyncstorage/next/MIGRATION_TO_NEXT.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/asyncstorage/next/StorageDao$DefaultImpls.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/asyncstorage/next/StorageDao$mergeValues$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/asyncstorage/next/StorageDao.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/asyncstorage/next/StorageDb$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/asyncstorage/next/StorageDb.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/asyncstorage/next/StorageModule$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/asyncstorage/next/StorageModule$clear$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/asyncstorage/next/StorageModule$getAllKeys$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/asyncstorage/next/StorageModule$multiGet$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/asyncstorage/next/StorageModule$multiMerge$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/asyncstorage/next/StorageModule$multiRemove$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/asyncstorage/next/StorageModule$multiSet$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/asyncstorage/next/StorageModule.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/asyncstorage/next/StorageSupplier$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/asyncstorage/next/StorageSupplier.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/asyncstorage/next/StorageSupplierKt.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/segmentanalyticsreactnative/AnalyticsReactNativeModule$onInitialized$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/segmentanalyticsreactnative/AnalyticsReactNativeModule$toHexString$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/segmentanalyticsreactnative/AnalyticsReactNativeModule.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/segmentanalyticsreactnative/AnalyticsReactNativePackage$createNativeModules$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/segmentanalyticsreactnative/AnalyticsReactNativePackage.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/segmentanalyticsreactnative/ConnectionType.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/sovranreactnative/Sovran$Action.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/sovranreactnative/Sovran$createNativeModules$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/sovranreactnative/Sovran.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/sovranreactnative/SovranModule$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/sovranreactnative/SovranModule$onInitialized$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/sovranreactnative/SovranModule.class +0 -0
- package/android/build.gradle +0 -55
- package/android/consumer-rules.pro +0 -0
- package/android/src/main/java/com/metarouter/reactnativesdk/MetaRouterReactNativeSDKPackage.java +0 -54
- package/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncLocalStorageUtil.java +0 -178
- package/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageErrorUtil.java +0 -45
- package/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageExpoMigration.java +0 -154
- package/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java +0 -410
- package/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStoragePackage.java +0 -93
- package/android/src/main/java/com/reactnativecommunity/asyncstorage/BuildConfig.java +0 -8
- package/android/src/main/java/com/reactnativecommunity/asyncstorage/NativeAsyncStorageModuleSpec.java +0 -47
- package/android/src/main/java/com/reactnativecommunity/asyncstorage/ReactDatabaseSupplier.java +0 -163
- package/android/src/main/java/com/reactnativecommunity/asyncstorage/SerialExecutor.java +0 -40
- package/android/src/main/java/com/reactnativecommunity/asyncstorage/build.gradle +0 -122
- package/android/src/main/java/com/reactnativecommunity/asyncstorage/config.gradle +0 -125
- package/android/src/main/java/com/reactnativecommunity/asyncstorage/next/ArgumentHelpers.kt +0 -86
- package/android/src/main/java/com/reactnativecommunity/asyncstorage/next/ErrorHelpers.kt +0 -39
- package/android/src/main/java/com/reactnativecommunity/asyncstorage/next/StorageModule.kt +0 -94
- package/android/src/main/java/com/reactnativecommunity/asyncstorage/next/StorageSupplier.kt +0 -161
- package/android/src/main/java/com/segmentanalyticsreactnative/AnalyticsReactNativeModule.kt +0 -267
- package/android/src/main/java/com/segmentanalyticsreactnative/AnalyticsReactNativePackage.kt +0 -43
- package/android/src/main/java/com/sovranreactnative/Sovran.kt +0 -45
- package/android/src/main/java/com/sovranreactnative/SovranModule.kt +0 -55
- package/android/src/main/java/org/linusu/RNGetRandomValuesModule.java +0 -36
- package/android/src/main/java/org/linusu/RNGetRandomValuesPackage.java +0 -28
- package/lib/MetaRouterPlugin.d.ts +0 -10
- package/lib/MetaRouterPlugin.d.ts.map +0 -1
- package/lib/MetaRouterPlugin.js +0 -23
- package/lib/context.d.ts +0 -8
- package/lib/context.d.ts.map +0 -1
- package/lib/context.js +0 -9
- package/lib/createMetaRouterClient.d.ts +0 -3
- package/lib/createMetaRouterClient.d.ts.map +0 -1
- package/lib/createMetaRouterClient.js +0 -7
- package/lib/proxyClient.d.ts +0 -4
- package/lib/proxyClient.d.ts.map +0 -1
- package/react-native.config.js +0 -37
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
package com.reactnativecommunity.asyncstorage.next;
|
|
2
|
-
|
|
3
|
-
import android.database.Cursor;
|
|
4
|
-
import android.os.CancellationSignal;
|
|
5
|
-
import androidx.room.CoroutinesRoom;
|
|
6
|
-
import androidx.room.EntityInsertionAdapter;
|
|
7
|
-
import androidx.room.RoomDatabase;
|
|
8
|
-
import androidx.room.RoomDatabaseKt;
|
|
9
|
-
import androidx.room.RoomSQLiteQuery;
|
|
10
|
-
import androidx.room.SharedSQLiteStatement;
|
|
11
|
-
import androidx.room.util.CursorUtil;
|
|
12
|
-
import androidx.room.util.DBUtil;
|
|
13
|
-
import androidx.room.util.StringUtil;
|
|
14
|
-
import androidx.sqlite.db.SupportSQLiteStatement;
|
|
15
|
-
import java.lang.Class;
|
|
16
|
-
import java.lang.Exception;
|
|
17
|
-
import java.lang.Object;
|
|
18
|
-
import java.lang.Override;
|
|
19
|
-
import java.lang.String;
|
|
20
|
-
import java.lang.StringBuilder;
|
|
21
|
-
import java.lang.SuppressWarnings;
|
|
22
|
-
import java.util.ArrayList;
|
|
23
|
-
import java.util.Collections;
|
|
24
|
-
import java.util.List;
|
|
25
|
-
import java.util.concurrent.Callable;
|
|
26
|
-
import kotlin.Unit;
|
|
27
|
-
import kotlin.coroutines.Continuation;
|
|
28
|
-
|
|
29
|
-
@SuppressWarnings({"unchecked", "deprecation"})
|
|
30
|
-
public final class StorageDao_Impl implements StorageDao {
|
|
31
|
-
private final RoomDatabase __db;
|
|
32
|
-
|
|
33
|
-
private final EntityInsertionAdapter<Entry> __insertionAdapterOfEntry;
|
|
34
|
-
|
|
35
|
-
private final SharedSQLiteStatement __preparedStmtOfClear;
|
|
36
|
-
|
|
37
|
-
public StorageDao_Impl(RoomDatabase __db) {
|
|
38
|
-
this.__db = __db;
|
|
39
|
-
this.__insertionAdapterOfEntry = new EntityInsertionAdapter<Entry>(__db) {
|
|
40
|
-
@Override
|
|
41
|
-
public String createQuery() {
|
|
42
|
-
return "INSERT OR REPLACE INTO `Storage` (`key`,`value`) VALUES (?,?)";
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
@Override
|
|
46
|
-
public void bind(SupportSQLiteStatement stmt, Entry value) {
|
|
47
|
-
if (value.getKey() == null) {
|
|
48
|
-
stmt.bindNull(1);
|
|
49
|
-
} else {
|
|
50
|
-
stmt.bindString(1, value.getKey());
|
|
51
|
-
}
|
|
52
|
-
if (value.getValue() == null) {
|
|
53
|
-
stmt.bindNull(2);
|
|
54
|
-
} else {
|
|
55
|
-
stmt.bindString(2, value.getValue());
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
this.__preparedStmtOfClear = new SharedSQLiteStatement(__db) {
|
|
60
|
-
@Override
|
|
61
|
-
public String createQuery() {
|
|
62
|
-
final String _query = "DELETE FROM Storage";
|
|
63
|
-
return _query;
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
@Override
|
|
69
|
-
public Object setValues(final List<Entry> entries,
|
|
70
|
-
final Continuation<? super Unit> continuation) {
|
|
71
|
-
return CoroutinesRoom.execute(__db, true, new Callable<Unit>() {
|
|
72
|
-
@Override
|
|
73
|
-
public Unit call() throws Exception {
|
|
74
|
-
__db.beginTransaction();
|
|
75
|
-
try {
|
|
76
|
-
__insertionAdapterOfEntry.insert(entries);
|
|
77
|
-
__db.setTransactionSuccessful();
|
|
78
|
-
return Unit.INSTANCE;
|
|
79
|
-
} finally {
|
|
80
|
-
__db.endTransaction();
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}, continuation);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
@Override
|
|
87
|
-
public Object mergeValues(final List<Entry> entries,
|
|
88
|
-
final Continuation<? super Unit> continuation) {
|
|
89
|
-
return RoomDatabaseKt.withTransaction(__db, (__cont) -> StorageDao.DefaultImpls.mergeValues(StorageDao_Impl.this, entries, __cont), continuation);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
@Override
|
|
93
|
-
public Object clear(final Continuation<? super Unit> continuation) {
|
|
94
|
-
return CoroutinesRoom.execute(__db, true, new Callable<Unit>() {
|
|
95
|
-
@Override
|
|
96
|
-
public Unit call() throws Exception {
|
|
97
|
-
final SupportSQLiteStatement _stmt = __preparedStmtOfClear.acquire();
|
|
98
|
-
__db.beginTransaction();
|
|
99
|
-
try {
|
|
100
|
-
_stmt.executeUpdateDelete();
|
|
101
|
-
__db.setTransactionSuccessful();
|
|
102
|
-
return Unit.INSTANCE;
|
|
103
|
-
} finally {
|
|
104
|
-
__db.endTransaction();
|
|
105
|
-
__preparedStmtOfClear.release(_stmt);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}, continuation);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
@Override
|
|
112
|
-
public Object getValues(final List<String> keys,
|
|
113
|
-
final Continuation<? super List<Entry>> continuation) {
|
|
114
|
-
StringBuilder _stringBuilder = StringUtil.newStringBuilder();
|
|
115
|
-
_stringBuilder.append("SELECT * FROM Storage WHERE `key` IN (");
|
|
116
|
-
final int _inputSize = keys.size();
|
|
117
|
-
StringUtil.appendPlaceholders(_stringBuilder, _inputSize);
|
|
118
|
-
_stringBuilder.append(")");
|
|
119
|
-
final String _sql = _stringBuilder.toString();
|
|
120
|
-
final int _argCount = 0 + _inputSize;
|
|
121
|
-
final RoomSQLiteQuery _statement = RoomSQLiteQuery.acquire(_sql, _argCount);
|
|
122
|
-
int _argIndex = 1;
|
|
123
|
-
for (String _item : keys) {
|
|
124
|
-
if (_item == null) {
|
|
125
|
-
_statement.bindNull(_argIndex);
|
|
126
|
-
} else {
|
|
127
|
-
_statement.bindString(_argIndex, _item);
|
|
128
|
-
}
|
|
129
|
-
_argIndex ++;
|
|
130
|
-
}
|
|
131
|
-
final CancellationSignal _cancellationSignal = DBUtil.createCancellationSignal();
|
|
132
|
-
return CoroutinesRoom.execute(__db, true, _cancellationSignal, new Callable<List<Entry>>() {
|
|
133
|
-
@Override
|
|
134
|
-
public List<Entry> call() throws Exception {
|
|
135
|
-
__db.beginTransaction();
|
|
136
|
-
try {
|
|
137
|
-
final Cursor _cursor = DBUtil.query(__db, _statement, false, null);
|
|
138
|
-
try {
|
|
139
|
-
final int _cursorIndexOfKey = CursorUtil.getColumnIndexOrThrow(_cursor, "key");
|
|
140
|
-
final int _cursorIndexOfValue = CursorUtil.getColumnIndexOrThrow(_cursor, "value");
|
|
141
|
-
final List<Entry> _result = new ArrayList<Entry>(_cursor.getCount());
|
|
142
|
-
while(_cursor.moveToNext()) {
|
|
143
|
-
final Entry _item_1;
|
|
144
|
-
final String _tmpKey;
|
|
145
|
-
if (_cursor.isNull(_cursorIndexOfKey)) {
|
|
146
|
-
_tmpKey = null;
|
|
147
|
-
} else {
|
|
148
|
-
_tmpKey = _cursor.getString(_cursorIndexOfKey);
|
|
149
|
-
}
|
|
150
|
-
final String _tmpValue;
|
|
151
|
-
if (_cursor.isNull(_cursorIndexOfValue)) {
|
|
152
|
-
_tmpValue = null;
|
|
153
|
-
} else {
|
|
154
|
-
_tmpValue = _cursor.getString(_cursorIndexOfValue);
|
|
155
|
-
}
|
|
156
|
-
_item_1 = new Entry(_tmpKey,_tmpValue);
|
|
157
|
-
_result.add(_item_1);
|
|
158
|
-
}
|
|
159
|
-
__db.setTransactionSuccessful();
|
|
160
|
-
return _result;
|
|
161
|
-
} finally {
|
|
162
|
-
_cursor.close();
|
|
163
|
-
_statement.release();
|
|
164
|
-
}
|
|
165
|
-
} finally {
|
|
166
|
-
__db.endTransaction();
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}, continuation);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
@Override
|
|
173
|
-
public Object getKeys(final Continuation<? super List<String>> continuation) {
|
|
174
|
-
final String _sql = "SELECT `key` FROM Storage";
|
|
175
|
-
final RoomSQLiteQuery _statement = RoomSQLiteQuery.acquire(_sql, 0);
|
|
176
|
-
final CancellationSignal _cancellationSignal = DBUtil.createCancellationSignal();
|
|
177
|
-
return CoroutinesRoom.execute(__db, true, _cancellationSignal, new Callable<List<String>>() {
|
|
178
|
-
@Override
|
|
179
|
-
public List<String> call() throws Exception {
|
|
180
|
-
__db.beginTransaction();
|
|
181
|
-
try {
|
|
182
|
-
final Cursor _cursor = DBUtil.query(__db, _statement, false, null);
|
|
183
|
-
try {
|
|
184
|
-
final List<String> _result = new ArrayList<String>(_cursor.getCount());
|
|
185
|
-
while(_cursor.moveToNext()) {
|
|
186
|
-
final String _item;
|
|
187
|
-
if (_cursor.isNull(0)) {
|
|
188
|
-
_item = null;
|
|
189
|
-
} else {
|
|
190
|
-
_item = _cursor.getString(0);
|
|
191
|
-
}
|
|
192
|
-
_result.add(_item);
|
|
193
|
-
}
|
|
194
|
-
__db.setTransactionSuccessful();
|
|
195
|
-
return _result;
|
|
196
|
-
} finally {
|
|
197
|
-
_cursor.close();
|
|
198
|
-
_statement.release();
|
|
199
|
-
}
|
|
200
|
-
} finally {
|
|
201
|
-
__db.endTransaction();
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
}, continuation);
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
@Override
|
|
208
|
-
public Object removeValues(final List<String> keys,
|
|
209
|
-
final Continuation<? super Unit> continuation) {
|
|
210
|
-
return CoroutinesRoom.execute(__db, true, new Callable<Unit>() {
|
|
211
|
-
@Override
|
|
212
|
-
public Unit call() throws Exception {
|
|
213
|
-
StringBuilder _stringBuilder = StringUtil.newStringBuilder();
|
|
214
|
-
_stringBuilder.append("DELETE FROM Storage WHERE `key` in (");
|
|
215
|
-
final int _inputSize = keys.size();
|
|
216
|
-
StringUtil.appendPlaceholders(_stringBuilder, _inputSize);
|
|
217
|
-
_stringBuilder.append(")");
|
|
218
|
-
final String _sql = _stringBuilder.toString();
|
|
219
|
-
final SupportSQLiteStatement _stmt = __db.compileStatement(_sql);
|
|
220
|
-
int _argIndex = 1;
|
|
221
|
-
for (String _item : keys) {
|
|
222
|
-
if (_item == null) {
|
|
223
|
-
_stmt.bindNull(_argIndex);
|
|
224
|
-
} else {
|
|
225
|
-
_stmt.bindString(_argIndex, _item);
|
|
226
|
-
}
|
|
227
|
-
_argIndex ++;
|
|
228
|
-
}
|
|
229
|
-
__db.beginTransaction();
|
|
230
|
-
try {
|
|
231
|
-
_stmt.executeUpdateDelete();
|
|
232
|
-
__db.setTransactionSuccessful();
|
|
233
|
-
return Unit.INSTANCE;
|
|
234
|
-
} finally {
|
|
235
|
-
__db.endTransaction();
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
}, continuation);
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
public static List<Class<?>> getRequiredConverters() {
|
|
242
|
-
return Collections.emptyList();
|
|
243
|
-
}
|
|
244
|
-
}
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
package com.reactnativecommunity.asyncstorage.next;
|
|
2
|
-
|
|
3
|
-
import androidx.annotation.NonNull;
|
|
4
|
-
import androidx.room.DatabaseConfiguration;
|
|
5
|
-
import androidx.room.InvalidationTracker;
|
|
6
|
-
import androidx.room.RoomOpenHelper;
|
|
7
|
-
import androidx.room.RoomOpenHelper.Delegate;
|
|
8
|
-
import androidx.room.RoomOpenHelper.ValidationResult;
|
|
9
|
-
import androidx.room.migration.AutoMigrationSpec;
|
|
10
|
-
import androidx.room.migration.Migration;
|
|
11
|
-
import androidx.room.util.DBUtil;
|
|
12
|
-
import androidx.room.util.TableInfo;
|
|
13
|
-
import androidx.room.util.TableInfo.Column;
|
|
14
|
-
import androidx.room.util.TableInfo.ForeignKey;
|
|
15
|
-
import androidx.room.util.TableInfo.Index;
|
|
16
|
-
import androidx.sqlite.db.SupportSQLiteDatabase;
|
|
17
|
-
import androidx.sqlite.db.SupportSQLiteOpenHelper;
|
|
18
|
-
import androidx.sqlite.db.SupportSQLiteOpenHelper.Callback;
|
|
19
|
-
import androidx.sqlite.db.SupportSQLiteOpenHelper.Configuration;
|
|
20
|
-
import java.lang.Class;
|
|
21
|
-
import java.lang.Override;
|
|
22
|
-
import java.lang.String;
|
|
23
|
-
import java.lang.SuppressWarnings;
|
|
24
|
-
import java.util.Arrays;
|
|
25
|
-
import java.util.HashMap;
|
|
26
|
-
import java.util.HashSet;
|
|
27
|
-
import java.util.List;
|
|
28
|
-
import java.util.Map;
|
|
29
|
-
import java.util.Set;
|
|
30
|
-
|
|
31
|
-
@SuppressWarnings({"unchecked", "deprecation"})
|
|
32
|
-
public final class StorageDb_Impl extends StorageDb {
|
|
33
|
-
private volatile StorageDao _storageDao;
|
|
34
|
-
|
|
35
|
-
@Override
|
|
36
|
-
protected SupportSQLiteOpenHelper createOpenHelper(DatabaseConfiguration configuration) {
|
|
37
|
-
final SupportSQLiteOpenHelper.Callback _openCallback = new RoomOpenHelper(configuration, new RoomOpenHelper.Delegate(2) {
|
|
38
|
-
@Override
|
|
39
|
-
public void createAllTables(SupportSQLiteDatabase _db) {
|
|
40
|
-
_db.execSQL("CREATE TABLE IF NOT EXISTS `Storage` (`key` TEXT NOT NULL, `value` TEXT, PRIMARY KEY(`key`))");
|
|
41
|
-
_db.execSQL("CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)");
|
|
42
|
-
_db.execSQL("INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'b956059a88e9dfb420dc5fb101fd3156')");
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
@Override
|
|
46
|
-
public void dropAllTables(SupportSQLiteDatabase _db) {
|
|
47
|
-
_db.execSQL("DROP TABLE IF EXISTS `Storage`");
|
|
48
|
-
if (mCallbacks != null) {
|
|
49
|
-
for (int _i = 0, _size = mCallbacks.size(); _i < _size; _i++) {
|
|
50
|
-
mCallbacks.get(_i).onDestructiveMigration(_db);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
@Override
|
|
56
|
-
public void onCreate(SupportSQLiteDatabase _db) {
|
|
57
|
-
if (mCallbacks != null) {
|
|
58
|
-
for (int _i = 0, _size = mCallbacks.size(); _i < _size; _i++) {
|
|
59
|
-
mCallbacks.get(_i).onCreate(_db);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
@Override
|
|
65
|
-
public void onOpen(SupportSQLiteDatabase _db) {
|
|
66
|
-
mDatabase = _db;
|
|
67
|
-
internalInitInvalidationTracker(_db);
|
|
68
|
-
if (mCallbacks != null) {
|
|
69
|
-
for (int _i = 0, _size = mCallbacks.size(); _i < _size; _i++) {
|
|
70
|
-
mCallbacks.get(_i).onOpen(_db);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
@Override
|
|
76
|
-
public void onPreMigrate(SupportSQLiteDatabase _db) {
|
|
77
|
-
DBUtil.dropFtsSyncTriggers(_db);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
@Override
|
|
81
|
-
public void onPostMigrate(SupportSQLiteDatabase _db) {
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
@Override
|
|
85
|
-
public RoomOpenHelper.ValidationResult onValidateSchema(SupportSQLiteDatabase _db) {
|
|
86
|
-
final HashMap<String, TableInfo.Column> _columnsStorage = new HashMap<String, TableInfo.Column>(2);
|
|
87
|
-
_columnsStorage.put("key", new TableInfo.Column("key", "TEXT", true, 1, null, TableInfo.CREATED_FROM_ENTITY));
|
|
88
|
-
_columnsStorage.put("value", new TableInfo.Column("value", "TEXT", false, 0, null, TableInfo.CREATED_FROM_ENTITY));
|
|
89
|
-
final HashSet<TableInfo.ForeignKey> _foreignKeysStorage = new HashSet<TableInfo.ForeignKey>(0);
|
|
90
|
-
final HashSet<TableInfo.Index> _indicesStorage = new HashSet<TableInfo.Index>(0);
|
|
91
|
-
final TableInfo _infoStorage = new TableInfo("Storage", _columnsStorage, _foreignKeysStorage, _indicesStorage);
|
|
92
|
-
final TableInfo _existingStorage = TableInfo.read(_db, "Storage");
|
|
93
|
-
if (! _infoStorage.equals(_existingStorage)) {
|
|
94
|
-
return new RoomOpenHelper.ValidationResult(false, "Storage(com.reactnativecommunity.asyncstorage.next.Entry).\n"
|
|
95
|
-
+ " Expected:\n" + _infoStorage + "\n"
|
|
96
|
-
+ " Found:\n" + _existingStorage);
|
|
97
|
-
}
|
|
98
|
-
return new RoomOpenHelper.ValidationResult(true, null);
|
|
99
|
-
}
|
|
100
|
-
}, "b956059a88e9dfb420dc5fb101fd3156", "e973d14c97f1c647a41b0aff5c0c1a26");
|
|
101
|
-
final SupportSQLiteOpenHelper.Configuration _sqliteConfig = SupportSQLiteOpenHelper.Configuration.builder(configuration.context)
|
|
102
|
-
.name(configuration.name)
|
|
103
|
-
.callback(_openCallback)
|
|
104
|
-
.build();
|
|
105
|
-
final SupportSQLiteOpenHelper _helper = configuration.sqliteOpenHelperFactory.create(_sqliteConfig);
|
|
106
|
-
return _helper;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
@Override
|
|
110
|
-
protected InvalidationTracker createInvalidationTracker() {
|
|
111
|
-
final HashMap<String, String> _shadowTablesMap = new HashMap<String, String>(0);
|
|
112
|
-
HashMap<String, Set<String>> _viewTables = new HashMap<String, Set<String>>(0);
|
|
113
|
-
return new InvalidationTracker(this, _shadowTablesMap, _viewTables, "Storage");
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
@Override
|
|
117
|
-
public void clearAllTables() {
|
|
118
|
-
super.assertNotMainThread();
|
|
119
|
-
final SupportSQLiteDatabase _db = super.getOpenHelper().getWritableDatabase();
|
|
120
|
-
try {
|
|
121
|
-
super.beginTransaction();
|
|
122
|
-
_db.execSQL("DELETE FROM `Storage`");
|
|
123
|
-
super.setTransactionSuccessful();
|
|
124
|
-
} finally {
|
|
125
|
-
super.endTransaction();
|
|
126
|
-
_db.query("PRAGMA wal_checkpoint(FULL)").close();
|
|
127
|
-
if (!_db.inTransaction()) {
|
|
128
|
-
_db.execSQL("VACUUM");
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
@Override
|
|
134
|
-
protected Map<Class<?>, List<Class<?>>> getRequiredTypeConverters() {
|
|
135
|
-
final HashMap<Class<?>, List<Class<?>>> _typeConvertersMap = new HashMap<Class<?>, List<Class<?>>>();
|
|
136
|
-
_typeConvertersMap.put(StorageDao.class, StorageDao_Impl.getRequiredConverters());
|
|
137
|
-
return _typeConvertersMap;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
@Override
|
|
141
|
-
public Set<Class<? extends AutoMigrationSpec>> getRequiredAutoMigrationSpecs() {
|
|
142
|
-
final HashSet<Class<? extends AutoMigrationSpec>> _autoMigrationSpecsSet = new HashSet<Class<? extends AutoMigrationSpec>>();
|
|
143
|
-
return _autoMigrationSpecsSet;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
@Override
|
|
147
|
-
public List<Migration> getAutoMigrations(
|
|
148
|
-
@NonNull Map<Class<? extends AutoMigrationSpec>, AutoMigrationSpec> autoMigrationSpecsMap) {
|
|
149
|
-
return Arrays.asList();
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
@Override
|
|
153
|
-
public StorageDao storage() {
|
|
154
|
-
if (_storageDao != null) {
|
|
155
|
-
return _storageDao;
|
|
156
|
-
} else {
|
|
157
|
-
synchronized(this) {
|
|
158
|
-
if(_storageDao == null) {
|
|
159
|
-
_storageDao = new StorageDao_Impl(this);
|
|
160
|
-
}
|
|
161
|
-
return _storageDao;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Automatically generated file. DO NOT MODIFY
|
|
3
|
-
*/
|
|
4
|
-
package com.metarouter.reactnativesdk;
|
|
5
|
-
|
|
6
|
-
public final class BuildConfig {
|
|
7
|
-
public static final boolean DEBUG = Boolean.parseBoolean("true");
|
|
8
|
-
public static final String LIBRARY_PACKAGE_NAME = "com.metarouter.reactnativesdk";
|
|
9
|
-
public static final String BUILD_TYPE = "debug";
|
|
10
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"artifactType": {
|
|
4
|
-
"type": "AAPT_FRIENDLY_MERGED_MANIFESTS",
|
|
5
|
-
"kind": "Directory"
|
|
6
|
-
},
|
|
7
|
-
"applicationId": "com.metarouter.reactnativesdk",
|
|
8
|
-
"variantName": "debug",
|
|
9
|
-
"elements": [
|
|
10
|
-
{
|
|
11
|
-
"type": "SINGLE",
|
|
12
|
-
"filters": [],
|
|
13
|
-
"attributes": [],
|
|
14
|
-
"outputFile": "AndroidManifest.xml"
|
|
15
|
-
}
|
|
16
|
-
],
|
|
17
|
-
"elementType": "File"
|
|
18
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"room-compiler-2.5.0.jar (androidx.room:room-compiler:2.5.0)":"KSP_PROCESSOR"}
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
#Mon Jul 21 16:16:12 MDT 2025
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<merger version="3"><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="main$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/choudlette/development/metarouter/ion/packages/demo-mobile/react-native/node_modules/@metarouter/react-native-sdk/android/src/main/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="main" generated-set="main$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/choudlette/development/metarouter/ion/packages/demo-mobile/react-native/node_modules/@metarouter/react-native-sdk/android/src/main/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/choudlette/development/metarouter/ion/packages/demo-mobile/react-native/node_modules/@metarouter/react-native-sdk/android/src/debug/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug" generated-set="debug$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/choudlette/development/metarouter/ion/packages/demo-mobile/react-native/node_modules/@metarouter/react-native-sdk/android/src/debug/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="generated$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/choudlette/development/metarouter/ion/packages/demo-mobile/react-native/node_modules/@metarouter/react-native-sdk/android/build/generated/res/resValues/debug"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="generated" generated-set="generated$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/choudlette/development/metarouter/ion/packages/demo-mobile/react-native/node_modules/@metarouter/react-native-sdk/android/build/generated/res/resValues/debug"/></dataSet><mergedItems/></merger>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0 Warning/Error
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
com.metarouter.reactnativesdk
|
package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len
DELETED
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i
DELETED
|
Binary file
|
|
Binary file
|
package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|