gomarketme-react-native 5.0.0 → 5.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
  <img src="https://static.gomarketme.net/assets/gmm-icon.png" alt="GoMarketMe" />
3
3
  <br />
4
4
  <h1>GoMarketMe React Native SDK</h1>
5
- <p>Affiliate marketing for React Native apps on iOS and Android.</p>
5
+ <p>Affiliate marketing for React Native and Expo apps on iOS and Android.</p>
6
6
  </div>
7
7
 
8
8
  ## Installation
@@ -10,21 +10,22 @@
10
10
  ### npm
11
11
 
12
12
  ```bash
13
- npm install gomarketme-react-native@5.0.0
13
+ npm install gomarketme-react-native@5.0.2
14
14
  ```
15
15
 
16
16
  ### Yarn
17
17
 
18
18
  ```bash
19
- yarn add gomarketme-react-native@5.0.0
19
+ yarn add gomarketme-react-native@5.0.2
20
20
  ```
21
21
 
22
22
  ### pnpm
23
23
 
24
24
  ```bash
25
- pnpm add gomarketme-react-native@5.0.0
25
+ pnpm add gomarketme-react-native@5.0.2
26
26
  ```
27
27
 
28
+
28
29
  ## Usage
29
30
 
30
31
  GoMarketMe takes only a few lines to set up.
@@ -46,48 +47,13 @@ useEffect(() => {
46
47
  }, []);
47
48
  ```
48
49
 
49
- Replace `API_KEY` with your actual GoMarketMe API key. You can find it on the product onboarding page and under **Profile > API Key**.
50
+ Replace `API_KEY` with your actual GoMarketMe API key. You can find it during onboarding or in **Profile > [API Key](https://gomarketme.net/marketer/profile/#account-settings)**.
50
51
 
51
- ### Step 2/3: Sync after purchase
52
+ ### Alternative Step 1/3: Programmatic Affiliate Marketing
52
53
 
53
- After your app completes a purchase through `react-native-iap`, `expo-iap`, RevenueCat, Adapty, or another in-app purchase provider, call:
54
+ For apps that want to customize the user experience based on affiliate attribution, initialize GoMarketMe and read affiliate marketing data after initialization.
54
55
 
55
- ```tsx
56
- await GoMarketMe.syncAllTransactions();
57
- ```
58
-
59
- If your purchase library lets you decide when to finish, acknowledge, consume, or complete the transaction, call `syncAllTransactions()` first.
60
-
61
- ```tsx
62
- purchaseUpdateSub = purchaseUpdatedListener(async purchase => {
63
- await GoMarketMe.syncAllTransactions();
64
-
65
- await finishTransaction({ purchase, isConsumable: true });
66
- });
67
- ```
68
-
69
- ### Step 3/3: iOS consumables only
70
-
71
- If your iOS app sells consumable in-app purchases, add this key to your app's `Info.plist`:
72
-
73
- ```xml
74
- <key>SKIncludeConsumableInAppPurchaseHistory</key>
75
- <true/>
76
- ```
77
-
78
- That's it. GoMarketMe automatically attributes and reports affiliate sales.
79
-
80
- ## Alternative Step 1: Advanced integration
81
-
82
- For advanced use cases, you can also read GoMarketMe affiliate marketing data after initialization. This is useful for Programmatic Affiliate Marketing, such as affiliate-aware paywalls, personalized onboarding, promotions, or custom in-app experiences.
83
-
84
- Common use cases include:
85
-
86
- - Affiliate-aware paywalls and promotions.
87
- - Personalized onboarding.
88
- - Automatically connecting new users with the influencer who referred them.
89
-
90
- Learn more about [Programmatic Affiliate Marketing](https://gomarketme.co/programmatic-affiliate-marketing/).
56
+ This enables [Programmatic Affiliate Marketing](https://gomarketme.co/programmatic-affiliate-marketing/), including affiliate-aware paywalls, personalized onboarding, promotions, and custom in-app experiences.
91
57
 
92
58
  ```tsx
93
59
  import { useEffect, useState } from 'react';
@@ -125,10 +91,62 @@ useEffect(() => {
125
91
  }, []);
