airbridge-react-native-sdk-restricted 2.8.9 → 2.10.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 (412) hide show
  1. package/airbridge-react-native-sdk-restricted.podspec +1 -1
  2. package/android/build/.transforms/2e6632801abc279fdc92319cb3782f77/results.bin +1 -0
  3. package/android/build/.transforms/2e6632801abc279fdc92319cb3782f77/transformed/classes/classes_dex/classes.dex +0 -0
  4. package/android/build/generated/source/buildConfig/debug/co/ab180/airbridge/reactnative/BuildConfig.java +10 -0
  5. package/android/build/generated/source/buildConfig/release/co/ab180/airbridge/reactnative/BuildConfig.java +10 -0
  6. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +10 -0
  7. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output-metadata.json +18 -0
  8. package/android/build/intermediates/aapt_friendly_merged_manifests/release/processReleaseManifest/aapt/AndroidManifest.xml +10 -0
  9. package/android/build/intermediates/aapt_friendly_merged_manifests/release/processReleaseManifest/aapt/output-metadata.json +18 -0
  10. package/android/build/intermediates/aar_main_jar/release/syncReleaseLibJars/classes.jar +0 -0
  11. package/android/build/intermediates/aar_metadata/debug/aar-metadata.properties +6 -0
  12. package/android/build/intermediates/aar_metadata/release/writeReleaseAarMetadata/aar-metadata.properties +6 -0
  13. package/android/build/intermediates/annotation_processor_list/debug/annotationProcessors.json +1 -0
  14. package/android/build/intermediates/annotation_processor_list/release/javaPreCompileRelease/annotationProcessors.json +1 -0
  15. package/android/build/intermediates/annotations_typedef_file/release/extractReleaseAnnotations/typedefs.txt +0 -0
  16. package/android/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
  17. package/android/build/intermediates/compile_library_classes_jar/release/bundleLibCompileToJarRelease/classes.jar +0 -0
  18. package/android/build/intermediates/compile_r_class_jar/debug/R.jar +0 -0
  19. package/android/build/intermediates/compile_r_class_jar/release/generateReleaseRFile/R.jar +0 -0
  20. package/android/build/intermediates/compile_symbol_list/debug/R.txt +0 -0
  21. package/android/build/intermediates/compile_symbol_list/release/generateReleaseRFile/R.txt +0 -0
  22. package/android/build/intermediates/default_proguard_files/global/proguard-android-optimize.txt-8.5.0 +89 -0
  23. package/android/build/intermediates/default_proguard_files/global/proguard-android.txt-8.5.0 +95 -0
  24. package/android/build/intermediates/default_proguard_files/global/proguard-defaults.txt-8.5.0 +89 -0
  25. package/android/build/intermediates/full_jar/release/createFullJarRelease/full.jar +0 -0
  26. package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +1 -0
  27. package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
  28. package/android/build/intermediates/incremental/lintVitalAnalyzeRelease/module.xml +19 -0
  29. package/android/build/intermediates/incremental/lintVitalAnalyzeRelease/release-artifact-dependencies.xml +431 -0
  30. package/android/build/intermediates/incremental/lintVitalAnalyzeRelease/release-artifact-libraries.xml +787 -0
  31. package/android/build/intermediates/incremental/lintVitalAnalyzeRelease/release.xml +31 -0
  32. package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
  33. package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
  34. package/android/build/intermediates/incremental/mergeReleaseJniLibFolders/merger.xml +2 -0
  35. package/android/build/intermediates/incremental/mergeReleaseShaders/merger.xml +2 -0
  36. package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +2 -0
  37. package/android/build/intermediates/incremental/packageReleaseAssets/merger.xml +2 -0
  38. package/android/build/intermediates/incremental/release/packageReleaseResources/compile-file-map.properties +1 -0
  39. package/android/build/intermediates/incremental/release/packageReleaseResources/merger.xml +2 -0
  40. package/android/build/intermediates/incremental/release-mergeJavaRes/merge-state +0 -0
  41. package/android/build/intermediates/java_res/release/processReleaseJavaRes/out/META-INF/airbridge-react-native-sdk-restricted_release.kotlin_module +0 -0
  42. package/android/build/intermediates/javac/debug/classes/co/ab180/airbridge/reactnative/AirbridgeAttribution.class +0 -0
  43. package/android/build/intermediates/javac/debug/classes/co/ab180/airbridge/reactnative/AirbridgeDeeplink$1.class +0 -0
  44. package/android/build/intermediates/javac/debug/classes/co/ab180/airbridge/reactnative/AirbridgeDeeplink.class +0 -0
  45. package/android/build/intermediates/javac/debug/classes/co/ab180/airbridge/reactnative/AirbridgeEvent.class +0 -0
  46. package/android/build/intermediates/javac/debug/classes/co/ab180/airbridge/reactnative/AirbridgeInAppPurchase.class +0 -0
  47. package/android/build/intermediates/javac/debug/classes/co/ab180/airbridge/reactnative/AirbridgeLifecycle.class +0 -0
  48. package/android/build/intermediates/javac/debug/classes/co/ab180/airbridge/reactnative/AirbridgeLifecycleIntegration.class +0 -0
  49. package/android/build/intermediates/javac/debug/classes/co/ab180/airbridge/reactnative/AirbridgePlacement.class +0 -0
  50. package/android/build/intermediates/javac/debug/classes/co/ab180/airbridge/reactnative/AirbridgeRN.class +0 -0
  51. package/android/build/intermediates/javac/debug/classes/co/ab180/airbridge/reactnative/AirbridgeState$1.class +0 -0
  52. package/android/build/intermediates/javac/debug/classes/co/ab180/airbridge/reactnative/AirbridgeState.class +0 -0
  53. package/android/build/intermediates/javac/debug/classes/co/ab180/airbridge/reactnative/BuildConfig.class +0 -0
  54. package/android/build/intermediates/javac/debug/classes/co/ab180/airbridge/reactnative/ConfigReader$1.class +0 -0
  55. package/android/build/intermediates/javac/debug/classes/co/ab180/airbridge/reactnative/ConfigReader.class +0 -0
  56. package/android/build/intermediates/javac/debug/classes/co/ab180/airbridge/reactnative/Get.class +0 -0
  57. package/android/build/intermediates/javac/release/compileReleaseJavaWithJavac/classes/co/ab180/airbridge/reactnative/BuildConfig.class +0 -0
  58. package/android/build/intermediates/lint-cache/lintVitalAnalyzeRelease/lint-cache-version.txt +1 -0
  59. package/android/build/intermediates/lint_model/release/generateReleaseLintModel/module.xml +19 -0
  60. package/android/build/intermediates/lint_model/release/generateReleaseLintModel/release-artifact-dependencies.xml +431 -0
  61. package/android/build/intermediates/lint_model/release/generateReleaseLintModel/release-artifact-libraries.xml +787 -0
  62. package/android/build/intermediates/lint_model/release/generateReleaseLintModel/release.xml +31 -0
  63. package/android/build/intermediates/lint_model_metadata/release/writeReleaseLintModelMetadata/lint-model-metadata.properties +3 -0
  64. package/android/build/intermediates/lint_vital_lint_model/release/generateReleaseLintVitalModel/module.xml +19 -0
  65. package/android/build/intermediates/lint_vital_lint_model/release/generateReleaseLintVitalModel/release-artifact-dependencies.xml +431 -0
  66. package/android/build/intermediates/lint_vital_lint_model/release/generateReleaseLintVitalModel/release-artifact-libraries.xml +787 -0
  67. package/android/build/intermediates/lint_vital_lint_model/release/generateReleaseLintVitalModel/release.xml +31 -0
  68. package/android/build/intermediates/lint_vital_partial_results/release/lintVitalAnalyzeRelease/out/lint-resources.xml +0 -0
  69. package/android/build/intermediates/local_aar_for_lint/release/out.aar +0 -0
  70. package/android/build/intermediates/local_only_symbol_list/debug/R-def.txt +2 -0
  71. package/android/build/intermediates/local_only_symbol_list/release/parseReleaseLocalResources/R-def.txt +2 -0
  72. package/android/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +14 -0
  73. package/android/build/intermediates/manifest_merge_blame_file/release/processReleaseManifest/manifest-merger-blame-release-report.txt +14 -0
  74. package/android/build/intermediates/merged_java_res/release/mergeReleaseJavaResource/feature-airbridge-react-native-sdk-restricted.jar +0 -0
  75. package/android/build/intermediates/merged_java_res/release/mergeReleaseJavaResource/feature-airbridge-react-native-sdk.jar +0 -0
  76. package/android/build/intermediates/merged_manifest/debug/AndroidManifest.xml +10 -0
  77. package/android/build/intermediates/merged_manifest/release/processReleaseManifest/AndroidManifest.xml +10 -0
  78. package/android/build/intermediates/navigation_json/debug/navigation.json +1 -0
  79. package/android/build/intermediates/navigation_json/release/extractDeepLinksRelease/navigation.json +1 -0
  80. package/android/build/intermediates/nested_resources_validation_report/release/generateReleaseResources/nestedResourcesValidationReport.txt +1 -0
  81. package/android/build/intermediates/runtime_library_classes_jar/debug/classes.jar +0 -0
  82. package/android/build/intermediates/runtime_library_classes_jar/release/bundleLibRuntimeToJarRelease/classes.jar +0 -0
  83. package/android/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt +1 -0
  84. package/android/build/intermediates/symbol_list_with_package_name/release/generateReleaseRFile/package-aware-r.txt +1 -0
  85. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
  86. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
  87. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
  88. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
  89. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
  90. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
  91. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
  92. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
  93. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
  94. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
  95. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
  96. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
  97. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
  98. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
  99. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
  100. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
  101. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
  102. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
  103. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
  104. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
  105. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
  106. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
  107. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
  108. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
  109. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
  110. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
  111. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
  112. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
  113. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab +0 -0
  114. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.keystream +0 -0
  115. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.keystream.len +0 -0
  116. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.len +0 -0
  117. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.values.at +0 -0
  118. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab_i +0 -0
  119. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab_i.len +0 -0
  120. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
  121. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
  122. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
  123. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
  124. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
  125. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
  126. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
  127. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
  128. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
  129. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
  130. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
  131. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
  132. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
  133. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
  134. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
  135. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
  136. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
  137. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
  138. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
  139. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
  140. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
  141. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
  142. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
  143. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
  144. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
  145. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
  146. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
  147. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
  148. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/counters.tab +2 -0
  149. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
  150. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
  151. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
  152. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
  153. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
  154. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
  155. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
  156. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
  157. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
  158. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
  159. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
  160. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
  161. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
  162. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
  163. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
  164. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
  165. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
  166. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
  167. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
  168. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
  169. package/android/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
  170. package/android/build/kotlin/compileReleaseKotlin/cacheable/last-build.bin +0 -0
  171. package/android/build/kotlin/compileReleaseKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
  172. package/android/build/kotlin/compileReleaseKotlin/local-state/build-history.bin +0 -0
  173. package/android/build/outputs/logs/manifest-merger-debug-report.txt +25 -0
  174. package/android/build/outputs/logs/manifest-merger-release-report.txt +25 -0
  175. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  176. package/android/build/tmp/compileReleaseJavaWithJavac/previous-compilation-data.bin +0 -0
  177. package/android/build/tmp/kotlin-classes/release/META-INF/airbridge-react-native-sdk-restricted_release.kotlin_module +0 -0
  178. package/android/build/tmp/kotlin-classes/release/co/ab180/airbridge/reactnative/AirbridgeReactNative$Companion.class +0 -0
  179. package/android/build/tmp/kotlin-classes/release/co/ab180/airbridge/reactnative/AirbridgeReactNative.class +0 -0
  180. package/android/build/tmp/kotlin-classes/release/co/ab180/airbridge/reactnative/common/AirbridgeJSON$loaderFunc$1.class +0 -0
  181. package/android/build/tmp/kotlin-classes/release/co/ab180/airbridge/reactnative/common/AirbridgeJSON.class +0 -0
  182. package/android/build/tmp/kotlin-classes/release/co/ab180/airbridge/reactnative/common/AirbridgeLifecycleIntegration.class +0 -0
  183. package/android/build/tmp/kotlin-classes/release/co/ab180/airbridge/reactnative/extension/AirbridgeOptionBuilderApplyKt.class +0 -0
  184. package/android/build/tmp/kotlin-classes/release/co/ab180/airbridge/reactnative/extension/IntentUtilsKt.class +0 -0
  185. package/android/build/tmp/kotlin-classes/release/co/ab180/airbridge/reactnative/extension/JSONConvertKt.class +0 -0
  186. package/android/build/tmp/kotlin-classes/release/co/ab180/airbridge/reactnative/extension/LibraryInfoJSON.class +0 -0
  187. package/android/build/tmp/kotlin-classes/release/co/ab180/airbridge/reactnative/module/AttributionInteractor$Companion$onAttributionReceived$1.class +0 -0
  188. package/android/build/tmp/kotlin-classes/release/co/ab180/airbridge/reactnative/module/AttributionInteractor$Companion.class +0 -0
  189. package/android/build/tmp/kotlin-classes/release/co/ab180/airbridge/reactnative/module/AttributionInteractor$listen$1.class +0 -0
  190. package/android/build/tmp/kotlin-classes/release/co/ab180/airbridge/reactnative/module/AttributionInteractor.class +0 -0
  191. package/android/build/tmp/kotlin-classes/release/co/ab180/airbridge/reactnative/module/AttributionInteractorKt.class +0 -0
  192. package/android/build/tmp/kotlin-classes/release/co/ab180/airbridge/reactnative/module/DeeplinkInteractor$Companion$onDeeplinkReceived$1.class +0 -0
  193. package/android/build/tmp/kotlin-classes/release/co/ab180/airbridge/reactnative/module/DeeplinkInteractor$Companion.class +0 -0
  194. package/android/build/tmp/kotlin-classes/release/co/ab180/airbridge/reactnative/module/DeeplinkInteractor$listen$1.class +0 -0
  195. package/android/build/tmp/kotlin-classes/release/co/ab180/airbridge/reactnative/module/DeeplinkInteractor.class +0 -0
  196. package/android/build/tmp/kotlin-classes/release/co/ab180/airbridge/reactnative/module/EventInteractor.class +0 -0
  197. package/android/build/tmp/kotlin-classes/release/co/ab180/airbridge/reactnative/module/FetchInteractor.class +0 -0
  198. package/android/build/tmp/kotlin-classes/release/co/ab180/airbridge/reactnative/module/PlacementInteractor.class +0 -0
  199. package/android/build/tmp/kotlin-classes/release/co/ab180/airbridge/reactnative/module/RegisterInteractor$WhenMappings.class +0 -0
  200. package/android/build/tmp/kotlin-classes/release/co/ab180/airbridge/reactnative/module/RegisterInteractor.class +0 -0
  201. package/android/build/tmp/kotlin-classes/release/co/ab180/airbridge/reactnative/module/SwitchInteractor.class +0 -0
  202. package/android/build/tmp/kotlin-classes/release/co/ab180/airbridge/reactnative/module/WebInterfaceInteractor.class +0 -0
  203. package/android/build.gradle +1 -1
  204. package/android/src/main/java/co/ab180/airbridge/reactnative/AirbridgeInAppPurchase.java +32 -0
  205. package/android/src/main/java/co/ab180/airbridge/reactnative/AirbridgeRN.java +2 -1
  206. package/build/source/Airbridge.d.ts +261 -0
  207. package/build/source/Airbridge.js +351 -0
  208. package/build/source/Airbridge.js.map +1 -0
  209. package/build/source/architecture/Interactor.d.ts +2 -0
  210. package/build/source/architecture/Interactor.js +7 -0
  211. package/build/source/architecture/Interactor.js.map +1 -0
  212. package/build/source/architecture/module.d.ts +1 -0
  213. package/build/source/architecture/module.js +2 -0
  214. package/build/source/architecture/module.js.map +1 -0
  215. package/build/source/constant/AirbridgeAttribute.d.ts +49 -0
  216. package/build/source/constant/AirbridgeAttribute.js +138 -0
  217. package/build/source/constant/AirbridgeAttribute.js.map +1 -0
  218. package/build/source/constant/AirbridgeCategory.d.ts +30 -0
  219. package/build/source/constant/AirbridgeCategory.js +81 -0
  220. package/build/source/constant/AirbridgeCategory.js.map +1 -0
  221. package/build/source/constant/AirbridgeTrackingLinkOption.d.ts +27 -0
  222. package/build/source/constant/AirbridgeTrackingLinkOption.js +102 -0
  223. package/build/source/constant/AirbridgeTrackingLinkOption.js.map +1 -0
  224. package/build/source/module/Attribution.d.ts +16 -0
  225. package/build/source/module/Attribution.js +39 -0
  226. package/build/source/module/Attribution.js.map +1 -0
  227. package/build/source/module/Deeplink.d.ts +17 -0
  228. package/build/source/module/Deeplink.js +40 -0
  229. package/build/source/module/Deeplink.js.map +1 -0
  230. package/build/source/module/Event.d.ts +14 -0
  231. package/build/source/module/Event.js +50 -0
  232. package/build/source/module/Event.js.map +1 -0
  233. package/build/source/module/Fetch.d.ts +19 -0
  234. package/build/source/module/Fetch.js +100 -0
  235. package/build/source/module/Fetch.js.map +1 -0
  236. package/build/source/module/InAppPurchase.d.ts +16 -0
  237. package/build/source/module/InAppPurchase.js +23 -0
  238. package/build/source/module/InAppPurchase.js.map +1 -0
  239. package/build/source/module/Placement.d.ts +21 -0
  240. package/build/source/module/Placement.js +123 -0
  241. package/build/source/module/Placement.js.map +1 -0
  242. package/build/source/module/Register.d.ts +49 -0
  243. package/build/source/module/Register.js +138 -0
  244. package/build/source/module/Register.js.map +1 -0
  245. package/build/source/module/Switch.d.ts +30 -0
  246. package/build/source/module/Switch.js +51 -0
  247. package/build/source/module/Switch.js.map +1 -0
  248. package/build/source/module/WebInterface.d.ts +16 -0
  249. package/build/source/module/WebInterface.js +46 -0
  250. package/build/source/module/WebInterface.js.map +1 -0
  251. package/build/source/module.d.ts +5 -0
  252. package/build/source/module.js +6 -0
  253. package/build/source/module.js.map +1 -0
  254. package/build/source/type/AirbridgeTrackingLink.d.ts +8 -0
  255. package/build/source/type/AirbridgeTrackingLink.js +2 -0
  256. package/build/source/type/AirbridgeTrackingLink.js.map +1 -0
  257. package/build/source/utility/check.d.ts +13 -0
  258. package/build/source/utility/check.js +15 -0
  259. package/build/source/utility/check.js.map +1 -0
  260. package/build/source/utility/compute.d.ts +3 -0
  261. package/build/source/utility/compute.js +5 -0
  262. package/build/source/utility/compute.js.map +1 -0
  263. package/build/source/utility/create.d.ts +5 -0
  264. package/build/source/utility/create.js +12 -0
  265. package/build/source/utility/create.js.map +1 -0
  266. package/build/source/utility/extract.d.ts +3 -0
  267. package/build/source/utility/extract.js +4 -0
  268. package/build/source/utility/extract.js.map +1 -0
  269. package/build/source/utility/json.d.ts +11 -0
  270. package/build/source/utility/json.js +137 -0
  271. package/build/source/utility/json.js.map +1 -0
  272. package/build/source/utility/log.d.ts +4 -0
  273. package/build/source/utility/log.js +9 -0
  274. package/build/source/utility/log.js.map +1 -0
  275. package/changelog.md +12 -0
  276. package/index.d.ts +40 -0
  277. package/ios/AirbridgeRN/AirbridgeInAppPurchase.h +16 -0
  278. package/ios/AirbridgeRN/AirbridgeInAppPurchase.m +30 -0
  279. package/ios/AirbridgeRN.xcodeproj/project.pbxproj +16 -0
  280. package/ios/copy-config.rb +1 -1
  281. package/package.json +1 -1
  282. package/src/Airbridge.js +25 -0
  283. package/src/InAppPurchase.js +38 -0
  284. package/src/WebInterface.js +1 -1
  285. package/.github/actions/add-github-check/action.yml +0 -78
  286. package/.github/actions/add-github-comment/action.yml +0 -48
  287. package/.github/actions/add-slack-message/action.yml +0 -32
  288. package/.github/actions/edit-github-check/action.yml +0 -59
  289. package/.github/actions/edit-github-comment/action.yml +0 -41
  290. package/.github/pull_request_template.md +0 -5
  291. package/.github/readme.md +0 -53
  292. package/.github/workflows/build.yml +0 -367
  293. package/.github/workflows/gitflow.yml +0 -20
  294. package/.github/workflows/release-restricted.yml +0 -35
  295. package/.github/workflows/release.yml +0 -32
  296. package/qa/.bundle/config +0 -2
  297. package/qa/.eslintrc.js +0 -4
  298. package/qa/.prettierrc.js +0 -7
  299. package/qa/.watchmanconfig +0 -1
  300. package/qa/Gemfile +0 -9
  301. package/qa/Gemfile.lock +0 -105
  302. package/qa/__tests__/App.test.tsx +0 -17
  303. package/qa/airbridge.json +0 -7
  304. package/qa/android/app/build.gradle +0 -130
  305. package/qa/android/app/debug.keystore +0 -0
  306. package/qa/android/app/google-services.json +0 -29
  307. package/qa/android/app/proguard-rules.pro +0 -10
  308. package/qa/android/app/src/debug/AndroidManifest.xml +0 -9
  309. package/qa/android/app/src/main/AndroidManifest.xml +0 -65
  310. package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/ConfigurationLoader.kt +0 -49
  311. package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/MainActivity.kt +0 -35
  312. package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/MainApplication.kt +0 -46
  313. package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/module/DeviceInfoInteractor.kt +0 -60
  314. package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/module/DeviceInfoUtils.kt +0 -115
  315. package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/module/IdentifiersInteractor.kt +0 -83
  316. package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/module/InstallReferrerInteractor.kt +0 -91
  317. package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/module/ModuleInjector.kt +0 -22
  318. package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/module/PermissionInteractor.kt +0 -55
  319. package/qa/android/app/src/main/java/co/ab180/airbridge/qa/application/module/UserInfoInteractor.kt +0 -74
  320. package/qa/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -37
  321. package/qa/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  322. package/qa/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  323. package/qa/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  324. package/qa/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  325. package/qa/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  326. package/qa/android/app/src/main/res/values/strings.xml +0 -3
  327. package/qa/android/app/src/main/res/values/styles.xml +0 -9
  328. package/qa/android/build.gradle +0 -28
  329. package/qa/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  330. package/qa/android/gradle/wrapper/gradle-wrapper.properties +0 -7
  331. package/qa/android/gradle.properties +0 -41
  332. package/qa/android/gradlew +0 -249
  333. package/qa/android/gradlew.bat +0 -92
  334. package/qa/android/settings.gradle +0 -4
  335. package/qa/app.json +0 -4
  336. package/qa/babel.config.js +0 -3
  337. package/qa/index.js +0 -5
  338. package/qa/ios/.xcode.env +0 -11
  339. package/qa/ios/AirbridgeQA/AirbridgeQA.entitlements +0 -17
  340. package/qa/ios/AirbridgeQA/AppDelegate.h +0 -6
  341. package/qa/ios/AirbridgeQA/AppDelegate.mm +0 -123
  342. package/qa/ios/AirbridgeQA/DeviceInfoInteractor.m +0 -14
  343. package/qa/ios/AirbridgeQA/DeviceInfoInteractor.swift +0 -151
  344. package/qa/ios/AirbridgeQA/IdentifiersInteractor.m +0 -14
  345. package/qa/ios/AirbridgeQA/IdentifiersInteractor.swift +0 -40
  346. package/qa/ios/AirbridgeQA/Images.xcassets/AppIcon.appiconset/Contents.json +0 -53
  347. package/qa/ios/AirbridgeQA/Images.xcassets/Contents.json +0 -6
  348. package/qa/ios/AirbridgeQA/Info.plist +0 -66
  349. package/qa/ios/AirbridgeQA/LaunchScreen.storyboard +0 -47
  350. package/qa/ios/AirbridgeQA/PermissionInteractor.m +0 -14
  351. package/qa/ios/AirbridgeQA/PermissionInteractor.swift +0 -19
  352. package/qa/ios/AirbridgeQA/PrivacyInfo.xcprivacy +0 -39
  353. package/qa/ios/AirbridgeQA/UserInfoInteractor.m +0 -57
  354. package/qa/ios/AirbridgeQA/UserInfoInteractor.swift +0 -49
  355. package/qa/ios/AirbridgeQA/main.m +0 -10
  356. package/qa/ios/AirbridgeQA.xcodeproj/project.pbxproj +0 -790
  357. package/qa/ios/AirbridgeQA.xcodeproj/xcshareddata/xcschemes/AirbridgeQA.xcscheme +0 -88
  358. package/qa/ios/AirbridgeQA.xcworkspace/contents.xcworkspacedata +0 -10
  359. package/qa/ios/AirbridgeQA.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  360. package/qa/ios/AirbridgeQATests/AirbridgeQATests.m +0 -66
  361. package/qa/ios/AirbridgeQATests/Info.plist +0 -24
  362. package/qa/ios/GoogleService-Info.plist +0 -30
  363. package/qa/ios/Library/airbridge-ios-sdk-qa-library.podspec +0 -26
  364. package/qa/ios/Podfile +0 -44
  365. package/qa/ios/Podfile.lock +0 -1634
  366. package/qa/jest.config.js +0 -3
  367. package/qa/metro.config.js +0 -67
  368. package/qa/package-lock.json +0 -14289
  369. package/qa/package.json +0 -47
  370. package/qa/resource/arrow_back.png +0 -0
  371. package/qa/resource/home.png +0 -0
  372. package/qa/resource/info.png +0 -0
  373. package/qa/resource/link.png +0 -0
  374. package/qa/resource/refresh.png +0 -0
  375. package/qa/resource/token.png +0 -0
  376. package/qa/source/App.js +0 -58
  377. package/qa/source/common/Colors.js +0 -20
  378. package/qa/source/common/FCMService.js +0 -94
  379. package/qa/source/common/Native.ts +0 -39
  380. package/qa/source/common/Storage.js +0 -13
  381. package/qa/source/common/Styles.js +0 -39
  382. package/qa/source/component/AttributeEntryInputDialog.js +0 -117
  383. package/qa/source/component/AttributeTypeInputDialog.js +0 -100
  384. package/qa/source/component/ConfirmDialog.js +0 -72
  385. package/qa/source/component/CustomButton.js +0 -50
  386. package/qa/source/component/CustomEventParamsDialog.js +0 -150
  387. package/qa/source/component/CustomTextInput.js +0 -40
  388. package/qa/source/component/EntryInputDialog.js +0 -89
  389. package/qa/source/component/HorizontalPreference.js +0 -46
  390. package/qa/source/component/ImageButton.js +0 -35
  391. package/qa/source/component/InjectInputDialog.js +0 -80
  392. package/qa/source/component/MessageDialog.js +0 -81
  393. package/qa/source/component/UrlInputDialog.js +0 -80
  394. package/qa/source/component/ValueInputDialog.js +0 -80
  395. package/qa/source/component/VerticalPreference.js +0 -42
  396. package/qa/source/navigations/Stack.js +0 -110
  397. package/qa/source/pages/Browse.js +0 -118
  398. package/qa/source/pages/DeviceInfo.js +0 -135
  399. package/qa/source/pages/Event.js +0 -171
  400. package/qa/source/pages/Home.js +0 -136
  401. package/qa/source/pages/Identifiers.js +0 -108
  402. package/qa/source/pages/InstallReferrer.js +0 -64
  403. package/qa/source/pages/Placement.js +0 -38
  404. package/qa/source/pages/RequestPermissions.tsx +0 -41
  405. package/qa/source/pages/UserInfo.js +0 -168
  406. package/qa/source/pages/appInfo.js +0 -22
  407. package/qa/tsconfig.json +0 -3
  408. package/scripts/addiOSFramework.js +0 -48
  409. package/scripts/build-qa.sh +0 -64
  410. package/scripts/change_restricted.sh +0 -21
  411. package/scripts/update_native_version.sh +0 -104
  412. package/source/module/Attribution.ts +0 -60
