insert-affiliate-react-native-sdk 1.4.2 → 1.4.5

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 (2) hide show
  1. package/package.json +1 -1
  2. package/readme.md +2 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "insert-affiliate-react-native-sdk",
3
- "version": "1.4.2",
3
+ "version": "1.4.5",
4
4
  "description": "A package for connecting with the Insert Affiliate Platform to add app based affiliate marketing.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/readme.md CHANGED
@@ -98,12 +98,7 @@ React.useEffect(() => {
98
98
  const affiliateIdentifier = await returnInsertAffiliateIdentifier();
99
99
 
100
100
  if (affiliateIdentifier) {
101
- console.log('Logging into RevenueCat...');
102
- const { customerInfo, created } = await Purchases.logIn(affiliateIdentifier);
103
-
104
- if (created) {
105
- console.log('New user created in RevenueCat:', customerInfo);
106
- }
101
+ await Purchases.setAttributes({"insert_affiliate", affiliateIdentifier});
107
102
  }
108
103
  }
109
104
  } catch (error) {
@@ -344,7 +339,7 @@ import { useDeepLinkIapProvider } from 'insert-affiliate-react-native-sdk';
344
339
  let insertAffiliateIdentifier = await setInsertAffiliateIdentifier(referringLink);
345
340
 
346
341
  if (insertAffiliateIdentifier) {
347
- const { customerInfo, created } = await Purchases.logIn(insertAffiliateIdentifier);
342
+ await Purchases.setAttributes({"insert_affiliate", affiliateIdentifier});
348
343
  }
349
344
 
350
345
  } catch (err) {