@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,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2016-present Invertase Limited & Contributors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this library except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
#import <Foundation/Foundation.h>
|
|
19
|
+
#import <React/RCTEventEmitter.h>
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Listena for events and emits them to the JS layer
|
|
23
|
+
*/
|
|
24
|
+
@interface RNRCTEventEmitter : NSObject
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The RCTBridge. Assigned by `RNAppModule`
|
|
28
|
+
*/
|
|
29
|
+
@property(nonatomic, weak) RCTBridge *bridge;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Returns the shared instance
|
|
33
|
+
*
|
|
34
|
+
* @returns RNRCTEventEmitter.
|
|
35
|
+
*/
|
|
36
|
+
+ (RNRCTEventEmitter *)shared;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Invalidate
|
|
40
|
+
*/
|
|
41
|
+
- (void)invalidate;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Add an event listener
|
|
45
|
+
*
|
|
46
|
+
* @param eventName NSString event name.
|
|
47
|
+
*/
|
|
48
|
+
- (void)addListener:(NSString *)eventName;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Removes event listeners
|
|
52
|
+
*/
|
|
53
|
+
- (void)removeListeners:(NSString *)eventName all:(BOOL)all;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Send an event to JS with the specified name and body
|
|
57
|
+
*
|
|
58
|
+
*/
|
|
59
|
+
- (void)sendEventWithName:(NSString *)eventName body:(id)body;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Notify the event emitter that JS has loaded and is ready to receive events.
|
|
63
|
+
*
|
|
64
|
+
*/
|
|
65
|
+
- (void)notifyJsReady:(BOOL)ready;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Returns a dictionary of all registered events & counts. Mainly for testing.
|
|
69
|
+
*
|
|
70
|
+
* @return NSDictionary
|
|
71
|
+
*/
|
|
72
|
+
- (NSDictionary *)getListenersDictionary;
|
|
73
|
+
@end
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2016-present Invertase Limited & Contributors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this library except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
#import "RNRCTEventEmitter.h"
|
|
19
|
+
|
|
20
|
+
@interface RNRCTEventEmitter ()
|
|
21
|
+
@property(atomic, assign) BOOL jsReady;
|
|
22
|
+
@property(atomic, assign) NSInteger jsListenerCount;
|
|
23
|
+
@property(nonatomic, strong) NSMutableDictionary *jsListeners;
|
|
24
|
+
@property(nonatomic, strong) NSMutableArray *queuedEvents;
|
|
25
|
+
@property(readonly) BOOL isObserving;
|
|
26
|
+
@end
|
|
27
|
+
|
|
28
|
+
NSString *const RNRCTEventNameKey = @"name";
|
|
29
|
+
NSString *const RNRCTEventBodyKey = @"body";
|
|
30
|
+
|
|
31
|
+
@implementation RNRCTEventEmitter
|
|
32
|
+
|
|
33
|
+
- (void)invalidate {
|
|
34
|
+
self.jsReady = FALSE;
|
|
35
|
+
self.queuedEvents = [NSMutableArray array];
|
|
36
|
+
self.jsListeners = [NSMutableDictionary dictionary];
|
|
37
|
+
self.jsListenerCount = 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
+ (instancetype)shared {
|
|
41
|
+
static dispatch_once_t once;
|
|
42
|
+
static RNRCTEventEmitter *sharedInstance;
|
|
43
|
+
dispatch_once(&once, ^{
|
|
44
|
+
sharedInstance = [[RNRCTEventEmitter alloc] init];
|
|
45
|
+
});
|
|
46
|
+
return sharedInstance;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
- (instancetype)init {
|
|
50
|
+
self = [super init];
|
|
51
|
+
|
|
52
|
+
if (self) {
|
|
53
|
+
self.jsReady = FALSE;
|
|
54
|
+
self.queuedEvents = [NSMutableArray array];
|
|
55
|
+
self.jsListeners = [NSMutableDictionary dictionary];
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
return self;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
- (void)notifyJsReady:(BOOL)jsReady {
|
|
62
|
+
@synchronized(self.jsListeners) {
|
|
63
|
+
self.jsReady = jsReady;
|
|
64
|
+
if (jsReady) {
|
|
65
|
+
for (id event in [self.queuedEvents copy]) {
|
|
66
|
+
[self sendEventWithName:event[RNRCTEventNameKey] body:event[RNRCTEventBodyKey]];
|
|
67
|
+
@synchronized(self.queuedEvents) {
|
|
68
|
+
[self.queuedEvents removeObject:event];
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
- (void)sendEventWithName:(NSString *)eventName body:(id)body {
|
|
76
|
+
@synchronized(self.jsListeners) {
|
|
77
|
+
if (self.bridge && self.isObserving && self.jsListeners[eventName] != nil) {
|
|
78
|
+
NSString *prefixedEventName = [@"rnapp_" stringByAppendingString:eventName];
|
|
79
|
+
[self.bridge enqueueJSCall:@"RCTDeviceEventEmitter"
|
|
80
|
+
method:@"emit"
|
|
81
|
+
args:body ? @[ prefixedEventName, body ] : @[ prefixedEventName ]
|
|
82
|
+
completion:NULL];
|
|
83
|
+
} else {
|
|
84
|
+
@synchronized(self.queuedEvents) {
|
|
85
|
+
[self.queuedEvents addObject:@{RNRCTEventNameKey : eventName, RNRCTEventBodyKey : body}];
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
- (void)addListener:(NSString *)eventName {
|
|
92
|
+
@synchronized(self.jsListeners) {
|
|
93
|
+
self.jsListenerCount++;
|
|
94
|
+
|
|
95
|
+
if (self.jsListeners[eventName] == nil) {
|
|
96
|
+
self.jsListeners[eventName] = @([@1 integerValue]);
|
|
97
|
+
} else {
|
|
98
|
+
self.jsListeners[eventName] =
|
|
99
|
+
@([self.jsListeners[eventName] integerValue] + [@1 integerValue]);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
for (id event in [self.queuedEvents copy]) {
|
|
103
|
+
if ([event[RNRCTEventNameKey] isEqualToString:eventName]) {
|
|
104
|
+
[self sendEventWithName:event[RNRCTEventNameKey] body:event[RNRCTEventBodyKey]];
|
|
105
|
+
@synchronized(self.queuedEvents) {
|
|
106
|
+
[self.queuedEvents removeObject:event];
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
- (void)removeListeners:(NSString *)eventName all:(BOOL)all {
|
|
114
|
+
@synchronized(self.jsListeners) {
|
|
115
|
+
if (self.jsListeners[eventName] != nil) {
|
|
116
|
+
NSInteger listenersForEvent = [self.jsListeners[eventName] integerValue];
|
|
117
|
+
|
|
118
|
+
if (listenersForEvent <= 1 || all) {
|
|
119
|
+
@synchronized(self.jsListeners) {
|
|
120
|
+
[self.jsListeners removeObjectForKey:eventName];
|
|
121
|
+
}
|
|
122
|
+
} else {
|
|
123
|
+
@synchronized(self.jsListeners) {
|
|
124
|
+
self.jsListeners[eventName] =
|
|
125
|
+
@([self.jsListeners[eventName] integerValue] - [@1 integerValue]);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
if (all) {
|
|
130
|
+
self.jsListenerCount = self.jsListenerCount - listenersForEvent;
|
|
131
|
+
} else {
|
|
132
|
+
self.jsListenerCount = self.jsListenerCount - [@1 integerValue];
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
- (NSDictionary *)getListenersDictionary {
|
|
139
|
+
NSMutableDictionary *listenersDictionary = [NSMutableDictionary new];
|
|
140
|
+
listenersDictionary[@"listeners"] = @(self.jsListenerCount);
|
|
141
|
+
listenersDictionary[@"queued"] = @([self.queuedEvents count]);
|
|
142
|
+
listenersDictionary[@"events"] = [self.jsListeners copy];
|
|
143
|
+
return listenersDictionary;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
- (BOOL)isObserving {
|
|
147
|
+
return self.jsReady && self.jsListenerCount > 0;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
@end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2016-present Invertase Limited & Contributors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this library except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
#ifndef RNSharedUtils_h
|
|
19
|
+
#define RNSharedUtils_h
|
|
20
|
+
|
|
21
|
+
#import <React/RCTBridgeModule.h>
|
|
22
|
+
|
|
23
|
+
#ifdef DEBUG
|
|
24
|
+
#define DLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
|
|
25
|
+
#else
|
|
26
|
+
#define DLog(...)
|
|
27
|
+
#endif
|
|
28
|
+
|
|
29
|
+
#define ELog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
|
|
30
|
+
|
|
31
|
+
#pragma mark -
|
|
32
|
+
#pragma mark Constants
|
|
33
|
+
|
|
34
|
+
@interface RNSharedUtils : NSObject
|
|
35
|
+
|
|
36
|
+
#pragma mark -
|
|
37
|
+
#pragma mark Methods
|
|
38
|
+
|
|
39
|
+
+ (void)rejectPromiseWithUserInfo:(RCTPromiseRejectBlock)reject userInfo:(NSDictionary *)userInfo;
|
|
40
|
+
|
|
41
|
+
@end
|
|
42
|
+
|
|
43
|
+
#endif
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2016-present Invertase Limited & Contributors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this library except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
#import "RNSharedUtils.h"
|
|
19
|
+
|
|
20
|
+
#pragma mark -
|
|
21
|
+
#pragma mark Constants
|
|
22
|
+
|
|
23
|
+
@implementation RNSharedUtils
|
|
24
|
+
static NSString *const RNErrorDomain = @"RNErrorDomain";
|
|
25
|
+
|
|
26
|
+
#pragma mark -
|
|
27
|
+
#pragma mark Methods
|
|
28
|
+
|
|
29
|
+
+ (void)rejectPromiseWithUserInfo:(RCTPromiseRejectBlock)reject userInfo:(NSDictionary *)userInfo {
|
|
30
|
+
NSError *error = [NSError errorWithDomain:RNErrorDomain code:666 userInfo:userInfo];
|
|
31
|
+
reject(userInfo[@"code"], userInfo[@"message"], error);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@end
|
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
// !$*UTF8*$!
|
|
2
|
+
{
|
|
3
|
+
archiveVersion = 1;
|
|
4
|
+
classes = {
|
|
5
|
+
};
|
|
6
|
+
objectVersion = 48;
|
|
7
|
+
objects = {
|
|
8
|
+
|
|
9
|
+
/* Begin PBXBuildFile section */
|
|
10
|
+
2744B98621F45429004F8E3F /* RNGoogleMobileModule.m in Sources */ = {isa = PBXBuildFile; fileRef = 2744B98521F45429004F8E3F /* RNGoogleMobileModule.m */; };
|
|
11
|
+
8B06D41B22FEC8B800A5B542 /* RNGoogleMobileConsentModule.m in Sources */ = {isa = PBXBuildFile; fileRef = 8B06D41A22FEC8B800A5B542 /* RNGoogleMobileConsentModule.m */; };
|
|
12
|
+
8B06D41F230063ED00A5B542 /* RNGoogleMobileCommon.m in Sources */ = {isa = PBXBuildFile; fileRef = 8B06D41E230063ED00A5B542 /* RNGoogleMobileCommon.m */; };
|
|
13
|
+
8B4E497523017EB400587275 /* RNGoogleMobileInterstitialModule.m in Sources */ = {isa = PBXBuildFile; fileRef = 8B4E497423017EB400587275 /* RNGoogleMobileInterstitialModule.m */; };
|
|
14
|
+
8B4E497823017ED300587275 /* RNGoogleMobileRewardedModule.m in Sources */ = {isa = PBXBuildFile; fileRef = 8B4E497723017ED300587275 /* RNGoogleMobileRewardedModule.m */; };
|
|
15
|
+
8B4E497E2301BE2C00587275 /* RNGoogleMobileInterstitialDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 8B4E497D2301BE2C00587275 /* RNGoogleMobileInterstitialDelegate.m */; };
|
|
16
|
+
8BC10E6223029CAE00209FF9 /* RNGoogleMobileRewardedDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 8BC10E6123029CAE00209FF9 /* RNGoogleMobileRewardedDelegate.m */; };
|
|
17
|
+
994962B72327EA3C003D5C80 /* RNGoogleMobileBannerViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 994962B62327EA3C003D5C80 /* RNGoogleMobileBannerViewManager.m */; };
|
|
18
|
+
/* End PBXBuildFile section */
|
|
19
|
+
|
|
20
|
+
/* Begin PBXCopyFilesBuildPhase section */
|
|
21
|
+
2744B98021F45429004F8E3F /* CopyFiles */ = {
|
|
22
|
+
isa = PBXCopyFilesBuildPhase;
|
|
23
|
+
buildActionMask = 2147483647;
|
|
24
|
+
dstPath = "";
|
|
25
|
+
dstSubfolderSpec = 16;
|
|
26
|
+
files = (
|
|
27
|
+
);
|
|
28
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
29
|
+
};
|
|
30
|
+
/* End PBXCopyFilesBuildPhase section */
|
|
31
|
+
|
|
32
|
+
/* Begin PBXFileReference section */
|
|
33
|
+
2744B98221F45429004F8E3F /* libRNGoogleMobile.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNGoogleMobile.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
34
|
+
2744B98421F45429004F8E3F /* RNGoogleMobileModule.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = RNGoogleMobileModule.h; path = RNGoogleMobile/RNGoogleMobileModule.h; sourceTree = SOURCE_ROOT; };
|
|
35
|
+
2744B98521F45429004F8E3F /* RNGoogleMobileModule.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = RNGoogleMobileModule.m; path = RNGoogleMobile/RNGoogleMobileModule.m; sourceTree = SOURCE_ROOT; };
|
|
36
|
+
8B06D41922FEC8AE00A5B542 /* RNGoogleMobileConsentModule.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RNGoogleMobileConsentModule.h; sourceTree = "<group>"; };
|
|
37
|
+
8B06D41A22FEC8B800A5B542 /* RNGoogleMobileConsentModule.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RNGoogleMobileConsentModule.m; sourceTree = "<group>"; };
|
|
38
|
+
8B06D41D230063E200A5B542 /* RNGoogleMobileCommon.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RNGoogleMobileCommon.h; sourceTree = "<group>"; };
|
|
39
|
+
8B06D41E230063ED00A5B542 /* RNGoogleMobileCommon.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RNGoogleMobileCommon.m; sourceTree = "<group>"; };
|
|
40
|
+
8B4E497323017EA600587275 /* RNGoogleMobileInterstitialModule.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RNGoogleMobileInterstitialModule.h; sourceTree = "<group>"; };
|
|
41
|
+
8B4E497423017EB400587275 /* RNGoogleMobileInterstitialModule.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RNGoogleMobileInterstitialModule.m; sourceTree = "<group>"; };
|
|
42
|
+
8B4E497623017ECA00587275 /* RNGoogleMobileRewardedModule.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RNGoogleMobileRewardedModule.h; sourceTree = "<group>"; };
|
|
43
|
+
8B4E497723017ED300587275 /* RNGoogleMobileRewardedModule.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RNGoogleMobileRewardedModule.m; sourceTree = "<group>"; };
|
|
44
|
+
8B4E497C2301BE1500587275 /* RNGoogleMobileInterstitialDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RNGoogleMobileInterstitialDelegate.h; sourceTree = "<group>"; };
|
|
45
|
+
8B4E497D2301BE2C00587275 /* RNGoogleMobileInterstitialDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RNGoogleMobileInterstitialDelegate.m; sourceTree = "<group>"; };
|
|
46
|
+
8BC10E6023029CA500209FF9 /* RNGoogleMobileRewardedDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RNGoogleMobileRewardedDelegate.h; sourceTree = "<group>"; };
|
|
47
|
+
8BC10E6123029CAE00209FF9 /* RNGoogleMobileRewardedDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RNGoogleMobileRewardedDelegate.m; sourceTree = "<group>"; };
|
|
48
|
+
994962B52327EA31003D5C80 /* RNGoogleMobileBannerViewManager.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RNGoogleMobileBannerViewManager.h; sourceTree = "<group>"; };
|
|
49
|
+
994962B62327EA3C003D5C80 /* RNGoogleMobileBannerViewManager.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RNGoogleMobileBannerViewManager.m; sourceTree = "<group>"; };
|
|
50
|
+
/* End PBXFileReference section */
|
|
51
|
+
|
|
52
|
+
/* Begin PBXFrameworksBuildPhase section */
|
|
53
|
+
2744B97F21F45429004F8E3F /* Frameworks */ = {
|
|
54
|
+
isa = PBXFrameworksBuildPhase;
|
|
55
|
+
buildActionMask = 2147483647;
|
|
56
|
+
files = (
|
|
57
|
+
);
|
|
58
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
59
|
+
};
|
|
60
|
+
/* End PBXFrameworksBuildPhase section */
|
|
61
|
+
|
|
62
|
+
/* Begin PBXGroup section */
|
|
63
|
+
2744B97521F452B8004F8E3F /* Products */ = {
|
|
64
|
+
isa = PBXGroup;
|
|
65
|
+
children = (
|
|
66
|
+
2744B98221F45429004F8E3F /* libRNGoogleMobile.a */,
|
|
67
|
+
);
|
|
68
|
+
name = Products;
|
|
69
|
+
sourceTree = "<group>";
|
|
70
|
+
};
|
|
71
|
+
2744B98321F45429004F8E3F /* RNGoogleMobile */ = {
|
|
72
|
+
isa = PBXGroup;
|
|
73
|
+
children = (
|
|
74
|
+
2744B98421F45429004F8E3F /* RNGoogleMobileModule.h */,
|
|
75
|
+
2744B98521F45429004F8E3F /* RNGoogleMobileModule.m */,
|
|
76
|
+
8B06D41922FEC8AE00A5B542 /* RNGoogleMobileConsentModule.h */,
|
|
77
|
+
8B06D41A22FEC8B800A5B542 /* RNGoogleMobileConsentModule.m */,
|
|
78
|
+
8B06D41D230063E200A5B542 /* RNGoogleMobileCommon.h */,
|
|
79
|
+
8B06D41E230063ED00A5B542 /* RNGoogleMobileCommon.m */,
|
|
80
|
+
8B4E497323017EA600587275 /* RNGoogleMobileInterstitialModule.h */,
|
|
81
|
+
8B4E497423017EB400587275 /* RNGoogleMobileInterstitialModule.m */,
|
|
82
|
+
8B4E497623017ECA00587275 /* RNGoogleMobileRewardedModule.h */,
|
|
83
|
+
8B4E497723017ED300587275 /* RNGoogleMobileRewardedModule.m */,
|
|
84
|
+
8B4E497C2301BE1500587275 /* RNGoogleMobileInterstitialDelegate.h */,
|
|
85
|
+
8B4E497D2301BE2C00587275 /* RNGoogleMobileInterstitialDelegate.m */,
|
|
86
|
+
8BC10E6023029CA500209FF9 /* RNGoogleMobileRewardedDelegate.h */,
|
|
87
|
+
8BC10E6123029CAE00209FF9 /* RNGoogleMobileRewardedDelegate.m */,
|
|
88
|
+
994962B52327EA31003D5C80 /* RNGoogleMobileBannerViewManager.h */,
|
|
89
|
+
994962B62327EA3C003D5C80 /* RNGoogleMobileBannerViewManager.m */,
|
|
90
|
+
);
|
|
91
|
+
path = RNGoogleMobile;
|
|
92
|
+
sourceTree = "<group>";
|
|
93
|
+
};
|
|
94
|
+
3323F52AAFE26B7384BE4DE3 = {
|
|
95
|
+
isa = PBXGroup;
|
|
96
|
+
children = (
|
|
97
|
+
2744B98321F45429004F8E3F /* RNGoogleMobile */,
|
|
98
|
+
2744B97521F452B8004F8E3F /* Products */,
|
|
99
|
+
);
|
|
100
|
+
sourceTree = "<group>";
|
|
101
|
+
};
|
|
102
|
+
/* End PBXGroup section */
|
|
103
|
+
|
|
104
|
+
/* Begin PBXNativeTarget section */
|
|
105
|
+
2744B98121F45429004F8E3F /* RNGoogleMobile */ = {
|
|
106
|
+
isa = PBXNativeTarget;
|
|
107
|
+
buildConfigurationList = 2744B98821F45429004F8E3F /* Build configuration list for PBXNativeTarget "RNGoogleMobile" */;
|
|
108
|
+
buildPhases = (
|
|
109
|
+
2744B97E21F45429004F8E3F /* Sources */,
|
|
110
|
+
2744B97F21F45429004F8E3F /* Frameworks */,
|
|
111
|
+
2744B98021F45429004F8E3F /* CopyFiles */,
|
|
112
|
+
);
|
|
113
|
+
buildRules = (
|
|
114
|
+
);
|
|
115
|
+
dependencies = (
|
|
116
|
+
);
|
|
117
|
+
name = RNGoogleMobile;
|
|
118
|
+
productName = RNGoogleMobile;
|
|
119
|
+
productReference = 2744B98221F45429004F8E3F /* libRNGoogleMobile.a */;
|
|
120
|
+
productType = "com.apple.product-type.library.static";
|
|
121
|
+
};
|
|
122
|
+
/* End PBXNativeTarget section */
|
|
123
|
+
|
|
124
|
+
/* Begin PBXProject section */
|
|
125
|
+
3323F95273A95DB34F55C6D7 /* Project object */ = {
|
|
126
|
+
isa = PBXProject;
|
|
127
|
+
attributes = {
|
|
128
|
+
CLASSPREFIX = RNGoogleMobile;
|
|
129
|
+
LastUpgradeCheck = 1010;
|
|
130
|
+
ORGANIZATIONNAME = Invertase;
|
|
131
|
+
TargetAttributes = {
|
|
132
|
+
2744B98121F45429004F8E3F = {
|
|
133
|
+
CreatedOnToolsVersion = 10.1;
|
|
134
|
+
ProvisioningStyle = Automatic;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
buildConfigurationList = 3323F1C5716BA966BBBB95A4 /* Build configuration list for PBXProject "RNGoogleMobile" */;
|
|
139
|
+
compatibilityVersion = "Xcode 8.0";
|
|
140
|
+
developmentRegion = English;
|
|
141
|
+
hasScannedForEncodings = 0;
|
|
142
|
+
knownRegions = (
|
|
143
|
+
English,
|
|
144
|
+
en,
|
|
145
|
+
);
|
|
146
|
+
mainGroup = 3323F52AAFE26B7384BE4DE3;
|
|
147
|
+
productRefGroup = 2744B97521F452B8004F8E3F /* Products */;
|
|
148
|
+
projectDirPath = "";
|
|
149
|
+
projectRoot = "";
|
|
150
|
+
targets = (
|
|
151
|
+
2744B98121F45429004F8E3F /* RNGoogleMobile */,
|
|
152
|
+
);
|
|
153
|
+
};
|
|
154
|
+
/* End PBXProject section */
|
|
155
|
+
|
|
156
|
+
/* Begin PBXSourcesBuildPhase section */
|
|
157
|
+
2744B97E21F45429004F8E3F /* Sources */ = {
|
|
158
|
+
isa = PBXSourcesBuildPhase;
|
|
159
|
+
buildActionMask = 2147483647;
|
|
160
|
+
files = (
|
|
161
|
+
8B4E497E2301BE2C00587275 /* RNGoogleMobileInterstitialDelegate.m in Sources */,
|
|
162
|
+
8B4E497823017ED300587275 /* RNGoogleMobileRewardedModule.m in Sources */,
|
|
163
|
+
8B06D41B22FEC8B800A5B542 /* RNGoogleMobileConsentModule.m in Sources */,
|
|
164
|
+
8B4E497523017EB400587275 /* RNGoogleMobileInterstitialModule.m in Sources */,
|
|
165
|
+
994962B72327EA3C003D5C80 /* RNGoogleMobileBannerViewManager.m in Sources */,
|
|
166
|
+
8B06D41F230063ED00A5B542 /* RNGoogleMobileCommon.m in Sources */,
|
|
167
|
+
2744B98621F45429004F8E3F /* RNGoogleMobileModule.m in Sources */,
|
|
168
|
+
8BC10E6223029CAE00209FF9 /* RNGoogleMobileRewardedDelegate.m in Sources */,
|
|
169
|
+
);
|
|
170
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
171
|
+
};
|
|
172
|
+
/* End PBXSourcesBuildPhase section */
|
|
173
|
+
|
|
174
|
+
/* Begin XCBuildConfiguration section */
|
|
175
|
+
2744B98921F45429004F8E3F /* Debug */ = {
|
|
176
|
+
isa = XCBuildConfiguration;
|
|
177
|
+
buildSettings = {
|
|
178
|
+
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
179
|
+
CLANG_ANALYZER_NONNULL = YES;
|
|
180
|
+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
|
181
|
+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
|
|
182
|
+
CLANG_CXX_LIBRARY = "libc++";
|
|
183
|
+
CLANG_ENABLE_MODULES = YES;
|
|
184
|
+
CLANG_ENABLE_OBJC_ARC = YES;
|
|
185
|
+
CLANG_ENABLE_OBJC_WEAK = YES;
|
|
186
|
+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
|
187
|
+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
|
|
188
|
+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
189
|
+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
|
190
|
+
CODE_SIGN_IDENTITY = "iPhone Developer";
|
|
191
|
+
CODE_SIGN_STYLE = Automatic;
|
|
192
|
+
COPY_PHASE_STRIP = NO;
|
|
193
|
+
DEBUG_INFORMATION_FORMAT = dwarf;
|
|
194
|
+
GCC_C_LANGUAGE_STANDARD = gnu11;
|
|
195
|
+
GCC_DYNAMIC_NO_PIC = NO;
|
|
196
|
+
GCC_OPTIMIZATION_LEVEL = 0;
|
|
197
|
+
GCC_PREPROCESSOR_DEFINITIONS = (
|
|
198
|
+
"DEBUG=1",
|
|
199
|
+
"$(inherited)",
|
|
200
|
+
);
|
|
201
|
+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
|
202
|
+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
203
|
+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
|
|
204
|
+
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
|
|
205
|
+
MTL_FAST_MATH = YES;
|
|
206
|
+
OTHER_LDFLAGS = "-ObjC";
|
|
207
|
+
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
208
|
+
SDKROOT = iphoneos;
|
|
209
|
+
SKIP_INSTALL = YES;
|
|
210
|
+
TARGETED_DEVICE_FAMILY = "1,2";
|
|
211
|
+
};
|
|
212
|
+
name = Debug;
|
|
213
|
+
};
|
|
214
|
+
2744B98A21F45429004F8E3F /* Release */ = {
|
|
215
|
+
isa = XCBuildConfiguration;
|
|
216
|
+
buildSettings = {
|
|
217
|
+
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
218
|
+
CLANG_ANALYZER_NONNULL = YES;
|
|
219
|
+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
|
220
|
+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
|
|
221
|
+
CLANG_CXX_LIBRARY = "libc++";
|
|
222
|
+
CLANG_ENABLE_MODULES = YES;
|
|
223
|
+
CLANG_ENABLE_OBJC_ARC = YES;
|
|
224
|
+
CLANG_ENABLE_OBJC_WEAK = YES;
|
|
225
|
+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
|
226
|
+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
|
|
227
|
+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
228
|
+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
|
229
|
+
CODE_SIGN_IDENTITY = "iPhone Developer";
|
|
230
|
+
CODE_SIGN_STYLE = Automatic;
|
|
231
|
+
COPY_PHASE_STRIP = NO;
|
|
232
|
+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
|
233
|
+
ENABLE_NS_ASSERTIONS = NO;
|
|
234
|
+
GCC_C_LANGUAGE_STANDARD = gnu11;
|
|
235
|
+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
|
236
|
+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
237
|
+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
|
|
238
|
+
MTL_ENABLE_DEBUG_INFO = NO;
|
|
239
|
+
MTL_FAST_MATH = YES;
|
|
240
|
+
OTHER_LDFLAGS = "-ObjC";
|
|
241
|
+
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
242
|
+
SDKROOT = iphoneos;
|
|
243
|
+
SKIP_INSTALL = YES;
|
|
244
|
+
TARGETED_DEVICE_FAMILY = "1,2";
|
|
245
|
+
VALIDATE_PRODUCT = YES;
|
|
246
|
+
};
|
|
247
|
+
name = Release;
|
|
248
|
+
};
|
|
249
|
+
3323F77D701E1896E6D239CF /* Release */ = {
|
|
250
|
+
isa = XCBuildConfiguration;
|
|
251
|
+
buildSettings = {
|
|
252
|
+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
|
253
|
+
CLANG_WARN_BOOL_CONVERSION = YES;
|
|
254
|
+
CLANG_WARN_COMMA = YES;
|
|
255
|
+
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
|
256
|
+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
|
257
|
+
CLANG_WARN_EMPTY_BODY = YES;
|
|
258
|
+
CLANG_WARN_ENUM_CONVERSION = YES;
|
|
259
|
+
CLANG_WARN_INFINITE_RECURSION = YES;
|
|
260
|
+
CLANG_WARN_INT_CONVERSION = YES;
|
|
261
|
+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
|
262
|
+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
|
263
|
+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
|
264
|
+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
|
265
|
+
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
|
266
|
+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
|
267
|
+
CLANG_WARN_UNREACHABLE_CODE = YES;
|
|
268
|
+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
|
269
|
+
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
270
|
+
FRAMEWORK_SEARCH_PATHS = (
|
|
271
|
+
"$(inherited)",
|
|
272
|
+
"${BUILT_PRODUCTS_DIR}/**",
|
|
273
|
+
"${SRCROOT}/../../../ios/Google-Mobile-Ads-SDK/**",
|
|
274
|
+
"$(SRCROOT)/../../../ios/Pods/Google-Mobile-Ads-SDK/Frameworks",
|
|
275
|
+
);
|
|
276
|
+
GCC_NO_COMMON_BLOCKS = YES;
|
|
277
|
+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
278
|
+
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
|
279
|
+
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
|
280
|
+
GCC_WARN_UNINITIALIZED_AUTOS = YES;
|
|
281
|
+
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
282
|
+
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
283
|
+
HEADER_SEARCH_PATHS = (
|
|
284
|
+
"$(inherited)",
|
|
285
|
+
"$(REACT_SEARCH_PATH)/React/**",
|
|
286
|
+
"$(SRCROOT)/../../react-native/React/**",
|
|
287
|
+
"${SRCROOT}/../../../ios/Google-Mobile-Ads-SDK/**",
|
|
288
|
+
"${SRCROOT}/../../../ios/Pods/Headers/Public/**",
|
|
289
|
+
"$(SRCROOT)/../../../node_modules/react-native/React/**",
|
|
290
|
+
);
|
|
291
|
+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
|
|
292
|
+
LIBRARY_SEARCH_PATHS = "$(inherited)";
|
|
293
|
+
MACH_O_TYPE = staticlib;
|
|
294
|
+
OTHER_LDFLAGS = "$(inherited)";
|
|
295
|
+
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
296
|
+
SKIP_INSTALL = YES;
|
|
297
|
+
};
|
|
298
|
+
name = Release;
|
|
299
|
+
};
|
|
300
|
+
3323F7E33E1559A2B9826720 /* Debug */ = {
|
|
301
|
+
isa = XCBuildConfiguration;
|
|
302
|
+
buildSettings = {
|
|
303
|
+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
|
304
|
+
CLANG_WARN_BOOL_CONVERSION = YES;
|
|
305
|
+
CLANG_WARN_COMMA = YES;
|
|
306
|
+
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
|
307
|
+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
|
308
|
+
CLANG_WARN_EMPTY_BODY = YES;
|
|
309
|
+
CLANG_WARN_ENUM_CONVERSION = YES;
|
|
310
|
+
CLANG_WARN_INFINITE_RECURSION = YES;
|
|
311
|
+
CLANG_WARN_INT_CONVERSION = YES;
|
|
312
|
+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
|
313
|
+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
|
314
|
+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
|
315
|
+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
|
316
|
+
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
|
317
|
+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
|
318
|
+
CLANG_WARN_UNREACHABLE_CODE = YES;
|
|
319
|
+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
|
320
|
+
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
321
|
+
ENABLE_TESTABILITY = YES;
|
|
322
|
+
FRAMEWORK_SEARCH_PATHS = (
|
|
323
|
+
"$(inherited)",
|
|
324
|
+
"${BUILT_PRODUCTS_DIR}/**",
|
|
325
|
+
"${SRCROOT}/../../../ios/Google-Mobile-Ads-SDK/**",
|
|
326
|
+
"$(SRCROOT)/../../../ios/Pods/Google-Mobile-Ads-SDK/Frameworks",
|
|
327
|
+
);
|
|
328
|
+
GCC_NO_COMMON_BLOCKS = YES;
|
|
329
|
+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
330
|
+
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
|
331
|
+
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
|
332
|
+
GCC_WARN_UNINITIALIZED_AUTOS = YES;
|
|
333
|
+
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
334
|
+
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
335
|
+
HEADER_SEARCH_PATHS = (
|
|
336
|
+
"$(inherited)",
|
|
337
|
+
"$(REACT_SEARCH_PATH)/React/**",
|
|
338
|
+
"$(SRCROOT)/../../react-native/React/**",
|
|
339
|
+
"${SRCROOT}/../../../ios/Google-Mobile-Ads-SDK/**",
|
|
340
|
+
"${SRCROOT}/../../../ios/Pods/Headers/Public/**",
|
|
341
|
+
"$(SRCROOT)/../../../node_modules/react-native/React/**",
|
|
342
|
+
);
|
|
343
|
+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
|
|
344
|
+
LIBRARY_SEARCH_PATHS = "$(inherited)";
|
|
345
|
+
MACH_O_TYPE = staticlib;
|
|
346
|
+
ONLY_ACTIVE_ARCH = YES;
|
|
347
|
+
OTHER_LDFLAGS = "$(inherited)";
|
|
348
|
+
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
349
|
+
SKIP_INSTALL = YES;
|
|
350
|
+
};
|
|
351
|
+
name = Debug;
|
|
352
|
+
};
|
|
353
|
+
/* End XCBuildConfiguration section */
|
|
354
|
+
|
|
355
|
+
/* Begin XCConfigurationList section */
|
|
356
|
+
2744B98821F45429004F8E3F /* Build configuration list for PBXNativeTarget "RNGoogleMobile" */ = {
|
|
357
|
+
isa = XCConfigurationList;
|
|
358
|
+
buildConfigurations = (
|
|
359
|
+
2744B98921F45429004F8E3F /* Debug */,
|
|
360
|
+
2744B98A21F45429004F8E3F /* Release */,
|
|
361
|
+
);
|
|
362
|
+
defaultConfigurationIsVisible = 0;
|
|
363
|
+
defaultConfigurationName = Release;
|
|
364
|
+
};
|
|
365
|
+
3323F1C5716BA966BBBB95A4 /* Build configuration list for PBXProject "RNGoogleMobile" */ = {
|
|
366
|
+
isa = XCConfigurationList;
|
|
367
|
+
buildConfigurations = (
|
|
368
|
+
3323F7E33E1559A2B9826720 /* Debug */,
|
|
369
|
+
3323F77D701E1896E6D239CF /* Release */,
|
|
370
|
+
);
|
|
371
|
+
defaultConfigurationIsVisible = 0;
|
|
372
|
+
defaultConfigurationName = Release;
|
|
373
|
+
};
|
|
374
|
+
/* End XCConfigurationList section */
|
|
375
|
+
};
|
|
376
|
+
rootObject = 3323F95273A95DB34F55C6D7 /* Project object */;
|
|
377
|
+
}
|