react-native-google-mobile-ads 14.2.2 → 14.2.4
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__/banner.test.tsx +14 -0
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsModule.kt +166 -0
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsPackage.kt +42 -0
- package/docs/european-user-consent.mdx +4 -3
- package/docs/index.mdx +6 -6
- package/docs/testing.mdx +17 -0
- package/docs.json +2 -1
- package/jest.setup.ts +1 -4
- package/lib/commonjs/validateAdRequestOptions.js +3 -0
- package/lib/commonjs/validateAdRequestOptions.js.map +1 -1
- package/lib/commonjs/version.js +1 -1
- package/lib/module/validateAdRequestOptions.js +3 -0
- package/lib/module/validateAdRequestOptions.js.map +1 -1
- package/lib/module/version.js +1 -1
- package/lib/typescript/src/AdEventType.d.ts.map +1 -0
- package/lib/typescript/src/AdsConsent.d.ts.map +1 -0
- package/lib/typescript/src/AdsConsentDebugGeography.d.ts.map +1 -0
- package/lib/typescript/src/AdsConsentPrivacyOptionsRequirementStatus.d.ts.map +1 -0
- package/lib/typescript/src/AdsConsentPurposes.d.ts.map +1 -0
- package/lib/typescript/src/AdsConsentSpecialFeatures.d.ts.map +1 -0
- package/lib/typescript/src/AdsConsentStatus.d.ts.map +1 -0
- package/lib/typescript/src/BannerAdSize.d.ts.map +1 -0
- package/lib/typescript/src/GAMAdEventType.d.ts.map +1 -0
- package/lib/typescript/src/MaxAdContentRating.d.ts.map +1 -0
- package/lib/typescript/src/MobileAds.d.ts.map +1 -0
- package/lib/typescript/src/NativeGoogleMobileAdsModule.d.ts.map +1 -0
- package/lib/typescript/src/RewardedAdEventType.d.ts.map +1 -0
- package/lib/typescript/src/TestIds.d.ts.map +1 -0
- package/lib/typescript/src/ads/AppOpenAd.d.ts.map +1 -0
- package/lib/typescript/src/ads/BannerAd.d.ts.map +1 -0
- package/lib/typescript/src/ads/BaseAd.d.ts.map +1 -0
- package/lib/typescript/src/ads/GAMBannerAd.d.ts.map +1 -0
- package/lib/typescript/src/ads/GAMInterstitialAd.d.ts.map +1 -0
- package/lib/typescript/src/ads/GoogleMobileAdsBannerViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/ads/InterstitialAd.d.ts.map +1 -0
- package/lib/typescript/src/ads/MobileAd.d.ts.map +1 -0
- package/lib/typescript/src/ads/RewardedAd.d.ts.map +1 -0
- package/lib/typescript/src/ads/RewardedInterstitialAd.d.ts.map +1 -0
- package/lib/typescript/src/common/constants.d.ts.map +1 -0
- package/lib/typescript/src/common/debounce.d.ts.map +1 -0
- package/lib/typescript/src/common/index.d.ts.map +1 -0
- package/lib/typescript/src/common/validate.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useAppOpenAd.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useForeground.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useFullScreenAd.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useInterstitialAd.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useRewardedAd.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useRewardedInterstitialAd.d.ts.map +1 -0
- package/lib/typescript/{index.d.ts → src/index.d.ts} +1 -1
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/internal/GoogleMobileAdsNativeEventEmitter.d.ts.map +1 -0
- package/lib/typescript/src/internal/NativeError.d.ts.map +1 -0
- package/lib/typescript/src/internal/SharedEventEmitter.d.ts.map +1 -0
- package/lib/typescript/src/types/AdEventListener.d.ts.map +1 -0
- package/lib/typescript/src/types/AdEventsListener.d.ts.map +1 -0
- package/lib/typescript/src/types/AdShowOptions.d.ts.map +1 -0
- package/lib/typescript/src/types/AdStates.d.ts.map +1 -0
- package/lib/typescript/src/types/AdapterStatus.d.ts.map +1 -0
- package/lib/typescript/src/types/AdsConsent.interface.d.ts.map +1 -0
- package/lib/typescript/src/types/AppEvent.d.ts.map +1 -0
- package/lib/typescript/src/types/BannerAdProps.d.ts.map +1 -0
- package/lib/typescript/src/types/MobileAd.interface.d.ts.map +1 -0
- package/lib/typescript/src/types/MobileAdsModule.interface.d.ts.map +1 -0
- package/lib/typescript/src/types/PaidEventListener.d.ts.map +1 -0
- package/lib/typescript/src/types/RequestConfiguration.d.ts.map +1 -0
- package/lib/typescript/src/types/RequestOptions.d.ts.map +1 -0
- package/lib/typescript/src/types/RewardedAdReward.d.ts.map +1 -0
- package/lib/typescript/src/types/index.d.ts.map +1 -0
- package/lib/typescript/src/validateAdRequestConfiguration.d.ts.map +1 -0
- package/lib/typescript/src/validateAdRequestOptions.d.ts.map +1 -0
- package/lib/typescript/src/validateAdShowOptions.d.ts.map +1 -0
- package/lib/typescript/src/version.d.ts +2 -0
- package/lib/typescript/src/version.d.ts.map +1 -0
- package/lib/typescript/type-test.d.ts +2 -0
- package/lib/typescript/type-test.d.ts.map +1 -0
- package/package.json +4 -4
- package/plugin/__tests__/__snapshots__/plugin.test.ts.snap +278 -0
- package/plugin/__tests__/fixtures/app.config.js +24 -0
- package/plugin/__tests__/fixtures/app.config.ts +24 -0
- package/plugin/__tests__/fixtures/without-params/app.config.js +11 -0
- package/plugin/__tests__/fixtures/without-params/app.config.ts +11 -0
- package/plugin/__tests__/plugin.test.ts +13 -10
- package/src/validateAdRequestOptions.ts +3 -0
- package/src/version.ts +1 -1
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsModule.java +0 -207
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsPackage.java +0 -49
- package/lib/typescript/AdEventType.d.ts.map +0 -1
- package/lib/typescript/AdsConsent.d.ts.map +0 -1
- package/lib/typescript/AdsConsentDebugGeography.d.ts.map +0 -1
- package/lib/typescript/AdsConsentPrivacyOptionsRequirementStatus.d.ts.map +0 -1
- package/lib/typescript/AdsConsentPurposes.d.ts.map +0 -1
- package/lib/typescript/AdsConsentSpecialFeatures.d.ts.map +0 -1
- package/lib/typescript/AdsConsentStatus.d.ts.map +0 -1
- package/lib/typescript/BannerAdSize.d.ts.map +0 -1
- package/lib/typescript/GAMAdEventType.d.ts.map +0 -1
- package/lib/typescript/MaxAdContentRating.d.ts.map +0 -1
- package/lib/typescript/MobileAds.d.ts.map +0 -1
- package/lib/typescript/NativeGoogleMobileAdsModule.d.ts.map +0 -1
- package/lib/typescript/RewardedAdEventType.d.ts.map +0 -1
- package/lib/typescript/TestIds.d.ts.map +0 -1
- package/lib/typescript/ads/AppOpenAd.d.ts.map +0 -1
- package/lib/typescript/ads/BannerAd.d.ts.map +0 -1
- package/lib/typescript/ads/BaseAd.d.ts.map +0 -1
- package/lib/typescript/ads/GAMBannerAd.d.ts.map +0 -1
- package/lib/typescript/ads/GAMInterstitialAd.d.ts.map +0 -1
- package/lib/typescript/ads/GoogleMobileAdsBannerViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/ads/InterstitialAd.d.ts.map +0 -1
- package/lib/typescript/ads/MobileAd.d.ts.map +0 -1
- package/lib/typescript/ads/RewardedAd.d.ts.map +0 -1
- package/lib/typescript/ads/RewardedInterstitialAd.d.ts.map +0 -1
- package/lib/typescript/common/constants.d.ts.map +0 -1
- package/lib/typescript/common/debounce.d.ts.map +0 -1
- package/lib/typescript/common/index.d.ts.map +0 -1
- package/lib/typescript/common/validate.d.ts.map +0 -1
- package/lib/typescript/hooks/useAppOpenAd.d.ts.map +0 -1
- package/lib/typescript/hooks/useForeground.d.ts.map +0 -1
- package/lib/typescript/hooks/useFullScreenAd.d.ts.map +0 -1
- package/lib/typescript/hooks/useInterstitialAd.d.ts.map +0 -1
- package/lib/typescript/hooks/useRewardedAd.d.ts.map +0 -1
- package/lib/typescript/hooks/useRewardedInterstitialAd.d.ts.map +0 -1
- package/lib/typescript/index.d.ts.map +0 -1
- package/lib/typescript/internal/GoogleMobileAdsNativeEventEmitter.d.ts.map +0 -1
- package/lib/typescript/internal/NativeError.d.ts.map +0 -1
- package/lib/typescript/internal/SharedEventEmitter.d.ts.map +0 -1
- package/lib/typescript/types/AdEventListener.d.ts.map +0 -1
- package/lib/typescript/types/AdEventsListener.d.ts.map +0 -1
- package/lib/typescript/types/AdShowOptions.d.ts.map +0 -1
- package/lib/typescript/types/AdStates.d.ts.map +0 -1
- package/lib/typescript/types/AdapterStatus.d.ts.map +0 -1
- package/lib/typescript/types/AdsConsent.interface.d.ts.map +0 -1
- package/lib/typescript/types/AppEvent.d.ts.map +0 -1
- package/lib/typescript/types/BannerAdProps.d.ts.map +0 -1
- package/lib/typescript/types/MobileAd.interface.d.ts.map +0 -1
- package/lib/typescript/types/MobileAdsModule.interface.d.ts.map +0 -1
- package/lib/typescript/types/PaidEventListener.d.ts.map +0 -1
- package/lib/typescript/types/RequestConfiguration.d.ts.map +0 -1
- package/lib/typescript/types/RequestOptions.d.ts.map +0 -1
- package/lib/typescript/types/RewardedAdReward.d.ts.map +0 -1
- package/lib/typescript/types/index.d.ts.map +0 -1
- package/lib/typescript/validateAdRequestConfiguration.d.ts.map +0 -1
- package/lib/typescript/validateAdRequestOptions.d.ts.map +0 -1
- package/lib/typescript/validateAdShowOptions.d.ts.map +0 -1
- package/lib/typescript/version.d.ts +0 -2
- package/lib/typescript/version.d.ts.map +0 -1
- /package/lib/typescript/{AdEventType.d.ts → src/AdEventType.d.ts} +0 -0
- /package/lib/typescript/{AdsConsent.d.ts → src/AdsConsent.d.ts} +0 -0
- /package/lib/typescript/{AdsConsentDebugGeography.d.ts → src/AdsConsentDebugGeography.d.ts} +0 -0
- /package/lib/typescript/{AdsConsentPrivacyOptionsRequirementStatus.d.ts → src/AdsConsentPrivacyOptionsRequirementStatus.d.ts} +0 -0
- /package/lib/typescript/{AdsConsentPurposes.d.ts → src/AdsConsentPurposes.d.ts} +0 -0
- /package/lib/typescript/{AdsConsentSpecialFeatures.d.ts → src/AdsConsentSpecialFeatures.d.ts} +0 -0
- /package/lib/typescript/{AdsConsentStatus.d.ts → src/AdsConsentStatus.d.ts} +0 -0
- /package/lib/typescript/{BannerAdSize.d.ts → src/BannerAdSize.d.ts} +0 -0
- /package/lib/typescript/{GAMAdEventType.d.ts → src/GAMAdEventType.d.ts} +0 -0
- /package/lib/typescript/{MaxAdContentRating.d.ts → src/MaxAdContentRating.d.ts} +0 -0
- /package/lib/typescript/{MobileAds.d.ts → src/MobileAds.d.ts} +0 -0
- /package/lib/typescript/{NativeGoogleMobileAdsModule.d.ts → src/NativeGoogleMobileAdsModule.d.ts} +0 -0
- /package/lib/typescript/{RewardedAdEventType.d.ts → src/RewardedAdEventType.d.ts} +0 -0
- /package/lib/typescript/{TestIds.d.ts → src/TestIds.d.ts} +0 -0
- /package/lib/typescript/{ads → src/ads}/AppOpenAd.d.ts +0 -0
- /package/lib/typescript/{ads → src/ads}/BannerAd.d.ts +0 -0
- /package/lib/typescript/{ads → src/ads}/BaseAd.d.ts +0 -0
- /package/lib/typescript/{ads → src/ads}/GAMBannerAd.d.ts +0 -0
- /package/lib/typescript/{ads → src/ads}/GAMInterstitialAd.d.ts +0 -0
- /package/lib/typescript/{ads → src/ads}/GoogleMobileAdsBannerViewNativeComponent.d.ts +0 -0
- /package/lib/typescript/{ads → src/ads}/InterstitialAd.d.ts +0 -0
- /package/lib/typescript/{ads → src/ads}/MobileAd.d.ts +0 -0
- /package/lib/typescript/{ads → src/ads}/RewardedAd.d.ts +0 -0
- /package/lib/typescript/{ads → src/ads}/RewardedInterstitialAd.d.ts +0 -0
- /package/lib/typescript/{common → src/common}/constants.d.ts +0 -0
- /package/lib/typescript/{common → src/common}/debounce.d.ts +0 -0
- /package/lib/typescript/{common → src/common}/index.d.ts +0 -0
- /package/lib/typescript/{common → src/common}/validate.d.ts +0 -0
- /package/lib/typescript/{hooks → src/hooks}/useAppOpenAd.d.ts +0 -0
- /package/lib/typescript/{hooks → src/hooks}/useForeground.d.ts +0 -0
- /package/lib/typescript/{hooks → src/hooks}/useFullScreenAd.d.ts +0 -0
- /package/lib/typescript/{hooks → src/hooks}/useInterstitialAd.d.ts +0 -0
- /package/lib/typescript/{hooks → src/hooks}/useRewardedAd.d.ts +0 -0
- /package/lib/typescript/{hooks → src/hooks}/useRewardedInterstitialAd.d.ts +0 -0
- /package/lib/typescript/{internal → src/internal}/GoogleMobileAdsNativeEventEmitter.d.ts +0 -0
- /package/lib/typescript/{internal → src/internal}/NativeError.d.ts +0 -0
- /package/lib/typescript/{internal → src/internal}/SharedEventEmitter.d.ts +0 -0
- /package/lib/typescript/{types → src/types}/AdEventListener.d.ts +0 -0
- /package/lib/typescript/{types → src/types}/AdEventsListener.d.ts +0 -0
- /package/lib/typescript/{types → src/types}/AdShowOptions.d.ts +0 -0
- /package/lib/typescript/{types → src/types}/AdStates.d.ts +0 -0
- /package/lib/typescript/{types → src/types}/AdapterStatus.d.ts +0 -0
- /package/lib/typescript/{types → src/types}/AdsConsent.interface.d.ts +0 -0
- /package/lib/typescript/{types → src/types}/AppEvent.d.ts +0 -0
- /package/lib/typescript/{types → src/types}/BannerAdProps.d.ts +0 -0
- /package/lib/typescript/{types → src/types}/MobileAd.interface.d.ts +0 -0
- /package/lib/typescript/{types → src/types}/MobileAdsModule.interface.d.ts +0 -0
- /package/lib/typescript/{types → src/types}/PaidEventListener.d.ts +0 -0
- /package/lib/typescript/{types → src/types}/RequestConfiguration.d.ts +0 -0
- /package/lib/typescript/{types → src/types}/RequestOptions.d.ts +0 -0
- /package/lib/typescript/{types → src/types}/RewardedAdReward.d.ts +0 -0
- /package/lib/typescript/{types → src/types}/index.d.ts +0 -0
- /package/lib/typescript/{validateAdRequestConfiguration.d.ts → src/validateAdRequestConfiguration.d.ts} +0 -0
- /package/lib/typescript/{validateAdRequestOptions.d.ts → src/validateAdRequestOptions.d.ts} +0 -0
- /package/lib/typescript/{validateAdShowOptions.d.ts → src/validateAdShowOptions.d.ts} +0 -0
- /package/plugin/__tests__/fixtures/{app-without-params.json → without-params/app.json} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GoogleMobileAdsNativeEventEmitter.d.ts","sourceRoot":"","sources":["../../../../src/internal/GoogleMobileAdsNativeEventEmitter.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,kBAAkB,EAAiB,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAItF,cAAM,oBAAqB,SAAQ,kBAAkB;IACnD,KAAK,EAAE,OAAO,CAAC;;IAOf,WAAW,CACT,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,CAAC,KAAK,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,EAClE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAqCnC,kBAAkB,CAAC,SAAS,EAAE,MAAM;IAMpC,kBAAkB,CAAC,YAAY,EAAE,mBAAmB;CAUrD;AAED,eAAO,MAAM,iCAAiC,sBAA6B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeError.d.ts","sourceRoot":"","sources":["../../../../src/internal/NativeError.ts"],"names":[],"mappings":"AAiBA,qBAAa,WAAY,SAAQ,KAAK;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAE5C,MAAM,CAAC,SAAS,CACd,UAAU,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAC7C,SAAS,EAAE,MAAM,EACjB,KAAK,CAAC,EAAE,MAAM;gBAMd,WAAW,EAAE;QAAE,QAAQ,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,EAC5D,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM;IAYnB;;;;OAIG;IACH,MAAM,CAAC,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;CAG5D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SharedEventEmitter.d.ts","sourceRoot":"","sources":["../../../../src/internal/SharedEventEmitter.ts"],"names":[],"mappings":"AAiBA,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAE9E,eAAO,MAAM,kBAAkB,EAAE,YAAiC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AdEventListener.d.ts","sourceRoot":"","sources":["../../../../src/types/AdEventListener.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,WAAW,GAAG,mBAAmB,GAAG,cAAc,GAAG,KAAK,IAC7F,CAAC,SAAS,WAAW,CAAC,KAAK,GACvB,KAAK,GACL,CAAC,SAAS,mBAAmB,GAC7B,gBAAgB,GAChB,CAAC,SAAS,cAAc,GACxB,QAAQ,GACR,SAAS,CAAC;AAEhB,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,WAAW,GAAG,mBAAmB,GAAG,cAAc,GAAG,KAAK,IAC9F,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AdEventsListener.d.ts","sourceRoot":"","sources":["../../../../src/types/AdEventsListener.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,WAAW,GAAG,mBAAmB,GAAG,cAAc,GAAG,KAAK,IAC/F,CAAC,SAAS,EAAE;IAAE,IAAI,EAAE,CAAC,CAAC;IAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC,CAAA;CAAE,KAAK,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AdShowOptions.d.ts","sourceRoot":"","sources":["../../../../src/types/AdShowOptions.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AdStates.d.ts","sourceRoot":"","sources":["../../../../src/types/AdStates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,aAAc,SAAQ,QAAQ;IAC7C;;;OAGG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;;;;;;;;;;;;;OAcG;IACH,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,IAAI,EAAE,CAAC,WAAW,CAAC,EAAE,aAAa,KAAK,IAAI,CAAC;CAC7C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AdapterStatus.d.ts","sourceRoot":"","sources":["../../../../src/types/AdapterStatus.ts"],"names":[],"mappings":"AAAA,oBAAY,mBAAmB;IAC7B;;OAEG;IACH,kCAAkC,IAAI;IAEtC;;OAEG;IACH,+BAA+B,IAAI;CACpC;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,mBAAmB,CAAC;CAC5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AdsConsent.interface.d.ts","sourceRoot":"","sources":["../../../../src/types/AdsConsent.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,yCAAyC,EAAE,MAAM,8CAA8C,CAAC;AAEzG;;;;;;;;;;GAUG;AAEH,MAAM,WAAW,mBAAmB;IAClC;;;;;;;;;;;;;;;OAeG;IACH,iBAAiB,CAAC,OAAO,CAAC,EAAE,qBAAqB,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAE5E;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,QAAQ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;;OAoBG;IACH,6CAA6C,EAAE,OAAO,CAAC;IACvD;;;;;;;;;;;OAWG;IACH,6BAA6B,EAAE,OAAO,CAAC;IACvC;;;;;;;;;;;OAWG;IACH,iCAAiC,EAAE,OAAO,CAAC;IAC3C;;;;;;;;;;;;OAYG;IACH,yBAAyB,EAAE,OAAO,CAAC;IACnC;;;;;;;;;;;;;;;;;;OAkBG;IACH,oBAAoB,EAAE,OAAO,CAAC;IAC9B;;;;;;;;;;;;;;;OAeG;IACH,yBAAyB,EAAE,OAAO,CAAC;IACnC;;;;;;;;;;;;;;;;;;OAkBG;IACH,cAAc,EAAE,OAAO,CAAC;IACxB;;;;;;;OAOG;IACH,qBAAqB,EAAE,OAAO,CAAC;IAC/B;;;;;;;OAOG;IACH,yBAAyB,EAAE,OAAO,CAAC;IACnC;;;;;;;OAOG;IACH,iCAAiC,EAAE,OAAO,CAAC;IAC3C;;;;;;;;OAQG;IACH,yBAAyB,EAAE,OAAO,CAAC;CACpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppEvent.d.ts","sourceRoot":"","sources":["../../../../src/types/AppEvent.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BannerAdProps.d.ts","sourceRoot":"","sources":["../../../../src/types/BannerAdProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;;;;;;;;;;;;;;;;;;;;;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IAAI,CAAC,CAAC;IAEnF;;;;;;;OAOG;IACH,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjC;;;;;;;;;OASG;IACH,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpC;;;;;;;;;;;OAWG;IACH,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC;;;;;;;;;;;OAWG;IACH,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;CACnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaidEventListener.d.ts","sourceRoot":"","sources":["../../../../src/types/PaidEventListener.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,iBAAiB,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestConfiguration.d.ts","sourceRoot":"","sources":["../../../../src/types/RequestConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IAExC;;;;;;;OAOG;IACH,4BAA4B,CAAC,EAAE,OAAO,CAAC;IAEvC;;;;;;;OAOG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAElC;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,MAAM,EAAE,CAAC;CAClC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestOptions.d.ts","sourceRoot":"","sources":["../../../../src/types/RequestOptions.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG,KAAK,GAAG,QAAQ,CAAC;AAEpD,MAAM,WAAW,6BAA6B;IAC5C;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;OAKG;IACH,6BAA6B,CAAC,EAAE,OAAO,CAAC;IAExC;;;;;;;;;;;;;;;;OAgBG;IACH,aAAa,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG;QAAE,WAAW,CAAC,EAAE,oBAAoB,CAAA;KAAE,CAAC;IAEnF;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IAEpB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,eAAe,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,CAAA;KAAE,CAAC;IAEvD;;;;;;;;;;;;;OAaG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,6BAA6B,CAAC,EAAE,6BAA6B,CAAC;IAE9D;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RewardedAdReward.d.ts","sourceRoot":"","sources":["../../../../src/types/RewardedAdReward.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAiBA,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateAdRequestConfiguration.d.ts","sourceRoot":"","sources":["../../../src/validateAdRequestConfiguration.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEpE,wBAAgB,8BAA8B,CAAC,oBAAoB,EAAE,oBAAoB,wBAiDxF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateAdRequestOptions.d.ts","sourceRoot":"","sources":["../../../src/validateAdRequestOptions.ts"],"names":[],"mappings":"AA2BA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,wBAAgB,wBAAwB,CAAC,OAAO,CAAC,EAAE,cAAc,kBA8GhE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateAdShowOptions.d.ts","sourceRoot":"","sources":["../../../src/validateAdShowOptions.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,wBAAgB,qBAAqB,CAAC,OAAO,CAAC,EAAE,aAAa,iBAoB5D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../src/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type-test.d.ts","sourceRoot":"","sources":["../../type-test.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-google-mobile-ads",
|
|
3
|
-
"version": "14.2.
|
|
3
|
+
"version": "14.2.4",
|
|
4
4
|
"author": "Invertase <oss@invertase.io> (http://invertase.io)",
|
|
5
5
|
"description": "React Native Google Mobile Ads is an easy way to monetize mobile apps with targeted, in-app advertising.",
|
|
6
6
|
"main": "lib/commonjs/index.js",
|
|
@@ -146,10 +146,10 @@
|
|
|
146
146
|
"jest": "^29.2.2",
|
|
147
147
|
"metro-react-native-babel-preset": "^0.77.0",
|
|
148
148
|
"prettier": "^2.7.1",
|
|
149
|
-
"react": "^18.
|
|
150
|
-
"react-native": "^0.
|
|
149
|
+
"react": "^18.3.1",
|
|
150
|
+
"react-native": "^0.75.4",
|
|
151
151
|
"react-native-builder-bob": "^0.20.0",
|
|
152
|
-
"react-test-renderer": "^18.
|
|
152
|
+
"react-test-renderer": "^18.3.1",
|
|
153
153
|
"rimraf": "^3.0.2",
|
|
154
154
|
"semantic-release": "^19.0.5",
|
|
155
155
|
"spellchecker-cli": "^6.1.1",
|
|
@@ -41,6 +41,88 @@ exports[`Expo Config Plugin Tests Should modify AndroidManifest.xml 1`] = `
|
|
|
41
41
|
</manifest>"
|
|
42
42
|
`;
|
|
43
43
|
|
|
44
|
+
exports[`Expo Config Plugin Tests Should modify AndroidManifest.xml 2`] = `
|
|
45
|
+
"<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example" xmlns:tools="http://schemas.android.com/tools">
|
|
46
|
+
<uses-permission android:name="android.permission.INTERNET"/>
|
|
47
|
+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
|
|
48
|
+
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
|
|
49
|
+
<uses-permission android:name="android.permission.VIBRATE"/>
|
|
50
|
+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
|
|
51
|
+
<queries>
|
|
52
|
+
<intent>
|
|
53
|
+
<action android:name="android.intent.action.VIEW"/>
|
|
54
|
+
<category android:name="android.intent.category.BROWSABLE"/>
|
|
55
|
+
<data android:scheme="https"/>
|
|
56
|
+
</intent>
|
|
57
|
+
</queries>
|
|
58
|
+
<application android:name=".MainApplication" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:allowBackup="true" android:theme="@style/AppTheme" android:usesCleartextTraffic="true">
|
|
59
|
+
<meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="TestAppId" tools:replace="android:value"/>
|
|
60
|
+
<meta-data android:name="com.google.android.gms.ads.DELAY_APP_MEASUREMENT_INIT" android:value="true" tools:replace="android:value"/>
|
|
61
|
+
<meta-data android:name="com.google.android.gms.ads.flag.OPTIMIZE_AD_LOADING" android:value="true" tools:replace="android:value"/>
|
|
62
|
+
<meta-data android:name="com.google.android.gms.ads.flag.OPTIMIZE_INITIALIZATION" android:value="true" tools:replace="android:value"/>
|
|
63
|
+
<meta-data android:name="expo.modules.updates.ENABLED" android:value="true"/>
|
|
64
|
+
<meta-data android:name="expo.modules.updates.EXPO_SDK_VERSION" android:value="47.0.0"/>
|
|
65
|
+
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_CHECK_ON_LAUNCH" android:value="ALWAYS"/>
|
|
66
|
+
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_LAUNCH_WAIT_MS" android:value="0"/>
|
|
67
|
+
<meta-data android:name="expo.modules.updates.EXPO_UPDATE_URL" android:value="https://exp.host/@anonymous/example"/>
|
|
68
|
+
<activity android:name=".MainActivity" android:label="@string/app_name" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode" android:launchMode="singleTask" android:windowSoftInputMode="adjustResize" android:theme="@style/Theme.App.SplashScreen" android:exported="true">
|
|
69
|
+
<intent-filter>
|
|
70
|
+
<action android:name="android.intent.action.MAIN"/>
|
|
71
|
+
<category android:name="android.intent.category.LAUNCHER"/>
|
|
72
|
+
</intent-filter>
|
|
73
|
+
<intent-filter>
|
|
74
|
+
<action android:name="android.intent.action.VIEW"/>
|
|
75
|
+
<category android:name="android.intent.category.DEFAULT"/>
|
|
76
|
+
<category android:name="android.intent.category.BROWSABLE"/>
|
|
77
|
+
<data android:scheme="com.example"/>
|
|
78
|
+
</intent-filter>
|
|
79
|
+
</activity>
|
|
80
|
+
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" android:exported="false"/>
|
|
81
|
+
</application>
|
|
82
|
+
</manifest>"
|
|
83
|
+
`;
|
|
84
|
+
|
|
85
|
+
exports[`Expo Config Plugin Tests Should modify AndroidManifest.xml 3`] = `
|
|
86
|
+
"<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example" xmlns:tools="http://schemas.android.com/tools">
|
|
87
|
+
<uses-permission android:name="android.permission.INTERNET"/>
|
|
88
|
+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
|
|
89
|
+
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
|
|
90
|
+
<uses-permission android:name="android.permission.VIBRATE"/>
|
|
91
|
+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
|
|
92
|
+
<queries>
|
|
93
|
+
<intent>
|
|
94
|
+
<action android:name="android.intent.action.VIEW"/>
|
|
95
|
+
<category android:name="android.intent.category.BROWSABLE"/>
|
|
96
|
+
<data android:scheme="https"/>
|
|
97
|
+
</intent>
|
|
98
|
+
</queries>
|
|
99
|
+
<application android:name=".MainApplication" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:allowBackup="true" android:theme="@style/AppTheme" android:usesCleartextTraffic="true">
|
|
100
|
+
<meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="TestAppId" tools:replace="android:value"/>
|
|
101
|
+
<meta-data android:name="com.google.android.gms.ads.DELAY_APP_MEASUREMENT_INIT" android:value="true" tools:replace="android:value"/>
|
|
102
|
+
<meta-data android:name="com.google.android.gms.ads.flag.OPTIMIZE_AD_LOADING" android:value="true" tools:replace="android:value"/>
|
|
103
|
+
<meta-data android:name="com.google.android.gms.ads.flag.OPTIMIZE_INITIALIZATION" android:value="true" tools:replace="android:value"/>
|
|
104
|
+
<meta-data android:name="expo.modules.updates.ENABLED" android:value="true"/>
|
|
105
|
+
<meta-data android:name="expo.modules.updates.EXPO_SDK_VERSION" android:value="47.0.0"/>
|
|
106
|
+
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_CHECK_ON_LAUNCH" android:value="ALWAYS"/>
|
|
107
|
+
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_LAUNCH_WAIT_MS" android:value="0"/>
|
|
108
|
+
<meta-data android:name="expo.modules.updates.EXPO_UPDATE_URL" android:value="https://exp.host/@anonymous/example"/>
|
|
109
|
+
<activity android:name=".MainActivity" android:label="@string/app_name" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode" android:launchMode="singleTask" android:windowSoftInputMode="adjustResize" android:theme="@style/Theme.App.SplashScreen" android:exported="true">
|
|
110
|
+
<intent-filter>
|
|
111
|
+
<action android:name="android.intent.action.MAIN"/>
|
|
112
|
+
<category android:name="android.intent.category.LAUNCHER"/>
|
|
113
|
+
</intent-filter>
|
|
114
|
+
<intent-filter>
|
|
115
|
+
<action android:name="android.intent.action.VIEW"/>
|
|
116
|
+
<category android:name="android.intent.category.DEFAULT"/>
|
|
117
|
+
<category android:name="android.intent.category.BROWSABLE"/>
|
|
118
|
+
<data android:scheme="com.example"/>
|
|
119
|
+
</intent-filter>
|
|
120
|
+
</activity>
|
|
121
|
+
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" android:exported="false"/>
|
|
122
|
+
</application>
|
|
123
|
+
</manifest>"
|
|
124
|
+
`;
|
|
125
|
+
|
|
44
126
|
exports[`Expo Config Plugin Tests Should modify Info.plist 1`] = `
|
|
45
127
|
"<?xml version="1.0" encoding="UTF-8"?>
|
|
46
128
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
@@ -138,3 +220,199 @@ exports[`Expo Config Plugin Tests Should modify Info.plist 1`] = `
|
|
|
138
220
|
</dict>
|
|
139
221
|
</plist>"
|
|
140
222
|
`;
|
|
223
|
+
|
|
224
|
+
exports[`Expo Config Plugin Tests Should modify Info.plist 2`] = `
|
|
225
|
+
"<?xml version="1.0" encoding="UTF-8"?>
|
|
226
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
227
|
+
<plist version="1.0">
|
|
228
|
+
<dict>
|
|
229
|
+
<key>CFBundleDevelopmentRegion</key>
|
|
230
|
+
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
|
231
|
+
<key>CFBundleDisplayName</key>
|
|
232
|
+
<string>example</string>
|
|
233
|
+
<key>CFBundleExecutable</key>
|
|
234
|
+
<string>$(EXECUTABLE_NAME)</string>
|
|
235
|
+
<key>CFBundleIdentifier</key>
|
|
236
|
+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
|
237
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
|
238
|
+
<string>6.0</string>
|
|
239
|
+
<key>CFBundleName</key>
|
|
240
|
+
<string>$(PRODUCT_NAME)</string>
|
|
241
|
+
<key>CFBundlePackageType</key>
|
|
242
|
+
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
|
|
243
|
+
<key>CFBundleShortVersionString</key>
|
|
244
|
+
<string>1.0.0</string>
|
|
245
|
+
<key>CFBundleSignature</key>
|
|
246
|
+
<string>????</string>
|
|
247
|
+
<key>CFBundleURLTypes</key>
|
|
248
|
+
<array>
|
|
249
|
+
<dict>
|
|
250
|
+
<key>CFBundleURLSchemes</key>
|
|
251
|
+
<array>
|
|
252
|
+
<string>com.example</string>
|
|
253
|
+
</array>
|
|
254
|
+
</dict>
|
|
255
|
+
</array>
|
|
256
|
+
<key>CFBundleVersion</key>
|
|
257
|
+
<string>1</string>
|
|
258
|
+
<key>GADApplicationIdentifier</key>
|
|
259
|
+
<string>TestIosId</string>
|
|
260
|
+
<key>GADDelayAppMeasurementInit</key>
|
|
261
|
+
<true/>
|
|
262
|
+
<key>LSRequiresIPhoneOS</key>
|
|
263
|
+
<true/>
|
|
264
|
+
<key>NSAppTransportSecurity</key>
|
|
265
|
+
<dict>
|
|
266
|
+
<key>NSAllowsArbitraryLoads</key>
|
|
267
|
+
<true/>
|
|
268
|
+
<key>NSExceptionDomains</key>
|
|
269
|
+
<dict>
|
|
270
|
+
<key>localhost</key>
|
|
271
|
+
<dict>
|
|
272
|
+
<key>NSExceptionAllowsInsecureHTTPLoads</key>
|
|
273
|
+
<true/>
|
|
274
|
+
</dict>
|
|
275
|
+
</dict>
|
|
276
|
+
</dict>
|
|
277
|
+
<key>NSUserTrackingUsageDescription</key>
|
|
278
|
+
<string>TestUserTrackingUsageDescription</string>
|
|
279
|
+
<key>SKAdNetworkItems</key>
|
|
280
|
+
<array>
|
|
281
|
+
<dict>
|
|
282
|
+
<key>SKAdNetworkIdentifier</key>
|
|
283
|
+
<string>TestSkAdNetworkItem1</string>
|
|
284
|
+
</dict>
|
|
285
|
+
<dict>
|
|
286
|
+
<key>SKAdNetworkIdentifier</key>
|
|
287
|
+
<string>TestSkAdNetworkItem2</string>
|
|
288
|
+
</dict>
|
|
289
|
+
</array>
|
|
290
|
+
<key>UILaunchStoryboardName</key>
|
|
291
|
+
<string>SplashScreen</string>
|
|
292
|
+
<key>UIRequiredDeviceCapabilities</key>
|
|
293
|
+
<array>
|
|
294
|
+
<string>armv7</string>
|
|
295
|
+
</array>
|
|
296
|
+
<key>UIRequiresFullScreen</key>
|
|
297
|
+
<false/>
|
|
298
|
+
<key>UIStatusBarStyle</key>
|
|
299
|
+
<string>UIStatusBarStyleDefault</string>
|
|
300
|
+
<key>UISupportedInterfaceOrientations</key>
|
|
301
|
+
<array>
|
|
302
|
+
<string>UIInterfaceOrientationPortrait</string>
|
|
303
|
+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
|
304
|
+
<string>UIInterfaceOrientationLandscapeLeft</string>
|
|
305
|
+
<string>UIInterfaceOrientationLandscapeRight</string>
|
|
306
|
+
</array>
|
|
307
|
+
<key>UISupportedInterfaceOrientations~ipad</key>
|
|
308
|
+
<array>
|
|
309
|
+
<string>UIInterfaceOrientationPortrait</string>
|
|
310
|
+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
|
311
|
+
<string>UIInterfaceOrientationLandscapeLeft</string>
|
|
312
|
+
<string>UIInterfaceOrientationLandscapeRight</string>
|
|
313
|
+
</array>
|
|
314
|
+
<key>UIUserInterfaceStyle</key>
|
|
315
|
+
<string>Light</string>
|
|
316
|
+
<key>UIViewControllerBasedStatusBarAppearance</key>
|
|
317
|
+
<false/>
|
|
318
|
+
</dict>
|
|
319
|
+
</plist>"
|
|
320
|
+
`;
|
|
321
|
+
|
|
322
|
+
exports[`Expo Config Plugin Tests Should modify Info.plist 3`] = `
|
|
323
|
+
"<?xml version="1.0" encoding="UTF-8"?>
|
|
324
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
325
|
+
<plist version="1.0">
|
|
326
|
+
<dict>
|
|
327
|
+
<key>CFBundleDevelopmentRegion</key>
|
|
328
|
+
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
|
329
|
+
<key>CFBundleDisplayName</key>
|
|
330
|
+
<string>example</string>
|
|
331
|
+
<key>CFBundleExecutable</key>
|
|
332
|
+
<string>$(EXECUTABLE_NAME)</string>
|
|
333
|
+
<key>CFBundleIdentifier</key>
|
|
334
|
+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
|
335
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
|
336
|
+
<string>6.0</string>
|
|
337
|
+
<key>CFBundleName</key>
|
|
338
|
+
<string>$(PRODUCT_NAME)</string>
|
|
339
|
+
<key>CFBundlePackageType</key>
|
|
340
|
+
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
|
|
341
|
+
<key>CFBundleShortVersionString</key>
|
|
342
|
+
<string>1.0.0</string>
|
|
343
|
+
<key>CFBundleSignature</key>
|
|
344
|
+
<string>????</string>
|
|
345
|
+
<key>CFBundleURLTypes</key>
|
|
346
|
+
<array>
|
|
347
|
+
<dict>
|
|
348
|
+
<key>CFBundleURLSchemes</key>
|
|
349
|
+
<array>
|
|
350
|
+
<string>com.example</string>
|
|
351
|
+
</array>
|
|
352
|
+
</dict>
|
|
353
|
+
</array>
|
|
354
|
+
<key>CFBundleVersion</key>
|
|
355
|
+
<string>1</string>
|
|
356
|
+
<key>GADApplicationIdentifier</key>
|
|
357
|
+
<string>TestIosId</string>
|
|
358
|
+
<key>GADDelayAppMeasurementInit</key>
|
|
359
|
+
<true/>
|
|
360
|
+
<key>LSRequiresIPhoneOS</key>
|
|
361
|
+
<true/>
|
|
362
|
+
<key>NSAppTransportSecurity</key>
|
|
363
|
+
<dict>
|
|
364
|
+
<key>NSAllowsArbitraryLoads</key>
|
|
365
|
+
<true/>
|
|
366
|
+
<key>NSExceptionDomains</key>
|
|
367
|
+
<dict>
|
|
368
|
+
<key>localhost</key>
|
|
369
|
+
<dict>
|
|
370
|
+
<key>NSExceptionAllowsInsecureHTTPLoads</key>
|
|
371
|
+
<true/>
|
|
372
|
+
</dict>
|
|
373
|
+
</dict>
|
|
374
|
+
</dict>
|
|
375
|
+
<key>NSUserTrackingUsageDescription</key>
|
|
376
|
+
<string>TestUserTrackingUsageDescription</string>
|
|
377
|
+
<key>SKAdNetworkItems</key>
|
|
378
|
+
<array>
|
|
379
|
+
<dict>
|
|
380
|
+
<key>SKAdNetworkIdentifier</key>
|
|
381
|
+
<string>TestSkAdNetworkItem1</string>
|
|
382
|
+
</dict>
|
|
383
|
+
<dict>
|
|
384
|
+
<key>SKAdNetworkIdentifier</key>
|
|
385
|
+
<string>TestSkAdNetworkItem2</string>
|
|
386
|
+
</dict>
|
|
387
|
+
</array>
|
|
388
|
+
<key>UILaunchStoryboardName</key>
|
|
389
|
+
<string>SplashScreen</string>
|
|
390
|
+
<key>UIRequiredDeviceCapabilities</key>
|
|
391
|
+
<array>
|
|
392
|
+
<string>armv7</string>
|
|
393
|
+
</array>
|
|
394
|
+
<key>UIRequiresFullScreen</key>
|
|
395
|
+
<false/>
|
|
396
|
+
<key>UIStatusBarStyle</key>
|
|
397
|
+
<string>UIStatusBarStyleDefault</string>
|
|
398
|
+
<key>UISupportedInterfaceOrientations</key>
|
|
399
|
+
<array>
|
|
400
|
+
<string>UIInterfaceOrientationPortrait</string>
|
|
401
|
+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
|
402
|
+
<string>UIInterfaceOrientationLandscapeLeft</string>
|
|
403
|
+
<string>UIInterfaceOrientationLandscapeRight</string>
|
|
404
|
+
</array>
|
|
405
|
+
<key>UISupportedInterfaceOrientations~ipad</key>
|
|
406
|
+
<array>
|
|
407
|
+
<string>UIInterfaceOrientationPortrait</string>
|
|
408
|
+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
|
409
|
+
<string>UIInterfaceOrientationLandscapeLeft</string>
|
|
410
|
+
<string>UIInterfaceOrientationLandscapeRight</string>
|
|
411
|
+
</array>
|
|
412
|
+
<key>UIUserInterfaceStyle</key>
|
|
413
|
+
<string>Light</string>
|
|
414
|
+
<key>UIViewControllerBasedStatusBarAppearance</key>
|
|
415
|
+
<false/>
|
|
416
|
+
</dict>
|
|
417
|
+
</plist>"
|
|
418
|
+
`;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
name: 'example',
|
|
3
|
+
slug: 'example',
|
|
4
|
+
android: {
|
|
5
|
+
package: 'com.example',
|
|
6
|
+
},
|
|
7
|
+
ios: {
|
|
8
|
+
bundleIdentifier: 'com.example',
|
|
9
|
+
},
|
|
10
|
+
plugins: [
|
|
11
|
+
[
|
|
12
|
+
'../../build',
|
|
13
|
+
{
|
|
14
|
+
androidAppId: 'TestAppId',
|
|
15
|
+
iosAppId: 'TestIosId',
|
|
16
|
+
delayAppMeasurementInit: true,
|
|
17
|
+
optimizeInitialization: true,
|
|
18
|
+
optimizeAdLoading: true,
|
|
19
|
+
skAdNetworkItems: ['TestSkAdNetworkItem1', 'TestSkAdNetworkItem2'],
|
|
20
|
+
userTrackingUsageDescription: 'TestUserTrackingUsageDescription',
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
],
|
|
24
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
name: 'example',
|
|
3
|
+
slug: 'example',
|
|
4
|
+
android: {
|
|
5
|
+
package: 'com.example',
|
|
6
|
+
},
|
|
7
|
+
ios: {
|
|
8
|
+
bundleIdentifier: 'com.example',
|
|
9
|
+
},
|
|
10
|
+
plugins: [
|
|
11
|
+
[
|
|
12
|
+
'../../build',
|
|
13
|
+
{
|
|
14
|
+
androidAppId: 'TestAppId',
|
|
15
|
+
iosAppId: 'TestIosId',
|
|
16
|
+
delayAppMeasurementInit: true,
|
|
17
|
+
optimizeInitialization: true,
|
|
18
|
+
optimizeAdLoading: true,
|
|
19
|
+
skAdNetworkItems: ['TestSkAdNetworkItem1', 'TestSkAdNetworkItem2'],
|
|
20
|
+
userTrackingUsageDescription: 'TestUserTrackingUsageDescription',
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
],
|
|
24
|
+
};
|
|
@@ -5,7 +5,7 @@ import util from 'util';
|
|
|
5
5
|
|
|
6
6
|
const execAsync = util.promisify(exec);
|
|
7
7
|
|
|
8
|
-
describe('Expo Config Plugin Tests',
|
|
8
|
+
describe.each(['app.json', 'app.config.js', 'app.config.ts'])('Expo Config Plugin Tests', expoConfigFileName => {
|
|
9
9
|
const fixturesPath = path.join(__dirname, 'fixtures');
|
|
10
10
|
const testAppPath = path.join(__dirname, 'build');
|
|
11
11
|
const infoPlistPath = path.join(testAppPath, 'ios', 'example', 'Info.plist');
|
|
@@ -21,7 +21,10 @@ describe('Expo Config Plugin Tests', () => {
|
|
|
21
21
|
beforeEach(async () => {
|
|
22
22
|
await fs.rm(testAppPath, { recursive: true, force: true });
|
|
23
23
|
await fs.mkdir(testAppPath);
|
|
24
|
-
await fs.copyFile(
|
|
24
|
+
await fs.copyFile(
|
|
25
|
+
path.join(fixturesPath, expoConfigFileName),
|
|
26
|
+
path.join(testAppPath, expoConfigFileName),
|
|
27
|
+
);
|
|
25
28
|
await fs.copyFile(
|
|
26
29
|
path.join(fixturesPath, 'package.json'),
|
|
27
30
|
path.join(testAppPath, 'package.json'),
|
|
@@ -34,8 +37,8 @@ describe('Expo Config Plugin Tests', () => {
|
|
|
34
37
|
|
|
35
38
|
it('Warns about missing androidAppId', async () => {
|
|
36
39
|
await fs.copyFile(
|
|
37
|
-
path.join(fixturesPath,
|
|
38
|
-
path.join(testAppPath,
|
|
40
|
+
path.join(fixturesPath, "without-params", expoConfigFileName),
|
|
41
|
+
path.join(testAppPath, expoConfigFileName),
|
|
39
42
|
);
|
|
40
43
|
|
|
41
44
|
const { stderr } = await execAsync(`yarn expo prebuild --no-install ${testAppPath}`);
|
|
@@ -44,8 +47,8 @@ describe('Expo Config Plugin Tests', () => {
|
|
|
44
47
|
|
|
45
48
|
it('Warns about missing iosAppId', async () => {
|
|
46
49
|
await fs.copyFile(
|
|
47
|
-
path.join(fixturesPath,
|
|
48
|
-
path.join(testAppPath,
|
|
50
|
+
path.join(fixturesPath, "without-params", expoConfigFileName),
|
|
51
|
+
path.join(testAppPath, expoConfigFileName),
|
|
49
52
|
);
|
|
50
53
|
|
|
51
54
|
const { stderr } = await execAsync(`yarn expo prebuild --no-install ${testAppPath}`);
|
|
@@ -54,8 +57,8 @@ describe('Expo Config Plugin Tests', () => {
|
|
|
54
57
|
|
|
55
58
|
it('Optimizes initialization on Android by default', async () => {
|
|
56
59
|
await fs.copyFile(
|
|
57
|
-
path.join(fixturesPath,
|
|
58
|
-
path.join(testAppPath,
|
|
60
|
+
path.join(fixturesPath, "without-params", expoConfigFileName),
|
|
61
|
+
path.join(testAppPath, expoConfigFileName),
|
|
59
62
|
);
|
|
60
63
|
|
|
61
64
|
await execAsync(`yarn expo prebuild --no-install ${testAppPath}`);
|
|
@@ -68,8 +71,8 @@ describe('Expo Config Plugin Tests', () => {
|
|
|
68
71
|
|
|
69
72
|
it('Optimizes ad loading on Android by default', async () => {
|
|
70
73
|
await fs.copyFile(
|
|
71
|
-
path.join(fixturesPath,
|
|
72
|
-
path.join(testAppPath,
|
|
74
|
+
path.join(fixturesPath, "without-params", expoConfigFileName),
|
|
75
|
+
path.join(testAppPath, expoConfigFileName),
|
|
73
76
|
);
|
|
74
77
|
|
|
75
78
|
await execAsync(`yarn expo prebuild --no-install ${testAppPath}`);
|
|
@@ -24,6 +24,7 @@ import {
|
|
|
24
24
|
isUndefined,
|
|
25
25
|
isValidUrl,
|
|
26
26
|
} from './common';
|
|
27
|
+
import { version } from './version';
|
|
27
28
|
import { RequestOptions } from './types/RequestOptions';
|
|
28
29
|
|
|
29
30
|
export function validateAdRequestOptions(options?: RequestOptions) {
|
|
@@ -97,6 +98,8 @@ export function validateAdRequestOptions(options?: RequestOptions) {
|
|
|
97
98
|
}
|
|
98
99
|
|
|
99
100
|
out.requestAgent = options.requestAgent;
|
|
101
|
+
} else {
|
|
102
|
+
out.requestAgent = `rn-invertase-${version}`;
|
|
100
103
|
}
|
|
101
104
|
|
|
102
105
|
if (options.serverSideVerificationOptions) {
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '14.2.
|
|
2
|
+
export const version = '14.2.4';
|