@adshift/react-native-plugin 1.0.0 → 2.1.0

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 (180) hide show
  1. package/AdShiftReactNativePlugin.podspec +11 -7
  2. package/CHANGELOG.md +138 -0
  3. package/README.md +513 -542
  4. package/android/build.gradle +17 -3
  5. package/android/consumer-rules.pro +21 -0
  6. package/android/src/main/java/com/adshift/reactnativeplugin/AdShiftReactNativePluginModule.kt +786 -229
  7. package/android/src/test/java/com/adshift/reactnativeplugin/ConsentSnapshotTest.kt +180 -0
  8. package/android/src/test/java/com/adshift/reactnativeplugin/DeepLinkDeliveryTest.kt +146 -0
  9. package/android/src/test/java/com/adshift/reactnativeplugin/InitializeOrderingTest.kt +111 -0
  10. package/android/src/test/java/com/adshift/reactnativeplugin/IntentLinkDedupTest.kt +168 -0
  11. package/android/src/test/java/com/adshift/reactnativeplugin/LaunchIntentForwardingTest.kt +106 -0
  12. package/android/src/test/java/com/adshift/reactnativeplugin/ModuleTestSupport.kt +167 -0
  13. package/android/src/test/java/com/adshift/reactnativeplugin/StartVerdictTest.kt +164 -0
  14. package/ios/AdShiftReactNativePlugin.h +7 -7
  15. package/ios/AdShiftReactNativePlugin.mm +200 -181
  16. package/ios/AdShiftReactNativePluginHelper.swift +584 -286
  17. package/ios/Core/BridgeRules.swift +82 -0
  18. package/lib/commonjs/Adshift.js +1138 -0
  19. package/lib/commonjs/Adshift.js.map +1 -0
  20. package/lib/commonjs/NativeAdShiftReactNativePlugin.js +22 -0
  21. package/lib/commonjs/NativeAdShiftReactNativePlugin.js.map +1 -0
  22. package/lib/commonjs/index.js +94 -0
  23. package/lib/commonjs/index.js.map +1 -0
  24. package/lib/commonjs/jest/index.js +164 -0
  25. package/lib/commonjs/jest/index.js.map +1 -0
  26. package/lib/commonjs/nativeSdkVersions.js +17 -0
  27. package/lib/commonjs/nativeSdkVersions.js.map +1 -0
  28. package/lib/commonjs/package.json +1 -0
  29. package/lib/commonjs/types/AdshiftAdRevenue.js +47 -0
  30. package/lib/commonjs/types/AdshiftAdRevenue.js.map +1 -0
  31. package/lib/commonjs/types/AdshiftConfig.js +45 -0
  32. package/lib/commonjs/types/AdshiftConfig.js.map +1 -0
  33. package/lib/commonjs/types/AdshiftConsent.js +113 -0
  34. package/lib/commonjs/types/AdshiftConsent.js.map +1 -0
  35. package/lib/commonjs/types/AdshiftConsentSnapshot.js +69 -0
  36. package/lib/commonjs/types/AdshiftConsentSnapshot.js.map +1 -0
  37. package/lib/commonjs/types/AdshiftDeepLink.js +154 -0
  38. package/lib/commonjs/types/AdshiftDeepLink.js.map +1 -0
  39. package/lib/commonjs/types/AdshiftError.js +91 -0
  40. package/lib/commonjs/types/AdshiftError.js.map +1 -0
  41. package/lib/commonjs/types/AdshiftEventParam.js +140 -0
  42. package/lib/commonjs/types/AdshiftEventParam.js.map +1 -0
  43. package/lib/commonjs/types/AdshiftEventType.js +88 -0
  44. package/lib/commonjs/types/AdshiftEventType.js.map +1 -0
  45. package/lib/commonjs/types/AdshiftThirdPartySharing.js +70 -0
  46. package/lib/commonjs/types/AdshiftThirdPartySharing.js.map +1 -0
  47. package/lib/commonjs/types/index.js +123 -0
  48. package/lib/commonjs/types/index.js.map +1 -0
  49. package/lib/commonjs/version.js +9 -0
  50. package/lib/commonjs/version.js.map +1 -0
  51. package/lib/module/Adshift.js +962 -296
  52. package/lib/module/Adshift.js.map +1 -1
  53. package/lib/module/NativeAdShiftReactNativePlugin.js +10 -7
  54. package/lib/module/NativeAdShiftReactNativePlugin.js.map +1 -1
  55. package/lib/module/index.js +26 -25
  56. package/lib/module/index.js.map +1 -1
  57. package/lib/module/jest/index.js +144 -0
  58. package/lib/module/jest/index.js.map +1 -0
  59. package/lib/module/nativeSdkVersions.js +13 -0
  60. package/lib/module/nativeSdkVersions.js.map +1 -0
  61. package/lib/module/types/AdshiftAdRevenue.js +43 -0
  62. package/lib/module/types/AdshiftAdRevenue.js.map +1 -0
  63. package/lib/module/types/AdshiftConfig.js +23 -26
  64. package/lib/module/types/AdshiftConfig.js.map +1 -1
  65. package/lib/module/types/AdshiftConsent.js +57 -50
  66. package/lib/module/types/AdshiftConsent.js.map +1 -1
  67. package/lib/module/types/AdshiftConsentSnapshot.js +65 -0
  68. package/lib/module/types/AdshiftConsentSnapshot.js.map +1 -0
  69. package/lib/module/types/AdshiftDeepLink.js +97 -67
  70. package/lib/module/types/AdshiftDeepLink.js.map +1 -1
  71. package/lib/module/types/AdshiftError.js +87 -0
  72. package/lib/module/types/AdshiftError.js.map +1 -0
  73. package/lib/module/types/AdshiftEventParam.js +135 -0
  74. package/lib/module/types/AdshiftEventParam.js.map +1 -0
  75. package/lib/module/types/AdshiftEventType.js +11 -36
  76. package/lib/module/types/AdshiftEventType.js.map +1 -1
  77. package/lib/module/types/AdshiftThirdPartySharing.js +65 -0
  78. package/lib/module/types/AdshiftThirdPartySharing.js.map +1 -0
  79. package/lib/module/types/index.js +9 -7
  80. package/lib/module/types/index.js.map +1 -1
  81. package/lib/module/version.js +5 -0
  82. package/lib/module/version.js.map +1 -0
  83. package/lib/typescript/commonjs/package.json +1 -0
  84. package/lib/typescript/commonjs/src/Adshift.d.ts +314 -0
  85. package/lib/typescript/commonjs/src/Adshift.d.ts.map +1 -0
  86. package/lib/typescript/commonjs/src/NativeAdShiftReactNativePlugin.d.ts +102 -0
  87. package/lib/typescript/commonjs/src/NativeAdShiftReactNativePlugin.d.ts.map +1 -0
  88. package/lib/typescript/commonjs/src/index.d.ts +51 -0
  89. package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
  90. package/lib/typescript/commonjs/src/jest/index.d.ts +103 -0
  91. package/lib/typescript/commonjs/src/jest/index.d.ts.map +1 -0
  92. package/lib/typescript/commonjs/src/nativeSdkVersions.d.ts +11 -0
  93. package/lib/typescript/commonjs/src/nativeSdkVersions.d.ts.map +1 -0
  94. package/lib/typescript/commonjs/src/types/AdshiftAdRevenue.d.ts +56 -0
  95. package/lib/typescript/commonjs/src/types/AdshiftAdRevenue.d.ts.map +1 -0
  96. package/lib/typescript/commonjs/src/types/AdshiftConfig.d.ts +104 -0
  97. package/lib/typescript/commonjs/src/types/AdshiftConfig.d.ts.map +1 -0
  98. package/lib/typescript/commonjs/src/types/AdshiftConsent.d.ts +76 -0
  99. package/lib/typescript/commonjs/src/types/AdshiftConsent.d.ts.map +1 -0
  100. package/lib/typescript/commonjs/src/types/AdshiftConsentSnapshot.d.ts +56 -0
  101. package/lib/typescript/commonjs/src/types/AdshiftConsentSnapshot.d.ts.map +1 -0
  102. package/lib/typescript/commonjs/src/types/AdshiftDeepLink.d.ts +89 -0
  103. package/lib/typescript/commonjs/src/types/AdshiftDeepLink.d.ts.map +1 -0
  104. package/lib/typescript/commonjs/src/types/AdshiftError.d.ts +57 -0
  105. package/lib/typescript/commonjs/src/types/AdshiftError.d.ts.map +1 -0
  106. package/lib/typescript/commonjs/src/types/AdshiftEventParam.d.ts +111 -0
  107. package/lib/typescript/commonjs/src/types/AdshiftEventParam.d.ts.map +1 -0
  108. package/lib/typescript/{src → commonjs/src}/types/AdshiftEventType.d.ts +12 -35
  109. package/lib/typescript/commonjs/src/types/AdshiftEventType.d.ts.map +1 -0
  110. package/lib/typescript/commonjs/src/types/AdshiftThirdPartySharing.d.ts +53 -0
  111. package/lib/typescript/commonjs/src/types/AdshiftThirdPartySharing.d.ts.map +1 -0
  112. package/lib/typescript/commonjs/src/types/index.d.ts +17 -0
  113. package/lib/typescript/commonjs/src/types/index.d.ts.map +1 -0
  114. package/lib/typescript/commonjs/src/version.d.ts +2 -0
  115. package/lib/typescript/commonjs/src/version.d.ts.map +1 -0
  116. package/lib/typescript/module/src/Adshift.d.ts +314 -0
  117. package/lib/typescript/module/src/Adshift.d.ts.map +1 -0
  118. package/lib/typescript/module/src/NativeAdShiftReactNativePlugin.d.ts +102 -0
  119. package/lib/typescript/module/src/NativeAdShiftReactNativePlugin.d.ts.map +1 -0
  120. package/lib/typescript/module/src/index.d.ts +51 -0
  121. package/lib/typescript/module/src/index.d.ts.map +1 -0
  122. package/lib/typescript/module/src/jest/index.d.ts +103 -0
  123. package/lib/typescript/module/src/jest/index.d.ts.map +1 -0
  124. package/lib/typescript/module/src/nativeSdkVersions.d.ts +11 -0
  125. package/lib/typescript/module/src/nativeSdkVersions.d.ts.map +1 -0
  126. package/lib/typescript/module/src/types/AdshiftAdRevenue.d.ts +56 -0
  127. package/lib/typescript/module/src/types/AdshiftAdRevenue.d.ts.map +1 -0
  128. package/lib/typescript/module/src/types/AdshiftConfig.d.ts +104 -0
  129. package/lib/typescript/module/src/types/AdshiftConfig.d.ts.map +1 -0
  130. package/lib/typescript/module/src/types/AdshiftConsent.d.ts +76 -0
  131. package/lib/typescript/module/src/types/AdshiftConsent.d.ts.map +1 -0
  132. package/lib/typescript/module/src/types/AdshiftConsentSnapshot.d.ts +56 -0
  133. package/lib/typescript/module/src/types/AdshiftConsentSnapshot.d.ts.map +1 -0
  134. package/lib/typescript/module/src/types/AdshiftDeepLink.d.ts +89 -0
  135. package/lib/typescript/module/src/types/AdshiftDeepLink.d.ts.map +1 -0
  136. package/lib/typescript/module/src/types/AdshiftError.d.ts +57 -0
  137. package/lib/typescript/module/src/types/AdshiftError.d.ts.map +1 -0
  138. package/lib/typescript/module/src/types/AdshiftEventParam.d.ts +111 -0
  139. package/lib/typescript/module/src/types/AdshiftEventParam.d.ts.map +1 -0
  140. package/lib/typescript/module/src/types/AdshiftEventType.d.ts +64 -0
  141. package/lib/typescript/module/src/types/AdshiftEventType.d.ts.map +1 -0
  142. package/lib/typescript/module/src/types/AdshiftThirdPartySharing.d.ts +53 -0
  143. package/lib/typescript/module/src/types/AdshiftThirdPartySharing.d.ts.map +1 -0
  144. package/lib/typescript/module/src/types/index.d.ts +17 -0
  145. package/lib/typescript/module/src/types/index.d.ts.map +1 -0
  146. package/lib/typescript/module/src/version.d.ts +2 -0
  147. package/lib/typescript/module/src/version.d.ts.map +1 -0
  148. package/package.json +50 -11
  149. package/src/Adshift.ts +1276 -342
  150. package/src/NativeAdShiftReactNativePlugin.ts +81 -115
  151. package/src/index.tsx +40 -25
  152. package/src/jest/index.ts +224 -0
  153. package/src/nativeSdkVersions.ts +10 -0
  154. package/src/types/AdshiftAdRevenue.ts +58 -0
  155. package/src/types/AdshiftConfig.ts +101 -53
  156. package/src/types/AdshiftConsent.ts +75 -72
  157. package/src/types/AdshiftConsentSnapshot.ts +103 -0
  158. package/src/types/AdshiftDeepLink.ts +123 -102
  159. package/src/types/AdshiftError.ts +107 -0
  160. package/src/types/AdshiftEventParam.ts +216 -0
  161. package/src/types/AdshiftEventType.ts +13 -35
  162. package/src/types/AdshiftThirdPartySharing.ts +63 -0
  163. package/src/types/index.ts +38 -6
  164. package/src/version.ts +2 -0
  165. package/lib/typescript/src/Adshift.d.ts +0 -335
  166. package/lib/typescript/src/Adshift.d.ts.map +0 -1
  167. package/lib/typescript/src/NativeAdShiftReactNativePlugin.d.ts +0 -143
  168. package/lib/typescript/src/NativeAdShiftReactNativePlugin.d.ts.map +0 -1
  169. package/lib/typescript/src/index.d.ts +0 -47
  170. package/lib/typescript/src/index.d.ts.map +0 -1
  171. package/lib/typescript/src/types/AdshiftConfig.d.ts +0 -74
  172. package/lib/typescript/src/types/AdshiftConfig.d.ts.map +0 -1
  173. package/lib/typescript/src/types/AdshiftConsent.d.ts +0 -88
  174. package/lib/typescript/src/types/AdshiftConsent.d.ts.map +0 -1
  175. package/lib/typescript/src/types/AdshiftDeepLink.d.ts +0 -93
  176. package/lib/typescript/src/types/AdshiftDeepLink.d.ts.map +0 -1
  177. package/lib/typescript/src/types/AdshiftEventType.d.ts.map +0 -1
  178. package/lib/typescript/src/types/index.d.ts +0 -5
  179. package/lib/typescript/src/types/index.d.ts.map +0 -1
  180. /package/lib/typescript/{package.json → module/package.json} +0 -0