@@ -0,0 +1,100 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { NativeEventEmitter, NativeModules } from 'react-native';
11
+ import { createInteractor } from '../architecture/Interactor';
12
+ import { check } from '../utility/check';
13
+ import { log } from '../utility/log';
14
+ export const createDependency = () => { };
15
+ createDependency.FetchModule = () => ({
16
+ emitter: new NativeEventEmitter(NativeModules.FetchInteractor),
17
+ interactor: createInteractor(NativeModules.FetchInteractor),
18
+ });
19
+ export const createFetchModule = () => {
20
+ // create dependency
21
+ const { emitter, interactor } = createDependency.FetchModule();
22
+ // define member
23
+ let id = 0;
24
+ // define method
25
+ const fetchDeviceUUID = (onSuccess, onFailure) => __awaiter(void 0, void 0, void 0, function* () {
26
+ if (!check.function(onSuccess)) {
27
+ log.unmatchedType('onSuccess', 'function?');
28
+ return false;
29
+ }
30
+ if (!(check.function(onFailure) || check.undefined(onFailure))) {
31
+ log.unmatchedType('onFailure', 'function?');
32
+ return false;
33
+ }
34
+ const promiseID = `${id++}`;
35
+ return new Promise((onResolve, onReject) => {
36
+ const subscription = emitter.addListener('airbridge.fetch', (message) => {
37
+ if (message.id !== promiseID) {
38
+ return;
39
+ }
40
+ switch (message.type) {
41
+ case 'onResolve':
42
+ onResolve(message.value);
43
+ break;
44
+ case 'onReject':
45
+ onReject(Error(message.value));
46
+ break;
47
+ }
48
+ subscription.remove();
49
+ });
50
+ interactor.fetchDeviceUUID(promiseID, (deviceUUID) => { onSuccess(deviceUUID); }, (message) => { onFailure === null || onFailure === void 0 ? void 0 : onFailure(Error(message)); });
51
+ });
52
+ });
53
+ /**
54
+ * Fetch airbridgeGeneratedUUID of SDK.
55
+ * @param onSuccess Callback to be invoked when airbridgeGeneratedUUID is successfully handled.
56
+ * @param onFailure Callback to be invoked when any error occurs.
57
+ */
58
+ const fetchAirbridgeGeneratedUUID = (onSuccess, onFailure) => __awaiter(void 0, void 0, void 0, function* () {
59
+ if (!check.function(onSuccess)) {
60
+ log.unmatchedType('onSuccess', 'function?');
61
+ return false;
62
+ }
63
+ if (!(check.function(onFailure) || check.undefined(onFailure))) {
64
+ log.unmatchedType('onFailure', 'function?');
65
+ return false;
66
+ }
67
+ const promiseID = `${id++}`;
68
+ return new Promise((onResolve, onReject) => {
69
+ const subscription = emitter.addListener('airbridge.fetch', (message) => {
70
+ if (message.id !== promiseID) {
71
+ return;
72
+ }
73
+ switch (message.type) {
74
+ case 'onResolve':
75
+ onResolve(message.value);
76
+ break;
77
+ case 'onReject':
78
+ onReject(Error(message.value));
79
+ break;
80
+ }
81
+ subscription.remove();
82
+ });
83
+ interactor.fetchAirbridgeGeneratedUUID(promiseID, (airbridgeGeneratedUUID) => { onSuccess(airbridgeGeneratedUUID); }, (message) => { onFailure === null || onFailure === void 0 ? void 0 : onFailure(Error(message)); });
84
+ });
85
+ });
86
+ const isUninstallTrackingNotification = (notification) => {
87
+ if (!check.object(notification)) {
88
+ log.unmatchedType('notification', 'object');
89
+ return false;
90
+ }
91
+ return check.defined(notification['airbridge-uninstall-tracking']);
92
+ };
93
+ // create object
94
+ return {
95
+ fetchDeviceUUID,
96
+ fetchAirbridgeGeneratedUUID,
97
+ isUninstallTrackingNotification,
98
+ };
99
+ };
100
+ //# sourceMappingURL=Fetch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Fetch.js","sourceRoot":"","sources":["../../../source/module/Fetch.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAEhE,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAC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{
2
+ (): void;
3
+ RegisterModule(): {
4
+ interactor: InAppPurchaseInteractor;
5
+ };
6
+ };
7
+ type InAppPurchaseInteractor = {
8
+ startInAppPurchaseTracking(): void;
9
+ stopInAppPurchaseTracking(): void;
10
+ };
11
+ export type RegisterModule = ReturnType<typeof createInAppPurchaseModule>;
12
+ export declare const createInAppPurchaseModule: () => {
13
+ startInAppPurchaseTracking: () => void;
14
+ stopInAppPurchaseTracking: () => void;
15
+ };
16
+ export {};
@@ -0,0 +1,23 @@
1
+ import { NativeModules } from 'react-native';
2
+ import { createInteractor } from '../architecture/Interactor';
3
+ export const createDependency = () => { };
4
+ createDependency.RegisterModule = () => ({
5
+ interactor: createInteractor(NativeModules.InAppPurchaseInteractor),
6
+ });
7
+ export const createInAppPurchaseModule = () => {
8
+ // create dependency
9
+ const { interactor } = createDependency.RegisterModule();
10
+ // define method
11
+ const startInAppPurchaseTracking = () => {
12
+ interactor.startInAppPurchaseTracking();
13
+ };
14
+ const stopInAppPurchaseTracking = () => {
15
+ interactor.stopInAppPurchaseTracking();
16
+ };
17
+ // create object
18
+ return {
19
+ startInAppPurchaseTracking,
20
+ stopInAppPurchaseTracking
21
+ };
22
+ };
23
+ //# sourceMappingURL=InAppPurchase.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InAppPurchase.js","sourceRoot":"","sources":["../../../source/module/InAppPurchase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAE5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAE7D,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE,GAAE,CAAC,CAAA;AAOxC,gBAAgB,CAAC,cAAc,GAAG,GAAG,EAAE,CAAC,CAAC;IACrC,UAAU,EAAE,gBAAgB,CAA0B,aAAa,CAAC,uBAAuB,CAAC;CAC/F,CAAC,CAAA;AAIF,MAAM,CAAC,MAAM,yBAAyB,GAAE,GAAG,EAAE;IACzC,oBAAoB;IACpB,MAAM,EAAE,UAAU,EAAE,GAAG,gBAAgB,CAAC,cAAc,EAAE,CAAA;IAExD,gBAAgB;IAChB,MAAM,0BAA0B,GAAG,GAAG,EAAE;QACpC,UAAU,CAAC,0BAA0B,EAAE,CAAA;IAC3C,CAAC,CAAA;IAED,MAAM,yBAAyB,GAAG,GAAG,EAAE;QACnC,UAAU,CAAC,yBAAyB,EAAE,CAAA;IAC1C,CAAC,CAAA;IAED,gBAAgB;IAChB,OAAO;QACH,0BAA0B;QAC1B,yBAAyB;KAC5B,CAAA;AACL,CAAC,CAAA"}
@@ -0,0 +1,21 @@
1
+ import { NativeEventEmitter } from 'react-native';
2
+ import { AirbridgeTrackingLink } from '../type/AirbridgeTrackingLink';
3
+ export declare const createDependency: {
4
+ (): void;
5
+ PlacementModule(): {
6
+ emitter: NativeEventEmitter;
7
+ interactor: PlacementInteractor;
8
+ };
9
+ };
10
+ type PlacementInteractor = {
11
+ click(promiseID: string, trackingLink: string, onSuccess: () => void, onFailure: (message: string) => void): Promise<boolean>;
12
+ impression(promiseID: string, trackingLink: string, onSuccess: () => void, onFailure: (message: string) => void): Promise<boolean>;
13
+ createTrackingLink(channel: string, option: Record<string, any>, onSuccess: (airbridgeTrackingLink: Record<string, string>) => void, onFailure: (message: string) => void): void;
14
+ };
15
+ export type PlacementModule = ReturnType<typeof createPlacementModule>;
16
+ export declare const createPlacementModule: () => {
17
+ click: (trackingLink: string, onSuccess?: () => void, onFailure?: (error: Error) => void) => Promise<boolean>;
18
+ impression: (trackingLink: string, onSuccess?: () => void, onFailure?: (error: Error) => void) => Promise<boolean>;
19
+ createTrackingLink: (channel: string, option: Record<string, any>, onSuccess: (airbridgeTrackingLink: AirbridgeTrackingLink) => void, onFailure?: (error: Error) => void) => void;
20
+ };
21
+ export {};
@@ -0,0 +1,123 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { NativeEventEmitter, NativeModules } from 'react-native';
11
+ import { createInteractor } from '../architecture/Interactor';
12
+ import { check } from '../utility/check';
13
+ import { log } from '../utility/log';
14
+ export const createDependency = () => { };
15
+ createDependency.PlacementModule = () => ({
16
+ emitter: new NativeEventEmitter(NativeModules.PlacementInteractor),
17
+ interactor: createInteractor(NativeModules.PlacementInteractor),
18
+ });
19
+ export const createPlacementModule = () => {
20
+ // create dependency
21
+ const { emitter, interactor } = createDependency.PlacementModule();
22
+ // define member
23
+ let id = 0;
24
+ // define method
25
+ const click = (trackingLink, onSuccess, onFailure) => __awaiter(void 0, void 0, void 0, function* () {
26
+ if (!check.string(trackingLink)) {
27
+ log.unmatchedType('trackingLink', 'string');
28
+ return false;
29
+ }
30
+ if (!(check.function(onSuccess) || check.undefined(onSuccess))) {
31
+ log.unmatchedType('onSuccess', 'function?');
32
+ return false;
33
+ }
34
+ if (!(check.function(onFailure) || check.undefined(onFailure))) {
35
+ log.unmatchedType('onFailure', 'function?');
36
+ return false;
37
+ }
38
+ const promiseID = `${id++}`;
39
+ return new Promise((onResolve, onReject) => {
40
+ const subscription = emitter.addListener('airbridge.placement', (message) => {
41
+ if (message.id !== promiseID) {
42
+ return;
43
+ }
44
+ switch (message.type) {
45
+ case 'onResolve':
46
+ onResolve(message.value);
47
+ break;
48
+ case 'onReject':
49
+ onReject(Error(message.value));
50
+ break;
51
+ }
52
+ subscription.remove();
53
+ });
54
+ interactor.click(promiseID, trackingLink, () => { onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(); }, (message) => { onFailure === null || onFailure === void 0 ? void 0 : onFailure(Error(message)); });
55
+ });
56
+ });
57
+ const impression = (trackingLink, onSuccess, onFailure) => __awaiter(void 0, void 0, void 0, function* () {
58
+ if (!check.string(trackingLink)) {
59
+ log.unmatchedType('trackingLink', 'string');
60
+ return false;
61
+ }
62
+ if (!(check.function(onSuccess) || check.undefined(onSuccess))) {
63
+ log.unmatchedType('onSuccess', 'function?');
64
+ return false;
65
+ }
66
+ if (!(check.function(onFailure) || check.undefined(onFailure))) {
67
+ log.unmatchedType('onFailure', 'function?');
68
+ return false;
69
+ }
70
+ const promiseID = `${id++}`;
71
+ return new Promise((onResolve, onReject) => {
72
+ const subscription = emitter.addListener('airbridge.placement', (message) => {
73
+ if (message.id !== promiseID) {
74
+ return;
75
+ }
76
+ switch (message.type) {
77
+ case 'onResolve':
78
+ onResolve(message.value);
79
+ break;
80
+ case 'onReject':
81
+ onReject(Error(message.value));
82
+ break;
83
+ }
84
+ subscription.remove();
85
+ });
86
+ interactor.impression(promiseID, trackingLink, () => { onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(); }, (message) => { onFailure === null || onFailure === void 0 ? void 0 : onFailure(Error(message)); });
87
+ });
88
+ });
89
+ const createTrackingLink = (channel, option, onSuccess, onFailure) => {
90
+ if (!check.string(channel)) {
91
+ log.unmatchedType('channel', 'string');
92
+ return;
93
+ }
94
+ if (!(check.undefined(option) || check.object(option))) {
95
+ log.unmatchedType('option', 'object');
96
+ return;
97
+ }
98
+ if (!check.function(onSuccess)) {
99
+ log.unmatchedType('onSuccess', 'function?');
100
+ return;
101
+ }
102
+ if (!(check.function(onFailure) || check.undefined(onFailure))) {
103
+ log.unmatchedType('onFailure', 'function?');
104
+ return;
105
+ }
106
+ interactor.createTrackingLink(channel, option, (airbridgeTrackingLink) => {
107
+ if (check.string(airbridgeTrackingLink['qrcodeURL']) &&
108
+ check.string(airbridgeTrackingLink['shortURL'])) {
109
+ onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess({
110
+ qrcodeURL: airbridgeTrackingLink['qrcodeURL'],
111
+ shortURL: airbridgeTrackingLink['shortURL']
112
+ });
113
+ }
114
+ }, (message) => { onFailure === null || onFailure === void 0 ? void 0 : onFailure(Error(message)); });
115
+ };
116
+ // create object
117
+ return {
118
+ click,
119
+ impression,
120
+ createTrackingLink
121
+ };
122
+ };
123
+ //# sourceMappingURL=Placement.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Placement.js","sourceRoot":"","sources":["../../../source/module/Placement.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAEhE,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAIpC,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE,GAAG,CAAC,CAAA;AAyBzC,gBAAgB,CAAC,eAAe,GAAG,GAAG,EAAE,CAAC,CAAC;IACtC,OAAO,EAAE,IAAI,kBAAkB,CAAC,aAAa,CAAC,mBAAmB,CAAC;IAClE,UAAU,EAAE,gBAAgB,CAAsB,aAAa,CAAC,mBAAmB,CAAC;CACvF,CAAC,CAAA;AAIF,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,EAAE;IACtC,oBAAoB;IACpB,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,gBAAgB,CAAC,eAAe,EAAE,CAAA;IAElE,gBAAgB;IAChB,IAAI,EAAE,GAAG,CAAC,CAAA;IAEV,gBAAgB;IAChB,MAAM,KAAK,GAAG,CACV,YAAoB,EACpB,SAAsB,EACtB,SAAkC,EAClB,EAAE;QAClB,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC;YAC9B,GAAG,CAAC,aAAa,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAA;YAC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AW,CAAC,CAAA;YAC3C,OAAM;QACV,CAAC;QAED,UAAU,CAAC,kBAAkB,CACzB,OAAO,EACP,MAAM,EACN,CAAC,qBAA6C,EAAE,EAAE;YAC9C,IACI,KAAK,CAAC,MAAM,CAAC,qBAAqB,CAAC,WAAW,CAAC,CAAC;gBAChD,KAAK,CAAC,MAAM,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC,EACjD,CAAC;gBACC,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAG;oBACR,SAAS,EAAE,qBAAqB,CAAC,WAAW,CAAC;oBAC7C,QAAQ,EAAE,qBAAqB,CAAC,UAAU,CAAC;iBAC9C,CAAC,CAAA;YACN,CAAC;QACL,CAAC,EACD,CAAC,OAAe,EAAE,EAAE,GAAG,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAA,CAAC,CAAC,CACvD,CAAA;IACL,CAAC,CAAA;IAED,gBAAgB;IAChB,OAAO;QACH,KAAK;QACL,UAAU;QACV,kBAAkB;KACrB,CAAA;AACL,CAAC,CAAA"}
@@ -0,0 +1,49 @@
1
+ export declare const createDependency: {
2
+ (): void;
3
+ RegisterModule(): {
4
+ interactor: RegisterInteractor;
5
+ };
6
+ };
7
+ type RegisterInteractor = {
8
+ setUserID(id: string): void;
9
+ clearUserID(): void;
10
+ setUserEmail(email: string): void;
11
+ clearUserEmail(): void;
12
+ setUserPhone(phone: string): void;
13
+ clearUserPhone(): void;
14
+ setUserAttribute(option: {
15
+ key: string;
16
+ value: any;
17
+ }): void;
18
+ removeUserAttribute(key: string): void;
19
+ clearUserAttributes(): void;
20
+ setUserAlias(key: string, value: string): void;
21
+ removeUserAlias(key: string): void;
22
+ clearUserAlias(): void;
23
+ clearUser(): void;
24
+ setDeviceAlias(key: string, value: string): void;
25
+ removeDeviceAlias(key: string): void;
26
+ clearDeviceAlias(): void;
27
+ registerPushToken(token: string): void;
28
+ };
29
+ export type RegisterModule = ReturnType<typeof createRegisterModule>;
30
+ export declare const createRegisterModule: () => {
31
+ setUserID: (id: string) => void;
32
+ clearUserID: () => void;
33
+ setUserEmail: (email: string) => void;
34
+ clearUserEmail: () => void;
35
+ setUserPhone: (phone: string) => void;
36
+ clearUserPhone: () => void;
37
+ setUserAttribute: (key: string, value: any) => void;
38
+ removeUserAttribute: (key: string) => void;
39
+ clearUserAttributes: () => void;
40
+ setUserAlias: (key: string, value: string) => void;
41
+ removeUserAlias: (key: string) => void;
42
+ clearUserAlias: () => void;
43
+ clearUser: () => void;
44
+ setDeviceAlias: (key: string, value: string) => void;
45
+ removeDeviceAlias: (key: string) => void;
46
+ clearDeviceAlias: () => void;
47
+ registerPushToken: (token: string) => void;
48
+ };
49
+ export {};
@@ -0,0 +1,138 @@
1
+ import { NativeModules } from 'react-native';
2
+ import { createInteractor } from '../architecture/Interactor';
3
+ import { check } from '../utility/check';
4
+ import { log } from '../utility/log';
5
+ import { checkJSONElement, createJSONElement } from '../utility/json';
6
+ export const createDependency = () => { };
7
+ createDependency.RegisterModule = () => ({
8
+ interactor: createInteractor(NativeModules.RegisterInteractor),
9
+ });
10
+ export const createRegisterModule = () => {
11
+ // create dependency
12
+ const { interactor } = createDependency.RegisterModule();
13
+ // define method
14
+ const setUserID = (id) => {
15
+ if (!check.string(id)) {
16
+ log.unmatchedType('id', 'string');
17
+ return;
18
+ }
19
+ interactor.setUserID(id);
20
+ };
21
+ const clearUserID = () => {
22
+ interactor.clearUserID();
23
+ };
24
+ const setUserEmail = (email) => {
25
+ if (!check.string(email)) {
26
+ log.unmatchedType('email', 'string');
27
+ return;
28
+ }
29
+ interactor.setUserEmail(email);
30
+ };
31
+ const clearUserEmail = () => {
32
+ interactor.clearUserEmail();
33
+ };
34
+ const setUserPhone = (phone) => {
35
+ if (!check.string(phone)) {
36
+ log.unmatchedType('phone', 'string');
37
+ return;
38
+ }
39
+ interactor.setUserPhone(phone);
40
+ };
41
+ const clearUserPhone = () => {
42
+ interactor.clearUserPhone();
43
+ };
44
+ const setUserAttribute = (key, value) => {
45
+ if (!check.string(key)) {
46
+ log.unmatchedType('key', 'string');
47
+ return;
48
+ }
49
+ if (check.defined(value) && !checkJSONElement(value)) {
50
+ log.nonJSONValue('value');
51
+ value = createJSONElement(value);
52
+ }
53
+ interactor.setUserAttribute({ key, value });
54
+ };
55
+ const removeUserAttribute = (key) => {
56
+ if (!check.string(key)) {
57
+ log.unmatchedType('key', 'string');
58
+ return;
59
+ }
60
+ interactor.removeUserAttribute(key);
61
+ };
62
+ const clearUserAttributes = () => {
63
+ interactor.clearUserAttributes();
64
+ };
65
+ const setUserAlias = (key, value) => {
66
+ if (!check.string(key)) {
67
+ log.unmatchedType('key', 'string');
68
+ return;
69
+ }
70
+ if (!check.string(value)) {
71
+ log.unmatchedType('value', 'string');
72
+ return;
73
+ }
74
+ interactor.setUserAlias(key, value);
75
+ };
76
+ const removeUserAlias = (key) => {
77
+ if (!check.string(key)) {
78
+ log.unmatchedType('key', 'string');
79
+ return;
80
+ }
81
+ interactor.removeUserAlias(key);
82
+ };
83
+ const clearUserAlias = () => {
84
+ interactor.clearUserAlias();
85
+ };
86
+ const clearUser = () => {
87
+ interactor.clearUser();
88
+ };
89
+ const setDeviceAlias = (key, value) => {
90
+ if (!check.string(key)) {
91
+ log.unmatchedType('key', 'string');
92
+ return;
93
+ }
94
+ if (!check.string(value)) {
95
+ log.unmatchedType('value', 'string');
96
+ return;
97
+ }
98
+ interactor.setDeviceAlias(key, value);
99
+ };
100
+ const removeDeviceAlias = (key) => {
101
+ if (!check.string(key)) {
102
+ log.unmatchedType('key', 'string');
103
+ return;
104
+ }
105
+ interactor.removeDeviceAlias(key);
106
+ };
107
+ const clearDeviceAlias = () => {
108
+ interactor.clearDeviceAlias();
109
+ };
110
+ const registerPushToken = (token) => {
111
+ if (!check.string(token)) {
112
+ log.unmatchedType('token', 'string');
113
+ return;
114
+ }
115
+ interactor.registerPushToken(token);
116
+ };
117
+ // create object
118
+ return {
119
+ setUserID,
120
+ clearUserID,
121
+ setUserEmail,
122
+ clearUserEmail,
123
+ setUserPhone,
124
+ clearUserPhone,
125
+ setUserAttribute,
126
+ removeUserAttribute,
127
+ clearUserAttributes,
128
+ setUserAlias,
129
+ removeUserAlias,
130
+ clearUserAlias,
131
+ clearUser,
132
+ setDeviceAlias,
133
+ removeDeviceAlias,
134
+ clearDeviceAlias,
135
+ registerPushToken,
136
+ };
137
+ };
138
+ //# sourceMappingURL=Register.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Register.js","sourceRoot":"","sources":["../../../source/module/Register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAE5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AACpC,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAErE,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE,GAAE,CAAC,CAAA;AA2BxC,gBAAgB,CAAC,cAAc,GAAG,GAAG,EAAE,CAAC,CAAC;IACrC,UAAU,EAAE,gBAAgB,CAAqB,aAAa,CAAC,kBAAkB,CAAC;CACrF,CAAC,CAAA;AAIF,MAAM,CAAC,MAAM,oBAAoB,GAAE,GAAG,EAAE;IACpC,oBAAoB;IACpB,MAAM,EAAE,UAAU,EAAE,GAAG,gBAAgB,CAAC,cAAc,EAAE,CAAA;IAExD,gBAAgB;IAChB,MAAM,SAAS,GAAG,CAAC,EAAU,EAAE,EAAE;QAC7B,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC;YACpB,GAAG,CAAC,aAAa,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAA;YACjC,OAAM;QACV,CAAC;QAED,UAAU,CAAC,SAAS,CAAC,EAAE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X,YAAY;QACZ,cAAc;QACd,YAAY;QACZ,cAAc;QAEd,gBAAgB;QAChB,mBAAmB;QACnB,mBAAmB;QAEnB,YAAY;QACZ,eAAe;QACf,cAAc;QAEd,SAAS;QAET,cAAc;QACd,iBAAiB;QACjB,gBAAgB;QAEhB,iBAAiB;KACpB,CAAA;AACL,CAAC,CAAA"}
@@ -0,0 +1,30 @@
1
+ export declare const createDependency: {
2
+ (): void;
3
+ SwitchModule(): {
4
+ interactor: SwitchInteractor;
5
+ };
6
+ };
7
+ type SwitchInteractor = {
8
+ enableSDK(): void;
9
+ disableSDK(): void;
10
+ isSDKEnabled(): Promise<boolean>;
11
+ startTracking(): void;
12
+ stopTracking(): void;
13
+ isTrackingEnabled(): Promise<boolean>;
14
+ startInAppPurchaseTracking(): void;
15
+ stopInAppPurchaseTracking(): void;
16
+ isInAppPurchaseTrackingEnabled(): Promise<boolean>;
17
+ };
18
+ export type SwitchModule = ReturnType<typeof createSwitchModule>;
19
+ export declare const createSwitchModule: () => {
20
+ enableSDK: () => void;
21
+ disableSDK: () => void;
22
+ isSDKEnabled: () => Promise<boolean>;
23
+ startTracking: () => void;
24
+ stopTracking: () => void;
25
+ isTrackingEnabled: () => Promise<boolean>;
26
+ startInAppPurchaseTracking: () => void;
27
+ stopInAppPurchaseTracking: () => void;
28
+ isInAppPurchaseTrackingEnabled: () => Promise<boolean>;
29
+ };
30
+ export {};
@@ -0,0 +1,51 @@
1
+ import { NativeModules } from 'react-native';
2
+ import { createInteractor } from '../architecture/Interactor';
3
+ export const createDependency = () => { };
4
+ createDependency.SwitchModule = () => ({
5
+ interactor: createInteractor(NativeModules.SwitchInteractor),
6
+ });
7
+ export const createSwitchModule = () => {
8
+ // create dependency
9
+ const { interactor } = createDependency.SwitchModule();
10
+ // define method
11
+ const enableSDK = () => {
12
+ interactor.enableSDK();
13
+ };
14
+ const disableSDK = () => {
15
+ interactor.disableSDK();
16
+ };
17
+ const isSDKEnabled = () => {
18
+ return interactor.isSDKEnabled();
19
+ };
20
+ const startTracking = () => {
21
+ interactor.startTracking();
22
+ };
23
+ const stopTracking = () => {
24
+ interactor.stopTracking();
25
+ };
26
+ const isTrackingEnabled = () => {
27
+ return interactor.isTrackingEnabled();
28
+ };
29
+ const startInAppPurchaseTracking = () => {
30
+ interactor.startInAppPurchaseTracking();
31
+ };
32
+ const stopInAppPurchaseTracking = () => {
33
+ interactor.stopInAppPurchaseTracking();
34
+ };
35
+ const isInAppPurchaseTrackingEnabled = () => {
36
+ return interactor.isInAppPurchaseTrackingEnabled();
37
+ };
38
+ // create object
39
+ return {
40
+ enableSDK,
41
+ disableSDK,
42
+ isSDKEnabled,
43
+ startTracking,
44
+ stopTracking,
45
+ isTrackingEnabled,
46
+ startInAppPurchaseTracking,
47
+ stopInAppPurchaseTracking,
48
+ isInAppPurchaseTrackingEnabled,
49
+ };
50
+ };
51
+ //# sourceMappingURL=Switch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Switch.js","sourceRoot":"","sources":["../../../source/module/Switch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAE5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAE7D,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE,GAAE,CAAC,CAAA;AAgBxC,gBAAgB,CAAC,YAAY,GAAG,GAAG,EAAE,CAAC,CAAC;IACnC,UAAU,EAAE,gBAAgB,CAAmB,aAAa,CAAC,gBAAgB,CAAC;CACjF,CAAC,CAAA;AAIF,MAAM,CAAC,MAAM,kBAAkB,GAAE,GAAG,EAAE;IAClC,oBAAoB;IACpB,MAAM,EAAE,UAAU,EAAE,GAAG,gBAAgB,CAAC,YAAY,EAAE,CAAA;IAEtD,gBAAgB;IAChB,MAAM,SAAS,GAAG,GAAG,EAAE;QACnB,UAAU,CAAC,SAAS,EAAE,CAAA;IAC1B,CAAC,CAAA;IAED,MAAM,UAAU,GAAG,GAAG,EAAE;QACpB,UAAU,CAAC,UAAU,EAAE,CAAA;IAC3B,CAAC,CAAA;IAED,MAAM,YAAY,GAAG,GAAG,EAAE;QACtB,OAAO,UAAU,CAAC,YAAY,EAAE,CAAA;IACpC,CAAC,CAAA;IAED,MAAM,aAAa,GAAG,GAAG,EAAE;QACvB,UAAU,CAAC,aAAa,EAAE,CAAA;IAC9B,CAAC,CAAA;IAED,MAAM,YAAY,GAAG,GAAG,EAAE;QACtB,UAAU,CAAC,YAAY,EAAE,CAAA;IAC7B,CAAC,CAAA;IAED,MAAM,iBAAiB,GAAG,GAAG,EAAE;QAC3B,OAAO,UAAU,CAAC,iBAAiB,EAAE,CAAA;IACzC,CAAC,CAAA;IAED,MAAM,0BAA0B,GAAG,GAAG,EAAE;QACpC,UAAU,CAAC,0BAA0B,EAAE,CAAA;IAC3C,CAAC,CAAA;IAED,MAAM,yBAAyB,GAAG,GAAG,EAAE;QACnC,UAAU,CAAC,yBAAyB,EAAE,CAAA;IAC1C,CAAC,CAAA;IAED,MAAM,8BAA8B,GAAG,GAAG,EAAE;QACxC,OAAO,UAAU,CAAC,8BAA8B,EAAE,CAAA;IACtD,CAAC,CAAA;IAED,gBAAgB;IAChB,OAAO;QACH,SAAS;QACT,UAAU;QACV,YAAY;QACZ,aAAa;QACb,YAAY;QACZ,iBAAiB;QACjB,0BAA0B;QAC1B,yBAAyB;QACzB,8BAA8B;KACjC,CAAA;AACL,CAAC,CAAA"}
@@ -0,0 +1,16 @@
1
+ export declare const createDependency: {
2
+ (): void;
3
+ WebInterfaceModule(): {
4
+ interactor: WebInterfaceInteractor;
5
+ };
6
+ };
7
+ type WebInterfaceInteractor = {
8
+ createWebInterfaceScript(webToken: string, postMessageScript: string): Promise<string>;
9
+ handleWebInterfaceCommand(command: string): void;
10
+ };
11
+ export type WebInterfaceModule = ReturnType<typeof createWebInterfaceModule>;
12
+ export declare const createWebInterfaceModule: () => {
13
+ createWebInterfaceScript: (webToken: string, postMessageScript: string) => Promise<string | undefined>;
14
+ handleWebInterfaceCommand: (command: string) => undefined;
15
+ };
16
+ export {};
@@ -0,0 +1,46 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { NativeModules } from 'react-native';
11
+ import { createInteractor } from '../architecture/Interactor';
12
+ import { check } from '../utility/check';
13
+ import { log } from '../utility/log';
14
+ export const createDependency = () => { };
15
+ createDependency.WebInterfaceModule = () => ({
16
+ interactor: createInteractor(NativeModules.WebInterfaceInteractor),
17
+ });
18
+ export const createWebInterfaceModule = () => {
19
+ // create dependency
20
+ const { interactor } = createDependency.WebInterfaceModule();
21
+ // define method
22
+ const createWebInterfaceScript = (webToken, postMessageScript) => __awaiter(void 0, void 0, void 0, function* () {
23
+ if (!check.string(webToken)) {
24
+ log.unmatchedType('webToken', 'string');
25
+ return undefined;
26
+ }
27
+ if (!check.string(postMessageScript)) {
28
+ log.unmatchedType('postMessageScript', 'string');
29
+ return undefined;
30
+ }
31
+ return yield interactor.createWebInterfaceScript(webToken, postMessageScript);
32
+ });
33
+ const handleWebInterfaceCommand = (command) => {
34
+ if (!check.string(command)) {
35
+ log.unmatchedType('command', 'string');
36
+ return undefined;
37
+ }
38
+ interactor.handleWebInterfaceCommand(command);
39
+ };
40
+ // create object
41
+ return {
42
+ createWebInterfaceScript,
43
+ handleWebInterfaceCommand,
44
+ };
45
+ };
46
+ //# sourceMappingURL=WebInterface.js.map