react-native-google-mobile-ads 15.8.3 → 16.0.1
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/__tests__/consent.test.ts +4 -4
- package/__tests__/googleMobileAds.test.ts +14 -14
- package/__tests__/interstitial.test.ts +14 -14
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsModule.kt +0 -12
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsCommon.h +24 -24
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsConsentModule.mm +1 -1
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsMediaView.h +1 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsMediaView.mm +2 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsModule.mm +5 -20
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsNativeModule.mm +1 -1
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsNativeView.h +1 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsNativeView.mm +2 -0
- package/ios/RNGoogleMobileAds/common/RNSharedUtils.h +1 -2
- package/ios/RNGoogleMobileAds/common/RNSharedUtils.mm +1 -2
- package/ios_config.sh +12 -12
- package/jest.setup.ts +10 -0
- package/lib/commonjs/AdEventType.js +40 -0
- package/lib/commonjs/AdEventType.js.map +1 -1
- package/lib/commonjs/AdsConsent.js +3 -2
- package/lib/commonjs/AdsConsent.js.map +1 -1
- package/lib/commonjs/AdsConsentPurposes.js +136 -0
- package/lib/commonjs/AdsConsentPurposes.js.map +1 -1
- package/lib/commonjs/AdsConsentSpecialFeatures.js +18 -0
- package/lib/commonjs/AdsConsentSpecialFeatures.js.map +1 -1
- package/lib/commonjs/BannerAdSize.js +28 -0
- package/lib/commonjs/BannerAdSize.js.map +1 -1
- package/lib/commonjs/GAMAdEventType.js +17 -0
- package/lib/commonjs/GAMAdEventType.js.map +1 -1
- package/lib/commonjs/MaxAdContentRating.js +12 -0
- package/lib/commonjs/MaxAdContentRating.js.map +1 -1
- package/lib/commonjs/MobileAds.js +2 -4
- package/lib/commonjs/MobileAds.js.map +1 -1
- package/lib/commonjs/NativeAdEventType.js +30 -0
- package/lib/commonjs/NativeAdEventType.js.map +1 -1
- package/lib/commonjs/RewardedAdEventType.js +38 -0
- package/lib/commonjs/RewardedAdEventType.js.map +1 -1
- package/lib/commonjs/TestIds.js.map +1 -1
- package/lib/commonjs/ads/AppOpenAd.js +1 -1
- package/lib/commonjs/ads/AppOpenAd.js.map +1 -1
- package/lib/commonjs/ads/BannerAd.js +7 -4
- package/lib/commonjs/ads/BannerAd.js.map +1 -1
- package/lib/commonjs/ads/BaseAd.js +2 -2
- package/lib/commonjs/ads/BaseAd.js.map +1 -1
- package/lib/commonjs/ads/GAMBannerAd.js +7 -4
- package/lib/commonjs/ads/GAMBannerAd.js.map +1 -1
- package/lib/commonjs/ads/GAMInterstitialAd.js.map +1 -1
- package/lib/commonjs/ads/InterstitialAd.js +1 -1
- package/lib/commonjs/ads/InterstitialAd.js.map +1 -1
- package/lib/commonjs/ads/MobileAd.js.map +1 -1
- package/lib/commonjs/ads/RewardedAd.js +1 -1
- package/lib/commonjs/ads/RewardedAd.js.map +1 -1
- package/lib/commonjs/ads/RewardedInterstitialAd.js +1 -1
- package/lib/commonjs/ads/RewardedInterstitialAd.js.map +1 -1
- package/lib/commonjs/ads/native-ad/NativeAd.js.map +1 -1
- package/lib/commonjs/ads/native-ad/NativeAdContext.js.map +1 -1
- package/lib/commonjs/ads/native-ad/NativeAdView.js +14 -9
- package/lib/commonjs/ads/native-ad/NativeAdView.js.map +1 -1
- package/lib/commonjs/ads/native-ad/NativeAsset.js.map +1 -1
- package/lib/commonjs/ads/native-ad/NativeMediaView.js +14 -10
- package/lib/commonjs/ads/native-ad/NativeMediaView.js.map +1 -1
- package/lib/commonjs/common/constants.js +7 -13
- package/lib/commonjs/common/constants.js.map +1 -1
- package/lib/commonjs/common/debounce.js.map +1 -1
- package/lib/commonjs/common/index.js.map +1 -1
- package/lib/commonjs/common/ref.js +6 -5
- package/lib/commonjs/common/ref.js.map +1 -1
- package/lib/commonjs/common/validate.js.map +1 -1
- package/lib/commonjs/declarations.d.js.map +1 -1
- package/lib/commonjs/hooks/useAppOpenAd.js.map +1 -1
- package/lib/commonjs/hooks/useForeground.js.map +1 -1
- package/lib/commonjs/hooks/useFullScreenAd.js +14 -12
- package/lib/commonjs/hooks/useFullScreenAd.js.map +1 -1
- package/lib/commonjs/hooks/useInterstitialAd.js.map +1 -1
- package/lib/commonjs/hooks/useRewardedAd.js.map +1 -1
- package/lib/commonjs/hooks/useRewardedInterstitialAd.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/internal/GoogleMobileAdsNativeEventEmitter.js +4 -37
- package/lib/commonjs/internal/GoogleMobileAdsNativeEventEmitter.js.map +1 -1
- package/lib/commonjs/internal/NativeError.js.map +1 -1
- package/lib/commonjs/internal/SharedEventEmitter.js.map +1 -1
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/specs/components/GoogleMobileAdsBannerViewNativeComponent.ts +62 -0
- package/lib/{module/specs/components/GoogleMobileAdsMediaViewNativeComponent.js → commonjs/specs/components/GoogleMobileAdsMediaViewNativeComponent.ts} +12 -2
- package/lib/commonjs/specs/components/GoogleMobileAdsNativeViewNativeComponent.ts +45 -0
- package/lib/commonjs/specs/modules/NativeAppOpenModule.js.map +1 -1
- package/lib/commonjs/specs/modules/NativeConsentModule.js +36 -0
- package/lib/commonjs/specs/modules/NativeConsentModule.js.map +1 -1
- package/lib/commonjs/specs/modules/NativeGoogleMobileAdsModule.js.map +1 -1
- package/lib/commonjs/specs/modules/NativeGoogleMobileAdsNativeModule.js.map +1 -1
- package/lib/commonjs/specs/modules/NativeInterstitialModule.js.map +1 -1
- package/lib/commonjs/specs/modules/NativeRewardedInterstitialModule.js.map +1 -1
- package/lib/commonjs/specs/modules/NativeRewardedModule.js.map +1 -1
- package/lib/commonjs/types/AdEventListener.js.map +1 -1
- package/lib/commonjs/types/AdEventsListener.js.map +1 -1
- package/lib/commonjs/types/AdShowOptions.js.map +1 -1
- package/lib/commonjs/types/AdStates.js.map +1 -1
- package/lib/commonjs/types/AdapterStatus.js +6 -0
- package/lib/commonjs/types/AdapterStatus.js.map +1 -1
- package/lib/commonjs/types/AppEvent.js.map +1 -1
- package/lib/commonjs/types/BannerAdProps.js.map +1 -1
- package/lib/commonjs/types/MobileAd.interface.js.map +1 -1
- package/lib/commonjs/types/MobileAdsModule.interface.js.map +1 -1
- package/lib/commonjs/types/NativeAdRequestOptions.js.map +1 -1
- package/lib/commonjs/types/PaidEventListener.js.map +1 -1
- package/lib/commonjs/types/RequestConfiguration.js.map +1 -1
- package/lib/commonjs/types/RequestOptions.js.map +1 -1
- package/lib/commonjs/types/RewardedAdReward.js.map +1 -1
- package/lib/commonjs/types/index.js.map +1 -1
- package/lib/commonjs/validateAdRequestConfiguration.js +2 -2
- package/lib/commonjs/validateAdRequestConfiguration.js.map +1 -1
- package/lib/commonjs/validateAdRequestOptions.js.map +1 -1
- package/lib/commonjs/validateAdShowOptions.js.map +1 -1
- package/lib/commonjs/validateNativeAdRequestOptions.js +3 -3
- package/lib/commonjs/validateNativeAdRequestOptions.js.map +1 -1
- package/lib/commonjs/version.js +1 -1
- package/lib/commonjs/version.js.map +1 -1
- package/lib/module/AdEventType.js +42 -0
- package/lib/module/AdEventType.js.map +1 -1
- package/lib/module/AdsConsent.js +5 -2
- package/lib/module/AdsConsent.js.map +1 -1
- package/lib/module/AdsConsentPurposes.js +138 -0
- package/lib/module/AdsConsentPurposes.js.map +1 -1
- package/lib/module/AdsConsentSpecialFeatures.js +20 -0
- package/lib/module/AdsConsentSpecialFeatures.js.map +1 -1
- package/lib/module/BannerAdSize.js +30 -0
- package/lib/module/BannerAdSize.js.map +1 -1
- package/lib/module/GAMAdEventType.js +19 -0
- package/lib/module/GAMAdEventType.js.map +1 -1
- package/lib/module/MaxAdContentRating.js +14 -0
- package/lib/module/MaxAdContentRating.js.map +1 -1
- package/lib/module/MobileAds.js +4 -4
- package/lib/module/MobileAds.js.map +1 -1
- package/lib/module/NativeAdEventType.js +32 -0
- package/lib/module/NativeAdEventType.js.map +1 -1
- package/lib/module/RewardedAdEventType.js +40 -0
- package/lib/module/RewardedAdEventType.js.map +1 -1
- package/lib/module/TestIds.js +2 -0
- package/lib/module/TestIds.js.map +1 -1
- package/lib/module/ads/AppOpenAd.js +3 -1
- package/lib/module/ads/AppOpenAd.js.map +1 -1
- package/lib/module/ads/BannerAd.js +7 -4
- package/lib/module/ads/BannerAd.js.map +1 -1
- package/lib/module/ads/BaseAd.js +4 -2
- package/lib/module/ads/BaseAd.js.map +1 -1
- package/lib/module/ads/GAMBannerAd.js +7 -4
- package/lib/module/ads/GAMBannerAd.js.map +1 -1
- package/lib/module/ads/GAMInterstitialAd.js +2 -0
- package/lib/module/ads/GAMInterstitialAd.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 +2 -0
- 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/ads/native-ad/NativeAd.js +2 -0
- package/lib/module/ads/native-ad/NativeAd.js.map +1 -1
- package/lib/module/ads/native-ad/NativeAdContext.js +2 -0
- package/lib/module/ads/native-ad/NativeAdContext.js.map +1 -1
- package/lib/module/ads/native-ad/NativeAdView.js +14 -9
- package/lib/module/ads/native-ad/NativeAdView.js.map +1 -1
- package/lib/module/ads/native-ad/NativeAsset.js +2 -0
- package/lib/module/ads/native-ad/NativeAsset.js.map +1 -1
- package/lib/module/ads/native-ad/NativeMediaView.js +14 -10
- package/lib/module/ads/native-ad/NativeMediaView.js.map +1 -1
- package/lib/module/common/constants.js +9 -12
- package/lib/module/common/constants.js.map +1 -1
- package/lib/module/common/debounce.js +2 -0
- package/lib/module/common/debounce.js.map +1 -1
- package/lib/module/common/index.js +2 -0
- package/lib/module/common/index.js.map +1 -1
- package/lib/module/common/ref.js +8 -5
- package/lib/module/common/ref.js.map +1 -1
- package/lib/module/common/validate.js +2 -0
- package/lib/module/common/validate.js.map +1 -1
- package/lib/module/declarations.d.js +1 -1
- package/lib/module/declarations.d.js.map +1 -1
- package/lib/module/hooks/useAppOpenAd.js +2 -0
- package/lib/module/hooks/useAppOpenAd.js.map +1 -1
- package/lib/module/hooks/useForeground.js +2 -0
- package/lib/module/hooks/useForeground.js.map +1 -1
- package/lib/module/hooks/useFullScreenAd.js +16 -12
- package/lib/module/hooks/useFullScreenAd.js.map +1 -1
- package/lib/module/hooks/useInterstitialAd.js +2 -0
- package/lib/module/hooks/useInterstitialAd.js.map +1 -1
- package/lib/module/hooks/useRewardedAd.js +2 -0
- package/lib/module/hooks/useRewardedAd.js.map +1 -1
- package/lib/module/hooks/useRewardedInterstitialAd.js +2 -0
- package/lib/module/hooks/useRewardedInterstitialAd.js.map +1 -1
- package/lib/module/index.js +2 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/internal/GoogleMobileAdsNativeEventEmitter.js +6 -37
- package/lib/module/internal/GoogleMobileAdsNativeEventEmitter.js.map +1 -1
- package/lib/module/internal/NativeError.js +2 -0
- package/lib/module/internal/NativeError.js.map +1 -1
- package/lib/module/internal/SharedEventEmitter.js +2 -0
- package/lib/module/internal/SharedEventEmitter.js.map +1 -1
- package/lib/module/specs/components/GoogleMobileAdsBannerViewNativeComponent.ts +62 -0
- package/lib/module/specs/components/{GoogleMobileAdsNativeViewNativeComponent.js → GoogleMobileAdsMediaViewNativeComponent.ts} +12 -6
- package/lib/module/specs/components/GoogleMobileAdsNativeViewNativeComponent.ts +45 -0
- package/lib/module/specs/modules/NativeAppOpenModule.js +2 -0
- package/lib/module/specs/modules/NativeAppOpenModule.js.map +1 -1
- package/lib/module/specs/modules/NativeConsentModule.js +38 -0
- package/lib/module/specs/modules/NativeConsentModule.js.map +1 -1
- package/lib/module/specs/modules/NativeGoogleMobileAdsModule.js +2 -0
- package/lib/module/specs/modules/NativeGoogleMobileAdsModule.js.map +1 -1
- package/lib/module/specs/modules/NativeGoogleMobileAdsNativeModule.js +2 -0
- package/lib/module/specs/modules/NativeGoogleMobileAdsNativeModule.js.map +1 -1
- package/lib/module/specs/modules/NativeInterstitialModule.js +2 -0
- package/lib/module/specs/modules/NativeInterstitialModule.js.map +1 -1
- package/lib/module/specs/modules/NativeRewardedInterstitialModule.js +2 -0
- package/lib/module/specs/modules/NativeRewardedInterstitialModule.js.map +1 -1
- package/lib/module/specs/modules/NativeRewardedModule.js +2 -0
- package/lib/module/specs/modules/NativeRewardedModule.js.map +1 -1
- package/lib/module/types/AdEventListener.js +2 -0
- package/lib/module/types/AdEventListener.js.map +1 -1
- package/lib/module/types/AdEventsListener.js +2 -0
- package/lib/module/types/AdEventsListener.js.map +1 -1
- package/lib/module/types/AdShowOptions.js +1 -1
- package/lib/module/types/AdShowOptions.js.map +1 -1
- package/lib/module/types/AdStates.js +2 -0
- package/lib/module/types/AdStates.js.map +1 -1
- package/lib/module/types/AdapterStatus.js +8 -0
- package/lib/module/types/AdapterStatus.js.map +1 -1
- package/lib/module/types/AppEvent.js +1 -1
- package/lib/module/types/AppEvent.js.map +1 -1
- package/lib/module/types/BannerAdProps.js +2 -0
- package/lib/module/types/BannerAdProps.js.map +1 -1
- package/lib/module/types/MobileAd.interface.js +2 -0
- package/lib/module/types/MobileAd.interface.js.map +1 -1
- package/lib/module/types/MobileAdsModule.interface.js +2 -0
- package/lib/module/types/MobileAdsModule.interface.js.map +1 -1
- package/lib/module/types/NativeAdRequestOptions.js +2 -0
- package/lib/module/types/NativeAdRequestOptions.js.map +1 -1
- package/lib/module/types/PaidEventListener.js +2 -0
- package/lib/module/types/PaidEventListener.js.map +1 -1
- package/lib/module/types/RequestConfiguration.js +2 -0
- package/lib/module/types/RequestConfiguration.js.map +1 -1
- package/lib/module/types/RequestOptions.js +1 -1
- package/lib/module/types/RequestOptions.js.map +1 -1
- package/lib/module/types/RewardedAdReward.js +1 -1
- package/lib/module/types/RewardedAdReward.js.map +1 -1
- package/lib/module/types/index.js +2 -0
- package/lib/module/types/index.js.map +1 -1
- package/lib/module/validateAdRequestConfiguration.js +4 -2
- package/lib/module/validateAdRequestConfiguration.js.map +1 -1
- package/lib/module/validateAdRequestOptions.js +2 -0
- package/lib/module/validateAdRequestOptions.js.map +1 -1
- package/lib/module/validateAdShowOptions.js +2 -0
- package/lib/module/validateAdShowOptions.js.map +1 -1
- package/lib/module/validateNativeAdRequestOptions.js +5 -3
- package/lib/module/validateNativeAdRequestOptions.js.map +1 -1
- package/lib/module/version.js +3 -1
- package/lib/module/version.js.map +1 -1
- package/lib/typescript/AdsConsent.d.ts.map +1 -1
- package/lib/typescript/MobileAds.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/native-ad/NativeAdContext.d.ts +1 -1
- package/lib/typescript/ads/native-ad/NativeAdContext.d.ts.map +1 -1
- package/lib/typescript/ads/native-ad/NativeAdView.d.ts.map +1 -1
- package/lib/typescript/ads/native-ad/NativeAsset.d.ts +1 -1
- package/lib/typescript/ads/native-ad/NativeAsset.d.ts.map +1 -1
- package/lib/typescript/ads/native-ad/NativeMediaView.d.ts.map +1 -1
- package/lib/typescript/common/constants.d.ts +4 -4
- package/lib/typescript/common/constants.d.ts.map +1 -1
- package/lib/typescript/common/debounce.d.ts +1 -1
- package/lib/typescript/common/debounce.d.ts.map +1 -1
- package/lib/typescript/common/ref.d.ts.map +1 -1
- package/lib/typescript/hooks/useFullScreenAd.d.ts +1 -1
- package/lib/typescript/hooks/useFullScreenAd.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +1 -1
- package/lib/typescript/internal/GoogleMobileAdsNativeEventEmitter.d.ts +2 -3
- package/lib/typescript/internal/GoogleMobileAdsNativeEventEmitter.d.ts.map +1 -1
- package/lib/typescript/specs/components/GoogleMobileAdsBannerViewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/specs/components/GoogleMobileAdsNativeViewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/specs/modules/NativeGoogleMobileAdsModule.d.ts +0 -6
- package/lib/typescript/specs/modules/NativeGoogleMobileAdsModule.d.ts.map +1 -1
- package/lib/typescript/types/AdEventListener.d.ts.map +1 -1
- package/lib/typescript/validateAdRequestConfiguration.d.ts.map +1 -1
- package/lib/typescript/version.d.ts +1 -1
- package/package.json +40 -51
- package/plugin/__tests__/__snapshots__/plugin.test.ts.snap +79 -175
- package/plugin/tsconfig.tsbuildinfo +1 -0
- package/src/AdsConsent.ts +4 -7
- package/src/MobileAds.ts +2 -4
- package/src/ads/AppOpenAd.ts +2 -2
- package/src/ads/BannerAd.tsx +1 -1
- package/src/ads/BaseAd.tsx +1 -2
- package/src/ads/GAMBannerAd.tsx +1 -1
- package/src/ads/InterstitialAd.ts +2 -2
- package/src/ads/RewardedAd.ts +2 -2
- package/src/ads/RewardedInterstitialAd.ts +2 -2
- package/src/ads/native-ad/NativeAdContext.ts +1 -1
- package/src/ads/native-ad/NativeAdView.tsx +1 -1
- package/src/common/constants.ts +7 -13
- package/src/common/debounce.ts +2 -2
- package/src/common/ref.ts +7 -5
- package/src/hooks/useFullScreenAd.ts +19 -17
- package/src/internal/GoogleMobileAdsNativeEventEmitter.ts +11 -36
- package/src/specs/components/GoogleMobileAdsBannerViewNativeComponent.ts +2 -0
- package/src/specs/components/GoogleMobileAdsNativeViewNativeComponent.ts +1 -0
- package/src/specs/modules/NativeGoogleMobileAdsModule.ts +0 -7
- package/src/types/AdEventListener.ts +4 -4
- package/src/validateAdRequestConfiguration.ts +2 -7
- package/src/version.ts +1 -1
- package/lib/commonjs/specs/components/GoogleMobileAdsBannerViewNativeComponent.js +0 -33
- package/lib/commonjs/specs/components/GoogleMobileAdsBannerViewNativeComponent.js.map +0 -1
- package/lib/commonjs/specs/components/GoogleMobileAdsMediaViewNativeComponent.js +0 -26
- package/lib/commonjs/specs/components/GoogleMobileAdsMediaViewNativeComponent.js.map +0 -1
- package/lib/commonjs/specs/components/GoogleMobileAdsNativeViewNativeComponent.js +0 -31
- package/lib/commonjs/specs/components/GoogleMobileAdsNativeViewNativeComponent.js.map +0 -1
- package/lib/module/specs/components/GoogleMobileAdsBannerViewNativeComponent.js +0 -26
- package/lib/module/specs/components/GoogleMobileAdsBannerViewNativeComponent.js.map +0 -1
- package/lib/module/specs/components/GoogleMobileAdsMediaViewNativeComponent.js.map +0 -1
- package/lib/module/specs/components/GoogleMobileAdsNativeViewNativeComponent.js.map +0 -1
package/src/AdsConsent.ts
CHANGED
|
@@ -32,13 +32,10 @@ export const AdsConsent: AdsConsentInterface = {
|
|
|
32
32
|
throw new Error("AdsConsent.requestInfoUpdate(*) 'options' expected an object value.");
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
const debugGeography = options.debugGeography;
|
|
35
36
|
if (
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
options.debugGeography !== AdsConsentDebugGeography.EEA &&
|
|
39
|
-
options.debugGeography !== AdsConsentDebugGeography.NOT_EEA &&
|
|
40
|
-
options.debugGeography !== AdsConsentDebugGeography.REGULATED_US_STATE &&
|
|
41
|
-
options.debugGeography !== AdsConsentDebugGeography.OTHER
|
|
37
|
+
debugGeography !== undefined &&
|
|
38
|
+
!Object.values(AdsConsentDebugGeography).includes(debugGeography)
|
|
42
39
|
) {
|
|
43
40
|
throw new Error(
|
|
44
41
|
"AdsConsent.requestInfoUpdate(*) 'options.debugGeography' expected one of AdsConsentDebugGeography.DISABLED, AdsConsentDebugGeography.EEA, AdsConsentDebugGeography.NOT_EEA, AdsConsentDebugGeography.REGULATED_US_STATE or AdsConsentDebugGeography.OTHER.",
|
|
@@ -95,7 +92,7 @@ export const AdsConsent: AdsConsentInterface = {
|
|
|
95
92
|
},
|
|
96
93
|
|
|
97
94
|
reset() {
|
|
98
|
-
|
|
95
|
+
native.reset();
|
|
99
96
|
},
|
|
100
97
|
|
|
101
98
|
getTCString() {
|
package/src/MobileAds.ts
CHANGED
|
@@ -16,10 +16,8 @@ const nativeEvents = [
|
|
|
16
16
|
|
|
17
17
|
class MobileAdsModule implements MobileAdsModuleInterface {
|
|
18
18
|
constructor() {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
this.subscribeToNativeModuleEvent(nativeEvents[i]);
|
|
22
|
-
}
|
|
19
|
+
for (let i = 0, len = nativeEvents.length; i < len; i++) {
|
|
20
|
+
this.subscribeToNativeModuleEvent(nativeEvents[i]);
|
|
23
21
|
}
|
|
24
22
|
}
|
|
25
23
|
|
package/src/ads/AppOpenAd.ts
CHANGED
|
@@ -46,8 +46,8 @@ export class AppOpenAd extends MobileAd {
|
|
|
46
46
|
'app_open',
|
|
47
47
|
requestId,
|
|
48
48
|
adUnitId,
|
|
49
|
-
NativeAppOpenModule.appOpenLoad,
|
|
50
|
-
NativeAppOpenModule.appOpenShow,
|
|
49
|
+
NativeAppOpenModule.appOpenLoad.bind(this),
|
|
50
|
+
NativeAppOpenModule.appOpenShow.bind(this),
|
|
51
51
|
options,
|
|
52
52
|
);
|
|
53
53
|
}
|
package/src/ads/BannerAd.tsx
CHANGED
|
@@ -23,7 +23,7 @@ import GoogleMobileAdsBannerView, {
|
|
|
23
23
|
} from '../specs/components/GoogleMobileAdsBannerViewNativeComponent';
|
|
24
24
|
|
|
25
25
|
export class BannerAd extends React.Component<BannerAdProps> {
|
|
26
|
-
private ref = createRef<React.
|
|
26
|
+
private ref = createRef<React.ComponentRef<typeof GoogleMobileAdsBannerView>>();
|
|
27
27
|
|
|
28
28
|
load() {
|
|
29
29
|
if (this.ref.current) {
|
package/src/ads/BaseAd.tsx
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable react/prop-types */
|
|
2
1
|
/*
|
|
3
2
|
* Copyright (c) 2016-present Invertase Limited & Contributors
|
|
4
3
|
*
|
|
@@ -31,7 +30,7 @@ import { debounce } from '../common/debounce';
|
|
|
31
30
|
const sizeRegex = /([0-9]+)x([0-9]+)/;
|
|
32
31
|
|
|
33
32
|
export const BaseAd = React.forwardRef<
|
|
34
|
-
React.
|
|
33
|
+
React.ComponentRef<typeof GoogleMobileAdsBannerView>,
|
|
35
34
|
GAMBannerAdProps
|
|
36
35
|
>(
|
|
37
36
|
(
|
package/src/ads/GAMBannerAd.tsx
CHANGED
|
@@ -23,7 +23,7 @@ import GoogleMobileAdsBannerView, {
|
|
|
23
23
|
} from '../specs/components/GoogleMobileAdsBannerViewNativeComponent';
|
|
24
24
|
|
|
25
25
|
export class GAMBannerAd extends React.Component<GAMBannerAdProps> {
|
|
26
|
-
private ref = createRef<React.
|
|
26
|
+
private ref = createRef<React.ComponentRef<typeof GoogleMobileAdsBannerView>>();
|
|
27
27
|
|
|
28
28
|
recordManualImpression() {
|
|
29
29
|
if (this.ref.current) {
|
|
@@ -106,8 +106,8 @@ export class InterstitialAd extends MobileAd {
|
|
|
106
106
|
'interstitial',
|
|
107
107
|
requestId,
|
|
108
108
|
adUnitId,
|
|
109
|
-
NativeInterstitialModule.interstitialLoad,
|
|
110
|
-
NativeInterstitialModule.interstitialShow,
|
|
109
|
+
NativeInterstitialModule.interstitialLoad.bind(this),
|
|
110
|
+
NativeInterstitialModule.interstitialShow.bind(this),
|
|
111
111
|
options,
|
|
112
112
|
);
|
|
113
113
|
}
|
package/src/ads/RewardedAd.ts
CHANGED
|
@@ -116,8 +116,8 @@ export class RewardedAd extends MobileAd {
|
|
|
116
116
|
'rewarded',
|
|
117
117
|
requestId,
|
|
118
118
|
adUnitId,
|
|
119
|
-
NativeRewardedModule.rewardedLoad,
|
|
120
|
-
NativeRewardedModule.rewardedShow,
|
|
119
|
+
NativeRewardedModule.rewardedLoad.bind(this),
|
|
120
|
+
NativeRewardedModule.rewardedShow.bind(this),
|
|
121
121
|
options,
|
|
122
122
|
);
|
|
123
123
|
}
|
|
@@ -118,8 +118,8 @@ export class RewardedInterstitialAd extends MobileAd {
|
|
|
118
118
|
'rewarded_interstitial',
|
|
119
119
|
requestId,
|
|
120
120
|
adUnitId,
|
|
121
|
-
NativeRewardedInterstitialModule.rewardedInterstitialLoad,
|
|
122
|
-
NativeRewardedInterstitialModule.rewardedInterstitialShow,
|
|
121
|
+
NativeRewardedInterstitialModule.rewardedInterstitialLoad.bind(this),
|
|
122
|
+
NativeRewardedInterstitialModule.rewardedInterstitialShow.bind(this),
|
|
123
123
|
options,
|
|
124
124
|
);
|
|
125
125
|
}
|
|
@@ -21,6 +21,6 @@ import type GoogleMobileAdsNativeView from '../../specs/components/GoogleMobileA
|
|
|
21
21
|
|
|
22
22
|
type NativeAdContextType = {
|
|
23
23
|
nativeAd: NativeAd;
|
|
24
|
-
viewRef: RefObject<React.
|
|
24
|
+
viewRef: RefObject<React.ComponentRef<typeof GoogleMobileAdsNativeView> | null>;
|
|
25
25
|
};
|
|
26
26
|
export const NativeAdContext = createContext<NativeAdContextType>({} as NativeAdContextType);
|
|
@@ -27,7 +27,7 @@ export type NativeAdViewProps = ViewProps & {
|
|
|
27
27
|
|
|
28
28
|
export const NativeAdView = (props: NativeAdViewProps) => {
|
|
29
29
|
const { nativeAd, children, ...viewProps } = props;
|
|
30
|
-
const ref = useRef<React.
|
|
30
|
+
const ref = useRef<React.ComponentRef<typeof GoogleMobileAdsNativeView>>(null);
|
|
31
31
|
return (
|
|
32
32
|
<GoogleMobileAdsNativeView
|
|
33
33
|
{...viewProps}
|
package/src/common/constants.ts
CHANGED
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
REVENUE_PRECISION_ESTIMATED,
|
|
5
|
-
REVENUE_PRECISION_PRECISE,
|
|
6
|
-
REVENUE_PRECISION_PUBLISHER_PROVIDED,
|
|
7
|
-
REVENUE_PRECISION_UNKNOWN,
|
|
8
|
-
} = RNGoogleMobileAdsModule.getConstants?.() ?? {};
|
|
9
|
-
|
|
1
|
+
// See:
|
|
2
|
+
// https://developers.google.com/admob/android/reference/com/google/android/gms/ads/AdValue.PrecisionType
|
|
3
|
+
// https://developers.google.com/admob/ios/api/reference/Enums/GADAdValuePrecision
|
|
10
4
|
export enum RevenuePrecisions {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
PUBLISHER_PROVIDED =
|
|
14
|
-
|
|
5
|
+
UNKNOWN = 0,
|
|
6
|
+
ESTIMATED = 1,
|
|
7
|
+
PUBLISHER_PROVIDED = 2,
|
|
8
|
+
PRECISE = 3,
|
|
15
9
|
}
|
package/src/common/debounce.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export const debounce = <Arguments extends unknown[]
|
|
2
|
-
func: (...args: Arguments) =>
|
|
1
|
+
export const debounce = <Arguments extends unknown[]>(
|
|
2
|
+
func: (...args: Arguments) => unknown,
|
|
3
3
|
waitFor: number,
|
|
4
4
|
): ((...args: Arguments) => void) => {
|
|
5
5
|
let timeout: ReturnType<typeof setTimeout> | null = null;
|
package/src/common/ref.ts
CHANGED
|
@@ -14,21 +14,23 @@ interface ElementWithRef extends React.ReactElement {
|
|
|
14
14
|
*/
|
|
15
15
|
export function getElementRef(element: React.ReactElement): PossibleRef<unknown> {
|
|
16
16
|
// React <=18 in DEV
|
|
17
|
-
let getter = Object.getOwnPropertyDescriptor(element.props, 'ref')?.get;
|
|
17
|
+
let getter = Object.getOwnPropertyDescriptor(element.props, 'ref')?.get?.bind(element.props);
|
|
18
18
|
let mayWarn = getter && 'isReactWarning' in getter && getter.isReactWarning;
|
|
19
19
|
if (mayWarn) {
|
|
20
20
|
return (element as ElementWithRef).ref;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
// React 19 in DEV
|
|
24
|
-
getter = Object.getOwnPropertyDescriptor(element, 'ref')?.get;
|
|
24
|
+
getter = Object.getOwnPropertyDescriptor(element, 'ref')?.get?.bind(element);
|
|
25
25
|
mayWarn = getter && 'isReactWarning' in getter && getter.isReactWarning;
|
|
26
26
|
if (mayWarn) {
|
|
27
|
-
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
return element.props.ref; // eslint-disable-line
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
// Not DEV
|
|
31
|
-
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
return element.props.ref || (element as ElementWithRef).ref; // eslint-disable-line
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
export function composeRefs<T>(...refs: PossibleRef<T>[]) {
|
|
@@ -37,7 +39,7 @@ export function composeRefs<T>(...refs: PossibleRef<T>[]) {
|
|
|
37
39
|
if (typeof ref === 'function') {
|
|
38
40
|
ref(value);
|
|
39
41
|
} else if (ref !== null && ref !== undefined) {
|
|
40
|
-
|
|
42
|
+
ref.current = value;
|
|
41
43
|
}
|
|
42
44
|
});
|
|
43
45
|
};
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
|
-
import {
|
|
18
|
+
import { useCallback, useEffect, useReducer } from 'react';
|
|
19
19
|
|
|
20
20
|
import { AdEventType } from '../AdEventType';
|
|
21
21
|
import { AppOpenAd } from '../ads/AppOpenAd';
|
|
@@ -38,18 +38,18 @@ const initialState: AdStates = {
|
|
|
38
38
|
isEarnedReward: false,
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
export function useFullScreenAd
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
const [state,
|
|
45
|
-
(prevState, newState) => ({ ...prevState, ...newState }),
|
|
41
|
+
export function useFullScreenAd(
|
|
42
|
+
ad: AppOpenAd | InterstitialAd | RewardedAd | RewardedInterstitialAd | null,
|
|
43
|
+
): AdHookReturns {
|
|
44
|
+
const [state, dispatch] = useReducer(
|
|
45
|
+
(prevState, newState) => ({ ...prevState, ...newState }) as AdStates,
|
|
46
46
|
initialState,
|
|
47
47
|
);
|
|
48
48
|
const isShowing = state.isOpened && !state.isClosed;
|
|
49
49
|
|
|
50
50
|
const load = useCallback(() => {
|
|
51
51
|
if (ad) {
|
|
52
|
-
|
|
52
|
+
dispatch(initialState);
|
|
53
53
|
ad.load();
|
|
54
54
|
}
|
|
55
55
|
}, [ad]);
|
|
@@ -57,42 +57,44 @@ export function useFullScreenAd<
|
|
|
57
57
|
const show = useCallback(
|
|
58
58
|
(showOptions?: AdShowOptions) => {
|
|
59
59
|
if (ad) {
|
|
60
|
-
ad.show
|
|
60
|
+
// ad.show returns a promise but we don't await
|
|
61
|
+
// errors handled by library-consumer-provided functions
|
|
62
|
+
void ad.show(showOptions);
|
|
61
63
|
}
|
|
62
64
|
},
|
|
63
65
|
[ad],
|
|
64
66
|
);
|
|
65
67
|
|
|
66
68
|
useEffect(() => {
|
|
67
|
-
|
|
69
|
+
dispatch(initialState);
|
|
68
70
|
if (!ad) {
|
|
69
71
|
return;
|
|
70
72
|
}
|
|
71
73
|
const unsubscribe = (ad as RewardedAd).addAdEventsListener(({ type, payload }) => {
|
|
72
74
|
switch (type) {
|
|
73
75
|
case AdEventType.LOADED:
|
|
74
|
-
|
|
76
|
+
dispatch({ isLoaded: true });
|
|
75
77
|
break;
|
|
76
78
|
case AdEventType.OPENED:
|
|
77
|
-
|
|
79
|
+
dispatch({ isOpened: true });
|
|
78
80
|
break;
|
|
79
81
|
case AdEventType.PAID:
|
|
80
|
-
|
|
82
|
+
dispatch({ revenue: payload as unknown as PaidEvent });
|
|
81
83
|
break;
|
|
82
84
|
case AdEventType.CLOSED:
|
|
83
|
-
|
|
85
|
+
dispatch({ isClosed: true, isLoaded: false });
|
|
84
86
|
break;
|
|
85
87
|
case AdEventType.CLICKED:
|
|
86
|
-
|
|
88
|
+
dispatch({ isClicked: true });
|
|
87
89
|
break;
|
|
88
90
|
case AdEventType.ERROR:
|
|
89
|
-
|
|
91
|
+
dispatch({ error: payload as Error });
|
|
90
92
|
break;
|
|
91
93
|
case RewardedAdEventType.LOADED:
|
|
92
|
-
|
|
94
|
+
dispatch({ isLoaded: true, reward: payload as RewardedAdReward });
|
|
93
95
|
break;
|
|
94
96
|
case RewardedAdEventType.EARNED_REWARD:
|
|
95
|
-
|
|
97
|
+
dispatch({ isEarnedReward: true, reward: payload as RewardedAdReward });
|
|
96
98
|
break;
|
|
97
99
|
}
|
|
98
100
|
});
|
|
@@ -15,9 +15,15 @@
|
|
|
15
15
|
*
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
|
-
import { NativeEventEmitter, NativeModules,
|
|
18
|
+
import { NativeEventEmitter, NativeModules, NativeModule } from 'react-native';
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
type RNAppNativeModule = {
|
|
21
|
+
eventsNotifyReady: (ready: boolean) => void;
|
|
22
|
+
eventsAddListener: (eventType: string) => void;
|
|
23
|
+
eventsRemoveListener: (eventType: string, FIXME: boolean) => void;
|
|
24
|
+
} & NativeModule;
|
|
25
|
+
|
|
26
|
+
const RNAppModule = NativeModules.RNAppModule as RNAppNativeModule;
|
|
21
27
|
|
|
22
28
|
class GANativeEventEmitter extends NativeEventEmitter {
|
|
23
29
|
ready: boolean;
|
|
@@ -40,30 +46,11 @@ class GANativeEventEmitter extends NativeEventEmitter {
|
|
|
40
46
|
|
|
41
47
|
const subscription = super.addListener(`rnapp_${eventType}`, listener, context);
|
|
42
48
|
|
|
43
|
-
//
|
|
44
|
-
|
|
45
|
-
// - addListener returns an unsubscriber instead of a more complex object with eventType etc
|
|
46
|
-
|
|
47
|
-
// make sure eventType for backwards compatibility just in case
|
|
48
|
-
subscription.eventType = `rnapp_${eventType}`;
|
|
49
|
-
|
|
50
|
-
// New style is to return a remove function on the object, just in csae people call that,
|
|
51
|
-
// we will modify it to do our native unsubscription then call the original
|
|
52
|
-
const originalRemove = subscription.remove;
|
|
53
|
-
const newRemove = () => {
|
|
49
|
+
// override the default remove to unsubscribe our native listener, then call super
|
|
50
|
+
subscription.remove = () => {
|
|
54
51
|
RNAppModule.eventsRemoveListener(eventType, false);
|
|
55
|
-
|
|
56
|
-
// @ts-expect-error - "Property 'removeSubscription' does not exist on type 'NativeEventEmitter"
|
|
57
|
-
if (super.removeSubscription != null) {
|
|
58
|
-
// This is for RN <= 0.64 - 65 and greater no longer have removeSubscription
|
|
59
|
-
// @ts-expect-error - "Property 'removeSubscription' does not exist on type 'NativeEventEmitter"
|
|
60
|
-
super.removeSubscription(subscription);
|
|
61
|
-
} else if (originalRemove != null) {
|
|
62
|
-
// This is for RN >= 0.65
|
|
63
|
-
originalRemove();
|
|
64
|
-
}
|
|
52
|
+
subscription.remove();
|
|
65
53
|
};
|
|
66
|
-
subscription.remove = newRemove;
|
|
67
54
|
return subscription;
|
|
68
55
|
}
|
|
69
56
|
|
|
@@ -71,18 +58,6 @@ class GANativeEventEmitter extends NativeEventEmitter {
|
|
|
71
58
|
RNAppModule.eventsRemoveListener(eventType, true);
|
|
72
59
|
super.removeAllListeners(`rnapp_${eventType}`);
|
|
73
60
|
}
|
|
74
|
-
|
|
75
|
-
// This is likely no longer ever called, but it is here for backwards compatibility with RN <= 0.64
|
|
76
|
-
removeSubscription(subscription: EmitterSubscription) {
|
|
77
|
-
RNAppModule.eventsRemoveListener(subscription.eventType.replace('rnapp_', ''), false);
|
|
78
|
-
// This is for RN <= 0.64 - 65 and greater no longer have removeSubscription
|
|
79
|
-
// @ts-expect-error - "Property 'removeSubscription' does not exist on type 'NativeEventEmitter"
|
|
80
|
-
if (super.removeSubscription != null) {
|
|
81
|
-
// This is for RN <= 0.64 - 65 and greater no longer have removeSubscription
|
|
82
|
-
// @ts-expect-error - "Property 'removeSubscription' does not exist on type 'NativeEventEmitter"
|
|
83
|
-
super.removeSubscription(subscription);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
61
|
}
|
|
87
62
|
|
|
88
63
|
export const GoogleMobileAdsNativeEventEmitter = new GANativeEventEmitter();
|
|
@@ -45,7 +45,9 @@ export interface NativeProps extends ViewProps {
|
|
|
45
45
|
export type ComponentType = HostComponent<NativeProps>;
|
|
46
46
|
|
|
47
47
|
interface NativeCommands {
|
|
48
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated -- https://github.com/facebook/react-native/issues/54272
|
|
48
49
|
recordManualImpression: (viewRef: React.ElementRef<ComponentType>) => void;
|
|
50
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated -- https://github.com/facebook/react-native/issues/54272
|
|
49
51
|
load: (viewRef: React.ElementRef<ComponentType>) => void;
|
|
50
52
|
}
|
|
51
53
|
|
|
@@ -29,6 +29,7 @@ type NativeViewComponentType = HostComponent<NativeProps>;
|
|
|
29
29
|
|
|
30
30
|
interface NativeCommands {
|
|
31
31
|
registerAsset: (
|
|
32
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated -- https://github.com/facebook/react-native/issues/54272
|
|
32
33
|
viewRef: React.ElementRef<NativeViewComponentType>,
|
|
33
34
|
assetType: string,
|
|
34
35
|
reactTag: Int32,
|
|
@@ -22,13 +22,6 @@ import type { UnsafeObject } from 'react-native/Libraries/Types/CodegenTypes';
|
|
|
22
22
|
import { AdapterStatus } from '../../types';
|
|
23
23
|
|
|
24
24
|
export interface Spec extends TurboModule {
|
|
25
|
-
readonly getConstants: () => {
|
|
26
|
-
REVENUE_PRECISION_ESTIMATED: number;
|
|
27
|
-
REVENUE_PRECISION_PRECISE: number;
|
|
28
|
-
REVENUE_PRECISION_PUBLISHER_PROVIDED: number;
|
|
29
|
-
REVENUE_PRECISION_UNKNOWN: number;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
25
|
initialize(): Promise<AdapterStatus[]>;
|
|
33
26
|
setRequestConfiguration(requestConfiguration?: UnsafeObject): Promise<void>;
|
|
34
27
|
openAdInspector(): Promise<void>;
|
|
@@ -25,10 +25,10 @@ export type AdEventPayload<T extends AdEventType | RewardedAdEventType | GAMAdEv
|
|
|
25
25
|
T extends AdEventType.ERROR
|
|
26
26
|
? Error
|
|
27
27
|
: T extends RewardedAdEventType
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
? RewardedAdReward
|
|
29
|
+
: T extends GAMAdEventType
|
|
30
|
+
? AppEvent
|
|
31
|
+
: undefined;
|
|
32
32
|
|
|
33
33
|
export type AdEventListener<T extends AdEventType | RewardedAdEventType | GAMAdEventType = never> =
|
|
34
34
|
(payload: AdEventPayload<T>) => void;
|
|
@@ -27,14 +27,9 @@ export function validateAdRequestConfiguration(requestConfiguration: RequestConf
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
if (requestConfiguration.maxAdContentRating) {
|
|
30
|
-
if (
|
|
31
|
-
requestConfiguration.maxAdContentRating !== MaxAdContentRating.G &&
|
|
32
|
-
requestConfiguration.maxAdContentRating !== MaxAdContentRating.PG &&
|
|
33
|
-
requestConfiguration.maxAdContentRating !== MaxAdContentRating.T &&
|
|
34
|
-
requestConfiguration.maxAdContentRating !== MaxAdContentRating.MA
|
|
35
|
-
) {
|
|
30
|
+
if (!Object.values(MaxAdContentRating).includes(requestConfiguration.maxAdContentRating)) {
|
|
36
31
|
throw new Error(
|
|
37
|
-
|
|
32
|
+
`'requestConfiguration.maxAdContentRating' expected one of ${Object.values(MaxAdContentRating).join(', ')}`,
|
|
38
33
|
);
|
|
39
34
|
}
|
|
40
35
|
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '
|
|
2
|
+
export const version = '16.0.1';
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.Commands = void 0;
|
|
7
|
-
var _codegenNativeComponent = _interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));
|
|
8
|
-
var _codegenNativeCommands = _interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeCommands"));
|
|
9
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
-
/*
|
|
11
|
-
* Copyright (c) 2016-present Invertase Limited & Contributors
|
|
12
|
-
*
|
|
13
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
14
|
-
* you may not use this library except in compliance with the License.
|
|
15
|
-
* You may obtain a copy of the License at
|
|
16
|
-
*
|
|
17
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
18
|
-
*
|
|
19
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
20
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
21
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
22
|
-
* See the License for the specific language governing permissions and
|
|
23
|
-
* limitations under the License.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
|
-
|
|
27
|
-
// SyntaxError "'Commands' is a reserved export and may only be used to export the result of codegenNativeCommands"
|
|
28
|
-
// @ts-ignore -- migration to react-native 0.73+
|
|
29
|
-
const Commands = exports.Commands = (0, _codegenNativeCommands.default)({
|
|
30
|
-
supportedCommands: ['recordManualImpression', 'load']
|
|
31
|
-
});
|
|
32
|
-
var _default = exports.default = (0, _codegenNativeComponent.default)('RNGoogleMobileAdsBannerView');
|
|
33
|
-
//# sourceMappingURL=GoogleMobileAdsBannerViewNativeComponent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_codegenNativeComponent","_interopRequireDefault","require","_codegenNativeCommands","e","__esModule","default","Commands","exports","codegenNativeCommands","supportedCommands","_default","codegenNativeComponent"],"sourceRoot":"../../../../src","sources":["specs/components/GoogleMobileAdsBannerViewNativeComponent.ts"],"mappings":";;;;;;AAoBA,IAAAA,uBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAF,sBAAA,CAAAC,OAAA;AAA2F,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AArB3F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAoCA;AACA;AACO,MAAMG,QAAwB,GAAAC,OAAA,CAAAD,QAAA,GAAG,IAAAE,8BAAqB,EAAiB;EAC5EC,iBAAiB,EAAE,CAAC,wBAAwB,EAAE,MAAM;AACtD,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAH,OAAA,CAAAF,OAAA,GAEY,IAAAM,+BAAsB,EACnC,6BACF,CAAC","ignoreList":[]}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _codegenNativeComponent = _interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));
|
|
8
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
-
/*
|
|
10
|
-
* Copyright (c) 2016-present Invertase Limited & Contributors
|
|
11
|
-
*
|
|
12
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
13
|
-
* you may not use this library except in compliance with the License.
|
|
14
|
-
* You may obtain a copy of the License at
|
|
15
|
-
*
|
|
16
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
|
-
*
|
|
18
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
19
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
20
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
21
|
-
* See the License for the specific language governing permissions and
|
|
22
|
-
* limitations under the License.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
|
-
var _default = exports.default = (0, _codegenNativeComponent.default)('RNGoogleMobileAdsMediaView');
|
|
26
|
-
//# sourceMappingURL=GoogleMobileAdsMediaViewNativeComponent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_codegenNativeComponent","_interopRequireDefault","require","e","__esModule","default","_default","exports","codegenNativeComponent"],"sourceRoot":"../../../../src","sources":["specs/components/GoogleMobileAdsMediaViewNativeComponent.ts"],"mappings":";;;;;;AAkBA,IAAAA,uBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA6F,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAlB7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAfA,IAAAG,QAAA,GAAAC,OAAA,CAAAF,OAAA,GA2Be,IAAAG,+BAAsB,EACnC,4BACF,CAAC","ignoreList":[]}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.Commands = void 0;
|
|
7
|
-
var _codegenNativeComponent = _interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));
|
|
8
|
-
var _codegenNativeCommands = _interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeCommands"));
|
|
9
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
-
/*
|
|
11
|
-
* Copyright (c) 2016-present Invertase Limited & Contributors
|
|
12
|
-
*
|
|
13
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
14
|
-
* you may not use this library except in compliance with the License.
|
|
15
|
-
* You may obtain a copy of the License at
|
|
16
|
-
*
|
|
17
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
18
|
-
*
|
|
19
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
20
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
21
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
22
|
-
* See the License for the specific language governing permissions and
|
|
23
|
-
* limitations under the License.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
|
-
|
|
27
|
-
const Commands = exports.Commands = (0, _codegenNativeCommands.default)({
|
|
28
|
-
supportedCommands: ['registerAsset']
|
|
29
|
-
});
|
|
30
|
-
var _default = exports.default = (0, _codegenNativeComponent.default)('RNGoogleMobileAdsNativeView');
|
|
31
|
-
//# sourceMappingURL=GoogleMobileAdsNativeViewNativeComponent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_codegenNativeComponent","_interopRequireDefault","require","_codegenNativeCommands","e","__esModule","default","Commands","exports","codegenNativeCommands","supportedCommands","_default","codegenNativeComponent"],"sourceRoot":"../../../../src","sources":["specs/components/GoogleMobileAdsNativeViewNativeComponent.ts"],"mappings":";;;;;;AAmBA,IAAAA,uBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAF,sBAAA,CAAAC,OAAA;AAA2F,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AApB3F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAsBO,MAAMG,QAAwB,GAAAC,OAAA,CAAAD,QAAA,GAAG,IAAAE,8BAAqB,EAAiB;EAC5EC,iBAAiB,EAAE,CAAC,eAAe;AACrC,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAH,OAAA,CAAAF,OAAA,GAEY,IAAAM,+BAAsB,EACnC,6BACF,CAAC","ignoreList":[]}
|
|
@@ -1,26 +0,0 @@
|
|
|
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
|
-
|
|
18
|
-
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
19
|
-
import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';
|
|
20
|
-
// SyntaxError "'Commands' is a reserved export and may only be used to export the result of codegenNativeCommands"
|
|
21
|
-
// @ts-ignore -- migration to react-native 0.73+
|
|
22
|
-
export const Commands = codegenNativeCommands({
|
|
23
|
-
supportedCommands: ['recordManualImpression', 'load']
|
|
24
|
-
});
|
|
25
|
-
export default codegenNativeComponent('RNGoogleMobileAdsBannerView');
|
|
26
|
-
//# sourceMappingURL=GoogleMobileAdsBannerViewNativeComponent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["codegenNativeComponent","codegenNativeCommands","Commands","supportedCommands"],"sourceRoot":"../../../../src","sources":["specs/components/GoogleMobileAdsBannerViewNativeComponent.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAKA,OAAOA,sBAAsB,MAAM,yDAAyD;AAC5F,OAAOC,qBAAqB,MAAM,wDAAwD;AA8B1F;AACA;AACA,OAAO,MAAMC,QAAwB,GAAGD,qBAAqB,CAAiB;EAC5EE,iBAAiB,EAAE,CAAC,wBAAwB,EAAE,MAAM;AACtD,CAAC,CAAC;AAEF,eAAeH,sBAAsB,CACnC,6BACF,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["codegenNativeComponent"],"sourceRoot":"../../../../src","sources":["specs/components/GoogleMobileAdsMediaViewNativeComponent.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,OAAOA,sBAAsB,MAAM,yDAAyD;AAS5F,eAAeA,sBAAsB,CACnC,4BACF,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["codegenNativeComponent","codegenNativeCommands","Commands","supportedCommands"],"sourceRoot":"../../../../src","sources":["specs/components/GoogleMobileAdsNativeViewNativeComponent.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,OAAOA,sBAAsB,MAAM,yDAAyD;AAC5F,OAAOC,qBAAqB,MAAM,wDAAwD;AAiB1F,OAAO,MAAMC,QAAwB,GAAGD,qBAAqB,CAAiB;EAC5EE,iBAAiB,EAAE,CAAC,eAAe;AACrC,CAAC,CAAC;AAEF,eAAeH,sBAAsB,CACnC,6BACF,CAAC","ignoreList":[]}
|