@javascriptcommon/react-native-google-mobile-ads 16.3.3
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/LICENSE +32 -0
- package/README.md +181 -0
- package/RNGoogleMobileAds.podspec +74 -0
- package/__tests__/banner.test.tsx +53 -0
- package/__tests__/consent.test.ts +33 -0
- package/__tests__/googleMobileAds.test.ts +108 -0
- package/__tests__/interstitial.test.ts +140 -0
- package/__tests__/nativeEventEmitter.test.ts +72 -0
- package/__tests__/requestOptions.test.tsx +82 -0
- package/__tests__/rewarded.test.tsx +4 -0
- package/__tests__/showOptions.test.tsx +4 -0
- package/android/.editorconfig +10 -0
- package/android/app-json.gradle +69 -0
- package/android/build.gradle +149 -0
- package/android/lint.xml +5 -0
- package/android/settings.gradle +1 -0
- package/android/src/main/AndroidManifest.xml +23 -0
- package/android/src/main/java/io/invertase/googlemobileads/OnNativeEvent.kt +23 -0
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeAppModule.java +152 -0
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsAppOpenModule.kt +92 -0
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsBannerAdViewManager.java +303 -0
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsCommon.java +277 -0
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsConsentModule.java +293 -0
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsEvent.java +76 -0
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsFullScreenAdModule.kt +201 -0
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsInterstitialModule.kt +92 -0
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsMediaViewManager.java +79 -0
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsModule.kt +178 -0
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsNativeAdViewManager.java +164 -0
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsNativeModule.kt +172 -0
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsPackage.kt +113 -0
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsRewardedInterstitialModule.kt +127 -0
- package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsRewardedModule.kt +121 -0
- package/android/src/main/java/io/invertase/googlemobileads/common/RCTConvert.java +111 -0
- package/android/src/main/java/io/invertase/googlemobileads/common/ReactNativeAdView.java +128 -0
- package/android/src/main/java/io/invertase/googlemobileads/common/ReactNativeApp.java +34 -0
- package/android/src/main/java/io/invertase/googlemobileads/common/ReactNativeEvent.java +41 -0
- package/android/src/main/java/io/invertase/googlemobileads/common/ReactNativeEventEmitter.java +150 -0
- package/android/src/main/java/io/invertase/googlemobileads/common/ReactNativeInitProvider.java +77 -0
- package/android/src/main/java/io/invertase/googlemobileads/common/ReactNativeJSON.java +107 -0
- package/android/src/main/java/io/invertase/googlemobileads/common/ReactNativeMeta.java +92 -0
- package/android/src/main/java/io/invertase/googlemobileads/common/ReactNativeModule.java +96 -0
- package/android/src/main/java/io/invertase/googlemobileads/common/ReactNativePreferences.java +86 -0
- package/android/src/main/java/io/invertase/googlemobileads/common/SharedUtils.java +429 -0
- package/android/src/main/java/io/invertase/googlemobileads/common/TaskExecutorService.java +124 -0
- package/android/src/main/java/io/invertase/googlemobileads/interfaces/ContextProvider.java +30 -0
- package/android/src/main/java/io/invertase/googlemobileads/interfaces/NativeError.java +28 -0
- package/android/src/main/java/io/invertase/googlemobileads/interfaces/NativeEvent.java +26 -0
- package/android/src/oldarch/com/facebook/react/viewmanagers/RNGoogleMobileAdsMediaViewManagerDelegate.java +32 -0
- package/android/src/oldarch/com/facebook/react/viewmanagers/RNGoogleMobileAdsMediaViewManagerInterface.java +10 -0
- package/android/src/oldarch/com/facebook/react/viewmanagers/RNGoogleMobileAdsNativeViewManagerDelegate.java +36 -0
- package/android/src/oldarch/com/facebook/react/viewmanagers/RNGoogleMobileAdsNativeViewManagerInterface.java +10 -0
- package/android/src/oldarch/io/invertase/googlemobileads/NativeGoogleMobileAdsNativeModuleSpec.kt +18 -0
- package/app.plugin.js +1 -0
- package/babel.config.js +8 -0
- package/docs/ad-inspector.mdx +47 -0
- package/docs/common-reasons-for-ads-not-showing.mdx +111 -0
- package/docs/displaying-ads-hook.mdx +103 -0
- package/docs/displaying-ads.mdx +512 -0
- package/docs/european-user-consent.mdx +315 -0
- package/docs/img/logo_admob_192px.svg +19 -0
- package/docs/impression-level-ad-revenue.mdx +41 -0
- package/docs/index.mdx +508 -0
- package/docs/mediation.mdx +323 -0
- package/docs/migrating-to-v15.mdx +7 -0
- package/docs/migrating-to-v5.mdx +63 -0
- package/docs/migrating-to-v6.mdx +111 -0
- package/docs/native-ads.mdx +385 -0
- package/docs/testing.mdx +17 -0
- package/docs/video-ad_volume-control.mdx +49 -0
- package/docs.json +36 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAds-Bridging-Header.h +5 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsAppOpenModule.h +36 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsAppOpenModule.mm +104 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsBannerComponent.h +44 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsBannerComponent.m +221 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsBannerView.h +34 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsBannerView.mm +282 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsBannerViewManager.mm +87 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsCommon.h +72 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsCommon.mm +248 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsConsentModule.h +36 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsConsentModule.mm +356 -0
- 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 +106 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsMediaView.h +52 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsMediaView.mm +155 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsModule.h +32 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsModule.mm +180 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsNativeModule.h +35 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsNativeModule.mm +321 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsNativeView.h +51 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsNativeView.mm +251 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsRewardedInterstitialModule.h +37 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsRewardedInterstitialModule.mm +106 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsRewardedModule.h +36 -0
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsRewardedModule.mm +104 -0
- package/ios/RNGoogleMobileAds/common/RNAppModule.h +24 -0
- package/ios/RNGoogleMobileAds/common/RNAppModule.mm +95 -0
- package/ios/RNGoogleMobileAds/common/RNRCTEventEmitter.h +73 -0
- package/ios/RNGoogleMobileAds/common/RNRCTEventEmitter.mm +150 -0
- package/ios/RNGoogleMobileAds/common/RNSharedUtils.h +43 -0
- package/ios/RNGoogleMobileAds/common/RNSharedUtils.mm +34 -0
- package/ios/RNGoogleMobileAds.xcodeproj/project.pbxproj +377 -0
- package/ios/RNGoogleMobileAds.xcodeproj/xcshareddata/IDETemplateMacros.plist +24 -0
- package/ios_config.sh +192 -0
- package/jest.config.js +7 -0
- package/jest.setup.ts +92 -0
- package/lib/commonjs/AdEventType.js +72 -0
- package/lib/commonjs/AdEventType.js.map +1 -0
- package/lib/commonjs/AdsConsent.js +117 -0
- package/lib/commonjs/AdsConsent.js.map +1 -0
- package/lib/commonjs/AdsConsentPurposes.js +180 -0
- package/lib/commonjs/AdsConsentPurposes.js.map +1 -0
- package/lib/commonjs/AdsConsentSpecialFeatures.js +54 -0
- package/lib/commonjs/AdsConsentSpecialFeatures.js.map +1 -0
- package/lib/commonjs/BannerAdSize.js +75 -0
- package/lib/commonjs/BannerAdSize.js.map +1 -0
- package/lib/commonjs/GAMAdEventType.js +44 -0
- package/lib/commonjs/GAMAdEventType.js.map +1 -0
- package/lib/commonjs/MaxAdContentRating.js +42 -0
- package/lib/commonjs/MaxAdContentRating.js.map +1 -0
- package/lib/commonjs/MobileAds.js +63 -0
- package/lib/commonjs/MobileAds.js.map +1 -0
- package/lib/commonjs/NativeAdEventType.js +50 -0
- package/lib/commonjs/NativeAdEventType.js.map +1 -0
- package/lib/commonjs/RewardedAdEventType.js +66 -0
- package/lib/commonjs/RewardedAdEventType.js.map +1 -0
- package/lib/commonjs/TestIds.js +66 -0
- package/lib/commonjs/TestIds.js.map +1 -0
- package/lib/commonjs/ads/AppOpenAd.js +54 -0
- package/lib/commonjs/ads/AppOpenAd.js.map +1 -0
- package/lib/commonjs/ads/BannerAd.js +45 -0
- package/lib/commonjs/ads/BannerAd.js.map +1 -0
- package/lib/commonjs/ads/BaseAd.js +155 -0
- package/lib/commonjs/ads/BaseAd.js.map +1 -0
- package/lib/commonjs/ads/GAMBannerAd.js +49 -0
- package/lib/commonjs/ads/GAMBannerAd.js.map +1 -0
- package/lib/commonjs/ads/GAMInterstitialAd.js +42 -0
- package/lib/commonjs/ads/GAMInterstitialAd.js.map +1 -0
- package/lib/commonjs/ads/InterstitialAd.js +115 -0
- package/lib/commonjs/ads/InterstitialAd.js.map +1 -0
- package/lib/commonjs/ads/MobileAd.js +153 -0
- package/lib/commonjs/ads/MobileAd.js.map +1 -0
- package/lib/commonjs/ads/RewardedAd.js +128 -0
- package/lib/commonjs/ads/RewardedAd.js.map +1 -0
- package/lib/commonjs/ads/RewardedInterstitialAd.js +128 -0
- package/lib/commonjs/ads/RewardedInterstitialAd.js.map +1 -0
- package/lib/commonjs/ads/native-ad/NativeAd.js +123 -0
- package/lib/commonjs/ads/native-ad/NativeAd.js.map +1 -0
- package/lib/commonjs/ads/native-ad/NativeAdContext.js +26 -0
- package/lib/commonjs/ads/native-ad/NativeAdContext.js.map +1 -0
- package/lib/commonjs/ads/native-ad/NativeAdView.js +52 -0
- package/lib/commonjs/ads/native-ad/NativeAdView.js.map +1 -0
- package/lib/commonjs/ads/native-ad/NativeAsset.js +70 -0
- package/lib/commonjs/ads/native-ad/NativeAsset.js.map +1 -0
- package/lib/commonjs/ads/native-ad/NativeMediaView.js +61 -0
- package/lib/commonjs/ads/native-ad/NativeMediaView.js.map +1 -0
- package/lib/commonjs/common/constants.js +17 -0
- package/lib/commonjs/common/constants.js.map +1 -0
- package/lib/commonjs/common/debounce.js +18 -0
- package/lib/commonjs/common/debounce.js.map +1 -0
- package/lib/commonjs/common/index.js +47 -0
- package/lib/commonjs/common/index.js.map +1 -0
- package/lib/commonjs/common/ref.js +46 -0
- package/lib/commonjs/common/ref.js.map +1 -0
- package/lib/commonjs/common/validate.js +132 -0
- package/lib/commonjs/common/validate.js.map +1 -0
- package/lib/commonjs/declarations.d.js +2 -0
- package/lib/commonjs/declarations.d.js.map +1 -0
- package/lib/commonjs/hooks/useAppOpenAd.js +44 -0
- package/lib/commonjs/hooks/useAppOpenAd.js.map +1 -0
- package/lib/commonjs/hooks/useForeground.js +45 -0
- package/lib/commonjs/hooks/useForeground.js.map +1 -0
- package/lib/commonjs/hooks/useFullScreenAd.js +121 -0
- package/lib/commonjs/hooks/useFullScreenAd.js.map +1 -0
- package/lib/commonjs/hooks/useInterstitialAd.js +44 -0
- package/lib/commonjs/hooks/useInterstitialAd.js.map +1 -0
- package/lib/commonjs/hooks/useRewardedAd.js +44 -0
- package/lib/commonjs/hooks/useRewardedAd.js.map +1 -0
- package/lib/commonjs/hooks/useRewardedInterstitialAd.js +44 -0
- package/lib/commonjs/hooks/useRewardedInterstitialAd.js.map +1 -0
- package/lib/commonjs/index.js +337 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/internal/GoogleMobileAdsNativeEventEmitter.js +54 -0
- package/lib/commonjs/internal/GoogleMobileAdsNativeEventEmitter.js.map +1 -0
- package/lib/commonjs/internal/NativeError.js +53 -0
- package/lib/commonjs/internal/NativeError.js.map +1 -0
- package/lib/commonjs/internal/SharedEventEmitter.js +27 -0
- package/lib/commonjs/internal/SharedEventEmitter.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/specs/components/GoogleMobileAdsBannerViewNativeComponent.ts +62 -0
- package/lib/commonjs/specs/components/GoogleMobileAdsMediaViewNativeComponent.ts +30 -0
- package/lib/commonjs/specs/components/GoogleMobileAdsNativeViewNativeComponent.ts +45 -0
- package/lib/commonjs/specs/modules/NativeAppModule.js +24 -0
- package/lib/commonjs/specs/modules/NativeAppModule.js.map +1 -0
- package/lib/commonjs/specs/modules/NativeAppOpenModule.js +25 -0
- package/lib/commonjs/specs/modules/NativeAppOpenModule.js.map +1 -0
- package/lib/commonjs/specs/modules/NativeConsentModule.js +105 -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/NativeGoogleMobileAdsNativeModule.js +25 -0
- package/lib/commonjs/specs/modules/NativeGoogleMobileAdsNativeModule.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/AdEventListener.js +6 -0
- package/lib/commonjs/types/AdEventListener.js.map +1 -0
- package/lib/commonjs/types/AdEventsListener.js +6 -0
- package/lib/commonjs/types/AdEventsListener.js.map +1 -0
- package/lib/commonjs/types/AdShowOptions.js +2 -0
- package/lib/commonjs/types/AdShowOptions.js.map +1 -0
- package/lib/commonjs/types/AdStates.js +6 -0
- package/lib/commonjs/types/AdStates.js.map +1 -0
- package/lib/commonjs/types/AdapterStatus.js +21 -0
- package/lib/commonjs/types/AdapterStatus.js.map +1 -0
- package/lib/commonjs/types/AppEvent.js +2 -0
- package/lib/commonjs/types/AppEvent.js.map +1 -0
- package/lib/commonjs/types/BannerAdProps.js +6 -0
- package/lib/commonjs/types/BannerAdProps.js.map +1 -0
- package/lib/commonjs/types/MobileAd.interface.js +6 -0
- package/lib/commonjs/types/MobileAd.interface.js.map +1 -0
- package/lib/commonjs/types/MobileAdsModule.interface.js +6 -0
- package/lib/commonjs/types/MobileAdsModule.interface.js.map +1 -0
- package/lib/commonjs/types/NativeAdRequestOptions.js +37 -0
- package/lib/commonjs/types/NativeAdRequestOptions.js.map +1 -0
- package/lib/commonjs/types/PaidEventListener.js +6 -0
- package/lib/commonjs/types/PaidEventListener.js.map +1 -0
- package/lib/commonjs/types/RequestConfiguration.js +6 -0
- package/lib/commonjs/types/RequestConfiguration.js.map +1 -0
- package/lib/commonjs/types/RequestOptions.js +2 -0
- package/lib/commonjs/types/RequestOptions.js.map +1 -0
- package/lib/commonjs/types/RewardedAdReward.js +2 -0
- package/lib/commonjs/types/RewardedAdReward.js.map +1 -0
- package/lib/commonjs/types/index.js +138 -0
- package/lib/commonjs/types/index.js.map +1 -0
- package/lib/commonjs/validateAdRequestConfiguration.js +57 -0
- package/lib/commonjs/validateAdRequestConfiguration.js.map +1 -0
- package/lib/commonjs/validateAdRequestOptions.js +121 -0
- package/lib/commonjs/validateAdRequestOptions.js.map +1 -0
- package/lib/commonjs/validateAdShowOptions.js +41 -0
- package/lib/commonjs/validateAdShowOptions.js.map +1 -0
- package/lib/commonjs/validateNativeAdRequestOptions.js +51 -0
- package/lib/commonjs/validateNativeAdRequestOptions.js.map +1 -0
- package/lib/commonjs/version.js +9 -0
- package/lib/commonjs/version.js.map +1 -0
- package/lib/module/AdEventType.js +69 -0
- package/lib/module/AdEventType.js.map +1 -0
- package/lib/module/AdsConsent.js +113 -0
- package/lib/module/AdsConsent.js.map +1 -0
- package/lib/module/AdsConsentPurposes.js +177 -0
- package/lib/module/AdsConsentPurposes.js.map +1 -0
- package/lib/module/AdsConsentSpecialFeatures.js +51 -0
- package/lib/module/AdsConsentSpecialFeatures.js.map +1 -0
- package/lib/module/BannerAdSize.js +72 -0
- package/lib/module/BannerAdSize.js.map +1 -0
- package/lib/module/GAMAdEventType.js +41 -0
- package/lib/module/GAMAdEventType.js.map +1 -0
- package/lib/module/MaxAdContentRating.js +39 -0
- package/lib/module/MaxAdContentRating.js.map +1 -0
- package/lib/module/MobileAds.js +57 -0
- package/lib/module/MobileAds.js.map +1 -0
- package/lib/module/NativeAdEventType.js +46 -0
- package/lib/module/NativeAdEventType.js.map +1 -0
- package/lib/module/RewardedAdEventType.js +63 -0
- package/lib/module/RewardedAdEventType.js.map +1 -0
- package/lib/module/TestIds.js +62 -0
- package/lib/module/TestIds.js.map +1 -0
- package/lib/module/ads/AppOpenAd.js +48 -0
- package/lib/module/ads/AppOpenAd.js.map +1 -0
- package/lib/module/ads/BannerAd.js +39 -0
- package/lib/module/ads/BannerAd.js.map +1 -0
- package/lib/module/ads/BaseAd.js +149 -0
- package/lib/module/ads/BaseAd.js.map +1 -0
- package/lib/module/ads/GAMBannerAd.js +43 -0
- package/lib/module/ads/GAMBannerAd.js.map +1 -0
- package/lib/module/ads/GAMInterstitialAd.js +37 -0
- package/lib/module/ads/GAMInterstitialAd.js.map +1 -0
- package/lib/module/ads/InterstitialAd.js +110 -0
- package/lib/module/ads/InterstitialAd.js.map +1 -0
- package/lib/module/ads/MobileAd.js +148 -0
- package/lib/module/ads/MobileAd.js.map +1 -0
- package/lib/module/ads/RewardedAd.js +123 -0
- package/lib/module/ads/RewardedAd.js.map +1 -0
- package/lib/module/ads/RewardedInterstitialAd.js +123 -0
- package/lib/module/ads/RewardedInterstitialAd.js.map +1 -0
- package/lib/module/ads/native-ad/NativeAd.js +117 -0
- package/lib/module/ads/native-ad/NativeAd.js.map +1 -0
- package/lib/module/ads/native-ad/NativeAdContext.js +22 -0
- package/lib/module/ads/native-ad/NativeAdContext.js.map +1 -0
- package/lib/module/ads/native-ad/NativeAdView.js +45 -0
- package/lib/module/ads/native-ad/NativeAdView.js.map +1 -0
- package/lib/module/ads/native-ad/NativeAsset.js +65 -0
- package/lib/module/ads/native-ad/NativeAsset.js.map +1 -0
- package/lib/module/ads/native-ad/NativeMediaView.js +54 -0
- package/lib/module/ads/native-ad/NativeMediaView.js.map +1 -0
- package/lib/module/common/constants.js +13 -0
- package/lib/module/common/constants.js.map +1 -0
- package/lib/module/common/debounce.js +13 -0
- package/lib/module/common/debounce.js.map +1 -0
- package/lib/module/common/index.js +28 -0
- package/lib/module/common/index.js.map +1 -0
- package/lib/module/common/ref.js +41 -0
- package/lib/module/common/ref.js.map +1 -0
- package/lib/module/common/validate.js +119 -0
- package/lib/module/common/validate.js.map +1 -0
- package/lib/module/declarations.d.js +2 -0
- package/lib/module/declarations.d.js.map +1 -0
- package/lib/module/hooks/useAppOpenAd.js +40 -0
- package/lib/module/hooks/useAppOpenAd.js.map +1 -0
- package/lib/module/hooks/useForeground.js +42 -0
- package/lib/module/hooks/useForeground.js.map +1 -0
- package/lib/module/hooks/useFullScreenAd.js +117 -0
- package/lib/module/hooks/useFullScreenAd.js.map +1 -0
- package/lib/module/hooks/useInterstitialAd.js +40 -0
- package/lib/module/hooks/useInterstitialAd.js.map +1 -0
- package/lib/module/hooks/useRewardedAd.js +40 -0
- package/lib/module/hooks/useRewardedAd.js.map +1 -0
- package/lib/module/hooks/useRewardedInterstitialAd.js +40 -0
- package/lib/module/hooks/useRewardedInterstitialAd.js.map +1 -0
- package/lib/module/index.js +54 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/internal/GoogleMobileAdsNativeEventEmitter.js +49 -0
- package/lib/module/internal/GoogleMobileAdsNativeEventEmitter.js.map +1 -0
- package/lib/module/internal/NativeError.js +48 -0
- package/lib/module/internal/NativeError.js.map +1 -0
- package/lib/module/internal/SharedEventEmitter.js +22 -0
- package/lib/module/internal/SharedEventEmitter.js.map +1 -0
- package/lib/module/specs/components/GoogleMobileAdsBannerViewNativeComponent.ts +62 -0
- package/lib/module/specs/components/GoogleMobileAdsMediaViewNativeComponent.ts +30 -0
- package/lib/module/specs/components/GoogleMobileAdsNativeViewNativeComponent.ts +45 -0
- package/lib/module/specs/modules/NativeAppModule.js +21 -0
- package/lib/module/specs/modules/NativeAppModule.js.map +1 -0
- package/lib/module/specs/modules/NativeAppOpenModule.js +22 -0
- package/lib/module/specs/modules/NativeAppOpenModule.js.map +1 -0
- package/lib/module/specs/modules/NativeConsentModule.js +108 -0
- package/lib/module/specs/modules/NativeConsentModule.js.map +1 -0
- package/lib/module/specs/modules/NativeGoogleMobileAdsModule.js +22 -0
- package/lib/module/specs/modules/NativeGoogleMobileAdsModule.js.map +1 -0
- package/lib/module/specs/modules/NativeGoogleMobileAdsNativeModule.js +22 -0
- package/lib/module/specs/modules/NativeGoogleMobileAdsNativeModule.js.map +1 -0
- package/lib/module/specs/modules/NativeInterstitialModule.js +22 -0
- package/lib/module/specs/modules/NativeInterstitialModule.js.map +1 -0
- package/lib/module/specs/modules/NativeRewardedInterstitialModule.js +22 -0
- package/lib/module/specs/modules/NativeRewardedInterstitialModule.js.map +1 -0
- package/lib/module/specs/modules/NativeRewardedModule.js +22 -0
- package/lib/module/specs/modules/NativeRewardedModule.js.map +1 -0
- package/lib/module/types/AdEventListener.js +4 -0
- package/lib/module/types/AdEventListener.js.map +1 -0
- package/lib/module/types/AdEventsListener.js +4 -0
- package/lib/module/types/AdEventsListener.js.map +1 -0
- package/lib/module/types/AdShowOptions.js +2 -0
- package/lib/module/types/AdShowOptions.js.map +1 -0
- package/lib/module/types/AdStates.js +4 -0
- package/lib/module/types/AdStates.js.map +1 -0
- package/lib/module/types/AdapterStatus.js +18 -0
- package/lib/module/types/AdapterStatus.js.map +1 -0
- package/lib/module/types/AppEvent.js +2 -0
- package/lib/module/types/AppEvent.js.map +1 -0
- package/lib/module/types/BannerAdProps.js +4 -0
- package/lib/module/types/BannerAdProps.js.map +1 -0
- package/lib/module/types/MobileAd.interface.js +4 -0
- package/lib/module/types/MobileAd.interface.js.map +1 -0
- package/lib/module/types/MobileAdsModule.interface.js +4 -0
- package/lib/module/types/MobileAdsModule.interface.js.map +1 -0
- package/lib/module/types/NativeAdRequestOptions.js +34 -0
- package/lib/module/types/NativeAdRequestOptions.js.map +1 -0
- package/lib/module/types/PaidEventListener.js +4 -0
- package/lib/module/types/PaidEventListener.js.map +1 -0
- package/lib/module/types/RequestConfiguration.js +4 -0
- package/lib/module/types/RequestConfiguration.js.map +1 -0
- package/lib/module/types/RequestOptions.js +2 -0
- package/lib/module/types/RequestOptions.js.map +1 -0
- package/lib/module/types/RewardedAdReward.js +2 -0
- package/lib/module/types/RewardedAdReward.js.map +1 -0
- package/lib/module/types/index.js +32 -0
- package/lib/module/types/index.js.map +1 -0
- package/lib/module/validateAdRequestConfiguration.js +53 -0
- package/lib/module/validateAdRequestConfiguration.js.map +1 -0
- package/lib/module/validateAdRequestOptions.js +117 -0
- package/lib/module/validateAdRequestOptions.js.map +1 -0
- package/lib/module/validateAdShowOptions.js +37 -0
- package/lib/module/validateAdShowOptions.js.map +1 -0
- package/lib/module/validateNativeAdRequestOptions.js +47 -0
- package/lib/module/validateNativeAdRequestOptions.js.map +1 -0
- package/lib/module/version.js +5 -0
- package/lib/module/version.js.map +1 -0
- package/lib/typescript/AdEventType.d.ts +49 -0
- package/lib/typescript/AdEventType.d.ts.map +1 -0
- package/lib/typescript/AdsConsent.d.ts +3 -0
- package/lib/typescript/AdsConsent.d.ts.map +1 -0
- package/lib/typescript/AdsConsentPurposes.d.ts +149 -0
- package/lib/typescript/AdsConsentPurposes.d.ts.map +1 -0
- package/lib/typescript/AdsConsentSpecialFeatures.d.ts +23 -0
- package/lib/typescript/AdsConsentSpecialFeatures.d.ts.map +1 -0
- package/lib/typescript/BannerAdSize.d.ts +91 -0
- package/lib/typescript/BannerAdSize.d.ts.map +1 -0
- package/lib/typescript/GAMAdEventType.d.ts +21 -0
- package/lib/typescript/GAMAdEventType.d.ts.map +1 -0
- package/lib/typescript/MaxAdContentRating.d.ts +19 -0
- package/lib/typescript/MaxAdContentRating.d.ts.map +1 -0
- package/lib/typescript/MobileAds.d.ts +15 -0
- package/lib/typescript/MobileAds.d.ts.map +1 -0
- package/lib/typescript/NativeAdEventType.d.ts +43 -0
- package/lib/typescript/NativeAdEventType.d.ts.map +1 -0
- package/lib/typescript/RewardedAdEventType.d.ts +43 -0
- package/lib/typescript/RewardedAdEventType.d.ts.map +1 -0
- package/lib/typescript/TestIds.d.ts +19 -0
- package/lib/typescript/TestIds.d.ts.map +1 -0
- package/lib/typescript/ads/AppOpenAd.d.ts +12 -0
- package/lib/typescript/ads/AppOpenAd.d.ts.map +1 -0
- package/lib/typescript/ads/BannerAd.d.ts +8 -0
- package/lib/typescript/ads/BannerAd.d.ts.map +1 -0
- package/lib/typescript/ads/BaseAd.d.ts +4 -0
- package/lib/typescript/ads/BaseAd.d.ts.map +1 -0
- package/lib/typescript/ads/GAMBannerAd.d.ts +9 -0
- package/lib/typescript/ads/GAMBannerAd.d.ts.map +1 -0
- package/lib/typescript/ads/GAMInterstitialAd.d.ts +34 -0
- package/lib/typescript/ads/GAMInterstitialAd.d.ts.map +1 -0
- package/lib/typescript/ads/InterstitialAd.d.ts +73 -0
- package/lib/typescript/ads/InterstitialAd.d.ts.map +1 -0
- package/lib/typescript/ads/MobileAd.d.ts +54 -0
- package/lib/typescript/ads/MobileAd.d.ts.map +1 -0
- package/lib/typescript/ads/RewardedAd.d.ts +83 -0
- package/lib/typescript/ads/RewardedAd.d.ts.map +1 -0
- package/lib/typescript/ads/RewardedInterstitialAd.d.ts +83 -0
- package/lib/typescript/ads/RewardedInterstitialAd.d.ts.map +1 -0
- package/lib/typescript/ads/native-ad/NativeAd.d.ts +48 -0
- package/lib/typescript/ads/native-ad/NativeAd.d.ts.map +1 -0
- package/lib/typescript/ads/native-ad/NativeAdContext.d.ts +10 -0
- package/lib/typescript/ads/native-ad/NativeAdContext.d.ts.map +1 -0
- package/lib/typescript/ads/native-ad/NativeAdView.d.ts +8 -0
- package/lib/typescript/ads/native-ad/NativeAdView.d.ts.map +1 -0
- package/lib/typescript/ads/native-ad/NativeAsset.d.ts +18 -0
- package/lib/typescript/ads/native-ad/NativeAsset.d.ts.map +1 -0
- package/lib/typescript/ads/native-ad/NativeMediaView.d.ts +7 -0
- package/lib/typescript/ads/native-ad/NativeMediaView.d.ts.map +1 -0
- package/lib/typescript/common/constants.d.ts +7 -0
- package/lib/typescript/common/constants.d.ts.map +1 -0
- package/lib/typescript/common/debounce.d.ts +2 -0
- package/lib/typescript/common/debounce.d.ts.map +1 -0
- package/lib/typescript/common/index.d.ts +4 -0
- package/lib/typescript/common/index.d.ts.map +1 -0
- package/lib/typescript/common/ref.d.ts +13 -0
- package/lib/typescript/common/ref.d.ts.map +1 -0
- package/lib/typescript/common/validate.d.ts +62 -0
- package/lib/typescript/common/validate.d.ts.map +1 -0
- package/lib/typescript/hooks/useAppOpenAd.d.ts +10 -0
- package/lib/typescript/hooks/useAppOpenAd.d.ts.map +1 -0
- package/lib/typescript/hooks/useForeground.d.ts +7 -0
- package/lib/typescript/hooks/useForeground.d.ts.map +1 -0
- package/lib/typescript/hooks/useFullScreenAd.d.ts +7 -0
- package/lib/typescript/hooks/useFullScreenAd.d.ts.map +1 -0
- package/lib/typescript/hooks/useInterstitialAd.d.ts +10 -0
- package/lib/typescript/hooks/useInterstitialAd.d.ts.map +1 -0
- package/lib/typescript/hooks/useRewardedAd.d.ts +10 -0
- package/lib/typescript/hooks/useRewardedAd.d.ts.map +1 -0
- package/lib/typescript/hooks/useRewardedInterstitialAd.d.ts +10 -0
- package/lib/typescript/hooks/useRewardedInterstitialAd.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +32 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/internal/GoogleMobileAdsNativeEventEmitter.d.ts +13 -0
- package/lib/typescript/internal/GoogleMobileAdsNativeEventEmitter.d.ts.map +1 -0
- package/lib/typescript/internal/NativeError.d.ts +27 -0
- package/lib/typescript/internal/NativeError.d.ts.map +1 -0
- package/lib/typescript/internal/SharedEventEmitter.d.ts +3 -0
- package/lib/typescript/internal/SharedEventEmitter.d.ts.map +1 -0
- package/lib/typescript/specs/components/GoogleMobileAdsBannerViewNativeComponent.d.ts +35 -0
- package/lib/typescript/specs/components/GoogleMobileAdsBannerViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/specs/components/GoogleMobileAdsMediaViewNativeComponent.d.ts +9 -0
- package/lib/typescript/specs/components/GoogleMobileAdsMediaViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/specs/components/GoogleMobileAdsNativeViewNativeComponent.d.ts +14 -0
- package/lib/typescript/specs/components/GoogleMobileAdsNativeViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/specs/modules/NativeAppModule.d.ts +23 -0
- package/lib/typescript/specs/modules/NativeAppModule.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/specs/modules/NativeConsentModule.d.ts +498 -0
- package/lib/typescript/specs/modules/NativeConsentModule.d.ts.map +1 -0
- package/lib/typescript/specs/modules/NativeGoogleMobileAdsModule.d.ts +14 -0
- package/lib/typescript/specs/modules/NativeGoogleMobileAdsModule.d.ts.map +1 -0
- package/lib/typescript/specs/modules/NativeGoogleMobileAdsNativeModule.d.ts +42 -0
- package/lib/typescript/specs/modules/NativeGoogleMobileAdsNativeModule.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/AdEventListener.d.ts +8 -0
- package/lib/typescript/types/AdEventListener.d.ts.map +1 -0
- package/lib/typescript/types/AdEventsListener.d.ts +9 -0
- package/lib/typescript/types/AdEventsListener.d.ts.map +1 -0
- package/lib/typescript/types/AdShowOptions.d.ts +13 -0
- package/lib/typescript/types/AdShowOptions.d.ts.map +1 -0
- package/lib/typescript/types/AdStates.d.ts +91 -0
- package/lib/typescript/types/AdStates.d.ts.map +1 -0
- package/lib/typescript/types/AdapterStatus.d.ts +19 -0
- package/lib/typescript/types/AdapterStatus.d.ts.map +1 -0
- package/lib/typescript/types/AppEvent.d.ts +14 -0
- package/lib/typescript/types/AppEvent.d.ts.map +1 -0
- package/lib/typescript/types/BannerAdProps.d.ts +175 -0
- package/lib/typescript/types/BannerAdProps.d.ts.map +1 -0
- package/lib/typescript/types/MobileAd.interface.d.ts +90 -0
- package/lib/typescript/types/MobileAd.interface.d.ts.map +1 -0
- package/lib/typescript/types/MobileAdsModule.interface.d.ts +75 -0
- package/lib/typescript/types/MobileAdsModule.interface.d.ts.map +1 -0
- package/lib/typescript/types/NativeAdRequestOptions.d.ts +36 -0
- package/lib/typescript/types/NativeAdRequestOptions.d.ts.map +1 -0
- package/lib/typescript/types/PaidEventListener.d.ts +8 -0
- package/lib/typescript/types/PaidEventListener.d.ts.map +1 -0
- package/lib/typescript/types/RequestConfiguration.d.ts +37 -0
- package/lib/typescript/types/RequestConfiguration.d.ts.map +1 -0
- package/lib/typescript/types/RequestOptions.d.ts +133 -0
- package/lib/typescript/types/RequestOptions.d.ts.map +1 -0
- package/lib/typescript/types/RewardedAdReward.d.ts +14 -0
- package/lib/typescript/types/RewardedAdReward.d.ts.map +1 -0
- package/lib/typescript/types/index.d.ts +13 -0
- package/lib/typescript/types/index.d.ts.map +1 -0
- package/lib/typescript/validateAdRequestConfiguration.d.ts +3 -0
- package/lib/typescript/validateAdRequestConfiguration.d.ts.map +1 -0
- package/lib/typescript/validateAdRequestOptions.d.ts +3 -0
- package/lib/typescript/validateAdRequestOptions.d.ts.map +1 -0
- package/lib/typescript/validateAdShowOptions.d.ts +3 -0
- package/lib/typescript/validateAdShowOptions.d.ts.map +1 -0
- package/lib/typescript/validateNativeAdRequestOptions.d.ts +3 -0
- package/lib/typescript/validateNativeAdRequestOptions.d.ts.map +1 -0
- package/lib/typescript/version.d.ts +2 -0
- package/lib/typescript/version.d.ts.map +1 -0
- package/package.json +176 -0
- package/plugin/__tests__/__snapshots__/plugin.test.ts.snap +739 -0
- package/plugin/__tests__/fixtures/app.config.js +24 -0
- package/plugin/__tests__/fixtures/app.config.ts +24 -0
- package/plugin/__tests__/fixtures/app.json +24 -0
- package/plugin/__tests__/fixtures/package.json +19 -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__/fixtures/without-params/app.json +11 -0
- package/plugin/__tests__/plugin.test.ts +115 -0
- package/plugin/build/index.d.ts +12 -0
- package/plugin/build/index.js +109 -0
- package/plugin/jest.config.js +1 -0
- package/plugin/src/index.ts +205 -0
- package/plugin/tsconfig.json +9 -0
- package/plugin/tsconfig.tsbuildinfo +1 -0
- package/react-native.config.js +19 -0
- package/src/AdEventType.ts +70 -0
- package/src/AdsConsent.ts +170 -0
- package/src/AdsConsentPurposes.ts +182 -0
- package/src/AdsConsentSpecialFeatures.ts +48 -0
- package/src/BannerAdSize.ts +78 -0
- package/src/GAMAdEventType.ts +37 -0
- package/src/MaxAdContentRating.ts +38 -0
- package/src/MobileAds.ts +77 -0
- package/src/NativeAdEventType.ts +51 -0
- package/src/RewardedAdEventType.ts +60 -0
- package/src/TestIds.ts +60 -0
- package/src/ads/AppOpenAd.ts +62 -0
- package/src/ads/BannerAd.tsx +37 -0
- package/src/ads/BaseAd.tsx +185 -0
- package/src/ads/GAMBannerAd.tsx +43 -0
- package/src/ads/GAMInterstitialAd.ts +45 -0
- package/src/ads/InterstitialAd.ts +122 -0
- package/src/ads/MobileAd.ts +227 -0
- package/src/ads/RewardedAd.ts +142 -0
- package/src/ads/RewardedInterstitialAd.ts +144 -0
- package/src/ads/native-ad/NativeAd.ts +159 -0
- package/src/ads/native-ad/NativeAdContext.ts +26 -0
- package/src/ads/native-ad/NativeAdView.tsx +43 -0
- package/src/ads/native-ad/NativeAsset.tsx +66 -0
- package/src/ads/native-ad/NativeMediaView.tsx +44 -0
- package/src/common/constants.ts +9 -0
- package/src/common/debounce.ts +15 -0
- package/src/common/index.ts +30 -0
- package/src/common/ref.ts +46 -0
- package/src/common/validate.ts +116 -0
- package/src/declarations.d.ts +3 -0
- package/src/hooks/useAppOpenAd.ts +46 -0
- package/src/hooks/useForeground.ts +41 -0
- package/src/hooks/useFullScreenAd.ts +112 -0
- package/src/hooks/useInterstitialAd.ts +46 -0
- package/src/hooks/useRewardedAd.ts +46 -0
- package/src/hooks/useRewardedInterstitialAd.ts +47 -0
- package/src/index.ts +60 -0
- package/src/internal/GoogleMobileAdsNativeEventEmitter.ts +58 -0
- package/src/internal/NativeError.ts +56 -0
- package/src/internal/SharedEventEmitter.ts +20 -0
- package/src/specs/components/GoogleMobileAdsBannerViewNativeComponent.ts +62 -0
- package/src/specs/components/GoogleMobileAdsMediaViewNativeComponent.ts +30 -0
- package/src/specs/components/GoogleMobileAdsNativeViewNativeComponent.ts +45 -0
- package/src/specs/modules/NativeAppModule.ts +57 -0
- package/src/specs/modules/NativeAppOpenModule.ts +26 -0
- package/src/specs/modules/NativeConsentModule.ts +532 -0
- package/src/specs/modules/NativeGoogleMobileAdsModule.ts +33 -0
- package/src/specs/modules/NativeGoogleMobileAdsNativeModule.ts +70 -0
- package/src/specs/modules/NativeInterstitialModule.ts +26 -0
- package/src/specs/modules/NativeRewardedInterstitialModule.ts +32 -0
- package/src/specs/modules/NativeRewardedModule.ts +26 -0
- package/src/types/AdEventListener.ts +34 -0
- package/src/types/AdEventsListener.ts +24 -0
- package/src/types/AdShowOptions.ts +12 -0
- package/src/types/AdStates.ts +92 -0
- package/src/types/AdapterStatus.ts +20 -0
- package/src/types/AppEvent.ts +14 -0
- package/src/types/BannerAdProps.ts +184 -0
- package/src/types/MobileAd.interface.ts +113 -0
- package/src/types/MobileAdsModule.interface.ts +80 -0
- package/src/types/NativeAdRequestOptions.ts +55 -0
- package/src/types/PaidEventListener.ts +9 -0
- package/src/types/RequestConfiguration.ts +40 -0
- package/src/types/RequestOptions.ts +137 -0
- package/src/types/RewardedAdReward.ts +14 -0
- package/src/types/index.ts +29 -0
- package/src/validateAdRequestConfiguration.ts +66 -0
- package/src/validateAdRequestOptions.ts +154 -0
- package/src/validateAdShowOptions.ts +41 -0
- package/src/validateNativeAdRequestOptions.ts +50 -0
- package/src/version.ts +2 -0
|
@@ -0,0 +1,739 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
|
+
|
|
3
|
+
exports[`Expo Config Plugin Tests Should modify AndroidManifest.xml 1`] = `
|
|
4
|
+
"<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools">
|
|
5
|
+
<uses-permission android:name="android.permission.INTERNET"/>
|
|
6
|
+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
|
|
7
|
+
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
|
|
8
|
+
<uses-permission android:name="android.permission.VIBRATE"/>
|
|
9
|
+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
|
|
10
|
+
<queries>
|
|
11
|
+
<intent>
|
|
12
|
+
<action android:name="android.intent.action.VIEW"/>
|
|
13
|
+
<category android:name="android.intent.category.BROWSABLE"/>
|
|
14
|
+
<data android:scheme="https"/>
|
|
15
|
+
</intent>
|
|
16
|
+
</queries>
|
|
17
|
+
<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:supportsRtl="true" android:enableOnBackInvokedCallback="false">
|
|
18
|
+
<meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="TestAppId" tools:replace="android:value"/>
|
|
19
|
+
<meta-data android:name="com.google.android.gms.ads.DELAY_APP_MEASUREMENT_INIT" android:value="true" tools:replace="android:value"/>
|
|
20
|
+
<meta-data android:name="com.google.android.gms.ads.flag.OPTIMIZE_AD_LOADING" android:value="true" tools:replace="android:value"/>
|
|
21
|
+
<meta-data android:name="com.google.android.gms.ads.flag.OPTIMIZE_INITIALIZATION" android:value="true" tools:replace="android:value"/>
|
|
22
|
+
<meta-data android:name="expo.modules.updates.ENABLED" android:value="false"/>
|
|
23
|
+
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_CHECK_ON_LAUNCH" android:value="ALWAYS"/>
|
|
24
|
+
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_LAUNCH_WAIT_MS" android:value="0"/>
|
|
25
|
+
<activity android:name=".MainActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|screenLayout|uiMode" android:launchMode="singleTask" android:windowSoftInputMode="adjustResize" android:theme="@style/Theme.App.SplashScreen" android:exported="true">
|
|
26
|
+
<intent-filter>
|
|
27
|
+
<action android:name="android.intent.action.MAIN"/>
|
|
28
|
+
<category android:name="android.intent.category.LAUNCHER"/>
|
|
29
|
+
</intent-filter>
|
|
30
|
+
</activity>
|
|
31
|
+
</application>
|
|
32
|
+
</manifest>"
|
|
33
|
+
`;
|
|
34
|
+
|
|
35
|
+
exports[`Expo Config Plugin Tests Should modify AndroidManifest.xml 2`] = `
|
|
36
|
+
"<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools">
|
|
37
|
+
<uses-permission android:name="android.permission.INTERNET"/>
|
|
38
|
+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
|
|
39
|
+
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
|
|
40
|
+
<uses-permission android:name="android.permission.VIBRATE"/>
|
|
41
|
+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
|
|
42
|
+
<queries>
|
|
43
|
+
<intent>
|
|
44
|
+
<action android:name="android.intent.action.VIEW"/>
|
|
45
|
+
<category android:name="android.intent.category.BROWSABLE"/>
|
|
46
|
+
<data android:scheme="https"/>
|
|
47
|
+
</intent>
|
|
48
|
+
</queries>
|
|
49
|
+
<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:supportsRtl="true" android:enableOnBackInvokedCallback="false">
|
|
50
|
+
<meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="TestAppId" tools:replace="android:value"/>
|
|
51
|
+
<meta-data android:name="com.google.android.gms.ads.DELAY_APP_MEASUREMENT_INIT" android:value="true" tools:replace="android:value"/>
|
|
52
|
+
<meta-data android:name="com.google.android.gms.ads.flag.OPTIMIZE_AD_LOADING" android:value="true" tools:replace="android:value"/>
|
|
53
|
+
<meta-data android:name="com.google.android.gms.ads.flag.OPTIMIZE_INITIALIZATION" android:value="true" tools:replace="android:value"/>
|
|
54
|
+
<meta-data android:name="expo.modules.updates.ENABLED" android:value="false"/>
|
|
55
|
+
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_CHECK_ON_LAUNCH" android:value="ALWAYS"/>
|
|
56
|
+
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_LAUNCH_WAIT_MS" android:value="0"/>
|
|
57
|
+
<activity android:name=".MainActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|screenLayout|uiMode" android:launchMode="singleTask" android:windowSoftInputMode="adjustResize" android:theme="@style/Theme.App.SplashScreen" android:exported="true">
|
|
58
|
+
<intent-filter>
|
|
59
|
+
<action android:name="android.intent.action.MAIN"/>
|
|
60
|
+
<category android:name="android.intent.category.LAUNCHER"/>
|
|
61
|
+
</intent-filter>
|
|
62
|
+
</activity>
|
|
63
|
+
</application>
|
|
64
|
+
</manifest>"
|
|
65
|
+
`;
|
|
66
|
+
|
|
67
|
+
exports[`Expo Config Plugin Tests Should modify AndroidManifest.xml 3`] = `
|
|
68
|
+
"<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools">
|
|
69
|
+
<uses-permission android:name="android.permission.INTERNET"/>
|
|
70
|
+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
|
|
71
|
+
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
|
|
72
|
+
<uses-permission android:name="android.permission.VIBRATE"/>
|
|
73
|
+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
|
|
74
|
+
<queries>
|
|
75
|
+
<intent>
|
|
76
|
+
<action android:name="android.intent.action.VIEW"/>
|
|
77
|
+
<category android:name="android.intent.category.BROWSABLE"/>
|
|
78
|
+
<data android:scheme="https"/>
|
|
79
|
+
</intent>
|
|
80
|
+
</queries>
|
|
81
|
+
<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:supportsRtl="true" android:enableOnBackInvokedCallback="false">
|
|
82
|
+
<meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="TestAppId" tools:replace="android:value"/>
|
|
83
|
+
<meta-data android:name="com.google.android.gms.ads.DELAY_APP_MEASUREMENT_INIT" android:value="true" tools:replace="android:value"/>
|
|
84
|
+
<meta-data android:name="com.google.android.gms.ads.flag.OPTIMIZE_AD_LOADING" android:value="true" tools:replace="android:value"/>
|
|
85
|
+
<meta-data android:name="com.google.android.gms.ads.flag.OPTIMIZE_INITIALIZATION" android:value="true" tools:replace="android:value"/>
|
|
86
|
+
<meta-data android:name="expo.modules.updates.ENABLED" android:value="false"/>
|
|
87
|
+
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_CHECK_ON_LAUNCH" android:value="ALWAYS"/>
|
|
88
|
+
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_LAUNCH_WAIT_MS" android:value="0"/>
|
|
89
|
+
<activity android:name=".MainActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|screenLayout|uiMode" android:launchMode="singleTask" android:windowSoftInputMode="adjustResize" android:theme="@style/Theme.App.SplashScreen" android:exported="true">
|
|
90
|
+
<intent-filter>
|
|
91
|
+
<action android:name="android.intent.action.MAIN"/>
|
|
92
|
+
<category android:name="android.intent.category.LAUNCHER"/>
|
|
93
|
+
</intent-filter>
|
|
94
|
+
</activity>
|
|
95
|
+
</application>
|
|
96
|
+
</manifest>"
|
|
97
|
+
`;
|
|
98
|
+
|
|
99
|
+
exports[`Expo Config Plugin Tests Should modify AndroidManifest.xml idempotently 1`] = `
|
|
100
|
+
"<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools">
|
|
101
|
+
<uses-permission android:name="android.permission.INTERNET"/>
|
|
102
|
+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
|
|
103
|
+
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
|
|
104
|
+
<uses-permission android:name="android.permission.VIBRATE"/>
|
|
105
|
+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
|
|
106
|
+
<queries>
|
|
107
|
+
<intent>
|
|
108
|
+
<action android:name="android.intent.action.VIEW"/>
|
|
109
|
+
<category android:name="android.intent.category.BROWSABLE"/>
|
|
110
|
+
<data android:scheme="https"/>
|
|
111
|
+
</intent>
|
|
112
|
+
</queries>
|
|
113
|
+
<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:supportsRtl="true" android:enableOnBackInvokedCallback="false">
|
|
114
|
+
<meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="TestAppId" tools:replace="android:value"/>
|
|
115
|
+
<meta-data android:name="com.google.android.gms.ads.DELAY_APP_MEASUREMENT_INIT" android:value="true" tools:replace="android:value"/>
|
|
116
|
+
<meta-data android:name="com.google.android.gms.ads.flag.OPTIMIZE_AD_LOADING" android:value="true" tools:replace="android:value"/>
|
|
117
|
+
<meta-data android:name="com.google.android.gms.ads.flag.OPTIMIZE_INITIALIZATION" android:value="true" tools:replace="android:value"/>
|
|
118
|
+
<meta-data android:name="expo.modules.updates.ENABLED" android:value="false"/>
|
|
119
|
+
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_CHECK_ON_LAUNCH" android:value="ALWAYS"/>
|
|
120
|
+
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_LAUNCH_WAIT_MS" android:value="0"/>
|
|
121
|
+
<activity android:name=".MainActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|screenLayout|uiMode" android:launchMode="singleTask" android:windowSoftInputMode="adjustResize" android:theme="@style/Theme.App.SplashScreen" android:exported="true">
|
|
122
|
+
<intent-filter>
|
|
123
|
+
<action android:name="android.intent.action.MAIN"/>
|
|
124
|
+
<category android:name="android.intent.category.LAUNCHER"/>
|
|
125
|
+
</intent-filter>
|
|
126
|
+
</activity>
|
|
127
|
+
</application>
|
|
128
|
+
</manifest>"
|
|
129
|
+
`;
|
|
130
|
+
|
|
131
|
+
exports[`Expo Config Plugin Tests Should modify AndroidManifest.xml idempotently 2`] = `
|
|
132
|
+
"<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools">
|
|
133
|
+
<uses-permission android:name="android.permission.INTERNET"/>
|
|
134
|
+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
|
|
135
|
+
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
|
|
136
|
+
<uses-permission android:name="android.permission.VIBRATE"/>
|
|
137
|
+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
|
|
138
|
+
<queries>
|
|
139
|
+
<intent>
|
|
140
|
+
<action android:name="android.intent.action.VIEW"/>
|
|
141
|
+
<category android:name="android.intent.category.BROWSABLE"/>
|
|
142
|
+
<data android:scheme="https"/>
|
|
143
|
+
</intent>
|
|
144
|
+
</queries>
|
|
145
|
+
<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:supportsRtl="true" android:enableOnBackInvokedCallback="false">
|
|
146
|
+
<meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="TestAppId" tools:replace="android:value"/>
|
|
147
|
+
<meta-data android:name="com.google.android.gms.ads.DELAY_APP_MEASUREMENT_INIT" android:value="true" tools:replace="android:value"/>
|
|
148
|
+
<meta-data android:name="com.google.android.gms.ads.flag.OPTIMIZE_AD_LOADING" android:value="true" tools:replace="android:value"/>
|
|
149
|
+
<meta-data android:name="com.google.android.gms.ads.flag.OPTIMIZE_INITIALIZATION" android:value="true" tools:replace="android:value"/>
|
|
150
|
+
<meta-data android:name="expo.modules.updates.ENABLED" android:value="false"/>
|
|
151
|
+
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_CHECK_ON_LAUNCH" android:value="ALWAYS"/>
|
|
152
|
+
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_LAUNCH_WAIT_MS" android:value="0"/>
|
|
153
|
+
<activity android:name=".MainActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|screenLayout|uiMode" android:launchMode="singleTask" android:windowSoftInputMode="adjustResize" android:theme="@style/Theme.App.SplashScreen" android:exported="true">
|
|
154
|
+
<intent-filter>
|
|
155
|
+
<action android:name="android.intent.action.MAIN"/>
|
|
156
|
+
<category android:name="android.intent.category.LAUNCHER"/>
|
|
157
|
+
</intent-filter>
|
|
158
|
+
</activity>
|
|
159
|
+
</application>
|
|
160
|
+
</manifest>"
|
|
161
|
+
`;
|
|
162
|
+
|
|
163
|
+
exports[`Expo Config Plugin Tests Should modify AndroidManifest.xml idempotently 3`] = `
|
|
164
|
+
"<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools">
|
|
165
|
+
<uses-permission android:name="android.permission.INTERNET"/>
|
|
166
|
+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
|
|
167
|
+
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
|
|
168
|
+
<uses-permission android:name="android.permission.VIBRATE"/>
|
|
169
|
+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
|
|
170
|
+
<queries>
|
|
171
|
+
<intent>
|
|
172
|
+
<action android:name="android.intent.action.VIEW"/>
|
|
173
|
+
<category android:name="android.intent.category.BROWSABLE"/>
|
|
174
|
+
<data android:scheme="https"/>
|
|
175
|
+
</intent>
|
|
176
|
+
</queries>
|
|
177
|
+
<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:supportsRtl="true" android:enableOnBackInvokedCallback="false">
|
|
178
|
+
<meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="TestAppId" tools:replace="android:value"/>
|
|
179
|
+
<meta-data android:name="com.google.android.gms.ads.DELAY_APP_MEASUREMENT_INIT" android:value="true" tools:replace="android:value"/>
|
|
180
|
+
<meta-data android:name="com.google.android.gms.ads.flag.OPTIMIZE_AD_LOADING" android:value="true" tools:replace="android:value"/>
|
|
181
|
+
<meta-data android:name="com.google.android.gms.ads.flag.OPTIMIZE_INITIALIZATION" android:value="true" tools:replace="android:value"/>
|
|
182
|
+
<meta-data android:name="expo.modules.updates.ENABLED" android:value="false"/>
|
|
183
|
+
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_CHECK_ON_LAUNCH" android:value="ALWAYS"/>
|
|
184
|
+
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_LAUNCH_WAIT_MS" android:value="0"/>
|
|
185
|
+
<activity android:name=".MainActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|screenLayout|uiMode" android:launchMode="singleTask" android:windowSoftInputMode="adjustResize" android:theme="@style/Theme.App.SplashScreen" android:exported="true">
|
|
186
|
+
<intent-filter>
|
|
187
|
+
<action android:name="android.intent.action.MAIN"/>
|
|
188
|
+
<category android:name="android.intent.category.LAUNCHER"/>
|
|
189
|
+
</intent-filter>
|
|
190
|
+
</activity>
|
|
191
|
+
</application>
|
|
192
|
+
</manifest>"
|
|
193
|
+
`;
|
|
194
|
+
|
|
195
|
+
exports[`Expo Config Plugin Tests Should modify Info.plist 1`] = `
|
|
196
|
+
"<?xml version="1.0" encoding="UTF-8"?>
|
|
197
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
198
|
+
<plist version="1.0">
|
|
199
|
+
<dict>
|
|
200
|
+
<key>CADisableMinimumFrameDurationOnPhone</key>
|
|
201
|
+
<true/>
|
|
202
|
+
<key>CFBundleDevelopmentRegion</key>
|
|
203
|
+
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
|
204
|
+
<key>CFBundleDisplayName</key>
|
|
205
|
+
<string>example</string>
|
|
206
|
+
<key>CFBundleExecutable</key>
|
|
207
|
+
<string>$(EXECUTABLE_NAME)</string>
|
|
208
|
+
<key>CFBundleIdentifier</key>
|
|
209
|
+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
|
210
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
|
211
|
+
<string>6.0</string>
|
|
212
|
+
<key>CFBundleName</key>
|
|
213
|
+
<string>$(PRODUCT_NAME)</string>
|
|
214
|
+
<key>CFBundlePackageType</key>
|
|
215
|
+
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
|
|
216
|
+
<key>CFBundleShortVersionString</key>
|
|
217
|
+
<string>1.0.0</string>
|
|
218
|
+
<key>CFBundleSignature</key>
|
|
219
|
+
<string>????</string>
|
|
220
|
+
<key>CFBundleURLTypes</key>
|
|
221
|
+
<array>
|
|
222
|
+
<dict>
|
|
223
|
+
<key>CFBundleURLSchemes</key>
|
|
224
|
+
<array>
|
|
225
|
+
<string>com.example</string>
|
|
226
|
+
</array>
|
|
227
|
+
</dict>
|
|
228
|
+
</array>
|
|
229
|
+
<key>CFBundleVersion</key>
|
|
230
|
+
<string>1</string>
|
|
231
|
+
<key>GADApplicationIdentifier</key>
|
|
232
|
+
<string>TestIosId</string>
|
|
233
|
+
<key>GADDelayAppMeasurementInit</key>
|
|
234
|
+
<true/>
|
|
235
|
+
<key>LSMinimumSystemVersion</key>
|
|
236
|
+
<string>12.0</string>
|
|
237
|
+
<key>LSRequiresIPhoneOS</key>
|
|
238
|
+
<true/>
|
|
239
|
+
<key>NSAppTransportSecurity</key>
|
|
240
|
+
<dict>
|
|
241
|
+
<key>NSAllowsArbitraryLoads</key>
|
|
242
|
+
<false/>
|
|
243
|
+
<key>NSAllowsLocalNetworking</key>
|
|
244
|
+
<true/>
|
|
245
|
+
</dict>
|
|
246
|
+
<key>NSUserTrackingUsageDescription</key>
|
|
247
|
+
<string>TestUserTrackingUsageDescription</string>
|
|
248
|
+
<key>RCTNewArchEnabled</key>
|
|
249
|
+
<true/>
|
|
250
|
+
<key>SKAdNetworkItems</key>
|
|
251
|
+
<array>
|
|
252
|
+
<dict>
|
|
253
|
+
<key>SKAdNetworkIdentifier</key>
|
|
254
|
+
<string>TestSkAdNetworkItem1</string>
|
|
255
|
+
</dict>
|
|
256
|
+
<dict>
|
|
257
|
+
<key>SKAdNetworkIdentifier</key>
|
|
258
|
+
<string>TestSkAdNetworkItem2</string>
|
|
259
|
+
</dict>
|
|
260
|
+
</array>
|
|
261
|
+
<key>UILaunchStoryboardName</key>
|
|
262
|
+
<string>SplashScreen</string>
|
|
263
|
+
<key>UIRequiredDeviceCapabilities</key>
|
|
264
|
+
<array>
|
|
265
|
+
<string>arm64</string>
|
|
266
|
+
</array>
|
|
267
|
+
<key>UIRequiresFullScreen</key>
|
|
268
|
+
<false/>
|
|
269
|
+
<key>UIStatusBarStyle</key>
|
|
270
|
+
<string>UIStatusBarStyleDefault</string>
|
|
271
|
+
<key>UISupportedInterfaceOrientations</key>
|
|
272
|
+
<array>
|
|
273
|
+
<string>UIInterfaceOrientationPortrait</string>
|
|
274
|
+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
|
275
|
+
<string>UIInterfaceOrientationLandscapeLeft</string>
|
|
276
|
+
<string>UIInterfaceOrientationLandscapeRight</string>
|
|
277
|
+
</array>
|
|
278
|
+
<key>UIUserInterfaceStyle</key>
|
|
279
|
+
<string>Light</string>
|
|
280
|
+
<key>UIViewControllerBasedStatusBarAppearance</key>
|
|
281
|
+
<false/>
|
|
282
|
+
</dict>
|
|
283
|
+
</plist>"
|
|
284
|
+
`;
|
|
285
|
+
|
|
286
|
+
exports[`Expo Config Plugin Tests Should modify Info.plist 2`] = `
|
|
287
|
+
"<?xml version="1.0" encoding="UTF-8"?>
|
|
288
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
289
|
+
<plist version="1.0">
|
|
290
|
+
<dict>
|
|
291
|
+
<key>CADisableMinimumFrameDurationOnPhone</key>
|
|
292
|
+
<true/>
|
|
293
|
+
<key>CFBundleDevelopmentRegion</key>
|
|
294
|
+
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
|
295
|
+
<key>CFBundleDisplayName</key>
|
|
296
|
+
<string>example</string>
|
|
297
|
+
<key>CFBundleExecutable</key>
|
|
298
|
+
<string>$(EXECUTABLE_NAME)</string>
|
|
299
|
+
<key>CFBundleIdentifier</key>
|
|
300
|
+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
|
301
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
|
302
|
+
<string>6.0</string>
|
|
303
|
+
<key>CFBundleName</key>
|
|
304
|
+
<string>$(PRODUCT_NAME)</string>
|
|
305
|
+
<key>CFBundlePackageType</key>
|
|
306
|
+
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
|
|
307
|
+
<key>CFBundleShortVersionString</key>
|
|
308
|
+
<string>1.0.0</string>
|
|
309
|
+
<key>CFBundleSignature</key>
|
|
310
|
+
<string>????</string>
|
|
311
|
+
<key>CFBundleURLTypes</key>
|
|
312
|
+
<array>
|
|
313
|
+
<dict>
|
|
314
|
+
<key>CFBundleURLSchemes</key>
|
|
315
|
+
<array>
|
|
316
|
+
<string>com.example</string>
|
|
317
|
+
</array>
|
|
318
|
+
</dict>
|
|
319
|
+
</array>
|
|
320
|
+
<key>CFBundleVersion</key>
|
|
321
|
+
<string>1</string>
|
|
322
|
+
<key>GADApplicationIdentifier</key>
|
|
323
|
+
<string>TestIosId</string>
|
|
324
|
+
<key>GADDelayAppMeasurementInit</key>
|
|
325
|
+
<true/>
|
|
326
|
+
<key>LSMinimumSystemVersion</key>
|
|
327
|
+
<string>12.0</string>
|
|
328
|
+
<key>LSRequiresIPhoneOS</key>
|
|
329
|
+
<true/>
|
|
330
|
+
<key>NSAppTransportSecurity</key>
|
|
331
|
+
<dict>
|
|
332
|
+
<key>NSAllowsArbitraryLoads</key>
|
|
333
|
+
<false/>
|
|
334
|
+
<key>NSAllowsLocalNetworking</key>
|
|
335
|
+
<true/>
|
|
336
|
+
</dict>
|
|
337
|
+
<key>NSUserTrackingUsageDescription</key>
|
|
338
|
+
<string>TestUserTrackingUsageDescription</string>
|
|
339
|
+
<key>RCTNewArchEnabled</key>
|
|
340
|
+
<true/>
|
|
341
|
+
<key>SKAdNetworkItems</key>
|
|
342
|
+
<array>
|
|
343
|
+
<dict>
|
|
344
|
+
<key>SKAdNetworkIdentifier</key>
|
|
345
|
+
<string>TestSkAdNetworkItem1</string>
|
|
346
|
+
</dict>
|
|
347
|
+
<dict>
|
|
348
|
+
<key>SKAdNetworkIdentifier</key>
|
|
349
|
+
<string>TestSkAdNetworkItem2</string>
|
|
350
|
+
</dict>
|
|
351
|
+
</array>
|
|
352
|
+
<key>UILaunchStoryboardName</key>
|
|
353
|
+
<string>SplashScreen</string>
|
|
354
|
+
<key>UIRequiredDeviceCapabilities</key>
|
|
355
|
+
<array>
|
|
356
|
+
<string>arm64</string>
|
|
357
|
+
</array>
|
|
358
|
+
<key>UIRequiresFullScreen</key>
|
|
359
|
+
<false/>
|
|
360
|
+
<key>UIStatusBarStyle</key>
|
|
361
|
+
<string>UIStatusBarStyleDefault</string>
|
|
362
|
+
<key>UISupportedInterfaceOrientations</key>
|
|
363
|
+
<array>
|
|
364
|
+
<string>UIInterfaceOrientationPortrait</string>
|
|
365
|
+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
|
366
|
+
<string>UIInterfaceOrientationLandscapeLeft</string>
|
|
367
|
+
<string>UIInterfaceOrientationLandscapeRight</string>
|
|
368
|
+
</array>
|
|
369
|
+
<key>UIUserInterfaceStyle</key>
|
|
370
|
+
<string>Light</string>
|
|
371
|
+
<key>UIViewControllerBasedStatusBarAppearance</key>
|
|
372
|
+
<false/>
|
|
373
|
+
</dict>
|
|
374
|
+
</plist>"
|
|
375
|
+
`;
|
|
376
|
+
|
|
377
|
+
exports[`Expo Config Plugin Tests Should modify Info.plist 3`] = `
|
|
378
|
+
"<?xml version="1.0" encoding="UTF-8"?>
|
|
379
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
380
|
+
<plist version="1.0">
|
|
381
|
+
<dict>
|
|
382
|
+
<key>CADisableMinimumFrameDurationOnPhone</key>
|
|
383
|
+
<true/>
|
|
384
|
+
<key>CFBundleDevelopmentRegion</key>
|
|
385
|
+
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
|
386
|
+
<key>CFBundleDisplayName</key>
|
|
387
|
+
<string>example</string>
|
|
388
|
+
<key>CFBundleExecutable</key>
|
|
389
|
+
<string>$(EXECUTABLE_NAME)</string>
|
|
390
|
+
<key>CFBundleIdentifier</key>
|
|
391
|
+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
|
392
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
|
393
|
+
<string>6.0</string>
|
|
394
|
+
<key>CFBundleName</key>
|
|
395
|
+
<string>$(PRODUCT_NAME)</string>
|
|
396
|
+
<key>CFBundlePackageType</key>
|
|
397
|
+
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
|
|
398
|
+
<key>CFBundleShortVersionString</key>
|
|
399
|
+
<string>1.0.0</string>
|
|
400
|
+
<key>CFBundleSignature</key>
|
|
401
|
+
<string>????</string>
|
|
402
|
+
<key>CFBundleURLTypes</key>
|
|
403
|
+
<array>
|
|
404
|
+
<dict>
|
|
405
|
+
<key>CFBundleURLSchemes</key>
|
|
406
|
+
<array>
|
|
407
|
+
<string>com.example</string>
|
|
408
|
+
</array>
|
|
409
|
+
</dict>
|
|
410
|
+
</array>
|
|
411
|
+
<key>CFBundleVersion</key>
|
|
412
|
+
<string>1</string>
|
|
413
|
+
<key>GADApplicationIdentifier</key>
|
|
414
|
+
<string>TestIosId</string>
|
|
415
|
+
<key>GADDelayAppMeasurementInit</key>
|
|
416
|
+
<true/>
|
|
417
|
+
<key>LSMinimumSystemVersion</key>
|
|
418
|
+
<string>12.0</string>
|
|
419
|
+
<key>LSRequiresIPhoneOS</key>
|
|
420
|
+
<true/>
|
|
421
|
+
<key>NSAppTransportSecurity</key>
|
|
422
|
+
<dict>
|
|
423
|
+
<key>NSAllowsArbitraryLoads</key>
|
|
424
|
+
<false/>
|
|
425
|
+
<key>NSAllowsLocalNetworking</key>
|
|
426
|
+
<true/>
|
|
427
|
+
</dict>
|
|
428
|
+
<key>NSUserTrackingUsageDescription</key>
|
|
429
|
+
<string>TestUserTrackingUsageDescription</string>
|
|
430
|
+
<key>RCTNewArchEnabled</key>
|
|
431
|
+
<true/>
|
|
432
|
+
<key>SKAdNetworkItems</key>
|
|
433
|
+
<array>
|
|
434
|
+
<dict>
|
|
435
|
+
<key>SKAdNetworkIdentifier</key>
|
|
436
|
+
<string>TestSkAdNetworkItem1</string>
|
|
437
|
+
</dict>
|
|
438
|
+
<dict>
|
|
439
|
+
<key>SKAdNetworkIdentifier</key>
|
|
440
|
+
<string>TestSkAdNetworkItem2</string>
|
|
441
|
+
</dict>
|
|
442
|
+
</array>
|
|
443
|
+
<key>UILaunchStoryboardName</key>
|
|
444
|
+
<string>SplashScreen</string>
|
|
445
|
+
<key>UIRequiredDeviceCapabilities</key>
|
|
446
|
+
<array>
|
|
447
|
+
<string>arm64</string>
|
|
448
|
+
</array>
|
|
449
|
+
<key>UIRequiresFullScreen</key>
|
|
450
|
+
<false/>
|
|
451
|
+
<key>UIStatusBarStyle</key>
|
|
452
|
+
<string>UIStatusBarStyleDefault</string>
|
|
453
|
+
<key>UISupportedInterfaceOrientations</key>
|
|
454
|
+
<array>
|
|
455
|
+
<string>UIInterfaceOrientationPortrait</string>
|
|
456
|
+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
|
457
|
+
<string>UIInterfaceOrientationLandscapeLeft</string>
|
|
458
|
+
<string>UIInterfaceOrientationLandscapeRight</string>
|
|
459
|
+
</array>
|
|
460
|
+
<key>UIUserInterfaceStyle</key>
|
|
461
|
+
<string>Light</string>
|
|
462
|
+
<key>UIViewControllerBasedStatusBarAppearance</key>
|
|
463
|
+
<false/>
|
|
464
|
+
</dict>
|
|
465
|
+
</plist>"
|
|
466
|
+
`;
|
|
467
|
+
|
|
468
|
+
exports[`Expo Config Plugin Tests Should modify Info.plist idempotently 1`] = `
|
|
469
|
+
"<?xml version="1.0" encoding="UTF-8"?>
|
|
470
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
471
|
+
<plist version="1.0">
|
|
472
|
+
<dict>
|
|
473
|
+
<key>CADisableMinimumFrameDurationOnPhone</key>
|
|
474
|
+
<true/>
|
|
475
|
+
<key>CFBundleDevelopmentRegion</key>
|
|
476
|
+
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
|
477
|
+
<key>CFBundleDisplayName</key>
|
|
478
|
+
<string>example</string>
|
|
479
|
+
<key>CFBundleExecutable</key>
|
|
480
|
+
<string>$(EXECUTABLE_NAME)</string>
|
|
481
|
+
<key>CFBundleIdentifier</key>
|
|
482
|
+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
|
483
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
|
484
|
+
<string>6.0</string>
|
|
485
|
+
<key>CFBundleName</key>
|
|
486
|
+
<string>$(PRODUCT_NAME)</string>
|
|
487
|
+
<key>CFBundlePackageType</key>
|
|
488
|
+
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
|
|
489
|
+
<key>CFBundleShortVersionString</key>
|
|
490
|
+
<string>1.0.0</string>
|
|
491
|
+
<key>CFBundleSignature</key>
|
|
492
|
+
<string>????</string>
|
|
493
|
+
<key>CFBundleURLTypes</key>
|
|
494
|
+
<array>
|
|
495
|
+
<dict>
|
|
496
|
+
<key>CFBundleURLSchemes</key>
|
|
497
|
+
<array>
|
|
498
|
+
<string>com.example</string>
|
|
499
|
+
</array>
|
|
500
|
+
</dict>
|
|
501
|
+
</array>
|
|
502
|
+
<key>CFBundleVersion</key>
|
|
503
|
+
<string>1</string>
|
|
504
|
+
<key>GADApplicationIdentifier</key>
|
|
505
|
+
<string>TestIosId</string>
|
|
506
|
+
<key>GADDelayAppMeasurementInit</key>
|
|
507
|
+
<true/>
|
|
508
|
+
<key>LSMinimumSystemVersion</key>
|
|
509
|
+
<string>12.0</string>
|
|
510
|
+
<key>LSRequiresIPhoneOS</key>
|
|
511
|
+
<true/>
|
|
512
|
+
<key>NSAppTransportSecurity</key>
|
|
513
|
+
<dict>
|
|
514
|
+
<key>NSAllowsArbitraryLoads</key>
|
|
515
|
+
<false/>
|
|
516
|
+
<key>NSAllowsLocalNetworking</key>
|
|
517
|
+
<true/>
|
|
518
|
+
</dict>
|
|
519
|
+
<key>NSUserTrackingUsageDescription</key>
|
|
520
|
+
<string>TestUserTrackingUsageDescription</string>
|
|
521
|
+
<key>RCTNewArchEnabled</key>
|
|
522
|
+
<true/>
|
|
523
|
+
<key>SKAdNetworkItems</key>
|
|
524
|
+
<array>
|
|
525
|
+
<dict>
|
|
526
|
+
<key>SKAdNetworkIdentifier</key>
|
|
527
|
+
<string>TestSkAdNetworkItem1</string>
|
|
528
|
+
</dict>
|
|
529
|
+
<dict>
|
|
530
|
+
<key>SKAdNetworkIdentifier</key>
|
|
531
|
+
<string>TestSkAdNetworkItem2</string>
|
|
532
|
+
</dict>
|
|
533
|
+
</array>
|
|
534
|
+
<key>UILaunchStoryboardName</key>
|
|
535
|
+
<string>SplashScreen</string>
|
|
536
|
+
<key>UIRequiredDeviceCapabilities</key>
|
|
537
|
+
<array>
|
|
538
|
+
<string>arm64</string>
|
|
539
|
+
</array>
|
|
540
|
+
<key>UIRequiresFullScreen</key>
|
|
541
|
+
<false/>
|
|
542
|
+
<key>UIStatusBarStyle</key>
|
|
543
|
+
<string>UIStatusBarStyleDefault</string>
|
|
544
|
+
<key>UISupportedInterfaceOrientations</key>
|
|
545
|
+
<array>
|
|
546
|
+
<string>UIInterfaceOrientationPortrait</string>
|
|
547
|
+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
|
548
|
+
<string>UIInterfaceOrientationLandscapeLeft</string>
|
|
549
|
+
<string>UIInterfaceOrientationLandscapeRight</string>
|
|
550
|
+
</array>
|
|
551
|
+
<key>UIUserInterfaceStyle</key>
|
|
552
|
+
<string>Light</string>
|
|
553
|
+
<key>UIViewControllerBasedStatusBarAppearance</key>
|
|
554
|
+
<false/>
|
|
555
|
+
</dict>
|
|
556
|
+
</plist>"
|
|
557
|
+
`;
|
|
558
|
+
|
|
559
|
+
exports[`Expo Config Plugin Tests Should modify Info.plist idempotently 2`] = `
|
|
560
|
+
"<?xml version="1.0" encoding="UTF-8"?>
|
|
561
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
562
|
+
<plist version="1.0">
|
|
563
|
+
<dict>
|
|
564
|
+
<key>CADisableMinimumFrameDurationOnPhone</key>
|
|
565
|
+
<true/>
|
|
566
|
+
<key>CFBundleDevelopmentRegion</key>
|
|
567
|
+
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
|
568
|
+
<key>CFBundleDisplayName</key>
|
|
569
|
+
<string>example</string>
|
|
570
|
+
<key>CFBundleExecutable</key>
|
|
571
|
+
<string>$(EXECUTABLE_NAME)</string>
|
|
572
|
+
<key>CFBundleIdentifier</key>
|
|
573
|
+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
|
574
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
|
575
|
+
<string>6.0</string>
|
|
576
|
+
<key>CFBundleName</key>
|
|
577
|
+
<string>$(PRODUCT_NAME)</string>
|
|
578
|
+
<key>CFBundlePackageType</key>
|
|
579
|
+
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
|
|
580
|
+
<key>CFBundleShortVersionString</key>
|
|
581
|
+
<string>1.0.0</string>
|
|
582
|
+
<key>CFBundleSignature</key>
|
|
583
|
+
<string>????</string>
|
|
584
|
+
<key>CFBundleURLTypes</key>
|
|
585
|
+
<array>
|
|
586
|
+
<dict>
|
|
587
|
+
<key>CFBundleURLSchemes</key>
|
|
588
|
+
<array>
|
|
589
|
+
<string>com.example</string>
|
|
590
|
+
</array>
|
|
591
|
+
</dict>
|
|
592
|
+
</array>
|
|
593
|
+
<key>CFBundleVersion</key>
|
|
594
|
+
<string>1</string>
|
|
595
|
+
<key>GADApplicationIdentifier</key>
|
|
596
|
+
<string>TestIosId</string>
|
|
597
|
+
<key>GADDelayAppMeasurementInit</key>
|
|
598
|
+
<true/>
|
|
599
|
+
<key>LSMinimumSystemVersion</key>
|
|
600
|
+
<string>12.0</string>
|
|
601
|
+
<key>LSRequiresIPhoneOS</key>
|
|
602
|
+
<true/>
|
|
603
|
+
<key>NSAppTransportSecurity</key>
|
|
604
|
+
<dict>
|
|
605
|
+
<key>NSAllowsArbitraryLoads</key>
|
|
606
|
+
<false/>
|
|
607
|
+
<key>NSAllowsLocalNetworking</key>
|
|
608
|
+
<true/>
|
|
609
|
+
</dict>
|
|
610
|
+
<key>NSUserTrackingUsageDescription</key>
|
|
611
|
+
<string>TestUserTrackingUsageDescription</string>
|
|
612
|
+
<key>RCTNewArchEnabled</key>
|
|
613
|
+
<true/>
|
|
614
|
+
<key>SKAdNetworkItems</key>
|
|
615
|
+
<array>
|
|
616
|
+
<dict>
|
|
617
|
+
<key>SKAdNetworkIdentifier</key>
|
|
618
|
+
<string>TestSkAdNetworkItem1</string>
|
|
619
|
+
</dict>
|
|
620
|
+
<dict>
|
|
621
|
+
<key>SKAdNetworkIdentifier</key>
|
|
622
|
+
<string>TestSkAdNetworkItem2</string>
|
|
623
|
+
</dict>
|
|
624
|
+
</array>
|
|
625
|
+
<key>UILaunchStoryboardName</key>
|
|
626
|
+
<string>SplashScreen</string>
|
|
627
|
+
<key>UIRequiredDeviceCapabilities</key>
|
|
628
|
+
<array>
|
|
629
|
+
<string>arm64</string>
|
|
630
|
+
</array>
|
|
631
|
+
<key>UIRequiresFullScreen</key>
|
|
632
|
+
<false/>
|
|
633
|
+
<key>UIStatusBarStyle</key>
|
|
634
|
+
<string>UIStatusBarStyleDefault</string>
|
|
635
|
+
<key>UISupportedInterfaceOrientations</key>
|
|
636
|
+
<array>
|
|
637
|
+
<string>UIInterfaceOrientationPortrait</string>
|
|
638
|
+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
|
639
|
+
<string>UIInterfaceOrientationLandscapeLeft</string>
|
|
640
|
+
<string>UIInterfaceOrientationLandscapeRight</string>
|
|
641
|
+
</array>
|
|
642
|
+
<key>UIUserInterfaceStyle</key>
|
|
643
|
+
<string>Light</string>
|
|
644
|
+
<key>UIViewControllerBasedStatusBarAppearance</key>
|
|
645
|
+
<false/>
|
|
646
|
+
</dict>
|
|
647
|
+
</plist>"
|
|
648
|
+
`;
|
|
649
|
+
|
|
650
|
+
exports[`Expo Config Plugin Tests Should modify Info.plist idempotently 3`] = `
|
|
651
|
+
"<?xml version="1.0" encoding="UTF-8"?>
|
|
652
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
653
|
+
<plist version="1.0">
|
|
654
|
+
<dict>
|
|
655
|
+
<key>CADisableMinimumFrameDurationOnPhone</key>
|
|
656
|
+
<true/>
|
|
657
|
+
<key>CFBundleDevelopmentRegion</key>
|
|
658
|
+
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
|
659
|
+
<key>CFBundleDisplayName</key>
|
|
660
|
+
<string>example</string>
|
|
661
|
+
<key>CFBundleExecutable</key>
|
|
662
|
+
<string>$(EXECUTABLE_NAME)</string>
|
|
663
|
+
<key>CFBundleIdentifier</key>
|
|
664
|
+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
|
665
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
|
666
|
+
<string>6.0</string>
|
|
667
|
+
<key>CFBundleName</key>
|
|
668
|
+
<string>$(PRODUCT_NAME)</string>
|
|
669
|
+
<key>CFBundlePackageType</key>
|
|
670
|
+
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
|
|
671
|
+
<key>CFBundleShortVersionString</key>
|
|
672
|
+
<string>1.0.0</string>
|
|
673
|
+
<key>CFBundleSignature</key>
|
|
674
|
+
<string>????</string>
|
|
675
|
+
<key>CFBundleURLTypes</key>
|
|
676
|
+
<array>
|
|
677
|
+
<dict>
|
|
678
|
+
<key>CFBundleURLSchemes</key>
|
|
679
|
+
<array>
|
|
680
|
+
<string>com.example</string>
|
|
681
|
+
</array>
|
|
682
|
+
</dict>
|
|
683
|
+
</array>
|
|
684
|
+
<key>CFBundleVersion</key>
|
|
685
|
+
<string>1</string>
|
|
686
|
+
<key>GADApplicationIdentifier</key>
|
|
687
|
+
<string>TestIosId</string>
|
|
688
|
+
<key>GADDelayAppMeasurementInit</key>
|
|
689
|
+
<true/>
|
|
690
|
+
<key>LSMinimumSystemVersion</key>
|
|
691
|
+
<string>12.0</string>
|
|
692
|
+
<key>LSRequiresIPhoneOS</key>
|
|
693
|
+
<true/>
|
|
694
|
+
<key>NSAppTransportSecurity</key>
|
|
695
|
+
<dict>
|
|
696
|
+
<key>NSAllowsArbitraryLoads</key>
|
|
697
|
+
<false/>
|
|
698
|
+
<key>NSAllowsLocalNetworking</key>
|
|
699
|
+
<true/>
|
|
700
|
+
</dict>
|
|
701
|
+
<key>NSUserTrackingUsageDescription</key>
|
|
702
|
+
<string>TestUserTrackingUsageDescription</string>
|
|
703
|
+
<key>RCTNewArchEnabled</key>
|
|
704
|
+
<true/>
|
|
705
|
+
<key>SKAdNetworkItems</key>
|
|
706
|
+
<array>
|
|
707
|
+
<dict>
|
|
708
|
+
<key>SKAdNetworkIdentifier</key>
|
|
709
|
+
<string>TestSkAdNetworkItem1</string>
|
|
710
|
+
</dict>
|
|
711
|
+
<dict>
|
|
712
|
+
<key>SKAdNetworkIdentifier</key>
|
|
713
|
+
<string>TestSkAdNetworkItem2</string>
|
|
714
|
+
</dict>
|
|
715
|
+
</array>
|
|
716
|
+
<key>UILaunchStoryboardName</key>
|
|
717
|
+
<string>SplashScreen</string>
|
|
718
|
+
<key>UIRequiredDeviceCapabilities</key>
|
|
719
|
+
<array>
|
|
720
|
+
<string>arm64</string>
|
|
721
|
+
</array>
|
|
722
|
+
<key>UIRequiresFullScreen</key>
|
|
723
|
+
<false/>
|
|
724
|
+
<key>UIStatusBarStyle</key>
|
|
725
|
+
<string>UIStatusBarStyleDefault</string>
|
|
726
|
+
<key>UISupportedInterfaceOrientations</key>
|
|
727
|
+
<array>
|
|
728
|
+
<string>UIInterfaceOrientationPortrait</string>
|
|
729
|
+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
|
730
|
+
<string>UIInterfaceOrientationLandscapeLeft</string>
|
|
731
|
+
<string>UIInterfaceOrientationLandscapeRight</string>
|
|
732
|
+
</array>
|
|
733
|
+
<key>UIUserInterfaceStyle</key>
|
|
734
|
+
<string>Light</string>
|
|
735
|
+
<key>UIViewControllerBasedStatusBarAppearance</key>
|
|
736
|
+
<false/>
|
|
737
|
+
</dict>
|
|
738
|
+
</plist>"
|
|
739
|
+
`;
|