nimbbl-mobile-react-native-sdk 1.1.0 → 1.2.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 (177) hide show
  1. package/README.md +102 -66
  2. package/android/build.gradle +4 -4
  3. package/android/src/main/java/com/nimbbl/reactnative/NimbblCheckoutActivity.kt +55 -111
  4. package/android/src/main/java/com/nimbbl/reactnative/NimbblReactNativeSDKModule.kt +58 -157
  5. package/ios/NimbblReactNativeSDK.m +6 -2
  6. package/ios/NimbblReactNativeSDK.podspec +1 -1
  7. package/ios/NimbblReactNativeSDK.swift +29 -32
  8. package/lib/NimbblSDK.d.ts +11 -34
  9. package/lib/NimbblSDK.js +66 -91
  10. package/lib/constants.d.ts +6 -9
  11. package/lib/constants.js +8 -12
  12. package/lib/index.d.ts +3 -3
  13. package/lib/index.js +3 -4
  14. package/lib/types.d.ts +0 -80
  15. package/nimbbl-mobile-react-native-sdk.podspec +1 -1
  16. package/package.json +16 -3
  17. package/android/build/.transforms/2a0cc55152835fcf4fba7a298d35d4c4/results.bin +0 -1
  18. package/android/build/.transforms/2a0cc55152835fcf4fba7a298d35d4c4/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/nimbbl/reactnative/BuildConfig.dex +0 -0
  19. package/android/build/.transforms/2a0cc55152835fcf4fba7a298d35d4c4/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/nimbbl/reactnative/NimbblCheckoutActivity$Companion.dex +0 -0
  20. package/android/build/.transforms/2a0cc55152835fcf4fba7a298d35d4c4/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/nimbbl/reactnative/NimbblCheckoutActivity.dex +0 -0
  21. package/android/build/.transforms/2a0cc55152835fcf4fba7a298d35d4c4/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/nimbbl/reactnative/NimbblReactNativeSDKModule$Companion.dex +0 -0
  22. package/android/build/.transforms/2a0cc55152835fcf4fba7a298d35d4c4/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/nimbbl/reactnative/NimbblReactNativeSDKModule$createShopOrder$orderResult$1.dex +0 -0
  23. package/android/build/.transforms/2a0cc55152835fcf4fba7a298d35d4c4/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/nimbbl/reactnative/NimbblReactNativeSDKModule.dex +0 -0
  24. package/android/build/.transforms/2a0cc55152835fcf4fba7a298d35d4c4/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/nimbbl/reactnative/NimbblReactNativeSDKPackage.dex +0 -0
  25. package/android/build/.transforms/2a0cc55152835fcf4fba7a298d35d4c4/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/nimbbl/reactnative/TestActivity$Companion.dex +0 -0
  26. package/android/build/.transforms/2a0cc55152835fcf4fba7a298d35d4c4/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/nimbbl/reactnative/TestActivity.dex +0 -0
  27. package/android/build/.transforms/2a0cc55152835fcf4fba7a298d35d4c4/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
  28. package/android/build/.transforms/b59c320b706dec67ea6e4de5e98939af/results.bin +0 -1
  29. package/android/build/.transforms/b59c320b706dec67ea6e4de5e98939af/transformed/classes/classes_dex/classes.dex +0 -0
  30. package/android/build/generated/source/buildConfig/debug/com/nimbbl/reactnative/BuildConfig.java +0 -10
  31. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +0 -23
  32. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +0 -18
  33. package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +0 -6
  34. package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +0 -1
  35. package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  36. package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
  37. package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +0 -0
  38. package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +0 -1
  39. package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +0 -2
  40. package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
  41. package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
  42. package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +0 -2
  43. package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/nimbbl-mobile-react-native-sdk_debug.kotlin_module +0 -0
  44. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/nimbbl/reactnative/BuildConfig.class +0 -0
  45. package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +0 -2
  46. package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +0 -36
  47. package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +0 -23
  48. package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +0 -1
  49. package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +0 -1
  50. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/nimbbl-mobile-react-native-sdk_debug.kotlin_module +0 -0
  51. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/nimbbl/reactnative/BuildConfig.class +0 -0
  52. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/nimbbl/reactnative/NimbblCheckoutActivity$Companion.class +0 -0
  53. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/nimbbl/reactnative/NimbblCheckoutActivity.class +0 -0
  54. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/nimbbl/reactnative/NimbblReactNativeSDKModule$Companion.class +0 -0
  55. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/nimbbl/reactnative/NimbblReactNativeSDKModule$createShopOrder$orderResult$1.class +0 -0
  56. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/nimbbl/reactnative/NimbblReactNativeSDKModule.class +0 -0
  57. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/nimbbl/reactnative/NimbblReactNativeSDKPackage.class +0 -0
  58. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/nimbbl/reactnative/TestActivity$Companion.class +0 -0
  59. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/nimbbl/reactnative/TestActivity.class +0 -0
  60. package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  61. package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +0 -1
  62. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
  63. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
  64. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
  65. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
  66. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
  67. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
  68. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
  69. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
  70. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
  71. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
  72. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
  73. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
  74. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
  75. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
  76. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
  77. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
  78. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
  79. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
  80. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
  81. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
  82. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
  83. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab +0 -0
  84. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream +0 -0
  85. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream.len +0 -0
  86. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.len +0 -0
  87. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
  88. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i +0 -0
  89. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i.len +0 -0
  90. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
  91. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
  92. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
  93. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
  94. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
  95. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
  96. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
  97. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
  98. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
  99. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
  100. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
  101. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
  102. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
  103. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
  104. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
  105. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
  106. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
  107. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
  108. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
  109. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
  110. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
  111. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
  112. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
  113. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
  114. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
  115. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
  116. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
  117. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
  118. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
  119. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
  120. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
  121. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
  122. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
  123. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
  124. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
  125. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +0 -2
  126. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
  127. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
  128. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
  129. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
  130. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
  131. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
  132. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
  133. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
  134. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
  135. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
  136. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
  137. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
  138. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
  139. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
  140. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
  141. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
  142. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
  143. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
  144. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
  145. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
  146. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
  147. package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
  148. package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
  149. package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
  150. package/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -42
  151. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  152. package/android/build/tmp/kotlin-classes/debug/META-INF/nimbbl-mobile-react-native-sdk_debug.kotlin_module +0 -0
  153. package/android/build/tmp/kotlin-classes/debug/com/nimbbl/reactnative/NimbblCheckoutActivity$Companion.class +0 -0
  154. package/android/build/tmp/kotlin-classes/debug/com/nimbbl/reactnative/NimbblCheckoutActivity.class +0 -0
  155. package/android/build/tmp/kotlin-classes/debug/com/nimbbl/reactnative/NimbblReactNativeSDKModule$Companion.class +0 -0
  156. package/android/build/tmp/kotlin-classes/debug/com/nimbbl/reactnative/NimbblReactNativeSDKModule$createShopOrder$orderResult$1.class +0 -0
  157. package/android/build/tmp/kotlin-classes/debug/com/nimbbl/reactnative/NimbblReactNativeSDKModule.class +0 -0
  158. package/android/build/tmp/kotlin-classes/debug/com/nimbbl/reactnative/NimbblReactNativeSDKPackage.class +0 -0
  159. package/android/build/tmp/kotlin-classes/debug/com/nimbbl/reactnative/TestActivity$Companion.class +0 -0
  160. package/android/build/tmp/kotlin-classes/debug/com/nimbbl/reactnative/TestActivity.class +0 -0
  161. package/android/src/main/java/com/nimbbl/reactnative/TestActivity.kt +0 -28
  162. package/lib/NimbblSDK.d.ts.map +0 -1
  163. package/lib/NimbblSDK.js.map +0 -1
  164. package/lib/__tests__/__mocks__/react-native.d.ts +0 -26
  165. package/lib/__tests__/__mocks__/react-native.d.ts.map +0 -1
  166. package/lib/__tests__/__mocks__/react-native.js +0 -23
  167. package/lib/__tests__/__mocks__/react-native.js.map +0 -1
  168. package/lib/__tests__/setup.d.ts +0 -1
  169. package/lib/__tests__/setup.d.ts.map +0 -1
  170. package/lib/__tests__/setup.js +0 -4
  171. package/lib/__tests__/setup.js.map +0 -1
  172. package/lib/constants.d.ts.map +0 -1
  173. package/lib/constants.js.map +0 -1
  174. package/lib/index.d.ts.map +0 -1
  175. package/lib/index.js.map +0 -1
  176. package/lib/types.d.ts.map +0 -1
  177. package/lib/types.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @fileoverview Main Nimbbl SDK for React Native