126
92
  ```
127
93
 
128
- ## Support
94
+ ### Step 2/3: Sync after purchase
95
+
96
+ After your app completes a purchase through `react-native-iap`, `expo-iap`, RevenueCat, Adapty, or another in-app purchase provider, call:
97
+
98
+ ```tsx
99
+ await GoMarketMe.syncAllTransactions();
100
+ ```
101
+
102
+ If your purchase library lets you decide when to finish, acknowledge, consume, or complete the transaction, call `syncAllTransactions()` first.
103
+
104
+ ```tsx
105
+ purchaseUpdateSub = purchaseUpdatedListener(async purchase => {
106
+ await GoMarketMe.syncAllTransactions();
107
+
108
+ await finishTransaction({ purchase, isConsumable: true });
109
+ });
110
+ ```
111
+
112
+ ### Step 3/3: iOS consumables only
113
+
114
+ If your iOS app sells consumable in-app purchases, add this key to your app's `Info.plist`:
115
+
116
+ ```xml
117
+ <key>SKIncludeConsumableInAppPurchaseHistory</key>
118
+ <true/>
119
+ ```
120
+
121
+ That's it. GoMarketMe automatically attributes and reports affiliate sales.
122
+
123
+ ## Platform Support
124
+
125
+ | Platform | Support | Notes |
126
+ | ----------------- | ------- | --------------------------------------- |
127
+ | iOS | ✅ | StoreKit 2, requires iOS 15+ |
128
+ | Android | ✅ | Google Play Billing v8.0.0+ |
129
+ | Expo Go | ❌ | Not supported |
130
+ | Expo Dev Client | ✅ | Full support |
131
+ | Bare React Native | ✅ | Full support |
132
+
133
+ ## IAP Provider Compatibility
134
+
135
+ | Provider | Support | Notes |
136
+ |---|---:|---|
137
+ | react-native-iap | ✅ | Full support |
138
+ | expo-iap | ✅ | Full support |
139
+ | RevenueCat | ✅ | Supports Apple and Google IAPs |
140
+ | Adapty | ✅ | Supports Apple and Google IAPs |
141
+
142
+ GoMarketMe works alongside `react-native-iap`, `expo-iap`, RevenueCat, Adapty, and other IAP providers.
143
+
144
+ ## Sample app
129
145
 
130
146
  Check out the sample React Native app:
131
147
 
132
148
  [https://github.com/GoMarketMe/gomarketme-react-native-sample-app](https://github.com/GoMarketMe/gomarketme-react-native-sample-app)
133
149
 
150
+ ## Support
151
+
134
152
  For integration support, contact [integrations@gomarketme.co](mailto:integrations@gomarketme.co) or visit [https://gomarketme.co](https://gomarketme.co).
@@ -8,7 +8,21 @@
8
8
  <key>BinaryPath</key>
9
9
  <string>GoMarketMeAppleCoreKit.framework/GoMarketMeAppleCoreKit</string>
10
10
  <key>LibraryIdentifier</key>
11
- <string>ios-arm64_x86_64-simulator</string>
11
+ <string>ios-arm64</string>
12
+ <key>LibraryPath</key>
13
+ <string>GoMarketMeAppleCoreKit.framework</string>
14
+ <key>SupportedArchitectures</key>
15
+ <array>
16
+ <string>arm64</string>
17
+ </array>
18
+ <key>SupportedPlatform</key>
19
+ <string>ios</string>
20
+ </dict>
21
+ <dict>
22
+ <key>BinaryPath</key>
23
+ <string>GoMarketMeAppleCoreKit.framework/Versions/A/GoMarketMeAppleCoreKit</string>
24
+ <key>LibraryIdentifier</key>
25
+ <string>ios-arm64_x86_64-maccatalyst</string>
12
26
  <key>LibraryPath</key>
13
27
  <string>GoMarketMeAppleCoreKit.framework</string>
14
28
  <key>SupportedArchitectures</key>
@@ -19,21 +33,24 @@
19
33
  <key>SupportedPlatform</key>
20
34
  <string>ios</string>
21
35
  <key>SupportedPlatformVariant</key>
22
- <string>simulator</string>
36
+ <string>maccatalyst</string>
23
37
  </dict>
24
38
  <dict>
25
39
  <key>BinaryPath</key>
26
40
  <string>GoMarketMeAppleCoreKit.framework/GoMarketMeAppleCoreKit</string>
27
41
  <key>LibraryIdentifier</key>
28
- <string>ios-arm64</string>
42
+ <string>ios-arm64_x86_64-simulator</string>
29
43
  <key>LibraryPath</key>
30
44
  <string>GoMarketMeAppleCoreKit.framework</string>
31
45
  <key>SupportedArchitectures</key>
32
46
  <array>
33
47
  <string>arm64</string>
48
+ <string>x86_64</string>
34
49
  </array>
35
50
  <key>SupportedPlatform</key>
36
51
  <string>ios</string>
52
+ <key>SupportedPlatformVariant</key>
53
+ <string>simulator</string>
37
54
  </dict>
38
55
  </array>
39
56
  <key>CFBundlePackageType</key>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gomarketme-react-native",
3
- "version": "5.0.0",
3
+ "version": "5.0.2",
4
4
  "description": "Affiliate Marketing for React Native and Expo iOS and Android apps.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -33,14 +33,23 @@
33
33
  "keywords": [
34
34
  "react-native",
35
35
  "expo",
36
+ "expo-dev-client",
36
37
  "affiliate-marketing",
37
38
  "influencer-marketing",
38
39
  "in-app-purchases",
39
40
  "subscriptions",
41
+ "iap",
42
+ "react-native-iap",
43
+ "expo-iap",
44
+ "revenuecat",
45
+ "adapty",
46
+ "storekit",
47
+ "storekit2",
48
+ "google-play-billing",
40
49
  "gomarketme",
41
50
  "sdk",
42
- "iOS",
43
- "Android",
51
+ "ios",
52
+ "android",
44
53
  "mobile",
45
54
  "monetization",
46
55
  "influencers"
Binary file