react-native-applovin-max 9.0.0 → 9.2.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 (147) hide show
  1. package/android/build.gradle +3 -3
  2. package/android/src/main/java/com/applovin/reactnative/AppLovinMAXAdView.java +4 -10
  3. package/android/src/main/java/com/applovin/reactnative/AppLovinMAXAdViewUiComponent.java +17 -8
  4. package/android/src/main/java/com/applovin/reactnative/AppLovinMAXModuleImpl.java +36 -14
  5. package/android/src/newarch/com/applovin/reactnative/AppLovinMAXModule.java +6 -6
  6. package/android/src/oldarch/com/applovin/reactnative/AppLovinMAXModule.java +6 -6
  7. package/ios/AppLovinMAX.mm +36 -13
  8. package/ios/AppLovinMAXAdView.h +1 -0
  9. package/ios/AppLovinMAXAdView.mm +3 -9
  10. package/ios/AppLovinMAXAdViewUIComponent.h +1 -2
  11. package/ios/AppLovinMAXAdViewUIComponent.mm +18 -10
  12. package/lib/commonjs/AdView.js +63 -79
  13. package/lib/commonjs/AdView.js.map +1 -1
  14. package/lib/commonjs/AppLovinMAX.js +43 -29
  15. package/lib/commonjs/AppLovinMAX.js.map +1 -1
  16. package/lib/commonjs/BannerAd.js +2 -3
  17. package/lib/commonjs/BannerAd.js.map +1 -1
  18. package/lib/commonjs/ErrorCode.js +24 -31
  19. package/lib/commonjs/ErrorCode.js.map +1 -1
  20. package/lib/commonjs/EventEmitter.js +22 -1
  21. package/lib/commonjs/EventEmitter.js.map +1 -1
  22. package/lib/commonjs/Utils.js +22 -4
  23. package/lib/commonjs/Utils.js.map +1 -1
  24. package/lib/commonjs/index.js +1 -2
  25. package/lib/commonjs/index.js.map +1 -1
  26. package/lib/commonjs/nativeAd/NativeAdView.js +34 -24
  27. package/lib/commonjs/nativeAd/NativeAdView.js.map +1 -1
  28. package/lib/commonjs/nativeAd/NativeAdViewComponents.js +85 -43
  29. package/lib/commonjs/nativeAd/NativeAdViewComponents.js.map +1 -1
  30. package/lib/commonjs/nativeAd/NativeAdViewProvider.js +30 -2
  31. package/lib/commonjs/nativeAd/NativeAdViewProvider.js.map +1 -1
  32. package/lib/commonjs/specs/AppLovinMAXAdViewNativeComponent.js +27 -0
  33. package/lib/commonjs/specs/AppLovinMAXAdViewNativeComponent.js.map +1 -1
  34. package/lib/commonjs/specs/AppLovinMAXNativeAdViewNativeComponent.js +23 -0
  35. package/lib/commonjs/specs/AppLovinMAXNativeAdViewNativeComponent.js.map +1 -1
  36. package/lib/commonjs/specs/NativeAppLovinMAXModule.js +7 -0
  37. package/lib/commonjs/specs/NativeAppLovinMAXModule.js.map +1 -1
  38. package/lib/commonjs/types/AdInfo.js +13 -16
  39. package/lib/commonjs/types/AdInfo.js.map +1 -1
  40. package/lib/module/AdView.js +62 -77
  41. package/lib/module/AdView.js.map +1 -1
  42. package/lib/module/AppLovinMAX.js +44 -29
  43. package/lib/module/AppLovinMAX.js.map +1 -1
  44. package/lib/module/BannerAd.js +2 -3
  45. package/lib/module/BannerAd.js.map +1 -1
  46. package/lib/module/ErrorCode.js +24 -31
  47. package/lib/module/ErrorCode.js.map +1 -1
  48. package/lib/module/EventEmitter.js +22 -1
  49. package/lib/module/EventEmitter.js.map +1 -1
  50. package/lib/module/Utils.js +22 -4
  51. package/lib/module/Utils.js.map +1 -1
  52. package/lib/module/nativeAd/NativeAdView.js +34 -21
  53. package/lib/module/nativeAd/NativeAdView.js.map +1 -1
  54. package/lib/module/nativeAd/NativeAdViewComponents.js +87 -40
  55. package/lib/module/nativeAd/NativeAdViewComponents.js.map +1 -1
  56. package/lib/module/nativeAd/NativeAdViewProvider.js +30 -0
  57. package/lib/module/nativeAd/NativeAdViewProvider.js.map +1 -1
  58. package/lib/module/specs/AppLovinMAXAdViewNativeComponent.js +28 -0
  59. package/lib/module/specs/AppLovinMAXAdViewNativeComponent.js.map +1 -1
  60. package/lib/module/specs/AppLovinMAXNativeAdViewNativeComponent.js +24 -0
  61. package/lib/module/specs/AppLovinMAXNativeAdViewNativeComponent.js.map +1 -1
  62. package/lib/module/specs/NativeAppLovinMAXModule.js +9 -0
  63. package/lib/module/specs/NativeAppLovinMAXModule.js.map +1 -1
  64. package/lib/module/types/AdInfo.js +13 -16
  65. package/lib/module/types/AdInfo.js.map +1 -1
  66. package/lib/typescript/src/AdView.d.ts +27 -21
  67. package/lib/typescript/src/AdView.d.ts.map +1 -1
  68. package/lib/typescript/src/AppLovinMAX.d.ts +22 -21
  69. package/lib/typescript/src/AppLovinMAX.d.ts.map +1 -1
  70. package/lib/typescript/src/BannerAd.d.ts.map +1 -1
  71. package/lib/typescript/src/ErrorCode.d.ts +24 -31
  72. package/lib/typescript/src/ErrorCode.d.ts.map +1 -1
  73. package/lib/typescript/src/EventEmitter.d.ts +16 -0
  74. package/lib/typescript/src/EventEmitter.d.ts.map +1 -1
  75. package/lib/typescript/src/Utils.d.ts +15 -0
  76. package/lib/typescript/src/Utils.d.ts.map +1 -1
  77. package/lib/typescript/src/nativeAd/NativeAdView.d.ts +15 -7
  78. package/lib/typescript/src/nativeAd/NativeAdView.d.ts.map +1 -1
  79. package/lib/typescript/src/nativeAd/NativeAdViewComponents.d.ts +65 -1
  80. package/lib/typescript/src/nativeAd/NativeAdViewComponents.d.ts.map +1 -1
  81. package/lib/typescript/src/nativeAd/NativeAdViewProvider.d.ts +17 -0
  82. package/lib/typescript/src/nativeAd/NativeAdViewProvider.d.ts.map +1 -1
  83. package/lib/typescript/src/specs/AppLovinMAXAdViewNativeComponent.d.ts +45 -1
  84. package/lib/typescript/src/specs/AppLovinMAXAdViewNativeComponent.d.ts.map +1 -1
  85. package/lib/typescript/src/specs/AppLovinMAXNativeAdViewNativeComponent.d.ts +57 -6
  86. package/lib/typescript/src/specs/AppLovinMAXNativeAdViewNativeComponent.d.ts.map +1 -1
  87. package/lib/typescript/src/specs/NativeAppLovinMAXModule.d.ts +13 -3
  88. package/lib/typescript/src/specs/NativeAppLovinMAXModule.d.ts.map +1 -1
  89. package/lib/typescript/src/types/AdEvent.d.ts +10 -4
  90. package/lib/typescript/src/types/AdEvent.d.ts.map +1 -1
  91. package/lib/typescript/src/types/AdInfo.d.ts +78 -85
  92. package/lib/typescript/src/types/AdInfo.d.ts.map +1 -1
  93. package/lib/typescript/src/types/AdProps.d.ts +14 -15
  94. package/lib/typescript/src/types/AdProps.d.ts.map +1 -1
  95. package/lib/typescript/src/types/AdViewProps.d.ts +32 -29
  96. package/lib/typescript/src/types/AdViewProps.d.ts.map +1 -1
  97. package/lib/typescript/src/types/AppLovinMAX.d.ts +50 -53
  98. package/lib/typescript/src/types/AppLovinMAX.d.ts.map +1 -1
  99. package/lib/typescript/src/types/BannerAd.d.ts +24 -18
  100. package/lib/typescript/src/types/BannerAd.d.ts.map +1 -1
  101. package/lib/typescript/src/types/CMPError.d.ts +7 -4
  102. package/lib/typescript/src/types/CMPError.d.ts.map +1 -1
  103. package/lib/typescript/src/types/Configuration.d.ts +12 -14
  104. package/lib/typescript/src/types/Configuration.d.ts.map +1 -1
  105. package/lib/typescript/src/types/FullscreenAd.d.ts +39 -46
  106. package/lib/typescript/src/types/FullscreenAd.d.ts.map +1 -1
  107. package/lib/typescript/src/types/MRecAd.d.ts +7 -3
  108. package/lib/typescript/src/types/MRecAd.d.ts.map +1 -1
  109. package/lib/typescript/src/types/NativeAd.d.ts +12 -11
  110. package/lib/typescript/src/types/NativeAd.d.ts.map +1 -1
  111. package/lib/typescript/src/types/NativeAdViewProps.d.ts +4 -3
  112. package/lib/typescript/src/types/NativeAdViewProps.d.ts.map +1 -1
  113. package/lib/typescript/src/types/Privacy.d.ts +13 -6
  114. package/lib/typescript/src/types/Privacy.d.ts.map +1 -1
  115. package/lib/typescript/src/types/RewardedAd.d.ts +7 -5
  116. package/lib/typescript/src/types/RewardedAd.d.ts.map +1 -1
  117. package/lib/typescript/src/types/ViewAd.d.ts +46 -50
  118. package/lib/typescript/src/types/ViewAd.d.ts.map +1 -1
  119. package/package.json +1 -1
  120. package/react-native-applovin-max.podspec +2 -2
  121. package/src/AdView.tsx +64 -82
  122. package/src/AppLovinMAX.ts +39 -29
  123. package/src/BannerAd.ts +2 -3
  124. package/src/ErrorCode.ts +24 -31
  125. package/src/EventEmitter.ts +20 -2
  126. package/src/Utils.ts +20 -1
  127. package/src/nativeAd/NativeAdView.tsx +31 -21
  128. package/src/nativeAd/NativeAdViewComponents.tsx +97 -38
  129. package/src/nativeAd/NativeAdViewProvider.tsx +23 -0
  130. package/src/specs/AppLovinMAXAdViewNativeComponent.ts +62 -1
  131. package/src/specs/AppLovinMAXNativeAdViewNativeComponent.ts +70 -6
  132. package/src/specs/NativeAppLovinMAXModule.ts +77 -56
  133. package/src/types/AdEvent.ts +10 -4
  134. package/src/types/AdInfo.ts +78 -85
  135. package/src/types/AdProps.ts +14 -15
  136. package/src/types/AdViewProps.ts +33 -29
  137. package/src/types/AppLovinMAX.ts +50 -53
  138. package/src/types/BannerAd.ts +24 -18
  139. package/src/types/CMPError.ts +7 -4
  140. package/src/types/Configuration.ts +12 -14
  141. package/src/types/FullscreenAd.ts +39 -46
  142. package/src/types/MRecAd.ts +7 -3
  143. package/src/types/NativeAd.ts +12 -11
  144. package/src/types/NativeAdViewProps.ts +4 -3
  145. package/src/types/Privacy.ts +13 -6
  146. package/src/types/RewardedAd.ts +7 -5
  147. package/src/types/ViewAd.ts +46 -50
