react-native-nami-sdk 3.3.2-5 → 3.3.2-7

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.
@@ -85,8 +85,8 @@ dependencies {
85
85
  implementation fileTree(dir: 'libs', include: ['*.jar'])
86
86
  implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
87
87
 
88
- playImplementation "com.namiml:sdk-android:3.3.2.3"
89
- amazonImplementation "com.namiml:sdk-amazon:3.3.2.3"
88
+ playImplementation "com.namiml:sdk-android:3.3.2.5"
89
+ amazonImplementation "com.namiml:sdk-amazon:3.3.2.5"
90
90
 
91
91
  implementation "com.facebook.react:react-native:+" // From node_modules
92
92
  coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:2.0.4"
@@ -75,6 +75,11 @@ class NamiFlowManagerBridgeModule internal constructor(
75
75
  promise.resolve(NamiFlowManager.isFlowOpen())
76
76
  }
77
77
 
78
+ @ReactMethod
79
+ fun purchaseSuccess() {
80
+ NamiFlowManager.purchaseSuccess()
81
+ }
82
+
78
83
  private fun sendEvent(
79
84
  eventName: String,
80
85
  params: WritableMap?,
@@ -6,6 +6,7 @@ export interface Spec extends TurboModule {
6
6
  resume(): void;
7
7
  pause(): void;
8
8
  registerEventHandler(): void;
9
+ purchaseSuccess(): void;
9
10
  }
10
11
  declare const _default: Spec;
11
12
  export default _default;
@@ -11,4 +11,5 @@ export declare const NamiFlowManager: {
11
11
  registerEventHandler: (callback: (payload: Record<string, unknown>) => void) => (() => void);
12
12
  finish: () => void;
13
13
  isFlowOpen: () => Promise<boolean>;
14
+ purchaseSuccess: () => void;
14
15
  };
@@ -2,4 +2,4 @@
2
2
  * Auto-generated file. Do not edit manually.
3
3
  * React Native Nami SDK version.
4
4
  */
5
- export declare const NAMI_REACT_NATIVE_VERSION = "3.3.2-5";
5
+ export declare const NAMI_REACT_NATIVE_VERSION = "3.3.2-7";
@@ -76,4 +76,8 @@ class RNNamiFlowManager: RCTEventEmitter {
76
76
  resolve(isFlowOpen)
77
77
  }
78
78
  }
79
+
80
+ @objc func purchaseSuccess() {
81
+ // NamiFlowManager.purchaseSuccess()
82
+ }
79
83
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-nami-sdk",
3
- "version": "3.3.2-5",
3
+ "version": "3.3.2-7",
4
4
  "description": "React Native Module for Nami - Easy subscriptions & in-app purchases, with powerful built-in paywalls and A/B testing.",
5
5
  "main": "index.ts",
6
6
  "types": "dist/index.d.ts",
@@ -9,6 +9,7 @@ export interface Spec extends TurboModule {
9
9
  resume(): void;
10
10
  pause(): void;
11
11
  registerEventHandler(): void;
12
+ purchaseSuccess(): void;
12
13
  }
13
14
 
14
15
  export default TurboModuleRegistry.getEnforcing<Spec>('RNNamiFlowManager');
@@ -66,4 +66,8 @@ export const NamiFlowManager = {
66
66
  isFlowOpen: async (): Promise<boolean> => {
67
67
  return RNNamiFlowManager.isFlowOpen();
68
68
  },
69
+
70
+ purchaseSuccess: (): void => {
71
+ RNNamiFlowManager.purchaseSuccess();
72
+ },
69
73
  };
package/src/version.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  * Auto-generated file. Do not edit manually.
3
3
  * React Native Nami SDK version.
4
4
  */
5
- export const NAMI_REACT_NATIVE_VERSION = '3.3.2-5';
5
+ export const NAMI_REACT_NATIVE_VERSION = '3.3.2-7';