insert-affiliate-react-native-sdk 1.6.2 → 1.6.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.
- package/.claude/settings.local.json +4 -1
- package/dist/DeepLinkIapProvider.d.ts +4 -1
- package/dist/DeepLinkIapProvider.js +819 -7
- package/dist/index.d.ts +1 -0
- package/dist/useDeepLinkIapProvider.d.ts +3 -1
- package/dist/useDeepLinkIapProvider.js +3 -1
- package/package.json +17 -1
- package/readme.md +394 -12
- package/src/DeepLinkIapProvider.tsx +931 -11
- package/src/index.ts +3 -0
- package/src/useDeepLinkIapProvider.tsx +4 -0
- package/updateProcess.md +31 -0
package/src/index.ts
CHANGED
|
@@ -2,3 +2,6 @@ import DeepLinkIapProvider from "./DeepLinkIapProvider";
|
|
|
2
2
|
import useDeepLinkIapProvider from "./useDeepLinkIapProvider";
|
|
3
3
|
|
|
4
4
|
export { DeepLinkIapProvider, useDeepLinkIapProvider };
|
|
5
|
+
|
|
6
|
+
// Export types
|
|
7
|
+
export type { InsertAffiliateIdentifierChangeCallback } from "./DeepLinkIapProvider";
|
|
@@ -12,6 +12,8 @@ const useDeepLinkIapProvider = () => {
|
|
|
12
12
|
trackEvent,
|
|
13
13
|
setShortCode,
|
|
14
14
|
setInsertAffiliateIdentifier,
|
|
15
|
+
setInsertAffiliateIdentifierChangeCallback,
|
|
16
|
+
handleInsertLinks,
|
|
15
17
|
initialize,
|
|
16
18
|
isInitialized,
|
|
17
19
|
OfferCode,
|
|
@@ -27,6 +29,8 @@ const useDeepLinkIapProvider = () => {
|
|
|
27
29
|
trackEvent,
|
|
28
30
|
setShortCode,
|
|
29
31
|
setInsertAffiliateIdentifier,
|
|
32
|
+
setInsertAffiliateIdentifierChangeCallback,
|
|
33
|
+
handleInsertLinks,
|
|
30
34
|
initialize,
|
|
31
35
|
isInitialized,
|
|
32
36
|
OfferCode,
|
package/updateProcess.md
CHANGED
|
@@ -1,3 +1,34 @@
|
|
|
1
|
+
## Recent Updates (v1.6.4+)
|
|
2
|
+
|
|
3
|
+
### Deep Link System Info Collection (Ported from Swift SDK)
|
|
4
|
+
|
|
5
|
+
Added comprehensive system information collection and transmission to match Swift SDK functionality:
|
|
6
|
+
|
|
7
|
+
#### New Features:
|
|
8
|
+
1. **Clipboard UUID Detection**: Automatically detects and validates UUID format in clipboard when enabled
|
|
9
|
+
2. **Network Information Collection**: Gathers connection type, interface details, and network status
|
|
10
|
+
3. **Enhanced System Information**: Collects device details, screen dimensions, timezone, language settings
|
|
11
|
+
4. **Automatic Backend Communication**: Sends system info to backend API for deep link event tracking
|
|
12
|
+
5. **Short Code Matching**: Backend can match clipboard UUIDs to affiliate short codes
|
|
13
|
+
|
|
14
|
+
#### New Dependencies:
|
|
15
|
+
- `@react-native-clipboard/clipboard` - For clipboard access
|
|
16
|
+
- Enhanced axios usage for system info API calls
|
|
17
|
+
|
|
18
|
+
#### Implementation Details:
|
|
19
|
+
- All functionality matches Swift SDK exactly for data consistency
|
|
20
|
+
- Clipboard access only when `insertLinksClipboardEnabled` is true
|
|
21
|
+
- System info sent on deep link processing and initial app launch
|
|
22
|
+
- Verbose logging available for debugging
|
|
23
|
+
- Network connectivity detection and reporting
|
|
24
|
+
|
|
25
|
+
#### API Endpoints:
|
|
26
|
+
- `https://insertaffiliate.link/V1/appDeepLinkEvents` - System info collection
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## Release Process
|
|
31
|
+
|
|
1
32
|
1. Update version number in package.json...
|
|
2
33
|
npm run build
|
|
3
34
|
|