@adshift/react-native-plugin 2.1.0 → 3.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 (185) hide show
  1. package/AdShiftReactNativePlugin.podspec +20 -4
  2. package/CHANGELOG.md +57 -8
  3. package/README.md +131 -74
  4. package/android/build.gradle +3 -2
  5. package/android/consumer-rules.pro +2 -21
  6. package/android/src/main/AndroidManifest.xml +14 -1
  7. package/android/src/main/java/com/adshift/reactnativeplugin/ActivityIntents.kt +307 -0
  8. package/android/src/main/java/com/adshift/reactnativeplugin/AdShiftReactNativePluginModule.kt +90 -153
  9. package/android/src/test/java/com/adshift/reactnativeplugin/ConsentSnapshotTest.kt +0 -20
  10. package/android/src/test/java/com/adshift/reactnativeplugin/DeepLinkDeliveryTest.kt +40 -7
  11. package/android/src/test/java/com/adshift/reactnativeplugin/InitializeOrderingTest.kt +51 -5
  12. package/android/src/test/java/com/adshift/reactnativeplugin/IntentLinkDedupTest.kt +0 -5
  13. package/android/src/test/java/com/adshift/reactnativeplugin/LaunchIntentForwardingTest.kt +21 -11
  14. package/android/src/test/java/com/adshift/reactnativeplugin/LaunchLinkRecordTest.kt +420 -0
  15. package/android/src/test/java/com/adshift/reactnativeplugin/ModuleTestSupport.kt +97 -25
  16. package/android/src/test/java/com/adshift/reactnativeplugin/StartVerdictTest.kt +0 -4
  17. package/ios/AdShiftReactNativePlugin.h +0 -12
  18. package/ios/AdShiftReactNativePlugin.mm +7 -14
  19. package/ios/AdShiftReactNativePluginHelper.swift +38 -73
  20. package/ios/Core/BridgeRules.swift +42 -30
  21. package/lib/commonjs/Adshift.js +100 -284
  22. package/lib/commonjs/Adshift.js.map +1 -1
  23. package/lib/commonjs/NativeAdShiftReactNativePlugin.js +2 -11
  24. package/lib/commonjs/NativeAdShiftReactNativePlugin.js.map +1 -1
  25. package/lib/commonjs/index.js +6 -0
  26. package/lib/commonjs/index.js.map +1 -1
  27. package/lib/commonjs/jest/index.js +6 -18
  28. package/lib/commonjs/jest/index.js.map +1 -1
  29. package/lib/commonjs/nativeSdkVersions.js +4 -6
  30. package/lib/commonjs/nativeSdkVersions.js.map +1 -1
  31. package/lib/commonjs/types/AdshiftAdRevenue.js +0 -24
  32. package/lib/commonjs/types/AdshiftAdRevenue.js.map +1 -1
  33. package/lib/commonjs/types/AdshiftConfig.js +11 -23
  34. package/lib/commonjs/types/AdshiftConfig.js.map +1 -1
  35. package/lib/commonjs/types/AdshiftConsent.js +9 -45
  36. package/lib/commonjs/types/AdshiftConsent.js.map +1 -1
  37. package/lib/commonjs/types/AdshiftConsentSnapshot.js +5 -24
  38. package/lib/commonjs/types/AdshiftConsentSnapshot.js.map +1 -1
  39. package/lib/commonjs/types/AdshiftDeepLink.js +50 -33
  40. package/lib/commonjs/types/AdshiftDeepLink.js.map +1 -1
  41. package/lib/commonjs/types/AdshiftError.js +7 -27
  42. package/lib/commonjs/types/AdshiftError.js.map +1 -1
  43. package/lib/commonjs/types/AdshiftEventParam.js +4 -38
  44. package/lib/commonjs/types/AdshiftEventParam.js.map +1 -1
  45. package/lib/commonjs/types/AdshiftEventType.js +1 -39
  46. package/lib/commonjs/types/AdshiftEventType.js.map +1 -1
  47. package/lib/commonjs/types/AdshiftThirdPartySharing.js +7 -38
  48. package/lib/commonjs/types/AdshiftThirdPartySharing.js.map +1 -1
  49. package/lib/commonjs/types/index.js +12 -0
  50. package/lib/commonjs/types/index.js.map +1 -1
  51. package/lib/commonjs/version.js +1 -1
  52. package/lib/module/Adshift.js +101 -285
  53. package/lib/module/Adshift.js.map +1 -1
  54. package/lib/module/NativeAdShiftReactNativePlugin.js +2 -12
  55. package/lib/module/NativeAdShiftReactNativePlugin.js.map +1 -1
  56. package/lib/module/index.js +2 -47
  57. package/lib/module/index.js.map +1 -1
  58. package/lib/module/jest/index.js +7 -19
  59. package/lib/module/jest/index.js.map +1 -1
  60. package/lib/module/nativeSdkVersions.js +4 -6
  61. package/lib/module/nativeSdkVersions.js.map +1 -1
  62. package/lib/module/types/AdshiftAdRevenue.js +0 -24
  63. package/lib/module/types/AdshiftAdRevenue.js.map +1 -1
  64. package/lib/module/types/AdshiftConfig.js +10 -23
  65. package/lib/module/types/AdshiftConfig.js.map +1 -1
  66. package/lib/module/types/AdshiftConsent.js +9 -45
  67. package/lib/module/types/AdshiftConsent.js.map +1 -1
  68. package/lib/module/types/AdshiftConsentSnapshot.js +5 -24
  69. package/lib/module/types/AdshiftConsentSnapshot.js.map +1 -1
  70. package/lib/module/types/AdshiftDeepLink.js +49 -32
  71. package/lib/module/types/AdshiftDeepLink.js.map +1 -1
  72. package/lib/module/types/AdshiftError.js +7 -28
  73. package/lib/module/types/AdshiftError.js.map +1 -1
  74. package/lib/module/types/AdshiftEventParam.js +4 -38
  75. package/lib/module/types/AdshiftEventParam.js.map +1 -1
  76. package/lib/module/types/AdshiftEventType.js +1 -39
  77. package/lib/module/types/AdshiftEventType.js.map +1 -1
  78. package/lib/module/types/AdshiftThirdPartySharing.js +7 -38
  79. package/lib/module/types/AdshiftThirdPartySharing.js.map +1 -1
  80. package/lib/module/types/index.js +2 -2
  81. package/lib/module/types/index.js.map +1 -1
  82. package/lib/module/version.js +1 -1
  83. package/lib/typescript/commonjs/src/Adshift.d.ts +68 -184
  84. package/lib/typescript/commonjs/src/Adshift.d.ts.map +1 -1
  85. package/lib/typescript/commonjs/src/NativeAdShiftReactNativePlugin.d.ts +18 -35
  86. package/lib/typescript/commonjs/src/NativeAdShiftReactNativePlugin.d.ts.map +1 -1
  87. package/lib/typescript/commonjs/src/index.d.ts +2 -34
  88. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  89. package/lib/typescript/commonjs/src/jest/index.d.ts +9 -21
  90. package/lib/typescript/commonjs/src/jest/index.d.ts.map +1 -1
  91. package/lib/typescript/commonjs/src/nativeSdkVersions.d.ts +4 -6
  92. package/lib/typescript/commonjs/src/nativeSdkVersions.d.ts.map +1 -1
  93. package/lib/typescript/commonjs/src/types/AdshiftAdRevenue.d.ts +0 -24
  94. package/lib/typescript/commonjs/src/types/AdshiftAdRevenue.d.ts.map +1 -1
  95. package/lib/typescript/commonjs/src/types/AdshiftConfig.d.ts +35 -39
  96. package/lib/typescript/commonjs/src/types/AdshiftConfig.d.ts.map +1 -1
  97. package/lib/typescript/commonjs/src/types/AdshiftConsent.d.ts +9 -49
  98. package/lib/typescript/commonjs/src/types/AdshiftConsent.d.ts.map +1 -1
  99. package/lib/typescript/commonjs/src/types/AdshiftConsentSnapshot.d.ts +10 -28
  100. package/lib/typescript/commonjs/src/types/AdshiftConsentSnapshot.d.ts.map +1 -1
  101. package/lib/typescript/commonjs/src/types/AdshiftDeepLink.d.ts +55 -39
  102. package/lib/typescript/commonjs/src/types/AdshiftDeepLink.d.ts.map +1 -1
  103. package/lib/typescript/commonjs/src/types/AdshiftError.d.ts +7 -26
  104. package/lib/typescript/commonjs/src/types/AdshiftError.d.ts.map +1 -1
  105. package/lib/typescript/commonjs/src/types/AdshiftEventParam.d.ts +3 -19
  106. package/lib/typescript/commonjs/src/types/AdshiftEventParam.d.ts.map +1 -1
  107. package/lib/typescript/commonjs/src/types/AdshiftEventType.d.ts +1 -23
  108. package/lib/typescript/commonjs/src/types/AdshiftEventType.d.ts.map +1 -1
  109. package/lib/typescript/commonjs/src/types/AdshiftThirdPartySharing.d.ts +7 -38
  110. package/lib/typescript/commonjs/src/types/AdshiftThirdPartySharing.d.ts.map +1 -1
  111. package/lib/typescript/commonjs/src/types/index.d.ts +3 -3
  112. package/lib/typescript/commonjs/src/types/index.d.ts.map +1 -1
  113. package/lib/typescript/commonjs/src/version.d.ts +1 -1
  114. package/lib/typescript/module/src/Adshift.d.ts +68 -184
  115. package/lib/typescript/module/src/Adshift.d.ts.map +1 -1
  116. package/lib/typescript/module/src/NativeAdShiftReactNativePlugin.d.ts +18 -35
  117. package/lib/typescript/module/src/NativeAdShiftReactNativePlugin.d.ts.map +1 -1
  118. package/lib/typescript/module/src/index.d.ts +2 -34
  119. package/lib/typescript/module/src/index.d.ts.map +1 -1
  120. package/lib/typescript/module/src/jest/index.d.ts +9 -21
  121. package/lib/typescript/module/src/jest/index.d.ts.map +1 -1
  122. package/lib/typescript/module/src/nativeSdkVersions.d.ts +4 -6
  123. package/lib/typescript/module/src/nativeSdkVersions.d.ts.map +1 -1
  124. package/lib/typescript/module/src/types/AdshiftAdRevenue.d.ts +0 -24
  125. package/lib/typescript/module/src/types/AdshiftAdRevenue.d.ts.map +1 -1
  126. package/lib/typescript/module/src/types/AdshiftConfig.d.ts +35 -39
  127. package/lib/typescript/module/src/types/AdshiftConfig.d.ts.map +1 -1
  128. package/lib/typescript/module/src/types/AdshiftConsent.d.ts +9 -49
  129. package/lib/typescript/module/src/types/AdshiftConsent.d.ts.map +1 -1
  130. package/lib/typescript/module/src/types/AdshiftConsentSnapshot.d.ts +10 -28
  131. package/lib/typescript/module/src/types/AdshiftConsentSnapshot.d.ts.map +1 -1
  132. package/lib/typescript/module/src/types/AdshiftDeepLink.d.ts +55 -39
  133. package/lib/typescript/module/src/types/AdshiftDeepLink.d.ts.map +1 -1
  134. package/lib/typescript/module/src/types/AdshiftError.d.ts +7 -26
  135. package/lib/typescript/module/src/types/AdshiftError.d.ts.map +1 -1
  136. package/lib/typescript/module/src/types/AdshiftEventParam.d.ts +3 -19
  137. package/lib/typescript/module/src/types/AdshiftEventParam.d.ts.map +1 -1
  138. package/lib/typescript/module/src/types/AdshiftEventType.d.ts +1 -23
  139. package/lib/typescript/module/src/types/AdshiftEventType.d.ts.map +1 -1
  140. package/lib/typescript/module/src/types/AdshiftThirdPartySharing.d.ts +7 -38
  141. package/lib/typescript/module/src/types/AdshiftThirdPartySharing.d.ts.map +1 -1
  142. package/lib/typescript/module/src/types/index.d.ts +3 -3
  143. package/lib/typescript/module/src/types/index.d.ts.map +1 -1
  144. package/lib/typescript/module/src/version.d.ts +1 -1
  145. package/package.json +11 -1
  146. package/src/Adshift.ts +118 -285
  147. package/src/NativeAdShiftReactNativePlugin.ts +19 -47
  148. package/src/index.tsx +7 -46
  149. package/src/jest/index.ts +11 -20
  150. package/src/nativeSdkVersions.ts +4 -6
  151. package/src/types/AdshiftAdRevenue.ts +0 -24
  152. package/src/types/AdshiftConfig.ts +48 -55
  153. package/src/types/AdshiftConsent.ts +9 -49
  154. package/src/types/AdshiftConsentSnapshot.ts +11 -38
  155. package/src/types/AdshiftDeepLink.ts +87 -39
  156. package/src/types/AdshiftError.ts +7 -26
  157. package/src/types/AdshiftEventParam.ts +4 -38
  158. package/src/types/AdshiftEventType.ts +1 -39
  159. package/src/types/AdshiftThirdPartySharing.ts +7 -38
  160. package/src/types/index.ts +9 -2
  161. package/src/version.ts +1 -1
  162. package/vendor/ios/AdshiftSDK.files.json +30 -0
  163. package/vendor/ios/AdshiftSDK.xcframework/Info.plist +44 -0
  164. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64/AdshiftSDK.framework/AdshiftSDK +0 -0
  165. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64/AdshiftSDK.framework/Headers/AdshiftSDK-Swift.h +315 -0
  166. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64/AdshiftSDK.framework/Info.plist +0 -0
  167. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64/AdshiftSDK.framework/Modules/AdshiftSDK.swiftmodule/arm64-apple-ios.abi.json +18729 -0
  168. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64/AdshiftSDK.framework/Modules/AdshiftSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +414 -0
  169. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64/AdshiftSDK.framework/Modules/AdshiftSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  170. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64/AdshiftSDK.framework/Modules/AdshiftSDK.swiftmodule/arm64-apple-ios.swiftinterface +414 -0
  171. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64/AdshiftSDK.framework/Modules/module.modulemap +4 -0
  172. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64/AdshiftSDK.framework/PrivacyInfo.xcprivacy +132 -0
  173. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/AdshiftSDK +0 -0
  174. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/Headers/AdshiftSDK-Swift.h +626 -0
  175. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/Info.plist +0 -0
  176. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/Modules/AdshiftSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +18729 -0
  177. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/Modules/AdshiftSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +414 -0
  178. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/Modules/AdshiftSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  179. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/Modules/AdshiftSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +414 -0
  180. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/Modules/AdshiftSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +18729 -0
  181. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/Modules/AdshiftSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +414 -0
  182. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/Modules/AdshiftSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  183. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/Modules/AdshiftSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +414 -0
  184. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/Modules/module.modulemap +4 -0
  185. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/PrivacyInfo.xcprivacy +132 -0