@@ -2,121 +2,114 @@ import type { AdEventListener } from './AdEvent';
2
2
  import type { AdInfo, AdLoadFailedInfo, AdDisplayFailedInfo } from './AdInfo';
3
3
  import type { LocalExtraParameterValue } from './AdProps';
4
4
  /**
5
- * Defines a full-screen ad (i.e Intestitial / Rewarded / AppOpen)
5
+ * Defines the interface for managing full-screen ads such as Interstitial, Rewarded, and AppOpen ads.
6
6
  */
7
7
  export type FullscreenAdType = {
8
8
  /**
9
- * Whether or not this ad is ready to be shown.
9
+ * Checks whether an ad is ready to be shown.
10
10
  *
11
- * @param adUnitId The ad unit ID of the ad to check whether it is ready to be shown.
11
+ * @param adUnitId - The ad unit ID to check.
12
+ * @returns A promise that resolves to `true` if the ad is ready.
12
13
  */
13
14
  isAdReady(adUnitId: string): Promise<boolean>;
14
15
  /**
15
- * Loads an interstitial ad.
16
+ * Loads a full-screen ad for the given ad unit ID.
16
17
  *
17
- * @param adUnitId The ad unit ID to load an ad for.
18
+ * @param adUnitId - The ad unit ID to load.
18
19
  */
19
20
  loadAd(adUnitId: string): void;
20
21
  /**
21
- * Shows the loaded interstitial ad, optionallly for a given placement and custom data to tie ad
22
- * events to.
22
+ * Shows a loaded full-screen ad.
23
23
  *
24
- * @param adUnitId The ad unit ID of the ad to show.
25
- * @param placement The placement to tie the showing ad's events to.
26
- * @param customData The custom data to tie the showing ad's events to. Maximum size is 8KB.
24
+ * @param adUnitId - The ad unit ID of the ad to show.
25
+ * @param placement - Optional placement name for event reporting.
26
+ * @param customData - Optional custom string data (max size: 8 KB).
27
27
  */
28
28
  showAd(adUnitId: string, placement?: string | null, customData?: string | null): void;
29
29
  /**
30
- * Sets an extra key/value parameter for the ad.
30
+ * Sets an extra parameter to pass to the SDK for the specified ad unit.
31
31
  *
32
- * @param adUnitId The ad unit ID of the ad to set a parameter for.
33
- * @param key Parameter key.
34
- * @param value Parameter value.
32
+ * @param adUnitId - The ad unit ID.
33
+ * @param key - The parameter name.
34
+ * @param value - The parameter value or `null` to clear it.
35
35
  */
36
36
  setExtraParameter(adUnitId: string, key: string, value: string | null): void;
37
37
  /**
38
- * Sets a local extra parameter to pass to the adapter instances.
38
+ * Sets a local extra parameter to pass to the adapter for the specified ad unit.
39
39
  *
40
- * @param adUnitId The ad unit ID of the ad to set a local parameter for.
41
- * @param key Parameter key.
42
- * @param value Parameter value.
40
+ * @param adUnitId - The ad unit ID.
41
+ * @param key - The parameter name.
42
+ * @param value - The parameter value (string, number, boolean, object, or null).
43
43
  */
44
44
  setLocalExtraParameter(adUnitId: string, key: string, value: LocalExtraParameterValue): void;
45
45
  /**
46
- * Adds the specified event listener to receive {@link AdInfo} when a full-screen ad loads a new ad.
46
+ * Registers a listener for when an ad is successfully loaded.
47
47
  *
48
- * @param listener Listener to be notified.
48
+ * @param listener - Callback to be notified with {@link AdInfo}.
49
49
  */
50
50
  addAdLoadedEventListener(listener: AdEventListener<AdInfo>): void;
51
51
  /**
52
- * Removes the event listener to receive {@link AdInfo} when a full-screen ad loads a new ad.
52
+ * Unregisters the ad loaded listener.
53
53
  */
54
54
  removeAdLoadedEventListener(): void;
55
55
  /**
56
- * Adds the specified event listener to receive {@link AdLoadFailedInfo} when a full-screen ad
57
- * could not load a new ad.
56
+ * Registers a listener for when an ad fails to load.
58
57
  *
59
- * @param listener Listener to be notified.
58
+ * @param listener - Callback to be notified with {@link AdLoadFailedInfo}.
60
59
  */
61
60
  addAdLoadFailedEventListener(listener: AdEventListener<AdLoadFailedInfo>): void;
62
61
  /**
63
- * Removes the event listener to receive {@ link adLoadFailedInfo} when a full-screen ad could
64
- * not load a new ad.
62
+ * Unregisters the ad load failure listener.
65
63
  */
66
64
  removeAdLoadFailedEventListener(): void;
67
65
  /**
68
- * Adds the specified event listener to receive {@link AdInfo} when the user clicks the ad.
66
+ * Registers a listener for ad click events.
69
67
  *
70
- * @param listener Listener to be notified.
68
+ * @param listener - Callback to be notified with {@link AdInfo}.
71
69
  */
72
70
  addAdClickedEventListener(listener: AdEventListener<AdInfo>): void;
73
71
  /**
74
- * Removes the event listener to receive {@link AdInfo} when the user clicks the ad.
72
+ * Unregisters the ad click listener.
75
73
  */
76
74
  removeAdClickedEventListener(): void;
77
75
  /**
78
- * Adds the specified event listener to receive {@link AdInfo} when a full-screen ad displays the ad.
76
+ * Registers a listener for when an ad is displayed.
79
77
  *
80
- * @param listener Listener to be notified.
78
+ * @param listener - Callback to be notified with {@link AdInfo}.
81
79
  */
82
80
  addAdDisplayedEventListener(listener: AdEventListener<AdInfo>): void;
83
81
  /**
84
- * Removes the event listener to receive {@link AdInfo} when a full-screen ad displays the ad.
82
+ * Unregisters the ad display listener.
85
83
  */
86
84
  removeAdDisplayedEventListener(): void;
87
85
  /**
88
- * Adds the specified event listener to receive {@link AdDisplayFailedInfo} when a full-screen
89
- * ad fails to display the ad.
86
+ * Registers a listener for when an ad fails to display.
90
87
  *
91
- * @param listener Listener to be notified.
88
+ * @param listener - Callback to be notified with {@link AdDisplayFailedInfo}.
92
89
  */
93
90
  addAdFailedToDisplayEventListener(listener: AdEventListener<AdDisplayFailedInfo>): void;
94
91
  /**
95
- * Removes the event listener to receive {@link AdDisplayFailedInfo} when a full-screen ad
96
- * fails to display the ad.
92
+ * Unregisters the ad display failure listener.
97
93
  */
98
94
  removeAdFailedToDisplayEventListener(): void;
99
95
  /**
100
- * Adds the specified event listener to receive {@link AdInfo} when a full-screen ad hides the
101
- * ad.
96
+ * Registers a listener for when an ad is hidden (dismissed).
102
97
  *
103
- * @param listener Listener to be notified.
98
+ * @param listener - Callback to be notified with {@link AdInfo}.
104
99
  */
105
100
  addAdHiddenEventListener(listener: AdEventListener<AdInfo>): void;
106
101
  /**
107
- * Removes the event listener to receive {@link AdInfo} when a full-screen ad hides the ad.
102
+ * Unregisters the ad hidden listener.
108
103
  */
109
104
  removeAdHiddenEventListener(): void;
110
105
  /**
111
- * Adds the specified event listener to receive {@link AdInfo} when a full-screen ad
112
- * pays ad revenue to the publisher.
106
+ * Registers a listener for when ad revenue is paid.
113
107
  *
114
- * @param listener Listener to be notified.
108
+ * @param listener - Callback to be notified with {@link AdInfo}.
115
109
  */
116
110
  addAdRevenuePaidListener(listener: AdEventListener<AdInfo>): void;
117
111
  /**
118
- * Removes the event listener to receive {@link AdInfo} when a full-screen ad pays
119
- * ad revenue to the publisher.
112
+ * Unregisters the ad revenue paid listener.
120
113
  */
121
114
  removeAdRevenuePaidListener(): void;
122
115
  };