@@ -10,20 +10,24 @@ Pod::Spec.new do |s|
10
10
  s.license = package["license"]
11
11
  s.authors = package["author"]
12
12
 
13
- s.platforms = { :ios => '15.0' }
14
- s.source = { :git => "https://github.com/AdShift/react-native-plugin.git", :tag => "#{s.version}" }
15
- s.swift_version = '5.0'
13
+ s.platforms = { :ios => '15.1' }
14
+ s.source = { :git => "https://github.com/AdShift/react_native_plugin.git", :tag => "v#{s.version}" }
15
+ s.swift_version = '5.9'
16
16
 
17
17
  s.source_files = "ios/**/*.{h,m,mm,swift,cpp}"
18
18
  s.private_header_files = "ios/**/*.h"
19
+ # The Swift package around ios/Core exists to test the bridge rules on their
20
+ # own; the app compiles those sources through this podspec instead.
21
+ s.exclude_files = ["ios/Package.swift", "ios/Tests/**/*", "ios/.build/**/*"]
19
22
 
20
- # Native AdShift iOS SDK from CocoaPods
21
- s.dependency 'AdshiftSDK', '~> 1.0'
23
+ # Native AdShift iOS SDK (binary xcframework; exact pin, bumped with each plugin release)
24
+ s.dependency 'AdshiftSDK', '2.4.0'
25
+ s.static_framework = true
22
26
 