@@ -1,6 +1,16 @@
1
1
  require "json"
2
2
 
3
3
  package = JSON.parse(File.read(File.join(__dir__, "package.json")))
4
+ ios_sdk = package["adshift"]["iosSdk"]
5
+
6
+ # The SDK ships in vendor/ios, which scripts/fetch-ios-sdk.js fills before packing.
7
+ # Without it the pod cannot build, so fail here rather than with a missing-module error.
8
+ sdk_framework = "vendor/ios/AdshiftSDK.xcframework"
9
+ unless File.exist?(File.join(__dir__, sdk_framework, "Info.plist"))
10
+ message = "AdShiftReactNativePlugin: the AdShift iOS SDK #{ios_sdk["version"]} is missing " \
11
+ "from #{File.join(__dir__, "vendor", "ios")}. Install @adshift/react-native-plugin again."
12
+ raise(defined?(Pod::Informative) ? Pod::Informative.new(message) : message)
13
+ end
4
14
 
5
15
  Pod::Spec.new do |s|
6
16
  s.name = "AdShiftReactNativePlugin"
@@ -14,15 +24,21 @@ Pod::Spec.new do |s|
14
24
  s.source = { :git => "https://github.com/AdShift/react_native_plugin.git", :tag => "v#{s.version}" }