@@ -1 +1 @@
1
- {"version":3,"file":"FullscreenAd.d.ts","sourceRoot":"","sources":["../../../../src/types/FullscreenAd.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,KAAK,EAAE,MA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face for managing MREC ads.
5
+ * Extends {@link ViewAdType} with MREC-specific creation logic.
6
+ */
3
7
  export type MRecAdType = ViewAdType & {
4
8
  /**
5
- * Creates a MREC at the specified position.
9
+ * Creates an MREC ad at the specified screen position.
6
10
  *
7
- * @param adUnitId The Ad Unit ID to to load ads for.
8
- * @param position {@link AdViewPosition} position.
11
+ * @param adUnitId - The ad unit ID to load the ad for.
12
+ * @param position - The desired position for the MREC, defined by {@link AdViewPosition}.
9
13
  */
10
14
  createAd(adUnitId: string, position: AdViewPosition): void;
11
15
  };
@@ -1 +1 @@
1
- {"version":3,"file":"MRecAd.d.ts","sourceRoot":"","sources":["../../../../src/types/MRecAd.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG;IAClC;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,GAAG,IAAI,CAAC;CAC9D,CAAC"}
1
+ {"version":3,"file":"MRecAd.d.ts","sourceRoot":"","sources":["../../../../src/types/MRecAd.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG;IAClC;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,GAAG,IAAI,CAAC;CAC9D,CAAC"}
@@ -1,45 +1,46 @@
1
1
  /**
2
- * Represents a native ad for rendering in {@link NativeAdView}. This type is intended for internal use only.
2
+ * Represents the structure of a native ad used internally by {@link NativeAdView}.
3
+ * This type is intended for internal use only.
3
4
  */
4
5
  export type NativeAd = {
5
6
  /**
6
- * The native ad title text.
7
+ * The ad title text.
7
8
  */
8
9
  title?: string | null;
9
10
  /**
10
- * The native ad advertiser text.
11
+ * The advertiser name.
11
12
  */
12
13
  advertiser?: string | null;
13
14
  /**
14
- * The native ad body text.
15
+ * The ad body text.
15
16
  */
16
17
  body?: string | null;
17
18
  /**
18
- * The native ad CTA button text.
19
+ * The call-to-action text.
19
20
  */
20
21
  callToAction?: string | null;
21
22
  /**
22
- * Whether or not this has an image icon.
23
+ * Indicates whether an icon image is available.
23
24
  */
24
25
  image?: boolean;
25
26
  /**
26
- * The data of the icon.
27
+ * The base64-encoded image source for the icon (if provided inline).
27
28
  */
28
29
  imageSource?: string | null;
29
30
  /**
30
- * The URL string of the icon.
31
+ * The URL of the icon image.
31
32
  */
32
33
  url?: string;
33
34
  /**
34
- * The star rating of the native ad.
35
+ * The star rating of the ad, typically in the range [0.0 – 5.0].
35
36
  */
36
37
  starRating?: number;
37
38
  /**
38
- * Whether or not the Options view is available.
39
+ * Whether the native Options view is available.
39
40
  */
40
41
  isOptionsViewAvailable: boolean;
41
42
  /**
42
- * Whether or not the Media view is available.
43
+ * Whether the native Media view (video or image) is available.
43
44
  */
44
45
  isMediaViewAvailable: boolean;
45
46
  };
@@ -1 +1 @@
1
- {"version":3,"file":"NativeAd.d.ts","sourceRoot":"","sources":["../../../../src/types/NativeAd.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,sBAAsB,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,oBAAoB,EAAE,OAAO,CAAC;CACjC,CAAC"}
1
+ {"version":3,"file":"NativeAd.d.ts","sourceRoot":"","sources":["../../../../src/types/NativeAd.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,sBAAsB,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,oBAAoB,EAAE,OAAO,CAAC;CACjC,CAAC"}
@@ -1,15 +1,16 @@
1
1
  import type { AdProps } from './AdProps';
2
2
  /**
3
- * A handler of {@link NativeAdView}.
3
+ * A reference handler for the {@link NativeAdView} component.
4
4
  */
5
5
  export type NativeAdViewHandler = {
6
6
  /**
7
- * Loads a native ad.
7
+ * Triggers a native ad load.
8
8
  */
9
9
  loadAd(): void;
10
10
  };
11
11
  /**
12
- * Represents a {@link NativeAdView}.
12
+ * Props passed to the {@link NativeAdView} component.
13
+ * Extends the base {@link AdProps} used for all ad components.
13
14
  */
14
15
  export type NativeAdViewProps = AdProps;
15
16
  //# sourceMappingURL=NativeAdViewProps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NativeAdViewProps.d.ts","sourceRoot":"","sources":["../../../../src/types/NativeAdViewProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAC9B;;OAEG;IACH,MAAM,IAAI,IAAI,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC"}
1
+ {"version":3,"file":"NativeAdViewProps.d.ts","sourceRoot":"","sources":["../../../../src/types/NativeAdViewProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAC9B;;OAEG;IACH,MAAM,IAAI,IAAI,CAAC;CAClB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC"}
@@ -1,22 +1,29 @@
1
+ /**
2
+ * Provides methods to manage user privacy settings for AppLovin MAX.
3
+ */
1
4
  export type PrivacyType = {
2
5
  /**
3
- * Sets whether or not the user provided consent for information-sharing with AppLovin.
6
+ * Sets whether the user has granted consent for data collection and sharing.
4
7
  *
5
- * @param hasUserConsent true if the user provided consent for information sharing.
8
+ * @param hasUserConsent - `true` if the user has provided consent.
6
9
  */
7
10
  setHasUserConsent(hasUserConsent: boolean): void;
8
11
  /**
9
- * Checks if user set consent for information sharing.
12
+ * Checks whether the user has granted consent for information sharing.
13
+ *
14
+ * @returns A promise that resolves to `true` if the user has granted consent.
10
15
  */
11
16
  hasUserConsent(): Promise<boolean>;
12
17
  /**
13
- * Sets whether or not the user opted out of the sale of their personal information.
18
+ * Sets whether the user has opted out of the sale of their personal information.
14
19
  *
15
- * @param doNotSell true if the user opted out of the sale of their personal information.
20
+ * @param doNotSell - `true` if the user opted out of personal data sale.
16
21
  */
17
22
  setDoNotSell(doNotSell: boolean): void;
18
23
  /**
19
- * Checks if the user opted out of the sale of their personal information.
24
+ * Checks whether the user has opted out of the sale of their personal information.
25
+ *
26
+ * @returns A promise that resolves to `true` if the user has opted out.
20
27
  */
21
28
  isDoNotSell(): Promise<boolean>;
22
29
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Privacy.d.ts","sourceRoot":"","sources":["../../../../src/types/Privacy.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACtB;;;;OAIG;IACH,iBAAiB,CAAC,cAAc,EAAE,OAAO,GAAG,IAAI,CAAC;IAEjD;;OAEG;IACH,cAAc,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAEnC;;;;OAIG;IACH,YAAY,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI,CAAC;IAEvC;;OAEG;IACH,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;CACnC,CAAC"}
1
+ {"version":3,"file":"Privacy.d.ts","sourceRoot":"","sources":["../../../../src/types/Privacy.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACtB;;;;OAIG;IACH,iBAAiB,CAAC,cAAc,EAAE,OAAO,GAAG,IAAI,CAAC;IAEjD;;;;OAIG;IACH,cAAc,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAEnC;;;;OAIG;IACH,YAAY,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI,CAAC;IAEvC;;;;OAIG;IACH,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;CACnC,CAAC"}
@@ -1,17 +1,19 @@
1
1
  import type { AdEventListener } from './AdEvent';
2
2
  import type { AdRewardInfo } from './AdInfo';
3
3
  import type { FullscreenAdType } from './FullscreenAd';
4
+ /**
5
+ * Defines the interface for managing rewarded ads.
6
+ * Extends {@link FullscreenAdType} with reward-specific callbacks.
7
+ */
4
8
  export type RewardedAdType = FullscreenAdType & {
5
9
  /**
6
- * Adds the specified event listener to receive {@link AdRewardInfo} when {@link RewardedAd}
7
- * rewards the user.
10
+ * Registers a listener for when a reward is granted to the user.
8
11
  *
9
- * @param listener Listener to be notified.
12
+ * @param listener - Callback to be notified with {@link AdRewardInfo}.
10
13
  */
11
14
  addAdReceivedRewardEventListener(listener: AdEventListener<AdRewardInfo>): void;
12
15
  /**
13
- * Removes the event listener to receive {@link AdRewardInfo} when {@link RewardedAd} rewards
14
- * the user.
16
+ * Unregisters the reward event listener.
15
17
  */
16
18
  removeAdReceivedRewardEventListener(): void;
17
19
  };
@@ -1 +1 @@
1
- {"version":3,"file":"RewardedAd.d.ts","sourceRoot":"","sources":["../../../../src/types/RewardedAd.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,MAAM,MAAM,cAAc,GAAG,gBAAgB,GAAG;IAC5C;;;;;OAKG;IACH,gCAAgC,CAAC,QAAQ,EAAE,eAAe,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;IAEhF;;;OAGG;IACH,mCAAmC,IAAI,IAAI,CAAC;CAC/C,CAAC"}
1
+ {"version":3,"file":"RewardedAd.d.ts","sourceRoot":"","sources":["../../../../src/types/RewardedAd.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,gBAAgB,GAAG;IAC5C;;;;OAIG;IACH,gCAAgC,CAAC,QAAQ,EAAE,eAAe,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;IAEhF;;OAEG;IACH,mCAAmC,IAAI,IAAI,CAAC;CAC/C,CAAC"}
@@ -3,138 +3,134 @@ import type { AdInfo, AdLoadFailedInfo } from './AdInfo';
3
3
  import type { LocalExtraParameterValue } from './AdProps';
4
4
  import type { AdViewPosition } from '../AdView';
5
5
  /**
6
- * Define a view-based ad (i.e. Banner / MREC)
6
+ * Defines the interface for view-based ads such as Banners and MRECs.
7
7
  */
8
8
  export type ViewAdType = {
9
9
  /**
10
- * Destroys the banner/MREC.
10
+ * Destroys the banner or MREC ad.
11
11
  *
12
- * @param adUnitId The ad unit ID of the ad to destroy.
12
+ * @param adUnitId - The ad unit ID of the ad to destroy.
13
13
  */
14
14
  destroyAd(adUnitId: string): void;
15
15
  /**
16
- * Shows the banner/MREC.
16
+ * Displays the banner or MREC ad.
17
17
  *
18
- * @param adUnitId The ad unit ID of the ad to show.
18
+ * @param adUnitId - The ad unit ID of the ad to show.
19
19
  */
20
20
  showAd(adUnitId: string): void;
21
21
  /**
22
- * Hides the banner/MREC.
22
+ * Hides the banner or MREC ad.
23
23
  *
24
- * @param adUnitId The ad unit ID of the ad to hide.
24
+ * @param adUnitId - The ad unit ID of the ad to hide.
25
25
  */
26
26
  hideAd(adUnitId: string): void;
27
27
  /**
28
- * Sets a placement to tie the showing ad’s events to.
28
+ * Sets a placement to associate with the showing ad’s events.
29
29
  *
30
- * @param adUnitId The ad unit ID of the ad to set a placement for.
31
- * @param placement The placement to tie the showing ad's events to.
30
+ * @param adUnitId - The ad unit ID.
31
+ * @param placement - The placement name.
32
32
  */
33
33
  setPlacement(adUnitId: string, placement: string | null): void;
34
34
  /**
35
- * Sets custom data to tie the showing ad’s events to.
35
+ * Sets custom data to associate with the showing ad’s events.
36
36
  *
37
- * @param adUnitId The ad unit ID of the ad to set custom data for.
38
- * @param customData The custom data to tie the showing ad's events to. Maximum size is 8KB.
37
+ * @param adUnitId - The ad unit ID.
38
+ * @param customData - Optional custom string (max 8 KB).
39
39
  */
40
40
  setCustomData(adUnitId: string, customData: string | null): void;
41
41
  /**
42
- * Updates the banner/mrec position.
42
+ * Updates the position of the banner or MREC.
43
43
  *
44
- * @param adUnitId The ad unit ID of the ad to update the position of.
45
- * @param bannerPosition {@link AdViewPosition} position.
44
+ * @param adUnitId - The ad unit ID.
45
+ * @param bannerPosition - The new position on screen.
46
46
  */
47
47
  updatePosition(adUnitId: string, bannerPosition: AdViewPosition): void;
48
48
  /**
49
- * Sets an extra key/value parameter for the ad.
49
+ * Sets an extra parameter for the ad.
50
50
  *
51
- * @param adUnitId The ad unit ID of the ad to set a parameter for.
52
- * @param key Key parameter.
53
- * @param value Value parameter.
51
+ * @param adUnitId - The ad unit ID.
52
+ * @param key - Parameter name.
53
+ * @param value - Parameter value (or `null` to clear it).
54
54
  */
55
55
  setExtraParameter(adUnitId: string, key: string, value: string | null): void;
56
56
  /**
57
- * Set a local extra parameter to pass to the adapter instances.
57
+ * Sets a local extra parameter to be passed to the mediation adapter.
58
58
  *
59
- * @param adUnitId The ad unit ID of the ad to set a local parameter for.
60
- * @param key Key parameter.
61
- * @param value Value parameter.
59
+ * @param adUnitId - The ad unit ID.
60
+ * @param key - Parameter name.
61
+ * @param value - Parameter value (string, number, boolean, object, or null).
62
62
  */
63
63
  setLocalExtraParameter(adUnitId: string, key: string, value: LocalExtraParameterValue): void;
64
64
  /**
65
- * Starts or resumes auto-refreshing of the banner/mrec.
65
+ * Starts or resumes auto-refresh for the ad.
66
66
  *
67
- * @param adUnitId The ad unit ID of the ad to start or resume auto-refreshing.
67
+ * @param adUnitId - The ad unit ID.
68
68
  */
69
69
  startAutoRefresh(adUnitId: string): void;
70
70
  /**
71
- * Pauses auto-refreshing of the banner/mrec.
71
+ * Pauses auto-refresh for the ad.
72
72
  *
73
- * @param adUnitId The ad unit ID of the ad to stop auto-refreshing.
73
+ * @param adUnitId - The ad unit ID.
74
74
  */
75
75
  stopAutoRefresh(adUnitId: string): void;
76
76
  /**
77
- * Adds the specified event listener to receive {@link AdInfo} when a view-base ad loads a new ad.
77
+ * Registers a listener for when a new ad is successfully loaded.
78
78
  *
79
- * @param listener Listener to be notified.
79
+ * @param listener - Callback to be notified with {@link AdInfo}.
80
80
  */
81
81
  addAdLoadedEventListener(listener: AdEventListener<AdInfo>): void;
82
82
  /**
83
- * Removes the event listener to receive {@link AdInfo} when a view-base ad loads a new ad.
83
+ * Unregisters the ad loaded listener.
84
84
  */
85
85
  removeAdLoadedEventListener(): void;
86
86
  /**
87
- * Adds the specified event listener to receive {@link AdLoadFailedInfo} when a view-base ad
88
- * could not load a new ad.
87
+ * Registers a listener for when ad loading fails.
89
88
  *
90
- * @param listener Listener to be notified.
89
+ * @param listener - Callback to be notified with {@link AdLoadFailedInfo}.
91
90
  */
92
91
  addAdLoadFailedEventListener(listener: AdEventListener<AdLoadFailedInfo>): void;
93
92
  /**
94
- * Removes the event listener to receive {@link AdLoadFailedInfo} when a view-base ad could not
95
- * load a new ad.
93
+ * Unregisters the ad load failure listener.
96
94
  */
97
95
  removeAdLoadFailedEventListener(): void;
98
96
  /**
99
- * Adds the specified event listener to receive {@link AdInfo} when the user clicks the ad.
97
+ * Registers a listener for ad click events.
100
98
  *
101
- * @param listener Listener to be notified.
99
+ * @param listener - Callback to be notified with {@link AdInfo}.
102
100
  */
103
101
  addAdClickedEventListener(listener: AdEventListener<AdInfo>): void;
104
102
  /**
105
- * Removes the event listener to receive {@link AdInfo} when the user clicks the ad.
103
+ * Unregisters the ad click listener.
106
104
  */
107
105
  removeAdClickedEventListener(): void;
108
106
  /**
109
- * Adds the specified event listener to receive {@link AdInfo} when a view-base ad collapses the ad.
107
+ * Registers a listener for when the ad collapses (e.g. after expansion).
110
108
  *
111
- * @param listener Listener to be notified.
109
+ * @param listener - Callback to be notified with {@link AdInfo}.
112
110
  */
113
111
  addAdCollapsedEventListener(listener: AdEventListener<AdInfo>): void;
114
112
  /**
115
- * Removes the event listener to receive {@link AdInfo} when a view-base ad collapses the ad.
113
+ * Unregisters the ad collapsed listener.
116
114
  */
117
115
  removeAdCollapsedEventListener(): void;
118
116
  /**
119
- * Adds the specified event listener to receive {@link AdInfo} when a view-base ad expands the ad.
117
+ * Registers a listener for when the ad expands.
120
118
  *
121
- * @param listener Listener to be notified.
119
+ * @param listener - Callback to be notified with {@link AdInfo}.
122
120
  */
123
121
  addAdExpandedEventListener(listener: AdEventListener<AdInfo>): void;
124
122
  /**
125
- * Removes the event listener to receive {@link AdInfo} when a view-base ad expands the ad.
123
+ * Unregisters the ad expanded listener.
126
124
  */
127
125
  removeAdExpandedEventListener(): void;
128
126
  /**
129
- * Adds the specified event listener to receive {@link AdInfo} when a view-base ad pays
130
- * ad revenue to the publisher.
127
+ * Registers a listener for when the ad pays revenue to the publisher.
131
128
  *
132
- * @param listener Listener to be notified.
129
+ * @param listener - Callback to be notified with {@link AdInfo}.
133
130
  */
134
131
  addAdRevenuePaidListener(listener: AdEventListener<AdInfo>): void;
135
132
  /**
136
- * Removes the event listener to receive {@link AdInfo} when when a view-base ad pays ad
137
- * revenue to the publisher.
133
+ * Unregisters the ad revenue paid listener.
138
134
  */
139
135
  removeAdRevenuePaidListener(): void;
140
136
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ViewAd.d.ts","sourceRoot":"","sources":["../../../../src/types/ViewAd.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACzD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACrB;;;;OAIG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAElC;;;;OAIG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,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CAAC;IAElE;;OAEG;IACH,2BAA2B,IAAI,IAAI,CAAC;CACvC,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-native-applovin-max",
3
3
  "author": "AppLovin Corporation <support@applovin.com> (https://applovin.com)",
4
- "version": "9.0.0",
4
+ "version": "9.2.0",
5
5
  "description": "AppLovin MAX React Native Plugin for Android and iOS",
6
6
  "main": "lib/commonjs/index",
7
7
  "module": "lib/module/index",
@@ -11,11 +11,11 @@ Pod::Spec.new do |s|
11
11
  s.authors = package["author"]
12
12
 
13
13
  s.platforms = { :ios => min_ios_version_supported }
14
- s.source = { :git => "https://github.com/AppLovin/AppLovin-MAX-React-Native.git", :tag => "release_9_0_0" }
14
+ s.source = { :git => "https://github.com/AppLovin/AppLovin-MAX-React-Native.git", :tag => "release_9_2_0" }
15
15
 
16
16
  s.source_files = "ios/AppLovinMAX*.{h,mm}"
17
17
 
18
- s.dependency "AppLovinSDK", "13.1.0"
18
+ s.dependency "AppLovinSDK", "13.3.0"
19
19
 
20
20
  # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
21
21
  # See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.