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

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.5"
89
- amazonImplementation "com.namiml:sdk-amazon:3.3.2.5"
88
+ playImplementation "com.namiml:sdk-android:3.3.2.10"
89
+ amazonImplementation "com.namiml:sdk-amazon:3.3.2.10"
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,11 +75,6 @@ class NamiFlowManagerBridgeModule internal constructor(
75
75
  promise.resolve(NamiFlowManager.isFlowOpen())
76
76
  }
77
77
 
78
- @ReactMethod
79
- fun purchaseSuccess() {
80
- NamiFlowManager.purchaseSuccess()
81
- }
82
-
83
78
  private fun sendEvent(
84
79
  eventName: String,
85
80
  params: WritableMap?,
@@ -11,5 +11,4 @@ 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;
15
14
  };
@@ -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-7";
5
+ export declare const NAMI_REACT_NATIVE_VERSION = "3.3.2-9";
package/ios/Nami.swift CHANGED
@@ -8,10 +8,6 @@ import Foundation
8
8
  import NamiApple
9
9
  import React
10
10
 
11
- #if RCT_NEW_ARCH_ENABLED
12
- extension RNNami: RCTTurboModule {}
13
- #endif
14
-
15
11
  @objc(RNNami)
16
12
  class RNNami: NSObject {
17
13
  static func moduleName() -> String! {
@@ -10,10 +10,6 @@ import NamiApple
10
10
  import os
11
11
  import React
12
12
 
13
- #if RCT_NEW_ARCH_ENABLED
14
- extension RNNamiCampaignManager: RCTTurboModule {}
15
- #endif
16
-
17
13
  @objc(RNNamiCampaignManager)
18
14
  class RNNamiCampaignManager: RCTEventEmitter {
19
15
  public static var shared: RNNamiCampaignManager?
@@ -9,10 +9,6 @@ import Foundation
9
9
  import NamiApple
10
10
  import React
11
11
 
12
- #if RCT_NEW_ARCH_ENABLED
13
- extension RNNamiCustomerManager: RCTTurboModule {}
14
- #endif
15
-
16
12
  @objc(RNNamiCustomerManager)
17
13
  class RNNamiCustomerManager: RCTEventEmitter {
18
14
  public static var shared: RNNamiCustomerManager?
@@ -9,10 +9,6 @@ import Foundation
9
9
  import NamiApple
10
10
  import React
11
11
 
12
- #if RCT_NEW_ARCH_ENABLED
13
- extension RNNamiEntitlementManager: RCTTurboModule {}
14
- #endif
15
-
16
12
  @objc(RNNamiEntitlementManager)
17
13
  class RNNamiEntitlementManager: RCTEventEmitter {
18
14
  public static var shared: RNNamiEntitlementManager?
@@ -9,10 +9,6 @@ import Foundation
9
9
  import NamiApple
10
10
  import React
11
11
 
12
- #if RCT_NEW_ARCH_ENABLED
13
- extension RNNamiFlowManager: RCTTurboModule {}
14
- #endif
15
-
16
12
  @objc(RNNamiFlowManager)
17
13
  class RNNamiFlowManager: RCTEventEmitter {
18
14
  public static var shared: RNNamiFlowManager?
@@ -76,8 +72,4 @@ class RNNamiFlowManager: RCTEventEmitter {
76
72
  resolve(isFlowOpen)
77
73
  }
78
74
  }
79
-
80
- @objc func purchaseSuccess() {
81
- // NamiFlowManager.purchaseSuccess()
82
- }
83
75
  }
@@ -2,10 +2,6 @@ import Foundation
2
2
  import React
3
3
  import UIKit
4
4
 
5
- #if RCT_NEW_ARCH_ENABLED
6
- extension RNNamiPaywallManager: RCTTurboModule {}
7
- #endif
8
-
9
5
  @objc(RNNamiOverlayControl)
10
6
  class NamiOverlayControlBridge: RCTEventEmitter {
11
7
  private var overlayViewController: UIViewController?
@@ -9,10 +9,6 @@ import Foundation
9
9
  import NamiApple
10
10
  import React
11
11
 
12
- #if RCT_NEW_ARCH_ENABLED
13
- extension RNNamiPaywallManager: RCTTurboModule {}
14
- #endif
15
-
16
12
  @objc(RNNamiPaywallManager)
17
13
  class RNNamiPaywallManager: RCTEventEmitter {
18
14
  public static var shared: RNNamiPaywallManager?
@@ -9,10 +9,6 @@ import Foundation
9
9
  import NamiApple
10
10
  import React
11
11
 
12
- #if RCT_NEW_ARCH_ENABLED
13
- extension RNNamiPurchaseManager: RCTTurboModule {}
14
- #endif
15
-
16
12
  @objc(RNNamiPurchaseManager)
17
13
  class RNNamiPurchaseManager: RCTEventEmitter {
18
14
  public static var shared: RNNamiPurchaseManager?
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "react-native-nami-sdk",
3
- "version": "3.3.2-7",
4
- "description": "React Native Module for Nami - Easy subscriptions & in-app purchases, with powerful built-in paywalls and A/B testing.",
3
+ "version": "3.3.2-9",
4
+ "description": "React Native SDK for Nami - No-code paywall management with A/B testing.",
5
5
  "main": "index.ts",
6
6
  "types": "dist/index.d.ts",
7
7
  "codegenConfig": {
8
- "name": "Nami",
8
+ "name": "NativeNamiSpec",
9
9
  "type": "modules",
10
10
  "jsSrcsDir": "./specs",
11
11
  "android": {
@@ -70,6 +70,11 @@
70
70
  "react": ">=18",
71
71
  "react-native": ">=0.73"
72
72
  },
73
+ "peerDependenciesMeta": {
74
+ "react-native": {
75
+ "optional": true
76
+ }
77
+ },
73
78
  "devDependencies": {
74
79
  "@react-native/eslint-config": "^0.80.0",
75
80
  "@types/jest": "^29.5.2",
@@ -21,20 +21,30 @@ Pod::Spec.new do |s|
21
21
  s.requires_arc = true
22
22
  s.swift_version = '5.0' # or your supported version
23
23
 
24
- s.dependency 'Nami', '3.3.2.10'
24
+ s.dependency 'Nami', '3.3.2.13'
25
25
  s.dependency 'React'
26
26
 
27
- s.pod_target_xcconfig = {
28
- "DEFINES_MODULE" => "YES",
29
- "SWIFT_VERSION" => "5.0",
27
+ pod_target_xcconfig = {
28
+ 'DEFINES_MODULE' => 'YES',
29
+ 'SWIFT_VERSION' => '5.0'
30
30
  }
31
31
 
32
- install_modules_dependencies(s)
33
-
34
- if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
35
- s.pod_target_xcconfig = {
32
+ if ENV['RCT_NEW_ARCH_ENABLED'] == '1'
33
+ pod_target_xcconfig.merge!({
36
34
  'USE_HEADERMAP' => 'YES',
35
+ 'OTHER_SWIFT_FLAGS' => '$(inherited) -DRCT_NEW_ARCH_ENABLED',
36
+ 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) COCOAPODS=1 RCT_NEW_ARCH_ENABLED=1',
37
+ 'OTHER_CFLAGS' => '$(inherited) -DRCT_NEW_ARCH_ENABLED',
38
+ 'OTHER_CPLUSPLUSFLAGS' => '$(inherited) -DRCT_NEW_ARCH_ENABLED'
39
+ })
40
+
41
+ # Optional: Swift flag for user target
42
+ s.user_target_xcconfig = {
43
+ 'OTHER_SWIFT_FLAGS' => '$(inherited) -DRCT_NEW_ARCH_ENABLED'
37
44
  }
38
- end
45
+ end
39
46
 
47
+ s.pod_target_xcconfig = pod_target_xcconfig
48
+
49
+ install_modules_dependencies(s)
40
50
  end
@@ -66,8 +66,4 @@ export const NamiFlowManager = {
66
66
  isFlowOpen: async (): Promise<boolean> => {
67
67
  return RNNamiFlowManager.isFlowOpen();
68
68
  },
69
-
70
- purchaseSuccess: (): void => {
71
- RNNamiFlowManager.purchaseSuccess();
72
- },
73
69
  };
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-7';
5
+ export const NAMI_REACT_NATIVE_VERSION = '3.3.2-9';