@adshift/react-native-plugin 2.1.0 → 3.0.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 (86) hide show
  1. package/AdShiftReactNativePlugin.podspec +1 -1
  2. package/CHANGELOG.md +36 -0
  3. package/README.md +90 -41
  4. package/android/build.gradle +3 -1
  5. package/android/src/main/AndroidManifest.xml +14 -1
  6. package/android/src/main/java/com/adshift/reactnativeplugin/AdShiftReactNativePluginModule.kt +12 -1
  7. package/android/src/main/java/com/adshift/reactnativeplugin/RestoredIntents.kt +64 -0
  8. package/android/src/test/java/com/adshift/reactnativeplugin/DeepLinkDeliveryTest.kt +40 -3
  9. package/android/src/test/java/com/adshift/reactnativeplugin/InitializeOrderingTest.kt +14 -0
  10. package/android/src/test/java/com/adshift/reactnativeplugin/LaunchIntentForwardingTest.kt +30 -1
  11. package/android/src/test/java/com/adshift/reactnativeplugin/ModuleTestSupport.kt +13 -0
  12. package/ios/AdShiftReactNativePlugin.mm +5 -0
  13. package/ios/AdShiftReactNativePluginHelper.swift +25 -1
  14. package/ios/Core/BridgeRules.swift +18 -1
  15. package/lib/commonjs/Adshift.js +25 -2
  16. package/lib/commonjs/Adshift.js.map +1 -1
  17. package/lib/commonjs/NativeAdShiftReactNativePlugin.js.map +1 -1
  18. package/lib/commonjs/index.js +6 -0
  19. package/lib/commonjs/index.js.map +1 -1
  20. package/lib/commonjs/jest/index.js +2 -0
  21. package/lib/commonjs/jest/index.js.map +1 -1
  22. package/lib/commonjs/nativeSdkVersions.js +2 -2
  23. package/lib/commonjs/types/AdshiftConfig.js +10 -1
  24. package/lib/commonjs/types/AdshiftConfig.js.map +1 -1
  25. package/lib/commonjs/types/AdshiftDeepLink.js +50 -6
  26. package/lib/commonjs/types/AdshiftDeepLink.js.map +1 -1
  27. package/lib/commonjs/types/index.js +12 -0
  28. package/lib/commonjs/types/index.js.map +1 -1
  29. package/lib/commonjs/version.js +1 -1
  30. package/lib/module/Adshift.js +26 -3
  31. package/lib/module/Adshift.js.map +1 -1
  32. package/lib/module/NativeAdShiftReactNativePlugin.js.map +1 -1
  33. package/lib/module/index.js +1 -1
  34. package/lib/module/index.js.map +1 -1
  35. package/lib/module/jest/index.js +3 -1
  36. package/lib/module/jest/index.js.map +1 -1
  37. package/lib/module/nativeSdkVersions.js +2 -2
  38. package/lib/module/types/AdshiftConfig.js +9 -1
  39. package/lib/module/types/AdshiftConfig.js.map +1 -1
  40. package/lib/module/types/AdshiftDeepLink.js +50 -5
  41. package/lib/module/types/AdshiftDeepLink.js.map +1 -1
  42. package/lib/module/types/index.js +2 -2
  43. package/lib/module/types/index.js.map +1 -1
  44. package/lib/module/version.js +1 -1
  45. package/lib/typescript/commonjs/src/Adshift.d.ts +9 -1
  46. package/lib/typescript/commonjs/src/Adshift.d.ts.map +1 -1
  47. package/lib/typescript/commonjs/src/NativeAdShiftReactNativePlugin.d.ts +13 -4
  48. package/lib/typescript/commonjs/src/NativeAdShiftReactNativePlugin.d.ts.map +1 -1
  49. package/lib/typescript/commonjs/src/index.d.ts +2 -2
  50. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  51. package/lib/typescript/commonjs/src/jest/index.d.ts +3 -1
  52. package/lib/typescript/commonjs/src/jest/index.d.ts.map +1 -1
  53. package/lib/typescript/commonjs/src/nativeSdkVersions.d.ts +2 -2
  54. package/lib/typescript/commonjs/src/types/AdshiftConfig.d.ts +25 -2
  55. package/lib/typescript/commonjs/src/types/AdshiftConfig.d.ts.map +1 -1
  56. package/lib/typescript/commonjs/src/types/AdshiftDeepLink.d.ts +55 -11
  57. package/lib/typescript/commonjs/src/types/AdshiftDeepLink.d.ts.map +1 -1
  58. package/lib/typescript/commonjs/src/types/index.d.ts +3 -3
  59. package/lib/typescript/commonjs/src/types/index.d.ts.map +1 -1
  60. package/lib/typescript/commonjs/src/version.d.ts +1 -1
  61. package/lib/typescript/module/src/Adshift.d.ts +9 -1
  62. package/lib/typescript/module/src/Adshift.d.ts.map +1 -1
  63. package/lib/typescript/module/src/NativeAdShiftReactNativePlugin.d.ts +13 -4
  64. package/lib/typescript/module/src/NativeAdShiftReactNativePlugin.d.ts.map +1 -1
  65. package/lib/typescript/module/src/index.d.ts +2 -2
  66. package/lib/typescript/module/src/index.d.ts.map +1 -1
  67. package/lib/typescript/module/src/jest/index.d.ts +3 -1
  68. package/lib/typescript/module/src/jest/index.d.ts.map +1 -1
  69. package/lib/typescript/module/src/nativeSdkVersions.d.ts +2 -2
  70. package/lib/typescript/module/src/types/AdshiftConfig.d.ts +25 -2
  71. package/lib/typescript/module/src/types/AdshiftConfig.d.ts.map +1 -1
  72. package/lib/typescript/module/src/types/AdshiftDeepLink.d.ts +55 -11
  73. package/lib/typescript/module/src/types/AdshiftDeepLink.d.ts.map +1 -1
  74. package/lib/typescript/module/src/types/index.d.ts +3 -3
  75. package/lib/typescript/module/src/types/index.d.ts.map +1 -1
  76. package/lib/typescript/module/src/version.d.ts +1 -1
  77. package/package.json +1 -1
  78. package/src/Adshift.ts +39 -2
  79. package/src/NativeAdShiftReactNativePlugin.ts +14 -4
  80. package/src/index.tsx +6 -2
  81. package/src/jest/index.ts +5 -0
  82. package/src/nativeSdkVersions.ts +2 -2
  83. package/src/types/AdshiftConfig.ts +38 -2
  84. package/src/types/AdshiftDeepLink.ts +87 -11
  85. package/src/types/index.ts +9 -2
  86. package/src/version.ts +1 -1
@@ -1,5 +1,11 @@
1
- export type { AdshiftConfig } from './AdshiftConfig';
2
- export { configToMap } from './AdshiftConfig';
1
+ export type {
2
+ AdshiftConfig,
3
+ AdshiftDeferredDeepLinkClipboard,
4
+ } from './AdshiftConfig';
5
+ export {
6
+ configToMap,
7
+ DEFERRED_DEEP_LINK_CLIPBOARD_MODES,
8
+ } from './AdshiftConfig';
3
9
 
4
10
  export type { ConsentFlag } from './AdshiftConsent';
5
11
  export { AdshiftConsent, consentToMap } from './AdshiftConsent';
@@ -14,6 +20,7 @@ export {
14
20
 
15
21
  export {
16
22
  AdshiftDeepLinkStatus,
23
+ AdshiftDeepLinkSource,
17
24
  AdshiftDeepLink,
18
25
  deepLinkToMap,
19
26
  } from './AdshiftDeepLink';
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by scripts/write-version.js from package.json. Do not edit.
2
- export const PLUGIN_VERSION = '2.1.0';
2
+ export const PLUGIN_VERSION = '3.0.0';