23
- # Build settings for Swift/ObjC++ interop
24
27
  s.pod_target_xcconfig = {
25
28
  'DEFINES_MODULE' => 'YES',
26
- 'CLANG_CXX_LANGUAGE_STANDARD' => 'c++20'
29
+ 'CLANG_CXX_LANGUAGE_STANDARD' => 'c++20',
30
+ 'OTHER_SWIFT_FLAGS' => '$(inherited) -strict-concurrency=complete'
27
31
  }
28
32
 
29
33
  install_modules_dependencies(s)
package/CHANGELOG.md ADDED
@@ -0,0 +1,138 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## Native SDK matrix
9
+
10
+ | Plugin | Android SDK | iOS SDK |
11
+ |---|---|---|
12
+ | 2.1.0 | 3.2.0 | 2.4.0 |
13
+ | 2.0.0 | 3.1.0 | 2.2.0 |
14
+ | 1.0.0 | 2.0.3 | ~> 1.0 |
15
+
16
+ ## [2.1.0] - 2026-10-07
17
+
18
+ Native SDK update targeting Android SDK 3.2.0 and iOS SDK 2.4.0. No plugin API changes; what the native SDKs changed underneath:
19
+
20
+ ### Changed
21
+ - iOS: `start()` resolves after the local set-up and no longer waits for the ATT decision, the install or the SKAdNetwork configuration. `waitForATTBeforeStart` holds event delivery, not `start()`, until the decision or `attTimeoutMs`.
22
+ - iOS: Google on-device conversion measurement is on when the app ships Google's `GoogleAdsOnDeviceConversion` library or Firebase Analytics 11.14 or later. The plugin has no switch for it yet; set `GOOGLE_ADS_ON_DEVICE_CONVERSION_EVENT_DATA_ENABLED` to `NO` in `Info.plist` to turn it off.
23
+ - Android: Google's App Set ID is sent when the app includes `com.google.android.gms:play-services-appset`. The plugin has no switch for it yet; update the Data safety form ("Device or other IDs") before shipping with that library.
24
+ - Android: excluding `play-services-ads-identifier` no longer breaks the build; to stop collecting the advertising id, remove the `AD_ID` permission instead.
25
+
26
+ ### Fixed
27
+ - Events no longer reach AdShift before the install on a first launch, and on iOS an event tracked right after `start()` is no longer lost. See the native changelogs for the full list.
28
+ - README: the Apple postback endpoint is `https://adshift.com`; `adshift-skadnetwork.com` was never a valid host. The iOS setup now also lists the two AdAttributionKit keys.
29
+ - Docs: when `INVALID_API_KEY` is reported. `onError` fires when `start()` returns `apiKeyValidationStatus: 'invalid'`; on iOS the verdict usually arrives after `start()` resolved and is reported by the next `start()`, on Android `start()` waits up to 5 s for it.
30
+
31
+ ## [2.0.0] - 2026-09-15
32
+
33
+ Breaking release targeting Android SDK 3.1.0 and iOS SDK 2.2.0. See "Upgrading from 1.x" in the README.
34
+
35
+ ### Added
36
+ - `Adshift.logAdRevenue(params)` with `AdshiftMediationNetwork` and `AdshiftEventType.AdRevenue`.
37
+ - `Adshift.getAdShiftDeviceId()`.
38
+ - `Adshift.setBrandedDomains(domains)`, `Adshift.setMetaAppId(appId)`.
39
+ - `Adshift.setOaidData(oaid)` for Android devices without Google Play services; no-op on iOS.
40
+ - Push notification deep links: `Adshift.handlePushNotification(payload)`, `Adshift.addPushNotificationDeepLinkPath(path)`, `AdshiftConfig.pushDeepLinkPaths`.
41
+ - Automatic deep link forwarding (`AdshiftConfig.autoHandleDeepLinks`, default `true`): launch Intent and new Intents on Android, `Linking` on iOS.
42
+ - `AdshiftConfig.brandedDomains`, `AdshiftConfig.metaAppId`.
43
+ - A release build with `minifyEnabled true` on Android needs no keep rules of your own: the native SDK ships the ones its JSON layer requires, and they arrive with the dependency. Those rules keep its public API and the models that go on the wire and leave the rest to R8, so SDK frames in your crash reports arrive obfuscated — upload the `mapping.txt` your release build produces, which Crashlytics and the Play Console do for you once configured. Do not add `-keep class com.adshift.sdk.** { *; }`: it is not needed and it forces the whole native SDK into your APK unshrunk.
44
+ - Typed errors: `AdshiftError`, `AdshiftErrorCode`, `isAdshiftError`; native codes in `userInfo.nativeCode` / `userInfo.nativeDomain`.
45
+ - `ConsentSnapshot` returned by `refreshConsent()`; `ConsentFlag` tri-state consent.
46
+ - `Adshift.enableGPPDataCollection(enabled)`, forwarding the IAB GPP string a CMP wrote for US state privacy. Its own axis: it rides alongside whatever decides the GDPR axis and does not gate the advertising identifier.
47
+ - `Adshift.setThirdPartySharing(sharing)` and `Adshift.clearThirdPartySharing()` with `AdshiftThirdPartySharing.optedOut()` / `.allowed()`, for an answer the app collected on its own screen. Absent means sharing is allowed, so this axis reads a missing answer the opposite way to consent, and clearing is not the same as allowing.
48
+ - `ConsentSnapshot.source` reports the GPP axis as `gpp` on both platforms. Android names it `GPP_US_NAT` natively, but that is one section of the framework, so a CMP writing a state section instead would make the name wrong; which section was read is a separate fact.
49
+ - `ConsentSnapshot.cmpDetected`, which tells a CMP that has not been answered from no CMP at all — states every other field reports identically and which are fixed by opposite actions.
50
+ - `AdshiftDeepLink.isFirstSession`, `AdshiftDeepLink.params` typed as `Record<string, string>`.
51
+ - `AdshiftEventParam` with the 81 standard parameter names reports aggregate, `getAllEventParams()` and the `AdshiftEventParamValue` type. In development, `trackEvent` and the extra parameters of `logAdRevenue` warn once per name when a value carries the plain spelling of a standard name (`price`, `contentId`) instead of the constant. Values are always sent exactly as given.
52
+ - `PLUGIN_VERSION` and `Adshift.getInfo().nativeSdkVersions`.
53
+ - `AdshiftConfig.onError`: reports invalid arguments, a refused configuration and an API key the backend rejected, in every build.
54
+ - Jest mock: `@adshift/react-native-plugin/jest`.
55
+ - Deep link results are buffered (up to 20) until the first `onDeepLink` listener is registered.
56
+ - `trackEvent`, `trackPurchase` and `logAdRevenue` called before `start()` are queued (up to 100) and dispatched after a successful start.
57
+
58
+ ### Changed
59
+ - `start()` resolves after the local start with `{ success, apiKeyValidationStatus?, errorCode?, errorMessage? }` and never rejects. `StartResult.message` removed.
60
+ - `handleDeepLink(url)` returns `Promise<void>`; results are delivered only through `onDeepLink`.
61
+ - No method raises any more. Promises reject as before; methods that return nothing skip the call and report it through `AdshiftConfig.onError`.
62
+ - Setters called before `initialize()` are kept and applied with the configuration instead of failing.
63
+ - `onDeepLink` and `isStarted()` work before `initialize()`.
64
+ - `initialize()` keeps the first configuration; later calls are ignored.
65
+ - `start()` reports what the SDK answered, so a device excluded from tracking resolves `OPTED_OUT` instead of looking like a successful start.
66
+ - The URL that opened the app is forwarded once per process, so reloading JavaScript no longer books the same link again. A second tap on the same link is still forwarded.
67
+ - `trackEvent` rejects `app_install` and `app_open` with `INVALID_ARGUMENT`: the SDK sends them itself.
68
+ - Calls waiting for `start()` reject when the start failed for a reason retrying cannot fix (rejected key, excluded device, SDK not initialized). Any other failure keeps them waiting for the next attempt.
69
+ - `AdshiftConsent.forGDPRUser()` accepts partial input; undecided flags are `null` and are not sent. `forNonGDPRUser()` sends no individual flags. `isConsentGranted` requires explicit `true`.
70
+ - Errors after `stop()` use `NOT_STARTED`; backend rejections use `INVALID_API_KEY` and `OPTED_OUT`.
71
+ - Minimum iOS 15.1 and Xcode 16.1; minimum Android API 24. React Native 0.82+ (New Architecture only).
72
+ - Public API is limited to `src/index.tsx`; internal helpers are no longer exported.
73
+
74
+ ### Removed
75
+ - `NativeAdShiftReactNativePlugin`, `AdShiftNativeSpec`, `configToMap`, `consentToMap`, `deepLinkToMap` exports.
76
+
77
+ ### Fixed
78
+ - `initialize()` no longer raises when the config carries a value the bridge cannot convert; only declared options are sent.
79
+ - A deep link arriving while buffered results wait for their first listener no longer overtakes them.
80
+ - A URL passed to `handleDeepLink()` is no longer forwarded a second time by automatic forwarding.
81
+ - A rejected API key is reported once, not twice.
82
+ - Deep link delivery is now exactly-once regardless of listener registration timing and JS reloads.
83
+ - `getInfo()` reports the real plugin version.
84
+ - A deferred deep link on iOS is delivered as `status: 'found'` with `isDeferred: true`, matching Android.
85
+ - `start()` reports `apiKeyValidationStatus` on Android too, instead of always `pending`.
86
+ - A tracking call on a device excluded from tracking rejects with `OPTED_OUT` on iOS, matching Android.
87
+ - `ConsentSnapshot.hasConsent` is replaced by `adIdentifiersAllowed`, which each platform derives with the rule it applies to the consent flags.
88
+ - A failed `start()` carries `nativeCode` (and `nativeDomain` on iOS) for support requests, whether the native side answered with a failure or rejected.
89
+ - The Jest mock reports the platform the test runs on and the native SDK versions the plugin is pinned to, instead of a fixed pair of values.
90
+ - `__reset()` on the Jest mock also drops recorded calls and per-test behaviour, so state no longer leaks between tests.
91
+
92
+ ## [1.0.0] - 2026-01-05
93
+
94
+ ### Added
95
+
96
+ #### SDK Lifecycle
97
+ - `Adshift.initialize(config)` - Configure SDK with API key and options
98
+ - `Adshift.start()` - Start tracking (returns Promise)
99
+ - `Adshift.stop()` - Stop tracking
100
+ - `Adshift.isStarted()` - Check if SDK is running
101
+
102
+ #### Event Tracking
103
+ - `Adshift.trackEvent(eventName, values?)` - Track in-app events
104
+ - `Adshift.trackPurchase(params)` - Track purchase events for SKAdNetwork
105
+ - 30+ predefined event types (`AdshiftEventType`)
106
+
107
+ #### Consent Management (GDPR/DMA)
108
+ - `Adshift.setConsentData(consent)` - Set manual consent
109
+ - `Adshift.enableTCFDataCollection(enabled)` - Enable TCF 2.2 auto-collection
110
+ - `Adshift.refreshConsent()` - Refresh consent state
111
+ - `AdshiftConsent.forGDPRUser(options)` - Create GDPR consent object
112
+ - `AdshiftConsent.forNonGDPRUser()` - Create non-GDPR consent object
113
+
114
+ #### Deep Linking
115
+ - `Adshift.onDeepLink(callback)` - Listen for deep links (direct + deferred)
116
+ - `Adshift.handleDeepLink(url)` - Process incoming URL
117
+
118
+ #### Configuration
119
+ - `Adshift.setCustomerUserId(userId)` - Set customer user ID
120
+ - `Adshift.setDebugEnabled(enabled)` - Enable/disable debug logs
121
+ - `Adshift.setAppOpenDebounceMs(ms)` - Set app_open event debounce
122
+
123
+ #### TypeScript Support
124
+ - Full TypeScript definitions
125
+ - `AdshiftConfig` - Configuration interface
126
+ - `AdshiftConsent` - Consent interface with factory methods
127
+ - `AdshiftDeepLink` - Deep link response interface
128
+ - `AdshiftEventType` - Predefined event constants
129
+
130
+ ### Platform Support
131
+ - **iOS**: 15.0+ (Swift via Objective-C++ bridge)
132
+ - **Android**: API 21+ (Kotlin)
133
+ - **React Native**: 0.82+ (New Architecture / Turbo Modules only)
134
+
135
+ ### Native SDK Dependencies
136
+ - iOS: `AdshiftSDK ~> 1.0`
137
+ - Android: `com.adshift:android-sdk:2.0.3`
138
+