3
- * @version 1.0.0
3
+ * @version 1.2.0
4
4
  * @author Nimbbl Tech
5
5
  *
6
6
  * This is a wrapper around the native Android and iOS SDKs
@@ -22,24 +22,15 @@ export default class NimbblSDK {
22
22
  * Get shared instance (matching iOS pattern)
23
23
  */
24
24
  static getSharedInstance(): NimbblSDK;
25
- /**
26
- * Test native module availability
27
- */
28
- testNativeModule(): Promise<any>;
29
25
  /**
30
26
  * Initialize the SDK with configuration
31
- * @param config - SDK configuration object
27
+ * @param config - Optional SDK configuration object. If not provided, uses default configuration
32
28
  * @returns Promise resolving to initialization result
33
29
  */
34
- initialize(config: SDKConfig): Promise<{
30
+ initialize(config?: SDKConfig): Promise<{
35
31
  success: boolean;
36
32
  message: string;
37
33
  }>;
38
- /**
39
- * Set environment URL for the SDK
40
- * @param url - Environment URL to set
41
- */
42
- setEnvironmentUrl(url: string): void;
43
34
  /**
44
35
  * Create shop order (matching iOS SDK pattern)
45
36
  * @param currency - Currency code
@@ -71,33 +62,19 @@ export default class NimbblSDK {
71
62
  }): Promise<{
72
63
  success: boolean;
73
64
  message?: string;
65
+ data?: any;
74
66
  }>;
75
67
  /**
76
- * Add event listener for native events
77
- * @param eventName - Event name to listen for
78
- * @param listener - Event listener function
79
- */
80
- addEventListener(eventName: string, listener: (event: any) => void): void;
81
- /**
82
- * Remove event listener
83
- * @param eventName - Event name
84
- * @param listener - Event listener function to remove
85
- */
86
- removeEventListener(eventName: string, listener: (event: any) => void): void;
87
- /**
88
- * Remove all event listeners
89
- */
90
- removeAllEventListeners(): void;
91
- /**
92
- * Get SDK configuration
93
- * @returns Current SDK configuration
68
+ * Add unified checkout response listener (recommended approach)
69
+ * This method handles both success and failure cases in a single callback
70
+ * @param listener - Callback function that receives checkout response data
94
71
  */
95
- getConfig(): SDKConfig | null;
72
+ addCheckoutResponseListener(listener: (data: any) => void): void;
96
73
  /**
97
- * Get initialization status
98
- * @returns Whether the SDK is initialized
74
+ * Remove unified checkout response listener
75
+ * @param listener - Callback function to remove
99
76
  */
100
- isSDKInitialized(): boolean;
77
+ removeCheckoutResponseListener(listener: (data: any) => void): void;
101
78
  /**
102
79
  * Validate SDK configuration
103
80
  * @param config - Configuration to validate
package/lib/NimbblSDK.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * @fileoverview Main Nimbbl SDK for React Native
4
- * @version 1.0.0
4
+ * @version 1.2.0
5
5
  * @author Nimbbl Tech
6
6
  *
7
7
  * This is a wrapper around the native Android and iOS SDKs
@@ -11,10 +11,6 @@ exports.nimbblSDK = void 0;
11
11
  const react_native_1 = require("react-native");
12
12
  const constants_1 = require("./constants");
13
13
  const { NimbblReactNativeSDK } = react_native_1.NativeModules;
14
- // Create event emitter for native events with null check
15
- const eventEmitter = NimbblReactNativeSDK
16
- ? new react_native_1.NativeEventEmitter(NimbblReactNativeSDK)
17
- : null;
18
14
  /**
19
15
  * Main Nimbbl SDK Class
20
16
  * Provides the primary interface for integrating Nimbbl payment functionality
@@ -28,7 +24,7 @@ class NimbblSDK {
28
24
  }
29
25
  this.config = null;
30
26
  this.isInitialized = false;
31
- this.eventEmitter = eventEmitter;
27
+ this.eventEmitter = new react_native_1.NativeEventEmitter(NimbblReactNativeSDK);
32
28
  }
33
29
  /**
34
30
  * Get shared instance (matching iOS pattern)
@@ -39,34 +35,29 @@ class NimbblSDK {
39
35
  }
40
36
  return NimbblSDK.shared;
41
37
  }
42
- /**
43
- * Test native module availability
44
- */
45
- async testNativeModule() {
46
- if (!NimbblReactNativeSDK) {
47
- throw new Error('NimbblReactNativeSDK native module is not available');
48
- }
49
- const result = await NimbblReactNativeSDK.testModule();
50
- return result;
51
- }
52
38
  /**
53
39
  * Initialize the SDK with configuration
54
- * @param config - SDK configuration object
40
+ * @param config - Optional SDK configuration object. If not provided, uses default configuration
55
41
  * @returns Promise resolving to initialization result
56
42
  */
57
43
  async initialize(config) {
58
44
  try {
59
- // Validate configuration
60
- this.validateConfig(config);
45
+ // Use default configuration if no config provided
46
+ const finalConfig = config || constants_1.DEFAULT_CONFIG;
47
+ // Validate configuration if provided
48
+ if (config) {
49
+ this.validateConfig(config);
50
+ }
61
51
  // Merge with default configuration
62
52
  this.config = {
63
53
  ...constants_1.DEFAULT_CONFIG,
64
- ...config,
54
+ ...finalConfig,
65
55
  options: {
66
56
  timeout: constants_1.DEFAULT_CONFIG.timeout,
67
57
  enable_logging: constants_1.DEFAULT_CONFIG.enable_logging,
68
58
  enable_analytics: constants_1.DEFAULT_CONFIG.enable_analytics,
69
- ...config.options,
59
+ api_base_url: constants_1.DEFAULT_CONFIG.api_base_url,
60
+ ...(finalConfig && 'options' in finalConfig ? finalConfig.options : {}),
70
61
  },
71
62
  };
72
63
  // Initialize native module
@@ -77,25 +68,9 @@ class NimbblSDK {
77
68
  return result;
78
69
  }
79
70
  catch (error) {
80
- console.error('SDK initialization failed:', error);
81
71
  throw error;
82
72
  }
83
73
  }
84
- /**
85
- * Set environment URL for the SDK
86
- * @param url - Environment URL to set
87
- */
88
- setEnvironmentUrl(url) {
89
- if (!this.isInitialized) {
90
- throw new Error(constants_1.ERROR_MESSAGES[constants_1.ERROR_CODES.SDK_NOT_INITIALIZED]);
91
- }
92
- if (this.config) {
93
- this.config.options = {
94
- ...this.config.options,
95
- api_base_url: url,
96
- };
97
- }
98
- }
99
74
  /**
100
75
  * Create shop order (matching iOS SDK pattern)
101
76
  * @param currency - Currency code
@@ -128,7 +103,6 @@ class NimbblSDK {
128
103
  return { success: true, data: response };
129
104
  }
130
105
  catch (error) {
131
- console.error('Error creating shop order:', error);
132
106
  return { success: false, error };
133
107
  }
134
108
  }
@@ -149,11 +123,46 @@ class NimbblSDK {
149
123
  wallet_code: options.walletCode || '',
150
124
  payment_flow: options.paymentFlow || '',
151
125
  };
152
- await NimbblReactNativeSDK.checkout(checkoutPayload);
153
- return { success: true, message: 'Checkout initiated successfully' };
126
+ // Use a more reliable callback-based approach for production builds
127
+ return new Promise((resolve) => {
128
+ // Set up a timeout to handle cases where the callback never comes
129
+ const timeout = setTimeout(() => {
130
+ resolve({
131
+ success: false,
132
+ message: 'Payment timeout - no response received',
133
+ });
134
+ }, 300000); // 5 minutes timeout
135
+ // Store the resolve function for the native module to call
136
+ NimbblReactNativeSDK.setCheckoutCallback((result) => {
137
+ var _a;
138
+ clearTimeout(timeout);
139
+ const status = (_a = result === null || result === void 0 ? void 0 : result.status) === null || _a === void 0 ? void 0 : _a.toLowerCase();
140
+ if (status === 'success' || status === 'completed') {
141
+ resolve({ success: true, message: 'Payment completed successfully', data: result });
142
+ }
143
+ else {
144
+ resolve({
145
+ success: false,
146
+ message: (result === null || result === void 0 ? void 0 : result.message) || 'Payment failed',
147
+ data: result,
148
+ });
149
+ }
150
+ });
151
+ // Start the checkout process
152
+ NimbblReactNativeSDK.checkout(checkoutPayload)
153
+ .then(() => {
154
+ // Native checkout initiated successfully
155
+ })
156
+ .catch((error) => {
157
+ clearTimeout(timeout);
158
+ resolve({
159
+ success: false,
160
+ message: error.message || 'Failed to initiate native checkout',
161
+ });
162
+ });
163
+ });
154
164
  }
155
165
  catch (error) {
156
- console.error('Error during checkout:', error);
157
166
  return {
158
167
  success: false,
159
168
  message: error instanceof Error ? error.message : 'Checkout failed',
@@ -161,68 +170,34 @@ class NimbblSDK {
161
170
  }
162
171
  }
163
172
  /**
164
- * Add event listener for native events
165
- * @param eventName - Event name to listen for
166
- * @param listener - Event listener function
173
+ * Add unified checkout response listener (recommended approach)
174
+ * This method handles both success and failure cases in a single callback
175
+ * @param listener - Callback function that receives checkout response data
167
176
  */
168
- addEventListener(eventName, listener) {
169
- if (!this.eventEmitter) {
170
- console.warn(`Event emitter is not initialized. Cannot add listener for event: ${eventName}`);
171
- return;
177
+ addCheckoutResponseListener(listener) {
178
+ if (!this.eventListeners.has('checkout_response')) {
179
+ this.eventListeners.set('checkout_response', []);
172
180
  }
173
- if (!this.eventListeners.has(eventName)) {
174
- this.eventListeners.set(eventName, []);
181
+ this.eventListeners.get('checkout_response').push(listener);
182
+ if (this.eventEmitter) {
183
+ this.eventEmitter.addListener('checkout_response', listener);
175
184
  }
176
- this.eventListeners.get(eventName).push(listener);
177
- // Add native event listener
178
- this.eventEmitter.addListener(eventName, listener);
179
185
  }
180
186
  /**
181
- * Remove event listener
182
- * @param eventName - Event name
183
- * @param listener - Event listener function to remove
187
+ * Remove unified checkout response listener
188
+ * @param listener - Callback function to remove
184
189
  */
185
- removeEventListener(eventName, listener) {
186
- if (!this.eventEmitter) {
187
- console.warn(`Event emitter is not initialized. Cannot remove listener for event: ${eventName}`);
188
- return;
189
- }
190
- const listeners = this.eventListeners.get(eventName);
190
+ removeCheckoutResponseListener(listener) {
191
+ const listeners = this.eventListeners.get('checkout_response');
191
192
  if (listeners) {
192
193
  const index = listeners.indexOf(listener);
193
194
  if (index > -1) {
194
195
  listeners.splice(index, 1);
195
196
  }
196
197
  }
197
- // Remove native event listener
198
- this.eventEmitter.removeAllListeners(eventName);
199
- }
200
- /**
201
- * Remove all event listeners
202
- */
203
- removeAllEventListeners() {
204
- if (!this.eventEmitter) {
205
- console.warn('Event emitter is not initialized. Cannot remove all listeners.');
206
- return;
207
- }
208
- this.eventListeners.forEach((_, eventName) => {
209
- this.eventEmitter.removeAllListeners(eventName);
210
- });
211
- this.eventListeners.clear();
212
- }
213
- /**
214
- * Get SDK configuration
215
- * @returns Current SDK configuration
216
- */
217
- getConfig() {
218
- return this.config;
219
- }
220
- /**
221
- * Get initialization status
222
- * @returns Whether the SDK is initialized
223
- */
224
- isSDKInitialized() {
225
- return this.isInitialized;
198
+ if (this.eventEmitter) {
199
+ this.eventEmitter.removeAllListeners('checkout_response');
200
+ }
226
201
  }
227
202
  /**
228
203
  * Validate SDK configuration
@@ -1,12 +1,8 @@
1
1
  /**
2
2
  * @fileoverview Constants for Nimbbl React Native SDK
3
- * @version 1.0.0
3
+ * @version 1.2.0
4
4
  * @author Nimbbl Tech
5
5
  */
6
- export declare const EVENTS: {
7
- readonly PAYMENT_SUCCESS: "payment_success";
8
- readonly PAYMENT_FAILED: "payment_failed";
9
- };
10
6
  export declare const ENVIRONMENTS: {
11
7
  readonly SANDBOX: "sandbox";
12
8
  readonly PRODUCTION: "production";
@@ -14,18 +10,19 @@ export declare const ENVIRONMENTS: {
14
10
  export declare const ERROR_CODES: {
15
11
  readonly SDK_NOT_INITIALIZED: "SDK_NOT_INITIALIZED";
16
12
  readonly INVALID_CONFIG: "INVALID_CONFIG";
17
- readonly PAYMENT_FAILED: "PAYMENT_FAILED";
18
13
  };
19
14
  export declare const ERROR_MESSAGES: {
20
15
  readonly SDK_NOT_INITIALIZED: "SDK is not initialized. Call initialize() first.";
21
16
  readonly INVALID_CONFIG: "Invalid SDK configuration provided.";
22
- readonly PAYMENT_FAILED: "Payment processing failed.";
17
+ };
18
+ export declare const EVENTS: {
19
+ readonly CHECKOUT_RESPONSE: "checkout_response";
23
20
  };
24
21
  export declare const DEFAULT_CONFIG: {
22
+ readonly environment: "production";
25
23
  readonly timeout: 30000;
26
- readonly enable_logging: true;
24
+ readonly enable_logging: false;
27
25
  readonly enable_analytics: true;
28
26
  readonly api_base_url: "https://api.nimbbl.tech";
29
27
  };
30
- export declare const SDK_VERSION = "1.0.0-alpha";
31
28
  //# sourceMappingURL=constants.d.ts.map
package/lib/constants.js CHANGED
@@ -1,16 +1,11 @@
1
1
  "use strict";
2
2
  /**
3
3
  * @fileoverview Constants for Nimbbl React Native SDK
4
- * @version 1.0.0
4
+ * @version 1.2.0
5
5
  * @author Nimbbl Tech
6
6
  */
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.SDK_VERSION = exports.DEFAULT_CONFIG = exports.ERROR_MESSAGES = exports.ERROR_CODES = exports.ENVIRONMENTS = exports.EVENTS = void 0;
9
- // MARK: - SDK Events
10
- exports.EVENTS = {
11
- PAYMENT_SUCCESS: 'payment_success',
12
- PAYMENT_FAILED: 'payment_failed',
13
- };
8
+ exports.DEFAULT_CONFIG = exports.EVENTS = exports.ERROR_MESSAGES = exports.ERROR_CODES = exports.ENVIRONMENTS = void 0;
14
9
  // MARK: - SDK Environments
15
10
  exports.ENVIRONMENTS = {
16
11
  SANDBOX: 'sandbox',
@@ -20,21 +15,22 @@ exports.ENVIRONMENTS = {
20
15
  exports.ERROR_CODES = {
21
16
  SDK_NOT_INITIALIZED: 'SDK_NOT_INITIALIZED',
22
17
  INVALID_CONFIG: 'INVALID_CONFIG',
23
- PAYMENT_FAILED: 'PAYMENT_FAILED',
24
18
  };
25
19
  // MARK: - Error Messages
26
20
  exports.ERROR_MESSAGES = {
27
21
  [exports.ERROR_CODES.SDK_NOT_INITIALIZED]: 'SDK is not initialized. Call initialize() first.',
28
22
  [exports.ERROR_CODES.INVALID_CONFIG]: 'Invalid SDK configuration provided.',
29
- [exports.ERROR_CODES.PAYMENT_FAILED]: 'Payment processing failed.',
23
+ };
24
+ // MARK: - Events
25
+ exports.EVENTS = {
26
+ CHECKOUT_RESPONSE: 'checkout_response',
30
27
  };
31
28
  // MARK: - Default Configuration
32
29
  exports.DEFAULT_CONFIG = {
30
+ environment: exports.ENVIRONMENTS.PRODUCTION,
33
31
  timeout: 30000,
34
- enable_logging: true,
32
+ enable_logging: false,
35
33
  enable_analytics: true,
36
34
  api_base_url: 'https://api.nimbbl.tech',
37
35
  };
38
- // MARK: - SDK Version
39
- exports.SDK_VERSION = '1.0.0-alpha';
40
36
  //# sourceMappingURL=constants.js.map
package/lib/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @fileoverview Main entry point for Nimbbl React Native SDK
3
- * @version 1.0.0
3
+ * @version 1.2.0
4
4
  * @author Nimbbl Tech
5
5
  *
6
6
  * This SDK is a wrapper around the native Android and iOS SDKs
@@ -8,7 +8,7 @@
8
8
  */
9
9
  export { default as NimbblSDK } from './NimbblSDK';
10
10
  export { nimbblSDK } from './NimbblSDK';
11
- export type { SDKConfig, OrderData, OrderResponse, CustomerDetails, OrderDetails, PaymentOptions, } from './types';
12
- export { EVENTS, ENVIRONMENTS, ERROR_CODES, ERROR_MESSAGES, DEFAULT_CONFIG, SDK_VERSION, } from './constants';
11
+ export type { SDKConfig, } from './types';
12
+ export { ENVIRONMENTS, ERROR_CODES, ERROR_MESSAGES, DEFAULT_CONFIG, EVENTS, } from './constants';
13
13
  export { default } from './NimbblSDK';
14
14
  //# sourceMappingURL=index.d.ts.map
package/lib/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /**
3
3
  * @fileoverview Main entry point for Nimbbl React Native SDK
4
- * @version 1.0.0
4
+ * @version 1.2.0
5
5
  * @author Nimbbl Tech
6
6
  *
7
7
  * This SDK is a wrapper around the native Android and iOS SDKs
@@ -11,7 +11,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
11
11
  return (mod && mod.__esModule) ? mod : { "default": mod };
12
12
  };
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.default = exports.SDK_VERSION = exports.DEFAULT_CONFIG = exports.ERROR_MESSAGES = exports.ERROR_CODES = exports.ENVIRONMENTS = exports.EVENTS = exports.nimbblSDK = exports.NimbblSDK = void 0;
14
+ exports.default = exports.EVENTS = exports.DEFAULT_CONFIG = exports.ERROR_MESSAGES = exports.ERROR_CODES = exports.ENVIRONMENTS = exports.nimbblSDK = exports.NimbblSDK = void 0;
15
15
  // Main SDK class
16
16
  var NimbblSDK_1 = require("./NimbblSDK");
17
17
  Object.defineProperty(exports, "NimbblSDK", { enumerable: true, get: function () { return __importDefault(NimbblSDK_1).default; } });
@@ -20,12 +20,11 @@ var NimbblSDK_2 = require("./NimbblSDK");
20
20
  Object.defineProperty(exports, "nimbblSDK", { enumerable: true, get: function () { return NimbblSDK_2.nimbblSDK; } });
21
21
  // Constants
22
22
  var constants_1 = require("./constants");
23
- Object.defineProperty(exports, "EVENTS", { enumerable: true, get: function () { return constants_1.EVENTS; } });
24
23
  Object.defineProperty(exports, "ENVIRONMENTS", { enumerable: true, get: function () { return constants_1.ENVIRONMENTS; } });
25
24
  Object.defineProperty(exports, "ERROR_CODES", { enumerable: true, get: function () { return constants_1.ERROR_CODES; } });
26
25
  Object.defineProperty(exports, "ERROR_MESSAGES", { enumerable: true, get: function () { return constants_1.ERROR_MESSAGES; } });
27
26
  Object.defineProperty(exports, "DEFAULT_CONFIG", { enumerable: true, get: function () { return constants_1.DEFAULT_CONFIG; } });
28
- Object.defineProperty(exports, "SDK_VERSION", { enumerable: true, get: function () { return constants_1.SDK_VERSION; } });
27
+ Object.defineProperty(exports, "EVENTS", { enumerable: true, get: function () { return constants_1.EVENTS; } });
29
28
  // Default export
30
29
  var NimbblSDK_3 = require("./NimbblSDK");
31
30
  Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(NimbblSDK_3).default; } });
package/lib/types.d.ts CHANGED
@@ -17,84 +17,4 @@ export interface SDKConfig {
17
17
  api_base_url?: string;
18
18
  };
19
19
  }
20
- /**
21
- * Order data for creating payments
22
- */
23
- export interface OrderData {
24
- /** Order amount in smallest currency unit */
25
- amount: number;
26
- /** Currency code (e.g., 'INR', 'USD') */
27
- currency: string;
28
- /** Unique order identifier (optional) */
29
- order_id?: string;
30
- /** Customer information */
31
- customer_details: CustomerDetails;
32
- /** Order details */
33
- order_details?: OrderDetails;
34
- /** Allowed payment methods */
35
- payment_methods?: string[];
36
- }
37
- /**
38
- * Customer details for payment
39
- */
40
- export interface CustomerDetails {
41
- /** Customer name */
42
- name: string;
43
- /** Customer email address */
44
- email: string;
45
- /** Customer phone number */
46
- phone: string;
47
- }
48
- /**
49
- * Order details
50
- */
51
- export interface OrderDetails {
52
- /** Order title/name */
53
- title: string;
54
- /** Order description */
55
- description: string;
56
- }
57
- /**
58
- * Order response from API
59
- */
60
- export interface OrderResponse {
61
- /** Order ID */
62
- order_id: string;
63
- /** Order token for payment */
64
- token: string;
65
- /** Order status */
66
- status: string;
67
- /** Order amount */
68
- amount: number;
69
- /** Currency code */
70
- currency: string;
71
- }
72
- /**
73
- * Payment options for processing
74
- */
75
- export interface PaymentOptions {
76
- /** Payment mode code */
77
- payment_mode_code?: string;
78
- /** Bank code for banking payments */
79
- bank_code?: string;
80
- /** Wallet code for wallet payments */
81
- wallet_code?: string;
82
- /** Payment flow type */
83
- payment_flow?: string;
84
- /** Additional payment parameters */
85
- additional_params?: Record<string, any>;
86
- }
87
- /**
88
- * Payment response from API
89
- */
90
- export interface PaymentResponse {
91
- /** Payment status */
92
- status: string;
93
- /** Payment ID */
94
- payment_id?: string;
95
- /** Transaction ID */
96
- transaction_id?: string;
97
- /** Error message if payment failed */
98
- error?: string;
99
- }
100
20
  //# sourceMappingURL=types.d.ts.map
@@ -23,5 +23,5 @@ Pod::Spec.new do |s|
23
23
  s.swift_version = "5.0"
24
24
 
25
25
  # Nimbbl iOS SDK dependency
26
- s.dependency "nimbbl_mobile_kit_ios_webview_sdk", "~> 1.0.12"
26
+ s.dependency "nimbbl_mobile_kit_ios_webview_sdk", "~> 2.0.4"
27
27
  end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nimbbl-mobile-react-native-sdk",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Nimbbl React Native SDK for payment integration",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -75,8 +75,21 @@
75
75
  },
76
76
  "dependencies": {},
77
77
  "files": [
78
- "lib",
79
- "android",
78
+ "lib/constants.js",
79
+ "lib/constants.d.ts",
80
+ "lib/index.js",
81
+ "lib/index.d.ts",
82
+ "lib/NimbblSDK.js",
83
+ "lib/NimbblSDK.d.ts",
84
+ "lib/types.js",
85
+ "lib/types.d.ts",
86
+ "android/src",
87
+ "android/build.gradle",
88
+ "android/gradle.properties",
89
+ "android/settings.gradle",
90
+ "android/gradlew",
91
+ "android/gradlew.bat",
92
+ "android/gradle/wrapper",
80
93
  "ios",
81
94
  "index.tsx",
82
95
  "nimbbl-mobile-react-native-sdk.podspec",
@@ -1 +0,0 @@
1
- o/bundleLibRuntimeToDirDebug
@@ -1,10 +0,0 @@
1
- /**
2
- * Automatically generated file. DO NOT MODIFY
3
- */
4
- package com.nimbbl.reactnative;
5
-
6
- public final class BuildConfig {
7
- public static final boolean DEBUG = Boolean.parseBoolean("true");
8
- public static final String LIBRARY_PACKAGE_NAME = "com.nimbbl.reactnative";
9
- public static final String BUILD_TYPE = "debug";
10
- }
@@ -1,23 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
- package="com.nimbbl.reactnative" >
4
-
5
- <uses-sdk android:minSdkVersion="24" />
6
-
7
- <uses-permission android:name="android.permission.INTERNET" />
8
- <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
9
-
10
- <application>
11
-
12
- <!-- Module specific configurations can be added here -->
13
- <activity
14
- android:name="com.nimbbl.reactnative.NimbblCheckoutActivity"
15
- android:exported="false"
16
- android:theme="@android:style/Theme.DeviceDefault.Light.NoActionBar" />
17
- <activity
18
- android:name="com.nimbbl.reactnative.TestActivity"
19
- android:exported="false"
20
- android:theme="@android:style/Theme.DeviceDefault.Light.NoActionBar" />
21
- </application>
22
-
23
- </manifest>