react-native-google-mobile-ads 14.4.3 → 14.6.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/README.md +3 -3
- package/__tests__/googleMobileAds.test.ts +1 -1
- package/__tests__/interstitial.test.ts +9 -23
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeAppModule.java +0 -28
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsModule.kt +13 -0
- package/ios/RNGoogleMobileAds/{common/RNJSON.h → RNGoogleMobileAdsAppOpenModule.h} +11 -9
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsAppOpenModule.mm +100 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsBannerView.h +4 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsBannerView.mm +6 -1
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsConsentModule.h +13 -2
- package/ios/RNGoogleMobileAds/{RNGoogleMobileAdsConsentModule.m → RNGoogleMobileAdsConsentModule.mm} +115 -26
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsFullScreenAd.h +53 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsFullScreenAd.mm +220 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsFullScreenContentDelegate.h +36 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsFullScreenContentDelegate.mm +80 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsInterstitialModule.h +36 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsInterstitialModule.mm +102 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsModule.mm +17 -0
- package/{src/AdsConsentPrivacyOptionsRequirementStatus.ts → ios/RNGoogleMobileAds/RNGoogleMobileAdsRewardedInterstitialModule.h} +21 -20
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsRewardedInterstitialModule.mm +102 -0
- package/{lib/module/AdsConsentStatus.js → ios/RNGoogleMobileAds/RNGoogleMobileAdsRewardedModule.h} +20 -12
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsRewardedModule.mm +100 -0
- package/ios/RNGoogleMobileAds/common/{RNAppModule.m → RNAppModule.mm} +0 -76
- package/ios/RNGoogleMobileAds/common/RNSharedUtils.h +0 -4
- package/ios/RNGoogleMobileAds/common/{RNSharedUtils.m → RNSharedUtils.mm} +0 -21
- package/jest.setup.ts +8 -5
- package/lib/commonjs/AdsConsent.js +16 -16
- package/lib/commonjs/AdsConsent.js.map +1 -1
- package/lib/commonjs/MobileAds.js +1 -1
- package/lib/commonjs/ads/AppOpenAd.js +3 -1
- package/lib/commonjs/ads/AppOpenAd.js.map +1 -1
- package/lib/commonjs/ads/BannerAd.js +1 -1
- package/lib/commonjs/ads/BannerAd.js.map +1 -1
- package/lib/commonjs/ads/BaseAd.js +1 -1
- package/lib/commonjs/ads/GAMBannerAd.js +1 -1
- package/lib/commonjs/ads/GAMBannerAd.js.map +1 -1
- package/lib/commonjs/ads/InterstitialAd.js +3 -1
- package/lib/commonjs/ads/InterstitialAd.js.map +1 -1
- package/lib/commonjs/ads/MobileAd.js +5 -18
- package/lib/commonjs/ads/MobileAd.js.map +1 -1
- package/lib/commonjs/ads/RewardedAd.js +3 -1
- package/lib/commonjs/ads/RewardedAd.js.map +1 -1
- package/lib/commonjs/ads/RewardedInterstitialAd.js +3 -1
- package/lib/commonjs/ads/RewardedInterstitialAd.js.map +1 -1
- package/lib/commonjs/common/constants.js +4 -3
- package/lib/commonjs/common/constants.js.map +1 -1
- package/lib/commonjs/index.js +34 -8
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/specs/components/GoogleMobileAdsBannerViewNativeComponent.js.map +1 -0
- package/{src/AdsConsentDebugGeography.ts → lib/commonjs/specs/modules/NativeAppOpenModule.js} +10 -23
- package/lib/commonjs/specs/modules/NativeAppOpenModule.js.map +1 -0
- package/lib/commonjs/specs/modules/NativeConsentModule.js +67 -0
- package/lib/commonjs/specs/modules/NativeConsentModule.js.map +1 -0
- package/lib/commonjs/specs/modules/NativeGoogleMobileAdsModule.js +25 -0
- package/lib/commonjs/specs/modules/NativeGoogleMobileAdsModule.js.map +1 -0
- package/lib/commonjs/specs/modules/NativeInterstitialModule.js +25 -0
- package/lib/commonjs/specs/modules/NativeInterstitialModule.js.map +1 -0
- package/lib/commonjs/specs/modules/NativeRewardedInterstitialModule.js +25 -0
- package/lib/commonjs/specs/modules/NativeRewardedInterstitialModule.js.map +1 -0
- package/lib/commonjs/specs/modules/NativeRewardedModule.js +25 -0
- package/lib/commonjs/specs/modules/NativeRewardedModule.js.map +1 -0
- package/lib/commonjs/types/index.js +0 -11
- package/lib/commonjs/types/index.js.map +1 -1
- package/lib/commonjs/version.js +1 -1
- package/lib/module/AdsConsent.js +2 -3
- package/lib/module/AdsConsent.js.map +1 -1
- package/lib/module/MobileAds.js +1 -1
- package/lib/module/MobileAds.js.map +1 -1
- package/lib/module/ads/AppOpenAd.js +2 -1
- package/lib/module/ads/AppOpenAd.js.map +1 -1
- package/lib/module/ads/BannerAd.js +1 -1
- package/lib/module/ads/BannerAd.js.map +1 -1
- package/lib/module/ads/BaseAd.js +1 -1
- package/lib/module/ads/BaseAd.js.map +1 -1
- package/lib/module/ads/GAMBannerAd.js +1 -1
- package/lib/module/ads/GAMBannerAd.js.map +1 -1
- package/lib/module/ads/InterstitialAd.js +3 -1
- package/lib/module/ads/InterstitialAd.js.map +1 -1
- package/lib/module/ads/MobileAd.js +5 -18
- package/lib/module/ads/MobileAd.js.map +1 -1
- package/lib/module/ads/RewardedAd.js +3 -1
- package/lib/module/ads/RewardedAd.js.map +1 -1
- package/lib/module/ads/RewardedInterstitialAd.js +3 -1
- package/lib/module/ads/RewardedInterstitialAd.js.map +1 -1
- package/lib/module/common/constants.js +3 -3
- package/lib/module/common/constants.js.map +1 -1
- package/lib/module/index.js +1 -3
- package/lib/module/index.js.map +1 -1
- package/lib/module/specs/components/GoogleMobileAdsBannerViewNativeComponent.js.map +1 -0
- package/{ios/RNGoogleMobileAds/common/RNMeta.h → lib/module/specs/modules/NativeAppOpenModule.js} +3 -13
- package/lib/module/specs/modules/NativeAppOpenModule.js.map +1 -0
- package/lib/module/specs/modules/NativeConsentModule.js +68 -0
- package/lib/module/specs/modules/NativeConsentModule.js.map +1 -0
- package/lib/module/specs/modules/NativeGoogleMobileAdsModule.js +20 -0
- package/lib/module/specs/modules/NativeGoogleMobileAdsModule.js.map +1 -0
- package/lib/module/specs/modules/NativeInterstitialModule.js +20 -0
- package/lib/module/specs/modules/NativeInterstitialModule.js.map +1 -0
- package/lib/module/specs/modules/NativeRewardedInterstitialModule.js +20 -0
- package/lib/module/specs/modules/NativeRewardedInterstitialModule.js.map +1 -0
- package/lib/module/specs/modules/NativeRewardedModule.js +20 -0
- package/lib/module/specs/modules/NativeRewardedModule.js.map +1 -0
- package/lib/module/types/index.js +0 -1
- package/lib/module/types/index.js.map +1 -1
- package/lib/module/version.js +1 -1
- package/lib/typescript/AdsConsent.d.ts +1 -1
- package/lib/typescript/AdsConsent.d.ts.map +1 -1
- package/lib/typescript/ads/AppOpenAd.d.ts.map +1 -1
- package/lib/typescript/ads/BannerAd.d.ts.map +1 -1
- package/lib/typescript/ads/BaseAd.d.ts +1 -1
- package/lib/typescript/ads/BaseAd.d.ts.map +1 -1
- package/lib/typescript/ads/GAMBannerAd.d.ts.map +1 -1
- package/lib/typescript/ads/InterstitialAd.d.ts.map +1 -1
- package/lib/typescript/ads/MobileAd.d.ts +5 -4
- package/lib/typescript/ads/MobileAd.d.ts.map +1 -1
- package/lib/typescript/ads/RewardedAd.d.ts.map +1 -1
- package/lib/typescript/ads/RewardedInterstitialAd.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +2 -4
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/specs/components/GoogleMobileAdsBannerViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/specs/modules/NativeAppOpenModule.d.ts +25 -0
- package/lib/typescript/specs/modules/NativeAppOpenModule.d.ts.map +1 -0
- package/lib/typescript/{types/AdsConsent.interface.d.ts → specs/modules/NativeConsentModule.d.ts} +249 -172
- package/lib/typescript/specs/modules/NativeConsentModule.d.ts.map +1 -0
- package/lib/typescript/specs/modules/NativeGoogleMobileAdsModule.d.ts +36 -0
- package/lib/typescript/specs/modules/NativeGoogleMobileAdsModule.d.ts.map +1 -0
- package/lib/typescript/specs/modules/NativeInterstitialModule.d.ts +25 -0
- package/lib/typescript/specs/modules/NativeInterstitialModule.d.ts.map +1 -0
- package/lib/typescript/specs/modules/NativeRewardedInterstitialModule.d.ts +25 -0
- package/lib/typescript/specs/modules/NativeRewardedInterstitialModule.d.ts.map +1 -0
- package/lib/typescript/specs/modules/NativeRewardedModule.d.ts +25 -0
- package/lib/typescript/specs/modules/NativeRewardedModule.d.ts.map +1 -0
- package/lib/typescript/types/index.d.ts +0 -1
- package/lib/typescript/types/index.d.ts.map +1 -1
- package/lib/typescript/version.d.ts +1 -1
- package/package.json +2 -2
- package/src/AdsConsent.ts +17 -21
- package/src/MobileAds.ts +1 -1
- package/src/ads/AppOpenAd.ts +3 -1
- package/src/ads/BannerAd.tsx +3 -1
- package/src/ads/BaseAd.tsx +2 -2
- package/src/ads/GAMBannerAd.tsx +3 -1
- package/src/ads/InterstitialAd.ts +3 -1
- package/src/ads/MobileAd.ts +9 -25
- package/src/ads/RewardedAd.ts +3 -1
- package/src/ads/RewardedInterstitialAd.ts +3 -1
- package/src/common/constants.ts +2 -2
- package/src/index.ts +9 -3
- package/src/specs/modules/NativeAppOpenModule.ts +26 -0
- package/src/{types/AdsConsent.interface.ts → specs/modules/NativeConsentModule.ts} +262 -174
- package/src/specs/modules/NativeGoogleMobileAdsModule.ts +40 -0
- package/src/specs/modules/NativeInterstitialModule.ts +26 -0
- package/src/specs/modules/NativeRewardedInterstitialModule.ts +32 -0
- package/src/{AdsConsentStatus.ts → specs/modules/NativeRewardedModule.ts} +8 -23
- package/src/types/index.ts +0 -1
- package/src/version.ts +1 -1
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsAppOpenModule.m +0 -46
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsAppOpenModule.swift +0 -85
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsFullScreenAd.swift +0 -231
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsFullScreenContentDelegate.swift +0 -76
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsInterstitialModule.m +0 -46
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsInterstitialModule.swift +0 -123
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsRewardedInterstitialModule.m +0 -46
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsRewardedInterstitialModule.swift +0 -85
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsRewardedModule.m +0 -46
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsRewardedModule.swift +0 -85
- package/ios/RNGoogleMobileAds/common/RNJSON.m +0 -93
- package/ios/RNGoogleMobileAds/common/RNMeta.m +0 -61
- package/ios/RNGoogleMobileAds/common/RNPreferences.h +0 -44
- package/ios/RNGoogleMobileAds/common/RNPreferences.m +0 -94
- package/lib/commonjs/AdsConsentDebugGeography.js +0 -34
- package/lib/commonjs/AdsConsentDebugGeography.js.map +0 -1
- package/lib/commonjs/AdsConsentPrivacyOptionsRequirementStatus.js +0 -32
- package/lib/commonjs/AdsConsentPrivacyOptionsRequirementStatus.js.map +0 -1
- package/lib/commonjs/AdsConsentStatus.js +0 -33
- package/lib/commonjs/AdsConsentStatus.js.map +0 -1
- package/lib/commonjs/NativeGoogleMobileAdsModule.js +0 -9
- package/lib/commonjs/NativeGoogleMobileAdsModule.js.map +0 -1
- package/lib/commonjs/ads/GoogleMobileAdsBannerViewNativeComponent.js.map +0 -1
- package/lib/commonjs/types/AdsConsent.interface.js +0 -6
- package/lib/commonjs/types/AdsConsent.interface.js.map +0 -1
- package/lib/module/AdsConsentDebugGeography.js +0 -29
- package/lib/module/AdsConsentDebugGeography.js.map +0 -1
- package/lib/module/AdsConsentPrivacyOptionsRequirementStatus.js +0 -27
- package/lib/module/AdsConsentPrivacyOptionsRequirementStatus.js.map +0 -1
- package/lib/module/AdsConsentStatus.js.map +0 -1
- package/lib/module/NativeGoogleMobileAdsModule.js +0 -3
- package/lib/module/NativeGoogleMobileAdsModule.js.map +0 -1
- package/lib/module/ads/GoogleMobileAdsBannerViewNativeComponent.js.map +0 -1
- package/lib/module/types/AdsConsent.interface.js +0 -2
- package/lib/module/types/AdsConsent.interface.js.map +0 -1
- package/lib/typescript/AdsConsentDebugGeography.d.ts +0 -20
- package/lib/typescript/AdsConsentDebugGeography.d.ts.map +0 -1
- package/lib/typescript/AdsConsentPrivacyOptionsRequirementStatus.d.ts +0 -18
- package/lib/typescript/AdsConsentPrivacyOptionsRequirementStatus.d.ts.map +0 -1
- package/lib/typescript/AdsConsentStatus.d.ts +0 -22
- package/lib/typescript/AdsConsentStatus.d.ts.map +0 -1
- package/lib/typescript/NativeGoogleMobileAdsModule.d.ts +0 -14
- package/lib/typescript/NativeGoogleMobileAdsModule.d.ts.map +0 -1
- package/lib/typescript/ads/GoogleMobileAdsBannerViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/types/AdsConsent.interface.d.ts.map +0 -1
- package/src/NativeGoogleMobileAdsModule.ts +0 -16
- /package/ios/RNGoogleMobileAds/common/{RNRCTEventEmitter.m → RNRCTEventEmitter.mm} +0 -0
- /package/lib/commonjs/{ads → specs/components}/GoogleMobileAdsBannerViewNativeComponent.js +0 -0
- /package/lib/module/{ads → specs/components}/GoogleMobileAdsBannerViewNativeComponent.js +0 -0
- /package/lib/typescript/{ads → specs/components}/GoogleMobileAdsBannerViewNativeComponent.d.ts +0 -0
- /package/src/{ads → specs/components}/GoogleMobileAdsBannerViewNativeComponent.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseAd.d.ts","sourceRoot":"","sources":["../../../src/ads/BaseAd.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAS5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAK1D,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"BaseAd.d.ts","sourceRoot":"","sources":["../../../src/ads/BaseAd.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAS5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAK1D,eAAO,MAAM,MAAM,wOAiJjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GAMBannerAd.d.ts","sourceRoot":"","sources":["../../../src/ads/GAMBannerAd.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"GAMBannerAd.d.ts","sourceRoot":"","sources":["../../../src/ads/GAMBannerAd.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAM1D,qBAAa,WAAY,SAAQ,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC;IAChE,OAAO,CAAC,GAAG,CAAmE;IAE9E,sBAAsB;IAMtB,IAAI;IAMJ,MAAM;CAGP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InterstitialAd.d.ts","sourceRoot":"","sources":["../../../src/ads/InterstitialAd.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"InterstitialAd.d.ts","sourceRoot":"","sources":["../../../src/ads/InterstitialAd.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAGzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,qBAAa,cAAe,SAAQ,QAAQ;IAC1C,SAAS,CAAC,MAAM,CAAC,oBAAoB,SAAK;IAC1C;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CAAC,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,cAAc;IAyB3E,mBAAmB,CAAC,CAAC,SAAS,WAAW,EAAE,QAAQ,EAAE,gBAAgB,CAAC,CAAC,CAAC;IAIxE,kBAAkB,CAAC,CAAC,SAAS,WAAW,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,eAAe,CAAC,CAAC,CAAC;CAGhF"}
|
|
@@ -10,13 +10,15 @@ import { RewardedAdReward } from '../types/RewardedAdReward';
|
|
|
10
10
|
import { GAMAdEventType } from '../GAMAdEventType';
|
|
11
11
|
import { AppEvent } from '../types/AppEvent';
|
|
12
12
|
type AdType = 'app_open' | 'interstitial' | 'rewarded' | 'rewarded_interstitial';
|
|
13
|
-
type NativeModule = 'RNGoogleMobileAdsAppOpenModule' | 'RNGoogleMobileAdsInterstitialModule' | 'RNGoogleMobileAdsRewardedModule' | 'RNGoogleMobileAdsRewardedInterstitialModule';
|
|
14
13
|
type EventType = AdEventType | RewardedAdEventType | GAMAdEventType;
|
|
14
|
+
type AdLoadFunction = (requestId: number, adUnitId: string, requestOptions: RequestOptions) => void;
|
|
15
|
+
type AdShowFunction = (requestId: number, adUnitId: string, showOptions?: AdShowOptions) => Promise<void>;
|
|
15
16
|
export declare abstract class MobileAd implements MobileAdInterface {
|
|
16
17
|
protected _type: AdType;
|
|
17
|
-
protected _nativeModule: NativeModule;
|
|
18
18
|
protected _requestId: number;
|
|
19
19
|
protected _adUnitId: string;
|
|
20
|
+
protected _adLoadFunction: AdLoadFunction;
|
|
21
|
+
protected _adShowFunction: AdShowFunction;
|
|
20
22
|
protected _requestOptions: RequestOptions;
|
|
21
23
|
protected _loaded: boolean;
|
|
22
24
|
protected _isLoadCalled: boolean;
|
|
@@ -25,7 +27,7 @@ export declare abstract class MobileAd implements MobileAdInterface {
|
|
|
25
27
|
protected _adEventsListenerId: number;
|
|
26
28
|
protected _adEventListenerId: number;
|
|
27
29
|
protected _nativeListener: EmitterSubscription;
|
|
28
|
-
protected constructor(type: AdType,
|
|
30
|
+
protected constructor(type: AdType, requestId: number, adUnitId: string, adLoadFunction: AdLoadFunction, adShowFunction: AdShowFunction, requestOptions: RequestOptions);
|
|
29
31
|
protected _handleAdEvent(event: {
|
|
30
32
|
body: {
|
|
31
33
|
type: EventType;
|
|
@@ -40,7 +42,6 @@ export declare abstract class MobileAd implements MobileAdInterface {
|
|
|
40
42
|
protected _addAdEventListener<T extends EventType>(type: T, listener: AdEventListener<T>): () => void;
|
|
41
43
|
protected _getAdEventListeners<T extends EventType>(type: T): Map<number, AdEventListener<T>>;
|
|
42
44
|
protected get _className(): string;
|
|
43
|
-
protected get _camelCaseType(): "interstitial" | "rewarded" | "appOpen" | "rewardedInterstitial";
|
|
44
45
|
load(): void;
|
|
45
46
|
show(showOptions?: AdShowOptions): Promise<void>;
|
|
46
47
|
abstract addAdEventsListener<T extends never>(listener: AdEventsListener<T>): () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileAd.d.ts","sourceRoot":"","sources":["../../../src/ads/MobileAd.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"MobileAd.d.ts","sourceRoot":"","sources":["../../../src/ads/MobileAd.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGnD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D,OAAO,EAAE,eAAe,EAAkB,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAG7C,KAAK,MAAM,GAAG,UAAU,GAAG,cAAc,GAAG,UAAU,GAAG,uBAAuB,CAAC;AACjF,KAAK,SAAS,GAAG,WAAW,GAAG,mBAAmB,GAAG,cAAc,CAAC;AACpE,KAAK,cAAc,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAE,cAAc,KAAK,IAAI,CAAC;AACpG,KAAK,cAAc,GAAG,CACpB,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,aAAa,KACxB,OAAO,CAAC,IAAI,CAAC,CAAC;AAEnB,8BAAsB,QAAS,YAAW,iBAAiB;IACzD,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,UAAU,EAAE,MAAM,CAAC;IAC7B,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC;IAC5B,SAAS,CAAC,eAAe,EAAE,cAAc,CAAC;IAC1C,SAAS,CAAC,eAAe,EAAE,cAAc,CAAC;IAC1C,SAAS,CAAC,eAAe,EAAE,cAAc,CAAC;IAC1C,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,aAAa,EAAE,OAAO,CAAC;IACjC,SAAS,CAAC,kBAAkB,EAAE,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAC,CAAC;IACvE,SAAS,CAAC,oBAAoB,EAAE,GAAG,CAAC,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IACxF,SAAS,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACtC,SAAS,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACrC,SAAS,CAAC,eAAe,EAAE,mBAAmB,CAAC;IAE/C,SAAS,aACP,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,cAAc,EAC9B,cAAc,EAAE,cAAc,EAC9B,cAAc,EAAE,cAAc;IA8BhC,SAAS,CAAC,cAAc,CAAC,KAAK,EAAE;QAC9B,IAAI,EAAE;YACJ,IAAI,EAAE,SAAS,CAAC;YAChB,KAAK,CAAC,EAAE;gBAAE,IAAI,EAAE,MAAM,CAAC;gBAAC,OAAO,EAAE,MAAM,CAAA;aAAE,CAAC;YAC1C,IAAI,CAAC,EAAE,gBAAgB,GAAG,QAAQ,CAAC;SACpC,CAAC;KACH;IAgCD,SAAS,CAAC,oBAAoB,CAAC,CAAC,SAAS,SAAS,EAAE,QAAQ,EAAE,gBAAgB,CAAC,CAAC,CAAC;IAYjF,SAAS,CAAC,mBAAmB,CAAC,CAAC,SAAS,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,eAAe,CAAC,CAAC,CAAC;IA0BxF,SAAS,CAAC,oBAAoB,CAAC,CAAC,SAAS,SAAS,EAAE,IAAI,EAAE,CAAC,GACX,GAAG,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;IAG/E,SAAS,KAAK,UAAU,WAEvB;IAEM,IAAI;IAUJ,IAAI,CAAC,WAAW,CAAC,EAAE,aAAa;aAqBvB,mBAAmB,CAAC,CAAC,SAAS,KAAK,EAAE,QAAQ,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG,MAAM,IAAI;aAE/E,kBAAkB,CAAC,CAAC,SAAS,KAAK,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,IAAI;IAEzF,kBAAkB;IAOzB,IAAW,QAAQ,WAElB;IAED,IAAW,MAAM,YAEhB;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RewardedAd.d.ts","sourceRoot":"","sources":["../../../src/ads/RewardedAd.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"RewardedAd.d.ts","sourceRoot":"","sources":["../../../src/ads/RewardedAd.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAGzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,qBAAa,UAAW,SAAQ,QAAQ;IACtC,SAAS,CAAC,MAAM,CAAC,gBAAgB,SAAK;IACtC;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,MAAM,CAAC,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,cAAc;IAyB3E,mBAAmB,CAAC,CAAC,SAAS,WAAW,GAAG,mBAAmB,EAC7D,QAAQ,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAC5B,MAAM,IAAI;IAIb,kBAAkB,CAAC,CAAC,SAAS,WAAW,GAAG,mBAAmB,EAC5D,IAAI,EAAE,CAAC,EACP,QAAQ,EAAE,eAAe,CAAC,CAAC,CAAC;CAS/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RewardedInterstitialAd.d.ts","sourceRoot":"","sources":["../../../src/ads/RewardedInterstitialAd.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"RewardedInterstitialAd.d.ts","sourceRoot":"","sources":["../../../src/ads/RewardedInterstitialAd.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAGzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,qBAAa,sBAAuB,SAAQ,QAAQ;IAClD,SAAS,CAAC,MAAM,CAAC,4BAA4B,SAAK;IAClD;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,MAAM,CAAC,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,cAAc;IA2B3E,mBAAmB,CAAC,CAAC,SAAS,WAAW,GAAG,mBAAmB,EAC7D,QAAQ,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAC5B,MAAM,IAAI;IAIb,kBAAkB,CAAC,CAAC,SAAS,WAAW,GAAG,mBAAmB,EAC5D,IAAI,EAAE,CAAC,EACP,QAAQ,EAAE,eAAe,CAAC,CAAC,CAAC;CAS/B"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "14.
|
|
1
|
+
export declare const SDK_VERSION = "14.6.0";
|
|
2
2
|
export { default, MobileAds } from './MobileAds';
|
|
3
|
-
export { AdsConsentDebugGeography } from './
|
|
3
|
+
export { AdsConsentDebugGeography, AdsConsentInfo, AdsConsentInfoOptions, AdsConsentInterface, AdsConsentPrivacyOptionsRequirementStatus, AdsConsentStatus, AdsConsentUserChoices, } from './specs/modules/NativeConsentModule';
|
|
4
4
|
export { AdsConsentPurposes } from './AdsConsentPurposes';
|
|
5
5
|
export { AdsConsentSpecialFeatures } from './AdsConsentSpecialFeatures';
|
|
6
|
-
export { AdsConsentStatus } from './AdsConsentStatus';
|
|
7
|
-
export { AdsConsentPrivacyOptionsRequirementStatus } from './AdsConsentPrivacyOptionsRequirementStatus';
|
|
8
6
|
export { MaxAdContentRating } from './MaxAdContentRating';
|
|
9
7
|
export { TestIds } from './TestIds';
|
|
10
8
|
export { AdEventType } from './AdEventType';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,WAAW,WAAU,CAAC;AAEnC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,WAAW,WAAU,CAAC;AAEnC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EACL,wBAAwB,EACxB,cAAc,EACd,qBAAqB,EACrB,mBAAmB,EACnB,yCAAyC,EACzC,gBAAgB,EAChB,qBAAqB,GACtB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GoogleMobileAdsBannerViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/specs/components/GoogleMobileAdsBannerViewNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AAI7F,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,MAAM,CAAC,EAAE,KAAK,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,KAAK,CAAC;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC;AAEF,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,wBAAwB,EAAE,OAAO,CAAC;IAClC,aAAa,EAAE,oBAAoB,CAAC,WAAW,CAAC,CAAC;CAClD;AAED,MAAM,MAAM,aAAa,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC;AAEvD,UAAU,cAAc;IACtB,sBAAsB,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;IAC3E,IAAI,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;CAC1D;AAID,eAAO,MAAM,QAAQ,EAAE,cAErB,CAAC;wBAIE,aAAa,CAAC,WAAW,CAAC;AAF/B,wBAEgC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2016-present Invertase Limited & Contributors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this library except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
import { TurboModule } from 'react-native';
|
|
18
|
+
import { Double, UnsafeObject } from 'react-native/Libraries/Types/CodegenTypes';
|
|
19
|
+
export interface Spec extends TurboModule {
|
|
20
|
+
appOpenLoad(requestId: Double, adUnitId: string, requestOptions: UnsafeObject): void;
|
|
21
|
+
appOpenShow(requestId: Double, adUnitId: string, showOptions?: UnsafeObject): Promise<void>;
|
|
22
|
+
}
|
|
23
|
+
declare const _default: Spec;
|
|
24
|
+
export default _default;
|
|
25
|
+
//# sourceMappingURL=NativeAppOpenModule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeAppOpenModule.d.ts","sourceRoot":"","sources":["../../../../src/specs/modules/NativeAppOpenModule.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,WAAW,EAAuB,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAEjF,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAE,YAAY,GAAG,IAAI,CAAC;IACrF,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7F;;AAED,wBAAwF"}
|
package/lib/typescript/{types/AdsConsent.interface.d.ts → specs/modules/NativeConsentModule.d.ts}
RENAMED
|
@@ -1,198 +1,77 @@
|
|
|
1
|
-
import { TCModel } from '@iabtcf/core';
|
|
2
|
-
import { AdsConsentDebugGeography } from '../AdsConsentDebugGeography';
|
|
3
|
-
import { AdsConsentStatus } from '../AdsConsentStatus';
|
|
4
|
-
import { AdsConsentPrivacyOptionsRequirementStatus } from '../AdsConsentPrivacyOptionsRequirementStatus';
|
|
5
1
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
2
|
+
* Copyright (c) 2016-present Invertase Limited & Contributors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this library except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
9
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
13
15
|
*
|
|
14
|
-
* For more information, see [here](https://developers.google.com/admob/ump/android/quick-start#delay_app_measurement_optional).
|
|
15
16
|
*/
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
* ```js
|
|
25
|
-
* import { AdsConsent } from 'react-native-google-mobile-ads';
|
|
26
|
-
*
|
|
27
|
-
* const consentInfo = await AdsConsent.requestInfoUpdate();
|
|
28
|
-
* console.log('A consent form is available:', consentInfo.isConsentFormAvailable);
|
|
29
|
-
* console.log('User consent status:', consentInfo.status);
|
|
30
|
-
* ```
|
|
31
|
-
* @param options An AdsConsentInfoOptions interface.
|
|
32
|
-
*/
|
|
33
|
-
requestInfoUpdate(options?: AdsConsentInfoOptions): Promise<AdsConsentInfo>;
|
|
34
|
-
/**
|
|
35
|
-
* Shows a Google-rendered user consent form.
|
|
36
|
-
*
|
|
37
|
-
* #### Example
|
|
38
|
-
*
|
|
39
|
-
* ```js
|
|
40
|
-
* import { AdsConsent, AdsConsentStatus } from 'react-native-google-mobile-ads';
|
|
41
|
-
*
|
|
42
|
-
* async function requestConsent() {
|
|
43
|
-
* const consentInfo = await AdsConsent.requestInfoUpdate();
|
|
44
|
-
*
|
|
45
|
-
* // Check if user requires consent
|
|
46
|
-
* if (
|
|
47
|
-
* consentInfo.isConsentFormAvailable &&
|
|
48
|
-
* (consentInfo.status === AdsConsentStatus.UNKNOWN ||
|
|
49
|
-
* consentInfo.status === AdsConsentStatus.REQUIRED)) {
|
|
50
|
-
* // Show a Google-rendered form
|
|
51
|
-
* const formResult = await AdsConsent.showForm();
|
|
52
|
-
*
|
|
53
|
-
* console.log('User consent obtained: ', formResult.status === AdsConsentStatus.OBTAINED);
|
|
54
|
-
* }
|
|
55
|
-
* }
|
|
56
|
-
*
|
|
57
|
-
* ```
|
|
58
|
-
*/
|
|
59
|
-
showForm(): Promise<AdsConsentInfo>;
|
|
17
|
+
import { TurboModule } from 'react-native';
|
|
18
|
+
import { TCModel } from '@iabtcf/core';
|
|
19
|
+
/**
|
|
20
|
+
* AdsConsentDebugGeography enum.
|
|
21
|
+
*
|
|
22
|
+
* Used to set a mock location when testing the `AdsConsent` helper.
|
|
23
|
+
*/
|
|
24
|
+
export declare enum AdsConsentDebugGeography {
|
|
60
25
|
/**
|
|
61
|
-
*
|
|
26
|
+
* Disable any debug geography.
|
|
62
27
|
*/
|
|
63
|
-
|
|
28
|
+
DISABLED = 0,
|
|
64
29
|
/**
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
* This method is intended for the use case of showing a form if needed when the app starts.
|
|
30
|
+
* Sets the location to within the EEA.
|
|
68
31
|
*/
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Returns the UMP Consent Information from the last known session.
|
|
72
|
-
*
|
|
73
|
-
* #### Example
|
|
74
|
-
*
|
|
75
|
-
* ```js
|
|
76
|
-
* import { AdsConsent } from '@invertase/react-native-google-ads';
|
|
77
|
-
*
|
|
78
|
-
* const consentInfo = await AdsConsent.getConsentInfo();
|
|
79
|
-
* ```
|
|
80
|
-
*/
|
|
81
|
-
getConsentInfo(): Promise<AdsConsentInfo>;
|
|
32
|
+
EEA = 1,
|
|
82
33
|
/**
|
|
83
|
-
*
|
|
84
|
-
* consent form if necessary.
|
|
34
|
+
* Sets the location to outside of the EEA.
|
|
85
35
|
*/
|
|
86
|
-
|
|
36
|
+
NOT_EEA = 2
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* AdsConsentStatus enum.
|
|
40
|
+
*/
|
|
41
|
+
export declare enum AdsConsentStatus {
|
|
87
42
|
/**
|
|
88
|
-
*
|
|
89
|
-
* in NSUserDefaults (iOS) / SharedPreferences (Android) as
|
|
90
|
-
* defined by the IAB Europe Transparency & Consent Framework.
|
|
91
|
-
*
|
|
92
|
-
* More information available here:
|
|
93
|
-
* https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md#in-app-details
|
|
94
|
-
*
|
|
95
|
-
* #### Example
|
|
96
|
-
*
|
|
97
|
-
* ```js
|
|
98
|
-
* import { AdsConsent } from '@invertase/react-native-google-ads';
|
|
99
|
-
*
|
|
100
|
-
* const tcString = await AdsConsent.getTCString();
|
|
101
|
-
* ```
|
|
43
|
+
* Unknown consent status, AdsConsent.requestInfoUpdate needs to be called to update it.
|
|
102
44
|
*/
|
|
103
|
-
|
|
45
|
+
UNKNOWN = "UNKNOWN",
|
|
104
46
|
/**
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
* #### Example
|
|
108
|
-
*
|
|
109
|
-
* ```js
|
|
110
|
-
* import { AdsConsent } from '@invertase/react-native-google-ads';
|
|
111
|
-
*
|
|
112
|
-
* const tcModel = await AdsConsent.getTCModel();
|
|
113
|
-
* ```
|
|
47
|
+
* User consent required but not yet obtained.
|
|
114
48
|
*/
|
|
115
|
-
|
|
49
|
+
REQUIRED = "REQUIRED",
|
|
116
50
|
/**
|
|
117
|
-
*
|
|
118
|
-
* in NSUserDefaults (iOS) / SharedPreferences (Android) as
|
|
119
|
-
* defined by the IAB Europe Transparency & Consent Framework.
|
|
120
|
-
*
|
|
121
|
-
* More information available here:
|
|
122
|
-
* https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md#in-app-details
|
|
123
|
-
*
|
|
124
|
-
* #### Example
|
|
125
|
-
*
|
|
126
|
-
* ```js
|
|
127
|
-
* import { AdsConsent } from '@invertase/react-native-google-ads';
|
|
128
|
-
*
|
|
129
|
-
* await AdsConsent.requestInfoUpdate();
|
|
130
|
-
* const gdprApplies = await AdsConsent.getGdprApplies();
|
|
131
|
-
* ```
|
|
51
|
+
* User consent not required.
|
|
132
52
|
*/
|
|
133
|
-
|
|
53
|
+
NOT_REQUIRED = "NOT_REQUIRED",
|
|
134
54
|
/**
|
|
135
|
-
*
|
|
136
|
-
* in NSUserDefaults (iOS) / SharedPreferences (Android) as
|
|
137
|
-
* defined by the IAB Europe Transparency & Consent Framework.
|
|
138
|
-
*
|
|
139
|
-
* More information available here:
|
|
140
|
-
* https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md#in-app-details
|
|
141
|
-
*
|
|
142
|
-
* #### Example
|
|
143
|
-
*
|
|
144
|
-
* ```js
|
|
145
|
-
* import { AdsConsent } from '@invertase/react-native-google-ads';
|
|
146
|
-
*
|
|
147
|
-
* await AdsConsent.requestInfoUpdate();
|
|
148
|
-
* const purposeConsents = await AdsConsent.getPurposeConsents();
|
|
149
|
-
* const hasConsentForPurposeOne = purposeConsents.startsWith("1");
|
|
150
|
-
* ```
|
|
55
|
+
* User consent already obtained.
|
|
151
56
|
*/
|
|
152
|
-
|
|
57
|
+
OBTAINED = "OBTAINED"
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* AdsConsentPrivacyOptionsRequirementStatus enum.
|
|
61
|
+
*/
|
|
62
|
+
export declare enum AdsConsentPrivacyOptionsRequirementStatus {
|
|
153
63
|
/**
|
|
154
|
-
*
|
|
155
|
-
* in NSUserDefaults (iOS) / SharedPreferences (Android) as
|
|
156
|
-
* defined by the IAB Europe Transparency & Consent Framework.
|
|
157
|
-
*
|
|
158
|
-
* More information available here:
|
|
159
|
-
* https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md#in-app-details
|
|
160
|
-
*
|
|
161
|
-
* #### Example
|
|
162
|
-
*
|
|
163
|
-
* ```js
|
|
164
|
-
* import { AdsConsent } from '@invertase/react-native-google-ads';
|
|
165
|
-
*
|
|
166
|
-
* await AdsConsent.requestInfoUpdate();
|
|
167
|
-
* const purposeLegitimateInterests = await AdsConsent.getPurposeLegitimateInterests();
|
|
168
|
-
* const hasLegitimateInterestForPurposeTwo = purposeLegitimateInterests.split("")[1] === "1";
|
|
169
|
-
* ```
|
|
64
|
+
* Unknown consent status, AdsConsent.requestInfoUpdate needs to be called to update it.
|
|
170
65
|
*/
|
|
171
|
-
|
|
66
|
+
UNKNOWN = "UNKNOWN",
|
|
172
67
|
/**
|
|
173
|
-
*
|
|
174
|
-
*
|
|
175
|
-
* #### Example
|
|
176
|
-
*
|
|
177
|
-
* ```js
|
|
178
|
-
* import { AdsConsent } from '@invertase/react-native-google-ads';
|
|
179
|
-
*
|
|
180
|
-
* const { storeAndAccessInformationOnDevice } = await AdsConsent.getUserChoices();
|
|
181
|
-
* ```
|
|
68
|
+
* User consent required but not yet obtained.
|
|
182
69
|
*/
|
|
183
|
-
|
|
70
|
+
REQUIRED = "REQUIRED",
|
|
184
71
|
/**
|
|
185
|
-
*
|
|
186
|
-
*
|
|
187
|
-
* #### Example
|
|
188
|
-
*
|
|
189
|
-
* ```js
|
|
190
|
-
* import { AdsConsent } from '@invertase/react-native-google-ads';
|
|
191
|
-
*
|
|
192
|
-
* AdsConsent.reset();
|
|
193
|
-
* ```
|
|
72
|
+
* User consent not required.
|
|
194
73
|
*/
|
|
195
|
-
|
|
74
|
+
NOT_REQUIRED = "NOT_REQUIRED"
|
|
196
75
|
}
|
|
197
76
|
/**
|
|
198
77
|
* The options used when requesting consent information.
|
|
@@ -411,4 +290,202 @@ export interface AdsConsentUserChoices {
|
|
|
411
290
|
*/
|
|
412
291
|
usePreciseGeolocationData: boolean;
|
|
413
292
|
}
|
|
414
|
-
|
|
293
|
+
export interface AdsConsentInterface {
|
|
294
|
+
/**
|
|
295
|
+
* Requests user consent information.
|
|
296
|
+
*
|
|
297
|
+
* The response from this method provides information about consent form availability and consent status.
|
|
298
|
+
*
|
|
299
|
+
* #### Example
|
|
300
|
+
*
|
|
301
|
+
* ```js
|
|
302
|
+
* import { AdsConsent } from 'react-native-google-mobile-ads';
|
|
303
|
+
*
|
|
304
|
+
* const consentInfo = await AdsConsent.requestInfoUpdate();
|
|
305
|
+
* console.log('A consent form is available:', consentInfo.isConsentFormAvailable);
|
|
306
|
+
* console.log('User consent status:', consentInfo.status);
|
|
307
|
+
* ```
|
|
308
|
+
* @param options An AdsConsentInfoOptions interface.
|
|
309
|
+
*/
|
|
310
|
+
requestInfoUpdate(options?: AdsConsentInfoOptions): Promise<AdsConsentInfo>;
|
|
311
|
+
/**
|
|
312
|
+
* Shows a Google-rendered user consent form.
|
|
313
|
+
*
|
|
314
|
+
* #### Example
|
|
315
|
+
*
|
|
316
|
+
* ```js
|
|
317
|
+
* import { AdsConsent, AdsConsentStatus } from 'react-native-google-mobile-ads';
|
|
318
|
+
*
|
|
319
|
+
* async function requestConsent() {
|
|
320
|
+
* const consentInfo = await AdsConsent.requestInfoUpdate();
|
|
321
|
+
*
|
|
322
|
+
* // Check if user requires consent
|
|
323
|
+
* if (
|
|
324
|
+
* consentInfo.isConsentFormAvailable &&
|
|
325
|
+
* (consentInfo.status === AdsConsentStatus.UNKNOWN ||
|
|
326
|
+
* consentInfo.status === AdsConsentStatus.REQUIRED)) {
|
|
327
|
+
* // Show a Google-rendered form
|
|
328
|
+
* const formResult = await AdsConsent.showForm();
|
|
329
|
+
*
|
|
330
|
+
* console.log('User consent obtained: ', formResult.status === AdsConsentStatus.OBTAINED);
|
|
331
|
+
* }
|
|
332
|
+
* }
|
|
333
|
+
*
|
|
334
|
+
* ```
|
|
335
|
+
*/
|
|
336
|
+
showForm(): Promise<AdsConsentInfo>;
|
|
337
|
+
/**
|
|
338
|
+
* Presents a privacy options form if privacyOptionsRequirementStatus is required.
|
|
339
|
+
*/
|
|
340
|
+
showPrivacyOptionsForm(): Promise<AdsConsentInfo>;
|
|
341
|
+
/**
|
|
342
|
+
* Loads a consent form and immediately presents it if consentStatus is required.
|
|
343
|
+
*
|
|
344
|
+
* This method is intended for the use case of showing a form if needed when the app starts.
|
|
345
|
+
*/
|
|
346
|
+
loadAndShowConsentFormIfRequired(): Promise<AdsConsentInfo>;
|
|
347
|
+
/**
|
|
348
|
+
* Returns the UMP Consent Information from the last known session.
|
|
349
|
+
*
|
|
350
|
+
* #### Example
|
|
351
|
+
*
|
|
352
|
+
* ```js
|
|
353
|
+
* import { AdsConsent } from '@invertase/react-native-google-ads';
|
|
354
|
+
*
|
|
355
|
+
* const consentInfo = await AdsConsent.getConsentInfo();
|
|
356
|
+
* ```
|
|
357
|
+
*/
|
|
358
|
+
getConsentInfo(): Promise<AdsConsentInfo>;
|
|
359
|
+
/**
|
|
360
|
+
* Helper method to call the UMP SDK methods to request consent information and load/present a
|
|
361
|
+
* consent form if necessary.
|
|
362
|
+
*/
|
|
363
|
+
gatherConsent(): Promise<AdsConsentInfo>;
|
|
364
|
+
/**
|
|
365
|
+
* Returns the value stored under the `IABTCF_TCString` key
|
|
366
|
+
* in NSUserDefaults (iOS) / SharedPreferences (Android) as
|
|
367
|
+
* defined by the IAB Europe Transparency & Consent Framework.
|
|
368
|
+
*
|
|
369
|
+
* More information available here:
|
|
370
|
+
* https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md#in-app-details
|
|
371
|
+
*
|
|
372
|
+
* #### Example
|
|
373
|
+
*
|
|
374
|
+
* ```js
|
|
375
|
+
* import { AdsConsent } from '@invertase/react-native-google-ads';
|
|
376
|
+
*
|
|
377
|
+
* const tcString = await AdsConsent.getTCString();
|
|
378
|
+
* ```
|
|
379
|
+
*/
|
|
380
|
+
getTCString(): Promise<string>;
|
|
381
|
+
/**
|
|
382
|
+
* Returns the TC Model of the saved IAB TCF 2.0 String.
|
|
383
|
+
*
|
|
384
|
+
* #### Example
|
|
385
|
+
*
|
|
386
|
+
* ```js
|
|
387
|
+
* import { AdsConsent } from '@invertase/react-native-google-ads';
|
|
388
|
+
*
|
|
389
|
+
* const tcModel = await AdsConsent.getTCModel();
|
|
390
|
+
* ```
|
|
391
|
+
*/
|
|
392
|
+
getTCModel(): Promise<TCModel>;
|
|
393
|
+
/**
|
|
394
|
+
* Returns the value stored under the `IABTCF_gdprApplies` key
|
|
395
|
+
* in NSUserDefaults (iOS) / SharedPreferences (Android) as
|
|
396
|
+
* defined by the IAB Europe Transparency & Consent Framework.
|
|
397
|
+
*
|
|
398
|
+
* More information available here:
|
|
399
|
+
* https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md#in-app-details
|
|
400
|
+
*
|
|
401
|
+
* #### Example
|
|
402
|
+
*
|
|
403
|
+
* ```js
|
|
404
|
+
* import { AdsConsent } from '@invertase/react-native-google-ads';
|
|
405
|
+
*
|
|
406
|
+
* await AdsConsent.requestInfoUpdate();
|
|
407
|
+
* const gdprApplies = await AdsConsent.getGdprApplies();
|
|
408
|
+
* ```
|
|
409
|
+
*/
|
|
410
|
+
getGdprApplies(): Promise<boolean>;
|
|
411
|
+
/**
|
|
412
|
+
* Returns the value stored under the `IABTCF_PurposeConsents` key
|
|
413
|
+
* in NSUserDefaults (iOS) / SharedPreferences (Android) as
|
|
414
|
+
* defined by the IAB Europe Transparency & Consent Framework.
|
|
415
|
+
*
|
|
416
|
+
* More information available here:
|
|
417
|
+
* https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md#in-app-details
|
|
418
|
+
*
|
|
419
|
+
* #### Example
|
|
420
|
+
*
|
|
421
|
+
* ```js
|
|
422
|
+
* import { AdsConsent } from '@invertase/react-native-google-ads';
|
|
423
|
+
*
|
|
424
|
+
* await AdsConsent.requestInfoUpdate();
|
|
425
|
+
* const purposeConsents = await AdsConsent.getPurposeConsents();
|
|
426
|
+
* const hasConsentForPurposeOne = purposeConsents.startsWith("1");
|
|
427
|
+
* ```
|
|
428
|
+
*/
|
|
429
|
+
getPurposeConsents(): Promise<string>;
|
|
430
|
+
/**
|
|
431
|
+
* Returns the value stored under the `IABTCF_PurposeLegitimateInterests` key
|
|
432
|
+
* in NSUserDefaults (iOS) / SharedPreferences (Android) as
|
|
433
|
+
* defined by the IAB Europe Transparency & Consent Framework.
|
|
434
|
+
*
|
|
435
|
+
* More information available here:
|
|
436
|
+
* https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md#in-app-details
|
|
437
|
+
*
|
|
438
|
+
* #### Example
|
|
439
|
+
*
|
|
440
|
+
* ```js
|
|
441
|
+
* import { AdsConsent } from '@invertase/react-native-google-ads';
|
|
442
|
+
*
|
|
443
|
+
* await AdsConsent.requestInfoUpdate();
|
|
444
|
+
* const purposeLegitimateInterests = await AdsConsent.getPurposeLegitimateInterests();
|
|
445
|
+
* const hasLegitimateInterestForPurposeTwo = purposeLegitimateInterests.split("")[1] === "1";
|
|
446
|
+
* ```
|
|
447
|
+
*/
|
|
448
|
+
getPurposeLegitimateInterests(): Promise<string>;
|
|
449
|
+
/**
|
|
450
|
+
* Provides information about a user's consent choices.
|
|
451
|
+
*
|
|
452
|
+
* #### Example
|
|
453
|
+
*
|
|
454
|
+
* ```js
|
|
455
|
+
* import { AdsConsent } from '@invertase/react-native-google-ads';
|
|
456
|
+
*
|
|
457
|
+
* const { storeAndAccessInformationOnDevice } = await AdsConsent.getUserChoices();
|
|
458
|
+
* ```
|
|
459
|
+
*/
|
|
460
|
+
getUserChoices(): Promise<AdsConsentUserChoices>;
|
|
461
|
+
/**
|
|
462
|
+
* Resets the UMP SDK state.
|
|
463
|
+
*
|
|
464
|
+
* #### Example
|
|
465
|
+
*
|
|
466
|
+
* ```js
|
|
467
|
+
* import { AdsConsent } from '@invertase/react-native-google-ads';
|
|
468
|
+
*
|
|
469
|
+
* AdsConsent.reset();
|
|
470
|
+
* ```
|
|
471
|
+
*/
|
|
472
|
+
reset(): void;
|
|
473
|
+
}
|
|
474
|
+
export interface Spec extends TurboModule {
|
|
475
|
+
requestInfoUpdate(options?: AdsConsentInfoOptions): Promise<AdsConsentInfo>;
|
|
476
|
+
showForm(): Promise<AdsConsentInfo>;
|
|
477
|
+
showPrivacyOptionsForm(): Promise<AdsConsentInfo>;
|
|
478
|
+
loadAndShowConsentFormIfRequired(): Promise<AdsConsentInfo>;
|
|
479
|
+
getConsentInfo(): Promise<AdsConsentInfo>;
|
|
480
|
+
gatherConsent(): Promise<AdsConsentInfo>;
|
|
481
|
+
getTCString(): Promise<string>;
|
|
482
|
+
getTCModel(): Promise<TCModel>;
|
|
483
|
+
getGdprApplies(): Promise<boolean>;
|
|
484
|
+
getPurposeConsents(): Promise<string>;
|
|
485
|
+
getPurposeLegitimateInterests(): Promise<string>;
|
|
486
|
+
getUserChoices(): Promise<AdsConsentUserChoices>;
|
|
487
|
+
reset(): void;
|
|
488
|
+
}
|
|
489
|
+
declare const _default: Spec;
|
|
490
|
+
export default _default;
|
|
491
|
+
//# sourceMappingURL=NativeConsentModule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeConsentModule.d.ts","sourceRoot":"","sources":["../../../../src/specs/modules/NativeConsentModule.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2016-present Invertase Limited & Contributors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this library except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
import type { TurboModule } from 'react-native';
|
|
18
|
+
import { UnsafeObject } from 'react-native/Libraries/Types/CodegenTypes';
|
|
19
|
+
import { AdapterStatus } from '../../types';
|
|
20
|
+
export interface Spec extends TurboModule {
|
|
21
|
+
readonly getConstants: () => {
|
|
22
|
+
REVENUE_PRECISION_ESTIMATED: number;
|
|
23
|
+
REVENUE_PRECISION_PRECISE: number;
|
|
24
|
+
REVENUE_PRECISION_PUBLISHER_PROVIDED: number;
|
|
25
|
+
REVENUE_PRECISION_UNKNOWN: number;
|
|
26
|
+
};
|
|
27
|
+
initialize(): Promise<AdapterStatus[]>;
|
|
28
|
+
setRequestConfiguration(requestConfiguration?: UnsafeObject): Promise<void>;
|
|
29
|
+
openAdInspector(): Promise<void>;
|
|
30
|
+
openDebugMenu(adUnit: string): void;
|
|
31
|
+
setAppVolume(volume: number): void;
|
|
32
|
+
setAppMuted(muted: boolean): void;
|
|
33
|
+
}
|
|
34
|
+
declare const _default: Spec;
|
|
35
|
+
export default _default;
|
|
36
|
+
//# sourceMappingURL=NativeGoogleMobileAdsModule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeGoogleMobileAdsModule.d.ts","sourceRoot":"","sources":["../../../../src/specs/modules/NativeGoogleMobileAdsModule.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAEzE,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,QAAQ,CAAC,YAAY,EAAE,MAAM;QAC3B,2BAA2B,EAAE,MAAM,CAAC;QACpC,yBAAyB,EAAE,MAAM,CAAC;QAClC,oCAAoC,EAAE,MAAM,CAAC;QAC7C,yBAAyB,EAAE,MAAM,CAAC;KACnC,CAAC;IAEF,UAAU,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC;IACvC,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5E,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACjC,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;CACnC;;AAED,wBAAiF"}
|