15
25
  s.swift_version = '5.9'
16
26
 
27
+ # The SDK sits outside ios/, so its headers never join the plugin's sources.
17
28
  s.source_files = "ios/**/*.{h,m,mm,swift,cpp}"
18
29
  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.
30
+ # The Swift package in ios/ only tests ios/Core; the app compiles Core through this podspec.
21
31
  s.exclude_files = ["ios/Package.swift", "ios/Tests/**/*", "ios/.build/**/*"]
22
32
 
23
- # Native AdShift iOS SDK (binary xcframework; exact pin, bumped with each plugin release)
24
- s.dependency 'AdshiftSDK', '2.4.0'
33
+ s.vendored_frameworks = sdk_framework
25
34
  s.static_framework = true
35
+ s.frameworks = 'Foundation', 'UIKit', 'StoreKit', 'AdSupport', 'AppTrackingTransparency'
36
+
37
+ # A static framework brings no resources into the app, its privacy manifest included;
38
+ # the resource bundle puts the manifest where Xcode's privacy report finds it.
39
+ s.resource_bundles = {
40
+ 'AdshiftSDK' => ["#{sdk_framework}/ios-arm64/AdshiftSDK.framework/PrivacyInfo.xcprivacy"]
41
+ }
26
42
 
27
43
  s.pod_target_xcconfig = {
28
44
  'DEFINES_MODULE' => 'YES',
package/CHANGELOG.md CHANGED
@@ -9,10 +9,59 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
 
10
10
  | Plugin | Android SDK | iOS SDK |
11
11
  |---|---|---|
12
+ | 3.1.0 | 4.2.0 | 3.1.0 |
13
+ | 3.0.0 | 4.1.0 | 3.0.0 |
12
14
  | 2.1.0 | 3.2.0 | 2.4.0 |
13
15
  | 2.0.0 | 3.1.0 | 2.2.0 |
14
16
  | 1.0.0 | 2.0.3 | ~> 1.0 |
15
17
 
18
+ ## [3.1.0] - 2026-11-22
19
+
20
+ Release targeting Android SDK 4.2.0 and iOS SDK 3.1.0. Nothing in the API changes. See "Upgrading from 3.0" in the README.
21
+
22
+ ### Changed
23
+ - iOS: the AdShift iOS SDK comes inside the plugin package; `pod install` fetches nothing for it, and nothing changes in your `Podfile`, linkage mode or Expo setup. Do not add `AdshiftSDK` yourself, neither through CocoaPods nor through Swift Package Manager: if your `Podfile` has `pod 'AdshiftSDK'`, remove the line. Your own native code can still `import AdshiftSDK`.
24
+ - After `stop()` a link still reaches `onDeepLink`, but its click is not counted on either platform, and a short link arrives as tapped, without `deepLinkValue`. On Android 3.0 counted the click at the next `start()`.
25
+ - iOS: a deferred result has `deep_link_sub1`…`deep_link_sub5` in `params`, as on Android.
26
+ - The native SDKs' own changes are in the [iOS SDK](https://github.com/AdShift/ios-sdk/blob/main/CHANGELOG.md) and [Android SDK](https://github.com/AdShift/android-sdk-releases/blob/main/CHANGELOG.md) changelogs. The iOS one tells native apps to add `pod 'AdshiftSDK'`; with the plugin, do not: it carries the SDK.
27
+
28
+ ### Fixed
29
+ - Android: a link that opened the app is no longer lost when Android kills the process before `initialize()`, for example while the app waits for consent.
30
+ - Android: the same link tapped again opens and counts again after Back closed the screen it first opened.
31
+ - Android 7–9: when Android re-creates the app after killing its process, the link that opened it is not counted again, also in apps that pass `null` to `super.onCreate`.
32
+ - Android, with `autoHandleDeepLinks: false`: the launch link the app passes in again after Android re-created the app is not counted again.
33
+
34
+ ## [3.0.0] - 2026-11-12
35
+
36
+ Breaking release targeting Android SDK 4.1.0 and iOS SDK 3.0.0: RightLink deep linking. Nothing in the API was removed or renamed; most changes are in what `onDeepLink` delivers, without a build error. See "Upgrading from 2.x" in the README.
37
+
38
+ ### Added
39
+ - `AdshiftDeepLink.source` (`AdshiftDeepLinkSource`) and `clickId`: how the link reached the app and the click the open was attributed to. `isFirstSession` is now reported on iOS too.
40
+ - iOS: `AdshiftDeepLink.matchGuaranteed`. It is `false` when a deferred result is not certain to belong to this user: route them, but do not sign them in or grant a reward because of it.
41
+ - `AdshiftConfig.testMode`: marks every click and event as test traffic, which is kept out of reports, postbacks and billing.
42
+ - iOS: deferred deep link from the clipboard, for RightLink templates with the clipboard option — `AdshiftConfig.deferredDeepLinkClipboard` (`'disabled'` by default, `'prompt'`, `'pasteControl'`) and `Adshift.handlePastedDeepLink(url)`.
43
+ - RightLink links inside your app's scheme: `yourapp://rightlink?as_rl=<the link, percent-encoded>` is read as the link it wraps.
44
+ - Android: an Activity the system re-created (a rotation, a return after the process was killed) no longer counts the link that first opened it as a new tap.
45
+ - Android: the setup now asks `MainActivity` to keep each new Intent (`setIntent(intent)` in `onNewIntent`), so a link tapped while Android is re-creating the app is not lost.
46
+
47
+ ### Changed
48
+ - **Navigate only on `found`.** `found` now means a RightLink link — your `*.rightlink.me` host or a domain in `brandedDomains` — or a deferred deep link with a value. Any other URL, your app's own scheme included, comes back `notFound` with the URL in `deepLink`, no `params` and no click. 2.x answered `found` for every URL.
49
+ - A short link that cannot be resolved yet comes as `error`, and `found` follows once it resolves; a deleted link is `notFound`.
50
+ - The deferred deep link answers within 5 seconds of `start()`: the link, `notFound` or `error`.
51
+ - iOS: a deferred result has no `deepLink`; its link is in `deepLinkValue` and `deepLinkSub1`…`deepLinkSub5`.
52
+ - Only attribution parameters of a link leave the device. Any other key stays in `params` for your app.
53
+ - After `stop()` links still reach `onDeepLink`; nothing is sent.
54
+ - Android: `initialize()` makes no network call; the API key is checked at the first `start()`.
55
+ - iOS: the 10 USD limit on the ad revenue of one impression applies to the amount in USD, so a small amount in a currency with many units per dollar is now recorded. On Android the limit is still 10 in the currency you pass.
56
+ - iOS: SKAN revenue comes from `AdshiftEventParam.Revenue` with `AdshiftEventParam.Currency`, else from plain `revenue` with `currency`, never from `value`.
57
+ - iOS: the SDK's privacy manifest now also declares Coarse Location and Other Diagnostic Data.
58
+ - Android: the native SDK no longer brings AppCompat and Material into your app, and no longer needs Huawei's `ads-installreferrer`.
59
+
60
+ ### Fixed
61
+ - Android: `isFirstSession` is correct for a link handed over before `start()`.
62
+ - The development warning about ad revenue above 10 no longer fires on iOS for an amount in another currency.
63
+ - See the native changelogs for the full list.
64
+
16
65
  ## [2.1.0] - 2026-10-07
17
66
 
18
67
  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:
@@ -24,7 +73,7 @@ Native SDK update targeting Android SDK 3.2.0 and iOS SDK 2.4.0. No plugin API c
24
73
  - Android: excluding `play-services-ads-identifier` no longer breaks the build; to stop collecting the advertising id, remove the `AD_ID` permission instead.
25
74
 
26
75
  ### 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.
76
+ - iOS: an event tracked right after `start()` is no longer lost. See the native changelogs for the full list.
28
77
  - 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
78
  - 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
79
 
@@ -40,13 +89,13 @@ Breaking release targeting Android SDK 3.1.0 and iOS SDK 2.2.0. See "Upgrading f
40
89
  - Push notification deep links: `Adshift.handlePushNotification(payload)`, `Adshift.addPushNotificationDeepLinkPath(path)`, `AdshiftConfig.pushDeepLinkPaths`.
41
90
  - Automatic deep link forwarding (`AdshiftConfig.autoHandleDeepLinks`, default `true`): launch Intent and new Intents on Android, `Linking` on iOS.
42
91
  - `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.
92
+ - A release build with `minifyEnabled true` on Android needs no keep rules of your own; they arrive with the dependency. 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
93
  - Typed errors: `AdshiftError`, `AdshiftErrorCode`, `isAdshiftError`; native codes in `userInfo.nativeCode` / `userInfo.nativeDomain`.
45
94
  - `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.
95
+ - `Adshift.enableGPPDataCollection(enabled)`, reading the IAB GPP string a CMP wrote for US state privacy. It does not gate the advertising identifier.
96
+ - `Adshift.setThirdPartySharing(sharing)` and `Adshift.clearThirdPartySharing()` with `AdshiftThirdPartySharing.optedOut()` / `.allowed()`, for an answer the app collected on its own screen. Unlike consent, no answer means sharing is allowed, and clearing is not the same as allowing.
97
+ - `ConsentSnapshot.source` reports GPP as `gpp` on both platforms.
98
+ - `ConsentSnapshot.cmpDetected`, which tells a CMP that has not been answered yet from no CMP at all.
50
99
  - `AdshiftDeepLink.isFirstSession`, `AdshiftDeepLink.params` typed as `Record<string, string>`.
51
100
  - `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
101
  - `PLUGIN_VERSION` and `Adshift.getInfo().nativeSdkVersions`.
@@ -66,7 +115,7 @@ Breaking release targeting Android SDK 3.1.0 and iOS SDK 2.2.0. See "Upgrading f
66
115
  - 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
116
  - `trackEvent` rejects `app_install` and `app_open` with `INVALID_ARGUMENT`: the SDK sends them itself.
68
117
  - 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`.
118
+ - `AdshiftConsent.forGDPRUser()` accepts partial input; undecided flags are `null`. `isConsentGranted` requires explicit `true`.
70
119
  - Errors after `stop()` use `NOT_STARTED`; backend rejections use `INVALID_API_KEY` and `OPTED_OUT`.
71
120
  - Minimum iOS 15.1 and Xcode 16.1; minimum Android API 24. React Native 0.82+ (New Architecture only).
72
121
  - Public API is limited to `src/index.tsx`; internal helpers are no longer exported.
@@ -84,7 +133,7 @@ Breaking release targeting Android SDK 3.1.0 and iOS SDK 2.2.0. See "Upgrading f
84
133
  - A deferred deep link on iOS is delivered as `status: 'found'` with `isDeferred: true`, matching Android.
85
134
  - `start()` reports `apiKeyValidationStatus` on Android too, instead of always `pending`.
86
135
  - 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.
136
+ - `ConsentSnapshot.hasConsent` is replaced by `adIdentifiersAllowed`, which answers whether consent lets the SDK use the advertising identifier.
88
137
  - A failed `start()` carries `nativeCode` (and `nativeDomain` on iOS) for support requests, whether the native side answered with a failure or rejected.
89
138
  - 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
139
  - `__reset()` on the Jest mock also drops recorded calls and per-test behaviour, so state no longer leaks between tests.