react-native-applovin-max 9.0.0 → 9.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.
- package/android/build.gradle +3 -3
- package/android/src/main/java/com/applovin/reactnative/AppLovinMAXAdView.java +1 -1
- package/android/src/main/java/com/applovin/reactnative/AppLovinMAXModuleImpl.java +2 -1
- package/ios/AppLovinMAX.mm +2 -1
- package/lib/commonjs/AdView.js +60 -76
- package/lib/commonjs/AdView.js.map +1 -1
- package/lib/commonjs/AppLovinMAX.js +43 -29
- package/lib/commonjs/AppLovinMAX.js.map +1 -1
- package/lib/commonjs/ErrorCode.js +24 -31
- package/lib/commonjs/ErrorCode.js.map +1 -1
- package/lib/commonjs/EventEmitter.js +22 -1
- package/lib/commonjs/EventEmitter.js.map +1 -1
- package/lib/commonjs/Utils.js +22 -4
- package/lib/commonjs/Utils.js.map +1 -1
- package/lib/commonjs/nativeAd/NativeAdView.js +33 -22
- package/lib/commonjs/nativeAd/NativeAdView.js.map +1 -1
- package/lib/commonjs/nativeAd/NativeAdViewComponents.js +84 -41
- package/lib/commonjs/nativeAd/NativeAdViewComponents.js.map +1 -1
- package/lib/commonjs/nativeAd/NativeAdViewProvider.js +29 -0
- package/lib/commonjs/nativeAd/NativeAdViewProvider.js.map +1 -1
- package/lib/commonjs/specs/AppLovinMAXAdViewNativeComponent.js +27 -0
- package/lib/commonjs/specs/AppLovinMAXAdViewNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/AppLovinMAXNativeAdViewNativeComponent.js +23 -0
- package/lib/commonjs/specs/AppLovinMAXNativeAdViewNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/NativeAppLovinMAXModule.js +7 -0
- package/lib/commonjs/specs/NativeAppLovinMAXModule.js.map +1 -1
- package/lib/commonjs/types/AdInfo.js +13 -16
- package/lib/commonjs/types/AdInfo.js.map +1 -1
- package/lib/module/AdView.js +60 -76
- package/lib/module/AdView.js.map +1 -1
- package/lib/module/AppLovinMAX.js +44 -29
- package/lib/module/AppLovinMAX.js.map +1 -1
- package/lib/module/ErrorCode.js +24 -31
- package/lib/module/ErrorCode.js.map +1 -1
- package/lib/module/EventEmitter.js +22 -1
- package/lib/module/EventEmitter.js.map +1 -1
- package/lib/module/Utils.js +22 -4
- package/lib/module/Utils.js.map +1 -1
- package/lib/module/nativeAd/NativeAdView.js +34 -21
- package/lib/module/nativeAd/NativeAdView.js.map +1 -1
- package/lib/module/nativeAd/NativeAdViewComponents.js +87 -40
- package/lib/module/nativeAd/NativeAdViewComponents.js.map +1 -1
- package/lib/module/nativeAd/NativeAdViewProvider.js +30 -0
- package/lib/module/nativeAd/NativeAdViewProvider.js.map +1 -1
- package/lib/module/specs/AppLovinMAXAdViewNativeComponent.js +28 -0
- package/lib/module/specs/AppLovinMAXAdViewNativeComponent.js.map +1 -1
- package/lib/module/specs/AppLovinMAXNativeAdViewNativeComponent.js +24 -0
- package/lib/module/specs/AppLovinMAXNativeAdViewNativeComponent.js.map +1 -1
- package/lib/module/specs/NativeAppLovinMAXModule.js +9 -0
- package/lib/module/specs/NativeAppLovinMAXModule.js.map +1 -1
- package/lib/module/types/AdInfo.js +13 -16
- package/lib/module/types/AdInfo.js.map +1 -1
- package/lib/typescript/src/AdView.d.ts +27 -21
- package/lib/typescript/src/AdView.d.ts.map +1 -1
- package/lib/typescript/src/AppLovinMAX.d.ts +22 -21
- package/lib/typescript/src/AppLovinMAX.d.ts.map +1 -1
- package/lib/typescript/src/ErrorCode.d.ts +24 -31
- package/lib/typescript/src/ErrorCode.d.ts.map +1 -1
- package/lib/typescript/src/EventEmitter.d.ts +16 -0
- package/lib/typescript/src/EventEmitter.d.ts.map +1 -1
- package/lib/typescript/src/Utils.d.ts +15 -0
- package/lib/typescript/src/Utils.d.ts.map +1 -1
- package/lib/typescript/src/nativeAd/NativeAdView.d.ts +15 -7
- package/lib/typescript/src/nativeAd/NativeAdView.d.ts.map +1 -1
- package/lib/typescript/src/nativeAd/NativeAdViewComponents.d.ts +65 -1
- package/lib/typescript/src/nativeAd/NativeAdViewComponents.d.ts.map +1 -1
- package/lib/typescript/src/nativeAd/NativeAdViewProvider.d.ts +17 -0
- package/lib/typescript/src/nativeAd/NativeAdViewProvider.d.ts.map +1 -1
- package/lib/typescript/src/specs/AppLovinMAXAdViewNativeComponent.d.ts +45 -1
- package/lib/typescript/src/specs/AppLovinMAXAdViewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/AppLovinMAXNativeAdViewNativeComponent.d.ts +57 -6
- package/lib/typescript/src/specs/AppLovinMAXNativeAdViewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/specs/NativeAppLovinMAXModule.d.ts +10 -0
- package/lib/typescript/src/specs/NativeAppLovinMAXModule.d.ts.map +1 -1
- package/lib/typescript/src/types/AdEvent.d.ts +10 -4
- package/lib/typescript/src/types/AdEvent.d.ts.map +1 -1
- package/lib/typescript/src/types/AdInfo.d.ts +78 -85
- package/lib/typescript/src/types/AdInfo.d.ts.map +1 -1
- package/lib/typescript/src/types/AdProps.d.ts +14 -15
- package/lib/typescript/src/types/AdProps.d.ts.map +1 -1
- package/lib/typescript/src/types/AdViewProps.d.ts +28 -29
- package/lib/typescript/src/types/AdViewProps.d.ts.map +1 -1
- package/lib/typescript/src/types/AppLovinMAX.d.ts +50 -53
- package/lib/typescript/src/types/AppLovinMAX.d.ts.map +1 -1
- package/lib/typescript/src/types/BannerAd.d.ts +22 -17
- package/lib/typescript/src/types/BannerAd.d.ts.map +1 -1
- package/lib/typescript/src/types/CMPError.d.ts +7 -4
- package/lib/typescript/src/types/CMPError.d.ts.map +1 -1
- package/lib/typescript/src/types/Configuration.d.ts +12 -14
- package/lib/typescript/src/types/Configuration.d.ts.map +1 -1
- package/lib/typescript/src/types/FullscreenAd.d.ts +39 -46
- package/lib/typescript/src/types/FullscreenAd.d.ts.map +1 -1
- package/lib/typescript/src/types/MRecAd.d.ts +7 -3
- package/lib/typescript/src/types/MRecAd.d.ts.map +1 -1
- package/lib/typescript/src/types/NativeAd.d.ts +12 -11
- package/lib/typescript/src/types/NativeAd.d.ts.map +1 -1
- package/lib/typescript/src/types/NativeAdViewProps.d.ts +4 -3
- package/lib/typescript/src/types/NativeAdViewProps.d.ts.map +1 -1
- package/lib/typescript/src/types/Privacy.d.ts +13 -6
- package/lib/typescript/src/types/Privacy.d.ts.map +1 -1
- package/lib/typescript/src/types/RewardedAd.d.ts +7 -5
- package/lib/typescript/src/types/RewardedAd.d.ts.map +1 -1
- package/lib/typescript/src/types/ViewAd.d.ts +46 -50
- package/lib/typescript/src/types/ViewAd.d.ts.map +1 -1
- package/package.json +1 -1
- package/react-native-applovin-max.podspec +2 -2
- package/src/AdView.tsx +62 -80
- package/src/AppLovinMAX.ts +39 -29
- package/src/ErrorCode.ts +24 -31
- package/src/EventEmitter.ts +20 -2
- package/src/Utils.ts +20 -1
- package/src/nativeAd/NativeAdView.tsx +31 -21
- package/src/nativeAd/NativeAdViewComponents.tsx +97 -38
- package/src/nativeAd/NativeAdViewProvider.tsx +23 -0
- package/src/specs/AppLovinMAXAdViewNativeComponent.ts +62 -1
- package/src/specs/AppLovinMAXNativeAdViewNativeComponent.ts +70 -6
- package/src/specs/NativeAppLovinMAXModule.ts +75 -55
- package/src/types/AdEvent.ts +10 -4
- package/src/types/AdInfo.ts +78 -85
- package/src/types/AdProps.ts +14 -15
- package/src/types/AdViewProps.ts +28 -29
- package/src/types/AppLovinMAX.ts +50 -53
- package/src/types/BannerAd.ts +22 -17
- package/src/types/CMPError.ts +7 -4
- package/src/types/Configuration.ts +12 -14
- package/src/types/FullscreenAd.ts +39 -46
- package/src/types/MRecAd.ts +7 -3
- package/src/types/NativeAd.ts +12 -11
- package/src/types/NativeAdViewProps.ts +4 -3
- package/src/types/Privacy.ts +13 -6
- package/src/types/RewardedAd.ts +7 -5
- package/src/types/ViewAd.ts +46 -50
|
@@ -1,9 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Provides context and state management for NativeAdView and its child asset views.
|
|
3
|
+
* Shares asset view refs and native ad data between internal components and the native SDK.
|
|
4
|
+
*/
|
|
5
|
+
|
|
1
6
|
import * as React from 'react';
|
|
2
7
|
import { useState, createContext, useRef } from 'react';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Native component type for the rendered NativeAdView.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
// Ref types for native views
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Context type used internally by NativeAdView.
|
|
17
|
+
* Stores references to asset views and the current native ad data.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
// Default for an uninitialized native ad
|
|
3
21
|
const defaultNativeAd = {
|
|
4
22
|
isOptionsViewAvailable: false,
|
|
5
23
|
isMediaViewAvailable: false
|
|
6
24
|
};
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Internal context used by NativeAdView to provide access to asset view refs and native ad data.
|
|
28
|
+
*/
|
|
7
29
|
export const NativeAdViewContext = /*#__PURE__*/createContext({
|
|
8
30
|
titleRef: {
|
|
9
31
|
current: null
|
|
@@ -29,6 +51,10 @@ export const NativeAdViewContext = /*#__PURE__*/createContext({
|
|
|
29
51
|
nativeAd: defaultNativeAd,
|
|
30
52
|
setNativeAd: () => {}
|
|
31
53
|
});
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* React provider that wraps components requiring access to NativeAdViewContext.
|
|
57
|
+
*/
|
|
32
58
|
export const NativeAdViewProvider = ({
|
|
33
59
|
children
|
|
34
60
|
}) => {
|
|
@@ -40,6 +66,10 @@ export const NativeAdViewProvider = ({
|
|
|
40
66
|
const optionViewRef = useRef(null);
|
|
41
67
|
const mediaViewRef = useRef(null);
|
|
42
68
|
const [nativeAd, setNativeAd] = useState(defaultNativeAd);
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Memoized context value to avoid unnecessary renders.
|
|
72
|
+
*/
|
|
43
73
|
const providerValue = React.useMemo(() => ({
|
|
44
74
|
titleRef,
|
|
45
75
|
advertiserRef,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","createContext","useRef","defaultNativeAd","isOptionsViewAvailable","isMediaViewAvailable","NativeAdViewContext","titleRef","current","advertiserRef","bodyRef","callToActionRef","imageRef","optionViewRef","mediaViewRef","nativeAd","setNativeAd","NativeAdViewProvider","children","providerValue","useMemo","createElement","Provider","value"],"sourceRoot":"../../../src","sources":["nativeAd/NativeAdViewProvider.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,EAAEC,aAAa,EAAEC,MAAM,QAAQ,OAAO;
|
|
1
|
+
{"version":3,"names":["React","useState","createContext","useRef","defaultNativeAd","isOptionsViewAvailable","isMediaViewAvailable","NativeAdViewContext","titleRef","current","advertiserRef","bodyRef","callToActionRef","imageRef","optionViewRef","mediaViewRef","nativeAd","setNativeAd","NativeAdViewProvider","children","providerValue","useMemo","createElement","Provider","value"],"sourceRoot":"../../../src","sources":["nativeAd/NativeAdViewProvider.tsx"],"mappings":"AAAA;AACA;AACA;AACA;;AAEA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,EAAEC,aAAa,EAAEC,MAAM,QAAQ,OAAO;;AAMvD;AACA;AACA;;AAGA;;AAKA;AACA;AACA;AACA;;AAaA;AACA,MAAMC,eAAyB,GAAG;EAC9BC,sBAAsB,EAAE,KAAK;EAC7BC,oBAAoB,EAAE;AAC1B,CAAC;;AAED;AACA;AACA;AACA,OAAO,MAAMC,mBAAmB,gBAAGL,aAAa,CAA0B;EACtEM,QAAQ,EAAE;IAAEC,OAAO,EAAE;EAAK,CAAC;EAC3BC,aAAa,EAAE;IAAED,OAAO,EAAE;EAAK,CAAC;EAChCE,OAAO,EAAE;IAAEF,OAAO,EAAE;EAAK,CAAC;EAC1BG,eAAe,EAAE;IAAEH,OAAO,EAAE;EAAK,CAAC;EAClCI,QAAQ,EAAE;IAAEJ,OAAO,EAAE;EAAK,CAAC;EAC3BK,aAAa,EAAE;IAAEL,OAAO,EAAE;EAAK,CAAC;EAChCM,YAAY,EAAE;IAAEN,OAAO,EAAE;EAAK,CAAC;EAC/BO,QAAQ,EAAEZ,eAAe;EACzBa,WAAW,EAAEA,CAAA,KAAM,CAAC;AACxB,CAAC,CAAC;;AAEF;AACA;AACA;AACA,OAAO,MAAMC,oBAAuD,GAAGA,CAAC;EAAEC;AAAS,CAAC,KAAK;EACrF,MAAMX,QAAQ,GAAGL,MAAM,CAAiB,IAAI,CAAC;EAC7C,MAAMO,aAAa,GAAGP,MAAM,CAAiB,IAAI,CAAC;EAClD,MAAMQ,OAAO,GAAGR,MAAM,CAAiB,IAAI,CAAC;EAC5C,MAAMS,eAAe,GAAGT,MAAM,CAAiB,IAAI,CAAC;EACpD,MAAMU,QAAQ,GAAGV,MAAM,CAAkB,IAAI,CAAC;EAC9C,MAAMW,aAAa,GAAGX,MAAM,CAAiB,IAAI,CAAC;EAClD,MAAMY,YAAY,GAAGZ,MAAM,CAAiB,IAAI,CAAC;EACjD,MAAM,CAACa,QAAQ,EAAEC,WAAW,CAAC,GAAGhB,QAAQ,CAAWG,eAAe,CAAC;;EAEnE;AACJ;AACA;EACI,MAAMgB,aAAa,GAAGpB,KAAK,CAACqB,OAAO,CAC/B,OAAO;IACHb,QAAQ;IACRE,aAAa;IACbC,OAAO;IACPC,eAAe;IACfC,QAAQ;IACRC,aAAa;IACbC,YAAY;IACZC,QAAQ;IACRC;EACJ,CAAC,CAAC,EACF,CAACD,QAAQ,CACb,CAAC;EAED,oBAAOhB,KAAA,CAAAsB,aAAA,CAACf,mBAAmB,CAACgB,QAAQ;IAACC,KAAK,EAAEJ;EAAc,GAAED,QAAuC,CAAC;AACxG,CAAC","ignoreList":[]}
|
|
@@ -1,7 +1,35 @@
|
|
|
1
1
|
import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';
|
|
2
2
|
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Payload for ad lifecycle events (e.g. load, display, click).
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Payload for ad load failure events.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Payload for ad display failure events.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Props passed to the {@link AppLovinMAXAdView} native component.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Native commands callable from JS for managing {@link AppLovinMAXAdView}.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* JS interface to ad view commands for {@link AppLovinMAXAdView}.
|
|
26
|
+
*/
|
|
3
27
|
export const Commands = codegenNativeCommands({
|
|
4
28
|
supportedCommands: ['loadAd']
|
|
5
29
|
});
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Native view component for displaying a banner or MREC ad.
|
|
33
|
+
*/
|
|
6
34
|
export default codegenNativeComponent('AppLovinMAXAdView');
|
|
7
35
|
//# sourceMappingURL=AppLovinMAXAdViewNativeComponent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["codegenNativeCommands","codegenNativeComponent","Commands","supportedCommands"],"sourceRoot":"../../../src","sources":["specs/AppLovinMAXAdViewNativeComponent.ts"],"mappings":"AAEA,OAAOA,qBAAqB,MAAM,wDAAwD;AAC1F,OAAOC,sBAAsB,MAAM,yDAAyD;
|
|
1
|
+
{"version":3,"names":["codegenNativeCommands","codegenNativeComponent","Commands","supportedCommands"],"sourceRoot":"../../../src","sources":["specs/AppLovinMAXAdViewNativeComponent.ts"],"mappings":"AAEA,OAAOA,qBAAqB,MAAM,wDAAwD;AAC1F,OAAOC,sBAAsB,MAAM,yDAAyD;;AAE5F;AACA;AACA;;AAmBA;AACA;AACA;;AAWA;AACA;AACA;;AAuBA;AACA;AACA;;AAoEA;AACA;AACA;;AAUA;AACA;AACA;AACA,OAAO,MAAMC,QAAwB,GAAGF,qBAAqB,CAAiB;EAC1EG,iBAAiB,EAAE,CAAC,QAAQ;AAChC,CAAC,CAAC;;AAEF;AACA;AACA;AACA,eAAeF,sBAAsB,CAAc,mBAAmB,CAAC","ignoreList":[]}
|
|
@@ -1,7 +1,31 @@
|
|
|
1
1
|
import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';
|
|
2
2
|
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Payload for native ad lifecycle events (e.g., load, click, revenue).
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Payload for native ad load failure events.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Props passed to the {@link AppLovinMAXNativeAdView} native component.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Native commands callable from JS for managing {@link NativeAdView}.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* JS interface to native ad view commands for {@link AppLovinMAXNativeAdView}.
|
|
22
|
+
*/
|
|
3
23
|
export const Commands = codegenNativeCommands({
|
|
4
24
|
supportedCommands: ['loadAd', 'updateAssetView', 'renderNativeAd']
|
|
5
25
|
});
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Native component for rendering a custom native ad layout using bound asset views.
|
|
29
|
+
*/
|
|
6
30
|
export default codegenNativeComponent('AppLovinMAXNativeAdView');
|
|
7
31
|
//# sourceMappingURL=AppLovinMAXNativeAdViewNativeComponent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["codegenNativeCommands","codegenNativeComponent","Commands","supportedCommands"],"sourceRoot":"../../../src","sources":["specs/AppLovinMAXNativeAdViewNativeComponent.ts"],"mappings":"AAEA,OAAOA,qBAAqB,MAAM,wDAAwD;AAC1F,OAAOC,sBAAsB,MAAM,yDAAyD;
|
|
1
|
+
{"version":3,"names":["codegenNativeCommands","codegenNativeComponent","Commands","supportedCommands"],"sourceRoot":"../../../src","sources":["specs/AppLovinMAXNativeAdViewNativeComponent.ts"],"mappings":"AAEA,OAAOA,qBAAqB,MAAM,wDAAwD;AAC1F,OAAOC,sBAAsB,MAAM,yDAAyD;;AAE5F;AACA;AACA;;AAiDA;AACA;AACA;;AAUA;AACA;AACA;;AA4CA;AACA;AACA;;AA0BA;AACA;AACA;AACA,OAAO,MAAMC,QAAwB,GAAGF,qBAAqB,CAAiB;EAC1EG,iBAAiB,EAAE,CAAC,QAAQ,EAAE,iBAAiB,EAAE,gBAAgB;AACrE,CAAC,CAAC;;AAEF;AACA;AACA;AACA,eAAeF,sBAAsB,CAAc,yBAAyB,CAAC","ignoreList":[]}
|
|
@@ -1,3 +1,12 @@
|
|
|
1
1
|
import { TurboModuleRegistry } from 'react-native';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Native TurboModule interface for AppLovin MAX.
|
|
5
|
+
* Defines all methods and constants exposed to JavaScript.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Enforces use of the native AppLovinMAX TurboModule.
|
|
10
|
+
*/
|
|
2
11
|
export default TurboModuleRegistry.getEnforcing('AppLovinMAX');
|
|
3
12
|
//# sourceMappingURL=NativeAppLovinMAXModule.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../src","sources":["specs/NativeAppLovinMAXModule.ts"],"mappings":"AAAA,SAASA,mBAAmB,QAAQ,cAAc;
|
|
1
|
+
{"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../src","sources":["specs/NativeAppLovinMAXModule.ts"],"mappings":"AAAA,SAASA,mBAAmB,QAAQ,cAAc;;AAOlD;AACA;AACA;AACA;;AAsNA;AACA;AACA;AACA,eAAeA,mBAAmB,CAACC,YAAY,CAAO,aAAa,CAAC","ignoreList":[]}
|
|
@@ -1,58 +1,55 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Represents
|
|
2
|
+
* Represents a successfully loaded ad served by AppLovin MAX.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Represents a failure when attempting to load an ad.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Represents an error that occurred when displaying an ad.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
-
* Represents a reward
|
|
14
|
+
* Represents a successful reward event from a rewarded ad.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Describes metadata for a native ad, including asset availability.
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
23
|
-
* responses, etc.
|
|
22
|
+
* Contains metadata about the ad waterfall evaluated during an ad request.
|
|
24
23
|
*/
|
|
25
24
|
|
|
26
25
|
/**
|
|
27
|
-
*
|
|
28
|
-
* Each adapter response {@link AdNetworkResponseInfo} corresponds to one of these states.
|
|
26
|
+
* Enumeration of possible ad load states for each network in the waterfall.
|
|
29
27
|
*/
|
|
30
28
|
export let AdLoadState = /*#__PURE__*/function (AdLoadState) {
|
|
31
29
|
/**
|
|
32
|
-
*
|
|
33
|
-
* an ad higher in the waterfall loaded successfully.
|
|
30
|
+
* SDK did not attempt to load an ad from this network.
|
|
34
31
|
*/
|
|
35
32
|
AdLoadState[AdLoadState["LoadStateAdLoadNotAttempted"] = 0] = "LoadStateAdLoadNotAttempted";
|
|
36
33
|
/**
|
|
37
|
-
* An ad successfully loaded from this network.
|
|
34
|
+
* An ad was successfully loaded from this network.
|
|
38
35
|
*/
|
|
39
36
|
AdLoadState[AdLoadState["LoadStateAdLoaded"] = 1] = "LoadStateAdLoaded";
|
|
40
37
|
/**
|
|
41
|
-
*
|
|
38
|
+
* The network failed to load an ad.
|
|
42
39
|
*/
|
|
43
40
|
AdLoadState[AdLoadState["LoadStateAdFailedToLoad"] = 2] = "LoadStateAdFailedToLoad";
|
|
44
41
|
return AdLoadState;
|
|
45
42
|
}({});
|
|
46
43
|
|
|
47
44
|
/**
|
|
48
|
-
*
|
|
45
|
+
* General error info object used in waterfall response details.
|
|
49
46
|
*/
|
|
50
47
|
|
|
51
48
|
/**
|
|
52
|
-
*
|
|
49
|
+
* Contains information about a single mediated network response.
|
|
53
50
|
*/
|
|
54
51
|
|
|
55
52
|
/**
|
|
56
|
-
*
|
|
53
|
+
* Metadata about a mediated ad network.
|
|
57
54
|
*/
|
|
58
55
|
//# sourceMappingURL=AdInfo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["AdLoadState"],"sourceRoot":"../../../src","sources":["types/AdInfo.ts"],"mappings":"AAGA;AACA;AACA;;
|
|
1
|
+
{"version":3,"names":["AdLoadState"],"sourceRoot":"../../../src","sources":["types/AdInfo.ts"],"mappings":"AAGA;AACA;AACA;;AAwFA;AACA;AACA;;AA2CA;AACA;AACA;;AAuBA;AACA;AACA;;AAaA;AACA;AACA;;AAgDA;AACA;AACA;;AAuBA;AACA;AACA;AACA,WAAYA,WAAW,0BAAXA,WAAW;EACnB;AACJ;AACA;EAHYA,WAAW,CAAXA,WAAW;EAMnB;AACJ;AACA;EARYA,WAAW,CAAXA,WAAW;EAWnB;AACJ;AACA;EAbYA,WAAW,CAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA;;AAiBvB;AACA;AACA;;AAkBA;AACA;AACA;;AA+BA;AACA;AACA","ignoreList":[]}
|
|
@@ -3,7 +3,7 @@ import type { ViewProps } from 'react-native';
|
|
|
3
3
|
import type { AdInfo, AdLoadFailedInfo } from './types/AdInfo';
|
|
4
4
|
import type { AdViewHandler, NativeUIComponentAdViewOptions, AdViewId } from './types/AdViewProps';
|
|
5
5
|
/**
|
|
6
|
-
* Defines
|
|
6
|
+
* Defines the format of an ad.
|
|
7
7
|
*/
|
|
8
8
|
export declare enum AdFormat {
|
|
9
9
|
/**
|
|
@@ -16,7 +16,7 @@ export declare enum AdFormat {
|
|
|
16
16
|
MREC = "MREC"
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
|
-
* Defines
|
|
19
|
+
* Defines the position for rendering a banner or MREC ad within its container.
|
|
20
20
|
*/
|
|
21
21
|
export declare enum AdViewPosition {
|
|
22
22
|
TOP_CENTER = "top_center",
|
|
@@ -30,32 +30,41 @@ export declare enum AdViewPosition {
|
|
|
30
30
|
BOTTOM_RIGHT = "bottom_right"
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
34
|
-
* - **Banners**: 320x50 on phones, 728x90 on tablets.
|
|
35
|
-
* - **MRECs**: 300x250 on all devices.
|
|
33
|
+
* Renders a banner or MREC ad using a native view, with adaptive or responsive sizing.
|
|
36
34
|
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
35
|
+
* - **Banners**: 320×50 on phones, 728×90 on tablets.
|
|
36
|
+
* - **MRECs**: Fixed size of 300×250 on all devices.
|
|
37
|
+
*
|
|
38
|
+
* Internally uses {@link AppLovinMAX.isTablet()} to determine banner size on tablets.
|
|
39
|
+
* You can also use this method externally to assist with layout decisions.
|
|
40
|
+
*
|
|
41
|
+
* For adaptive banners, use {@link BannerAd.getAdaptiveHeightForWidth()} to determine the appropriate height.
|
|
39
42
|
*
|
|
40
43
|
* **Preloading**:
|
|
41
|
-
*
|
|
42
|
-
* the returned {@link AdViewId}
|
|
44
|
+
* If you preload an ad for AdView using {@link preloadNativeUIComponentAdView},
|
|
45
|
+
* pass the returned {@link AdViewId} to this component to display the preloaded instance.
|
|
46
|
+
*
|
|
47
|
+
* **Note:** The AppLovin SDK must be initialized before using this component.
|
|
43
48
|
*
|
|
44
49
|
* ### Example:
|
|
45
|
-
* ```
|
|
50
|
+
* ```tsx
|
|
46
51
|
* <AdView
|
|
47
52
|
* adUnitId={adUnitId}
|
|
48
53
|
* adFormat={AdFormat.BANNER}
|
|
49
54
|
* placement="my_placement"
|
|
50
55
|
* customData="my_customData"
|
|
51
|
-
* extraParameters={{
|
|
52
|
-
* localExtraParameters={{
|
|
56
|
+
* extraParameters={{ key1: "value1", key2: "value2" }}
|
|
57
|
+
* localExtraParameters={{ key1: "value1", key2: true }}
|
|
53
58
|
* adaptiveBannerEnabled={false}
|
|
54
59
|
* autoRefresh={false}
|
|
55
60
|
* style={styles.banner}
|
|
56
61
|
* onAdLoaded={(adInfo: AdInfo) => { ... }}
|
|
57
62
|
* />
|
|
58
63
|
* ```
|
|
64
|
+
*
|
|
65
|
+
* For complete implementation examples, see:
|
|
66
|
+
* - https://github.com/AppLovin/AppLovin-MAX-React-Native/blob/master/example/src/NativeBannerExample.tsx
|
|
67
|
+
* - https://github.com/AppLovin/AppLovin-MAX-React-Native/blob/master/example/src/NativeMRecExample.tsx
|
|
59
68
|
*/
|
|
60
69
|
export declare const AdView: React.ForwardRefExoticComponent<import("./types/AdProps").AdProps & {
|
|
61
70
|
adFormat: AdFormat;
|
|
@@ -73,10 +82,10 @@ export declare const AdView: React.ForwardRefExoticComponent<import("./types/AdP
|
|
|
73
82
|
* - Unmounting {@link AdView} does not destroy the preloaded component—it will be reused on the next mount.
|
|
74
83
|
* - You must manually destroy the preloaded component when it is no longer needed using {@link destroyNativeUIComponentAdView}.
|
|
75
84
|
*
|
|
76
|
-
* @param adUnitId - The Ad Unit ID for which
|
|
85
|
+
* @param adUnitId - The Ad Unit ID for which ads should be preloaded.
|
|
77
86
|
* @param adFormat - The ad format to preload. Must be either {@link AdFormat.BANNER} or {@link AdFormat.MREC}.
|
|
78
87
|
* @param options - Optional properties to configure the native UI component (e.g., placement, custom data).
|
|
79
|
-
* @returns A promise
|
|
88
|
+
* @returns A promise that resolves to an {@link AdViewId}, uniquely identifying the preloaded component instance.
|
|
80
89
|
* @throws An error if the preload request fails.
|
|
81
90
|
*/
|
|
82
91
|
export declare const preloadNativeUIComponentAdView: (adUnitId: string, adFormat: AdFormat, options?: NativeUIComponentAdViewOptions) => Promise<AdViewId>;
|
|
@@ -91,26 +100,23 @@ export declare const preloadNativeUIComponentAdView: (adUnitId: string, adFormat
|
|
|
91
100
|
*/
|
|
92
101
|
export declare const destroyNativeUIComponentAdView: (adViewId: AdViewId) => Promise<void>;
|
|
93
102
|
/**
|
|
94
|
-
* Adds the specified event listener to receive {@link AdInfo} when a native UI component loads a
|
|
95
|
-
* new ad.
|
|
103
|
+
* Adds the specified event listener to receive {@link AdInfo} when a native UI component loads a new ad.
|
|
96
104
|
*
|
|
97
105
|
* @param listener Listener to be notified.
|
|
98
106
|
*/
|
|
99
107
|
export declare const addNativeUIComponentAdViewAdLoadedEventListener: (listener: (adInfo: AdInfo) => void) => void;
|
|
100
108
|
/**
|
|
101
|
-
* Removes the event listener to receive {@link AdInfo} when a native UI component loads a new ad.
|
|
109
|
+
* Removes the event listener registered to receive {@link AdInfo} when a native UI component loads a new ad.
|
|
102
110
|
*/
|
|
103
111
|
export declare const removeNativeUIComponentAdViewAdLoadedEventListener: () => void;
|
|
104
112
|
/**
|
|
105
|
-
* Adds the specified event listener to receive {@link AdLoadFailedInfo} when a native UI component
|
|
106
|
-
* could not load a new ad.
|
|
113
|
+
* Adds the specified event listener to receive {@link AdLoadFailedInfo} when a native UI component could not load a new ad.
|
|
107
114
|
*
|
|
108
115
|
* @param listener Listener to be notified.
|
|
109
116
|
*/
|
|
110
117
|
export declare const addNativeUIComponentAdViewAdLoadFailedEventListener: (listener: (errorInfo: AdLoadFailedInfo) => void) => void;
|
|
111
118
|
/**
|
|
112
|
-
* Removes the event listener to receive {@link AdLoadFailedInfo} when a native UI component could
|
|
113
|
-
* not load a new ad.
|
|
119
|
+
* Removes the event listener registered to receive {@link AdLoadFailedInfo} when a native UI component could not load a new ad.
|
|
114
120
|
*/
|
|
115
121
|
export declare const removeNativeUIComponentAdViewAdLoadFailedEventListener: () => void;
|
|
116
122
|
//# sourceMappingURL=AdView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdView.d.ts","sourceRoot":"","sources":["../../../src/AdView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAwB,SAAS,EAAwC,MAAM,cAAc,CAAC;AAK1G,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,KAAK,EAAe,aAAa,EAAE,8BAA8B,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAKhH;;GAEG;AACH,oBAAY,QAAQ;IAChB;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,IAAI,SAAS;CAChB;AAED;;GAEG;AACH,oBAAY,cAAc;IACtB,UAAU,eAAe;IACzB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,WAAW,gBAAgB;IAC3B,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;IAC3B,aAAa,kBAAkB;IAC/B,YAAY,iBAAiB;CAChC;
|
|
1
|
+
{"version":3,"file":"AdView.d.ts","sourceRoot":"","sources":["../../../src/AdView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAwB,SAAS,EAAwC,MAAM,cAAc,CAAC;AAK1G,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,KAAK,EAAe,aAAa,EAAE,8BAA8B,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAKhH;;GAEG;AACH,oBAAY,QAAQ;IAChB;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,IAAI,SAAS;CAChB;AAED;;GAEG;AACH,oBAAY,cAAc;IACtB,UAAU,eAAe;IACzB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,WAAW,gBAAgB;IAC3B,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;IAC3B,aAAa,kBAAkB;IAC/B,YAAY,iBAAiB;CAChC;AAsBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,eAAO,MAAM,MAAM;;;;;;;;mDA4HjB,CAAC;AAEH;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,8BAA8B,GAAU,UAAU,MAAM,EAAE,UAAU,QAAQ,EAAE,UAAS,8BAAmC,KAAG,OAAO,CAAC,QAAQ,CAGzJ,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,8BAA8B,GAAU,UAAU,QAAQ,KAAG,OAAO,CAAC,IAAI,CAKrF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,+CAA+C,GAAI,UAAU,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,KAAG,IAEpG,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kDAAkD,QAAO,IAErE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,mDAAmD,GAAI,UAAU,CAAC,SAAS,EAAE,gBAAgB,KAAK,IAAI,KAAG,IAErH,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sDAAsD,QAAO,IAEzE,CAAC"}
|
|
@@ -1,73 +1,74 @@
|
|
|
1
1
|
import type { AppLovinMAXType } from './types/AppLovinMAX';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
* user.
|
|
3
|
+
* Represents the user's geography, used to determine which type of consent flow to display.
|
|
5
4
|
*/
|
|
6
5
|
export declare enum ConsentFlowUserGeography {
|
|
7
6
|
/**
|
|
8
|
-
*
|
|
7
|
+
* The user's geography could not be determined.
|
|
9
8
|
*/
|
|
10
9
|
UNKNOWN = "U",
|
|
11
10
|
/**
|
|
12
|
-
* The user is in GDPR region.
|
|
11
|
+
* The user is located in a GDPR region.
|
|
13
12
|
*/
|
|
14
13
|
GDPR = "G",
|
|
15
14
|
/**
|
|
16
|
-
* The user is in a
|
|
15
|
+
* The user is not in a GDPR region.
|
|
17
16
|
*/
|
|
18
17
|
OTHER = "O"
|
|
19
18
|
}
|
|
20
19
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
20
|
+
* App tracking transparency status values as defined by the AppLovin SDK.
|
|
21
|
+
*
|
|
22
|
+
* These values are based on Apple's AppTrackingTransparency framework (iOS 14+).
|
|
23
23
|
*/
|
|
24
24
|
export declare enum AppTrackingStatus {
|
|
25
25
|
/**
|
|
26
|
-
* Device is
|
|
26
|
+
* Device is running an iOS version prior to iOS 14.
|
|
27
|
+
* AppTrackingTransparency is not available.
|
|
27
28
|
*/
|
|
28
29
|
UNAVAILABLE = "U",
|
|
29
30
|
/**
|
|
30
|
-
* The user has not yet
|
|
31
|
-
* data that can be used for tracking the user or the device.
|
|
31
|
+
* The user has not yet responded to the tracking authorization prompt.
|
|
32
32
|
*/
|
|
33
33
|
NOT_DETERMINED = "N",
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
36
|
-
* is restricted.
|
|
35
|
+
* Tracking is restricted (e.g. due to parental controls).
|
|
37
36
|
*/
|
|
38
37
|
RESTRICTED = "R",
|
|
39
38
|
/**
|
|
40
|
-
* The user
|
|
41
|
-
* user or the device.
|
|
39
|
+
* The user denied authorization for tracking.
|
|
42
40
|
*/
|
|
43
41
|
DENIED = "D",
|
|
44
42
|
/**
|
|
45
|
-
* The user
|
|
46
|
-
* device.
|
|
43
|
+
* The user authorized tracking access.
|
|
47
44
|
*/
|
|
48
45
|
AUTHORIZED = "A"
|
|
49
46
|
}
|
|
50
47
|
/**
|
|
51
|
-
*
|
|
48
|
+
* Error codes returned from the Consent Management Platform (CMP) flow.
|
|
52
49
|
*/
|
|
53
50
|
export declare enum CMPErrorCode {
|
|
54
51
|
/**
|
|
55
|
-
*
|
|
52
|
+
* An unspecified error occurred.
|
|
56
53
|
*/
|
|
57
54
|
UNSPECIFIED = -1,
|
|
58
55
|
/**
|
|
59
|
-
*
|
|
56
|
+
* The CMP was not integrated correctly.
|
|
60
57
|
*/
|
|
61
58
|
INTEGRATION_ERROR = 1,
|
|
62
59
|
/**
|
|
63
|
-
*
|
|
60
|
+
* The CMP form is unavailable.
|
|
64
61
|
*/
|
|
65
62
|
FORM_UNAVAILABLE = 2,
|
|
66
63
|
/**
|
|
67
|
-
*
|
|
64
|
+
* The CMP form is not required for this user.
|
|
68
65
|
*/
|
|
69
66
|
FORM_NOT_REQUIRED = 3
|
|
70
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* Main AppLovin MAX module interface exposed to JavaScript.
|
|
70
|
+
* Wraps the native module and overrides `initialize()` and `getSegments()` for custom handling.
|
|
71
|
+
*/
|
|
71
72
|
export declare const AppLovinMAX: AppLovinMAXType;
|
|
72
73
|
export default AppLovinMAX;
|
|
73
74
|
//# sourceMappingURL=AppLovinMAX.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppLovinMAX.d.ts","sourceRoot":"","sources":["../../../src/AppLovinMAX.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAM3D
|
|
1
|
+
{"version":3,"file":"AppLovinMAX.d.ts","sourceRoot":"","sources":["../../../src/AppLovinMAX.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAM3D;;GAEG;AACH,oBAAY,wBAAwB;IAChC;;OAEG;IACH,OAAO,MAAM;IAEb;;OAEG;IACH,IAAI,MAAM;IAEV;;OAEG;IACH,KAAK,MAAM;CACd;AAED;;;;GAIG;AACH,oBAAY,iBAAiB;IACzB;;;OAGG;IACH,WAAW,MAAM;IAEjB;;OAEG;IACH,cAAc,MAAM;IAEpB;;OAEG;IACH,UAAU,MAAM;IAEhB;;OAEG;IACH,MAAM,MAAM;IAEZ;;OAEG;IACH,UAAU,MAAM;CACnB;AAED;;GAEG;AACH,oBAAY,YAAY;IACpB;;OAEG;IACH,WAAW,KAAK;IAEhB;;OAEG;IACH,iBAAiB,IAAI;IAErB;;OAEG;IACH,gBAAgB,IAAI;IAEpB;;OAEG;IACH,iBAAiB,IAAI;CACxB;AAwCD;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,eASxB,CAAC;AAEH,eAAe,WAAW,CAAC"}
|
|
@@ -1,72 +1,65 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* display.
|
|
2
|
+
* Error codes returned by the AppLovin MAX SDK when an ad fails to load or display.
|
|
4
3
|
*/
|
|
5
4
|
export declare enum ErrorCode {
|
|
6
5
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* An unspecified error occurred.
|
|
7
|
+
* See the `message` field for more details.
|
|
9
8
|
*/
|
|
10
9
|
UNSPECIFIED,
|
|
11
10
|
/**
|
|
12
|
-
*
|
|
13
|
-
* app/device.
|
|
11
|
+
* No eligible ads were returned from any mediated networks.
|
|
14
12
|
*/
|
|
15
13
|
NO_FILL,
|
|
16
14
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
15
|
+
* Eligible ads were returned but all failed to load.
|
|
16
|
+
* See `adLoadFailureInfo` for more details.
|
|
19
17
|
*/
|
|
20
18
|
AD_LOAD_FAILED,
|
|
21
19
|
/**
|
|
22
|
-
*
|
|
20
|
+
* An error occurred while attempting to display the ad.
|
|
23
21
|
*/
|
|
24
22
|
AD_DISPLAY_FAILED,
|
|
25
23
|
/**
|
|
26
|
-
*
|
|
27
|
-
*
|
|
24
|
+
* The ad request failed due to a general network issue.
|
|
25
|
+
* See the `message` field for details.
|
|
28
26
|
*/
|
|
29
27
|
NETWORK_ERROR,
|
|
30
28
|
/**
|
|
31
|
-
*
|
|
29
|
+
* The ad request timed out, likely due to a slow internet connection.
|
|
32
30
|
*/
|
|
33
31
|
NETWORK_TIMEOUT,
|
|
34
32
|
/**
|
|
35
|
-
*
|
|
36
|
-
* internet.
|
|
33
|
+
* The ad request failed because the device was offline.
|
|
37
34
|
*/
|
|
38
35
|
NO_NETWORK,
|
|
39
36
|
/**
|
|
40
|
-
*
|
|
41
|
-
* is still showing.
|
|
37
|
+
* A fullscreen ad was requested while another one was already showing.
|
|
42
38
|
*/
|
|
43
39
|
FULLSCREEN_AD_ALREADY_SHOWING,
|
|
44
40
|
/**
|
|
45
|
-
*
|
|
46
|
-
* loaded.
|
|
41
|
+
* A fullscreen ad was requested before it had finished loading.
|
|
47
42
|
*/
|
|
48
43
|
FULLSCREEN_AD_NOT_READY,
|
|
49
44
|
/**
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
* **iOS ONLY**.
|
|
45
|
+
* The ad was presented from an invalid view controller.
|
|
46
|
+
* **iOS only**.
|
|
53
47
|
*/
|
|
54
48
|
FULLSCREEN_AD_INVALID_VIEW_CONTROLLER,
|
|
55
49
|
/**
|
|
56
|
-
*
|
|
57
|
-
* "Don't Keep Activities" developer setting enabled.
|
|
58
|
-
* **Android
|
|
50
|
+
* The SDK was unable to display the ad because the
|
|
51
|
+
* "Don't Keep Activities" developer setting is enabled.
|
|
52
|
+
* **Android only**.
|
|
59
53
|
*/
|
|
60
54
|
DONT_KEEP_ACTIVITIES_ENABLED,
|
|
61
55
|
/**
|
|
62
|
-
*
|
|
63
|
-
* invalid ad unit identifier.
|
|
56
|
+
* The ad failed to load due to an invalid ad unit identifier.
|
|
64
57
|
*
|
|
65
|
-
* Possible
|
|
66
|
-
* 1.
|
|
67
|
-
* 2.
|
|
68
|
-
* 3.
|
|
69
|
-
* 4.
|
|
58
|
+
* Possible causes:
|
|
59
|
+
* 1. The ad unit ID is malformed or does not exist.
|
|
60
|
+
* 2. The ad unit is disabled.
|
|
61
|
+
* 3. The ad unit is not linked to the current app’s package name.
|
|
62
|
+
* 4. The ad unit was recently created (less than ~30–60 minutes ago).
|
|
70
63
|
*/
|
|
71
64
|
INVALID_AD_UNIT_ID
|
|
72
65
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorCode.d.ts","sourceRoot":"","sources":["../../../src/ErrorCode.ts"],"names":[],"mappings":"AAiBA
|
|
1
|
+
{"version":3,"file":"ErrorCode.d.ts","sourceRoot":"","sources":["../../../src/ErrorCode.ts"],"names":[],"mappings":"AAiBA;;GAEG;AACH,oBAAY,SAAS;IACjB;;;OAGG;IACH,WAAwC;IAExC;;OAEG;IACH,OAAgC;IAEhC;;;OAGG;IACH,cAA8C;IAE9C;;OAEG;IACH,iBAAoD;IAEpD;;;OAGG;IACH,aAA4C;IAE5C;;OAEG;IACH,eAAgD;IAEhD;;OAEG;IACH,UAAsC;IAEtC;;OAEG;IACH,6BAA4E;IAE5E;;OAEG;IACH,uBAAgE;IAEhE;;;OAGG;IACH,qCAA4F;IAE5F;;;;OAIG;IACH,4BAA0E;IAE1E;;;;;;;;OAQG;IACH,kBAAsD;CACzD"}
|
|
@@ -1,4 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Manages AppLovin MAX ad event listeners using a shared NativeEventEmitter.
|
|
3
|
+
* Ensures only one active subscription per event type at any given time.
|
|
4
|
+
*/
|
|
1
5
|
import type { AdEventObject, AdEventListener } from './types/AdEvent';
|
|
6
|
+
/**
|
|
7
|
+
* Subscribes to a specific ad event.
|
|
8
|
+
* If a listener already exists for the event, it will be replaced.
|
|
9
|
+
*
|
|
10
|
+
* @param event - The event name to listen for.
|
|
11
|
+
* @param handler - The callback to handle the event.
|
|
12
|
+
*/
|
|
2
13
|
export declare const addEventListener: <T extends AdEventObject>(event: string, handler: AdEventListener<T>) => void;
|
|
14
|
+
/**
|
|
15
|
+
* Unsubscribes from a specific ad event, if a listener exists.
|
|
16
|
+
*
|
|
17
|
+
* @param event - The event name to unsubscribe from.
|
|
18
|
+
*/
|
|
3
19
|
export declare const removeEventListener: (event: string) => void;
|
|
4
20
|
//# sourceMappingURL=EventEmitter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventEmitter.d.ts","sourceRoot":"","sources":["../../../src/EventEmitter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EventEmitter.d.ts","sourceRoot":"","sources":["../../../src/EventEmitter.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAStE;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,GAAI,CAAC,SAAS,aAAa,EAAE,OAAO,MAAM,EAAE,SAAS,eAAe,CAAC,CAAC,CAAC,KAAG,IAOtG,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAAI,OAAO,MAAM,KAAG,IAMnD,CAAC"}
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import type { LocalExtraParameterValue } from './types/AdProps';
|
|
2
|
+
/**
|
|
3
|
+
* Converts a record of string-based extra parameters into an array of `{ key, value }` objects.
|
|
4
|
+
* Used for sending extra parameters to the native SDK.
|
|
5
|
+
*
|
|
6
|
+
* @param input - An optional map of key-value string pairs (or null values).
|
|
7
|
+
* @returns An array of `{ key, value }` objects. Returns an empty array if input is undefined.
|
|
8
|
+
*/
|
|
2
9
|
export declare const makeExtraParametersArray: (input?: Record<string, string | null>) => {
|
|
3
10
|
key: string;
|
|
4
11
|
value: string | null;
|
|
@@ -8,6 +15,14 @@ type LocalExtraParameterValueMap = {
|
|
|
8
15
|
str: string | null;
|
|
9
16
|
bool: boolean | null;
|
|
10
17
|
};
|
|
18
|
+
/**
|
|
19
|
+
* Converts a map of local extra parameters into a filtered array of `{ key, value }` pairs.
|
|
20
|
+
* Only values matching the specified type (`'str'` or `'bool'`) are included.
|
|
21
|
+
*
|
|
22
|
+
* @param input - A record of local extra parameters (string, boolean, or null).
|
|
23
|
+
* @param type - The expected type of each value: `'str'` for strings, `'bool'` for booleans.
|
|
24
|
+
* @returns A filtered array of `{ key, value }` objects, cast to the specified type.
|
|
25
|
+
*/
|
|
11
26
|
export declare const makeLocalExtraParametersArray: <T extends LocalExtraParameterType>(input: Record<string, LocalExtraParameterValue> | undefined, type: T) => {
|
|
12
27
|
key: string;
|
|
13
28
|
value: LocalExtraParameterValueMap[T];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Utils.d.ts","sourceRoot":"","sources":["../../../src/Utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAEhE,eAAO,MAAM,wBAAwB,GAAI,QAAQ,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC
|
|
1
|
+
{"version":3,"file":"Utils.d.ts","sourceRoot":"","sources":["../../../src/Utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAEhE;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,GAAI,QAAQ,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,KAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,EAIrH,CAAC;AAEF,KAAK,uBAAuB,GAAG,KAAK,GAAG,MAAM,CAAC;AAE9C,KAAK,2BAA2B,GAAG;IAC/B,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;CACxB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,6BAA6B,GAAI,CAAC,SAAS,uBAAuB,EAC3E,OAAO,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAAC,GAAG,SAAS,EAC3D,MAAM,CAAC,KACR;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,2BAA2B,CAAC,CAAC,CAAC,CAAA;CAAE,EAWxD,CAAC"}
|