react-native-google-mobile-ads 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (373) hide show
  1. package/LICENSE +32 -0
  2. package/README.md +65 -0
  3. package/RNGoogleMobileAds.podspec +42 -0
  4. package/__tests__/consent.test.ts +25 -0
  5. package/__tests__/googleMobileAds.test.ts +63 -0
  6. package/__tests__/interstitial.test.ts +53 -0
  7. package/__tests__/requestOptions.test.tsx +4 -0
  8. package/__tests__/rewarded.test.tsx +4 -0
  9. package/__tests__/showOptions.test.tsx +4 -0
  10. package/android/.editorconfig +10 -0
  11. package/android/app-json.gradle +69 -0
  12. package/android/build.gradle +98 -0
  13. package/android/lint.xml +5 -0
  14. package/android/settings.gradle +1 -0
  15. package/android/src/main/AndroidManifest.xml +17 -0
  16. package/android/src/main/java/io/invertase/googlemobileads/ReactNativeAppModule.java +169 -0
  17. package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsAppOpenModule.java +161 -0
  18. package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsBannerAdViewManager.java +209 -0
  19. package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsCommon.java +256 -0
  20. package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsConsentModule.java +226 -0
  21. package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsEvent.java +72 -0
  22. package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsInterstitialModule.java +159 -0
  23. package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsModule.java +143 -0
  24. package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsPackage.java +48 -0
  25. package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsRewardedModule.java +177 -0
  26. package/android/src/main/java/io/invertase/googlemobileads/common/RCTConvert.java +111 -0
  27. package/android/src/main/java/io/invertase/googlemobileads/common/ReactNativeApp.java +34 -0
  28. package/android/src/main/java/io/invertase/googlemobileads/common/ReactNativeEvent.java +41 -0
  29. package/android/src/main/java/io/invertase/googlemobileads/common/ReactNativeEventEmitter.java +150 -0
  30. package/android/src/main/java/io/invertase/googlemobileads/common/ReactNativeInitProvider.java +77 -0
  31. package/android/src/main/java/io/invertase/googlemobileads/common/ReactNativeJSON.java +107 -0
  32. package/android/src/main/java/io/invertase/googlemobileads/common/ReactNativeMeta.java +92 -0
  33. package/android/src/main/java/io/invertase/googlemobileads/common/ReactNativeModule.java +96 -0
  34. package/android/src/main/java/io/invertase/googlemobileads/common/ReactNativePreferences.java +86 -0
  35. package/android/src/main/java/io/invertase/googlemobileads/common/SharedUtils.java +427 -0
  36. package/android/src/main/java/io/invertase/googlemobileads/common/TaskExecutorService.java +124 -0
  37. package/android/src/main/java/io/invertase/googlemobileads/interfaces/ContextProvider.java +30 -0
  38. package/android/src/main/java/io/invertase/googlemobileads/interfaces/NativeError.java +28 -0
  39. package/android/src/main/java/io/invertase/googlemobileads/interfaces/NativeEvent.java +26 -0
  40. package/babel.config.js +18 -0
  41. package/docs/displaying-ads.mdx +319 -0
  42. package/docs/european-user-consent.mdx +258 -0
  43. package/docs/img/logo_admob_192px.svg +19 -0
  44. package/docs/index.mdx +168 -0
  45. package/docs.json +9 -0
  46. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsAppOpenModule.h +29 -0
  47. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsAppOpenModule.m +98 -0
  48. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsBannerViewManager.h +23 -0
  49. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsBannerViewManager.m +153 -0
  50. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsCommon.h +60 -0
  51. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsCommon.m +201 -0
  52. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsConsentModule.h +26 -0
  53. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsConsentModule.m +179 -0
  54. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsFullScreenContentDelegate.h +32 -0
  55. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsFullScreenContentDelegate.m +57 -0
  56. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsInterstitialModule.h +25 -0
  57. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsInterstitialModule.m +124 -0
  58. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsModule.h +24 -0
  59. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsModule.m +104 -0
  60. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsRewardedModule.h +25 -0
  61. package/ios/RNGoogleMobileAds/RNGoogleMobileAdsRewardedModule.m +173 -0
  62. package/ios/RNGoogleMobileAds/common/RNAppModule.h +24 -0
  63. package/ios/RNGoogleMobileAds/common/RNAppModule.m +158 -0
  64. package/ios/RNGoogleMobileAds/common/RNJSON.h +34 -0
  65. package/ios/RNGoogleMobileAds/common/RNJSON.m +93 -0
  66. package/ios/RNGoogleMobileAds/common/RNMeta.h +30 -0
  67. package/ios/RNGoogleMobileAds/common/RNMeta.m +61 -0
  68. package/ios/RNGoogleMobileAds/common/RNPreferences.h +44 -0
  69. package/ios/RNGoogleMobileAds/common/RNPreferences.m +94 -0
  70. package/ios/RNGoogleMobileAds/common/RNRCTEventEmitter.h +73 -0
  71. package/ios/RNGoogleMobileAds/common/RNRCTEventEmitter.m +150 -0
  72. package/ios/RNGoogleMobileAds/common/RNSharedUtils.h +48 -0
  73. package/ios/RNGoogleMobileAds/common/RNSharedUtils.m +56 -0
  74. package/ios/RNGoogleMobileAds.xcodeproj/project.pbxproj +377 -0
  75. package/ios/RNGoogleMobileAds.xcodeproj/xcshareddata/IDETemplateMacros.plist +24 -0
  76. package/ios_config.sh +140 -0
  77. package/jest.config.js +6 -0
  78. package/jest.setup.ts +29 -0
  79. package/lib/commonjs/AdEventType.js +34 -0
  80. package/lib/commonjs/AdEventType.js.map +1 -0
  81. package/lib/commonjs/AdsConsent.js +160 -0
  82. package/lib/commonjs/AdsConsent.js.map +1 -0
  83. package/lib/commonjs/AdsConsentDebugGeography.js +38 -0
  84. package/lib/commonjs/AdsConsentDebugGeography.js.map +1 -0
  85. package/lib/commonjs/AdsConsentStatus.js +36 -0
  86. package/lib/commonjs/AdsConsentStatus.js.map +1 -0
  87. package/lib/commonjs/BannerAdSize.js +38 -0
  88. package/lib/commonjs/BannerAdSize.js.map +1 -0
  89. package/lib/commonjs/MaxAdContentRating.js +33 -0
  90. package/lib/commonjs/MaxAdContentRating.js.map +1 -0
  91. package/lib/commonjs/MobileAds.js +67 -0
  92. package/lib/commonjs/MobileAds.js.map +1 -0
  93. package/lib/commonjs/RewardedAdEventType.js +31 -0
  94. package/lib/commonjs/RewardedAdEventType.js.map +1 -0
  95. package/lib/commonjs/TestIds.js +47 -0
  96. package/lib/commonjs/TestIds.js.map +1 -0
  97. package/lib/commonjs/ads/AppOpenAd.js +96 -0
  98. package/lib/commonjs/ads/AppOpenAd.js.map +1 -0
  99. package/lib/commonjs/ads/BannerAd.js +128 -0
  100. package/lib/commonjs/ads/BannerAd.js.map +1 -0
  101. package/lib/commonjs/ads/InterstitialAd.js +163 -0
  102. package/lib/commonjs/ads/InterstitialAd.js.map +1 -0
  103. package/lib/commonjs/ads/MobileAd.js +90 -0
  104. package/lib/commonjs/ads/MobileAd.js.map +1 -0
  105. package/lib/commonjs/ads/RewardedAd.js +169 -0
  106. package/lib/commonjs/ads/RewardedAd.js.map +1 -0
  107. package/lib/commonjs/common/Base64.js +121 -0
  108. package/lib/commonjs/common/Base64.js.map +1 -0
  109. package/lib/commonjs/common/MutatableParams.js +46 -0
  110. package/lib/commonjs/common/MutatableParams.js.map +1 -0
  111. package/lib/commonjs/common/ReferenceBase.js +59 -0
  112. package/lib/commonjs/common/ReferenceBase.js.map +1 -0
  113. package/lib/commonjs/common/deeps.js +101 -0
  114. package/lib/commonjs/common/deeps.js.map +1 -0
  115. package/lib/commonjs/common/id.js +82 -0
  116. package/lib/commonjs/common/id.js.map +1 -0
  117. package/lib/commonjs/common/index.js +212 -0
  118. package/lib/commonjs/common/index.js.map +1 -0
  119. package/lib/commonjs/common/path.js +144 -0
  120. package/lib/commonjs/common/path.js.map +1 -0
  121. package/lib/commonjs/common/promise.js +70 -0
  122. package/lib/commonjs/common/promise.js.map +1 -0
  123. package/lib/commonjs/common/serialize.js +52 -0
  124. package/lib/commonjs/common/serialize.js.map +1 -0
  125. package/lib/commonjs/common/validate.js +239 -0
  126. package/lib/commonjs/common/validate.js.map +1 -0
  127. package/lib/commonjs/declarations.d.js +2 -0
  128. package/lib/commonjs/declarations.d.js.map +1 -0
  129. package/lib/commonjs/index.js +143 -0
  130. package/lib/commonjs/index.js.map +1 -0
  131. package/lib/commonjs/internal/GoogleMobileAdsNativeEventEmitter.js +76 -0
  132. package/lib/commonjs/internal/GoogleMobileAdsNativeEventEmitter.js.map +1 -0
  133. package/lib/commonjs/internal/Module.js +60 -0
  134. package/lib/commonjs/internal/Module.js.map +1 -0
  135. package/lib/commonjs/internal/NativeError.js +70 -0
  136. package/lib/commonjs/internal/NativeError.js.map +1 -0
  137. package/lib/commonjs/internal/SharedEventEmitter.js +31 -0
  138. package/lib/commonjs/internal/SharedEventEmitter.js.map +1 -0
  139. package/lib/commonjs/internal/constants.js +30 -0
  140. package/lib/commonjs/internal/constants.js.map +1 -0
  141. package/lib/commonjs/internal/index.js +49 -0
  142. package/lib/commonjs/internal/index.js.map +1 -0
  143. package/lib/commonjs/internal/registry/nativeModule.js +231 -0
  144. package/lib/commonjs/internal/registry/nativeModule.js.map +1 -0
  145. package/lib/commonjs/types/AdEventListener.js +6 -0
  146. package/lib/commonjs/types/AdEventListener.js.map +1 -0
  147. package/lib/commonjs/types/AdShowOptions.js +2 -0
  148. package/lib/commonjs/types/AdShowOptions.js.map +1 -0
  149. package/lib/commonjs/types/AdapterStatus.js +18 -0
  150. package/lib/commonjs/types/AdapterStatus.js.map +1 -0
  151. package/lib/commonjs/types/AdsConsent.interface.js +6 -0
  152. package/lib/commonjs/types/AdsConsent.interface.js.map +1 -0
  153. package/lib/commonjs/types/BannerAdProps.js +6 -0
  154. package/lib/commonjs/types/BannerAdProps.js.map +1 -0
  155. package/lib/commonjs/types/GoogleMobileAdsNativeModule.js +6 -0
  156. package/lib/commonjs/types/GoogleMobileAdsNativeModule.js.map +1 -0
  157. package/lib/commonjs/types/MobileAd.interface.js +6 -0
  158. package/lib/commonjs/types/MobileAd.interface.js.map +1 -0
  159. package/lib/commonjs/types/MobileAdsModule.interface.js +6 -0
  160. package/lib/commonjs/types/MobileAdsModule.interface.js.map +1 -0
  161. package/lib/commonjs/types/Module.interface.js +2 -0
  162. package/lib/commonjs/types/Module.interface.js.map +1 -0
  163. package/lib/commonjs/types/RequestConfiguration.js +6 -0
  164. package/lib/commonjs/types/RequestConfiguration.js.map +1 -0
  165. package/lib/commonjs/types/RequestOptions.js +2 -0
  166. package/lib/commonjs/types/RequestOptions.js.map +1 -0
  167. package/lib/commonjs/types/RewardedAdReward.js +2 -0
  168. package/lib/commonjs/types/RewardedAdReward.js.map +1 -0
  169. package/lib/commonjs/validateAdRequestConfiguration.js +69 -0
  170. package/lib/commonjs/validateAdRequestConfiguration.js.map +1 -0
  171. package/lib/commonjs/validateAdRequestOptions.js +158 -0
  172. package/lib/commonjs/validateAdRequestOptions.js.map +1 -0
  173. package/lib/commonjs/validateAdShowOptions.js +47 -0
  174. package/lib/commonjs/validateAdShowOptions.js.map +1 -0
  175. package/lib/commonjs/version.js +10 -0
  176. package/lib/commonjs/version.js.map +1 -0
  177. package/lib/module/AdEventType.js +26 -0
  178. package/lib/module/AdEventType.js.map +1 -0
  179. package/lib/module/AdsConsent.js +148 -0
  180. package/lib/module/AdsConsent.js.map +1 -0
  181. package/lib/module/AdsConsentDebugGeography.js +30 -0
  182. package/lib/module/AdsConsentDebugGeography.js.map +1 -0
  183. package/lib/module/AdsConsentStatus.js +28 -0
  184. package/lib/module/AdsConsentStatus.js.map +1 -0
  185. package/lib/module/BannerAdSize.js +30 -0
  186. package/lib/module/BannerAdSize.js.map +1 -0
  187. package/lib/module/MaxAdContentRating.js +25 -0
  188. package/lib/module/MaxAdContentRating.js.map +1 -0
  189. package/lib/module/MobileAds.js +53 -0
  190. package/lib/module/MobileAds.js.map +1 -0
  191. package/lib/module/RewardedAdEventType.js +23 -0
  192. package/lib/module/RewardedAdEventType.js.map +1 -0
  193. package/lib/module/TestIds.js +38 -0
  194. package/lib/module/TestIds.js.map +1 -0
  195. package/lib/module/ads/AppOpenAd.js +81 -0
  196. package/lib/module/ads/AppOpenAd.js.map +1 -0
  197. package/lib/module/ads/BannerAd.js +108 -0
  198. package/lib/module/ads/BannerAd.js.map +1 -0
  199. package/lib/module/ads/InterstitialAd.js +149 -0
  200. package/lib/module/ads/InterstitialAd.js.map +1 -0
  201. package/lib/module/ads/MobileAd.js +94 -0
  202. package/lib/module/ads/MobileAd.js.map +1 -0
  203. package/lib/module/ads/RewardedAd.js +155 -0
  204. package/lib/module/ads/RewardedAd.js.map +1 -0
  205. package/lib/module/common/Base64.js +106 -0
  206. package/lib/module/common/Base64.js.map +1 -0
  207. package/lib/module/common/MutatableParams.js +52 -0
  208. package/lib/module/common/MutatableParams.js.map +1 -0
  209. package/lib/module/common/ReferenceBase.js +50 -0
  210. package/lib/module/common/ReferenceBase.js.map +1 -0
  211. package/lib/module/common/deeps.js +91 -0
  212. package/lib/module/common/deeps.js.map +1 -0
  213. package/lib/module/common/id.js +74 -0
  214. package/lib/module/common/id.js.map +1 -0
  215. package/lib/module/common/index.js +109 -0
  216. package/lib/module/common/index.js.map +1 -0
  217. package/lib/module/common/path.js +120 -0
  218. package/lib/module/common/path.js.map +1 -0
  219. package/lib/module/common/promise.js +60 -0
  220. package/lib/module/common/promise.js.map +1 -0
  221. package/lib/module/common/serialize.js +41 -0
  222. package/lib/module/common/serialize.js.map +1 -0
  223. package/lib/module/common/validate.js +197 -0
  224. package/lib/module/common/validate.js.map +1 -0
  225. package/lib/module/declarations.d.js +2 -0
  226. package/lib/module/declarations.d.js.map +1 -0
  227. package/lib/module/index.js +33 -0
  228. package/lib/module/index.js.map +1 -0
  229. package/lib/module/internal/GoogleMobileAdsNativeEventEmitter.js +83 -0
  230. package/lib/module/internal/GoogleMobileAdsNativeEventEmitter.js.map +1 -0
  231. package/lib/module/internal/Module.js +64 -0
  232. package/lib/module/internal/Module.js.map +1 -0
  233. package/lib/module/internal/NativeError.js +61 -0
  234. package/lib/module/internal/NativeError.js.map +1 -0
  235. package/lib/module/internal/SharedEventEmitter.js +20 -0
  236. package/lib/module/internal/SharedEventEmitter.js.map +1 -0
  237. package/lib/module/internal/constants.js +20 -0
  238. package/lib/module/internal/constants.js.map +1 -0
  239. package/lib/module/internal/index.js +21 -0
  240. package/lib/module/internal/index.js.map +1 -0
  241. package/lib/module/internal/registry/nativeModule.js +215 -0
  242. package/lib/module/internal/registry/nativeModule.js.map +1 -0
  243. package/lib/module/types/AdEventListener.js +2 -0
  244. package/lib/module/types/AdEventListener.js.map +1 -0
  245. package/lib/module/types/AdShowOptions.js +2 -0
  246. package/lib/module/types/AdShowOptions.js.map +1 -0
  247. package/lib/module/types/AdapterStatus.js +10 -0
  248. package/lib/module/types/AdapterStatus.js.map +1 -0
  249. package/lib/module/types/AdsConsent.interface.js +2 -0
  250. package/lib/module/types/AdsConsent.interface.js.map +1 -0
  251. package/lib/module/types/BannerAdProps.js +2 -0
  252. package/lib/module/types/BannerAdProps.js.map +1 -0
  253. package/lib/module/types/GoogleMobileAdsNativeModule.js +2 -0
  254. package/lib/module/types/GoogleMobileAdsNativeModule.js.map +1 -0
  255. package/lib/module/types/MobileAd.interface.js +2 -0
  256. package/lib/module/types/MobileAd.interface.js.map +1 -0
  257. package/lib/module/types/MobileAdsModule.interface.js +2 -0
  258. package/lib/module/types/MobileAdsModule.interface.js.map +1 -0
  259. package/lib/module/types/Module.interface.js +2 -0
  260. package/lib/module/types/Module.interface.js.map +1 -0
  261. package/lib/module/types/RequestConfiguration.js +2 -0
  262. package/lib/module/types/RequestConfiguration.js.map +1 -0
  263. package/lib/module/types/RequestOptions.js +2 -0
  264. package/lib/module/types/RequestOptions.js.map +1 -0
  265. package/lib/module/types/RewardedAdReward.js +2 -0
  266. package/lib/module/types/RewardedAdReward.js.map +1 -0
  267. package/lib/module/validateAdRequestConfiguration.js +60 -0
  268. package/lib/module/validateAdRequestConfiguration.js.map +1 -0
  269. package/lib/module/validateAdRequestOptions.js +150 -0
  270. package/lib/module/validateAdRequestOptions.js.map +1 -0
  271. package/lib/module/validateAdShowOptions.js +39 -0
  272. package/lib/module/validateAdShowOptions.js.map +1 -0
  273. package/lib/module/version.js +3 -0
  274. package/lib/module/version.js.map +1 -0
  275. package/lib/typescript/AdEventType.d.ts +47 -0
  276. package/lib/typescript/AdsConsent.d.ts +2 -0
  277. package/lib/typescript/AdsConsentDebugGeography.d.ts +19 -0
  278. package/lib/typescript/AdsConsentStatus.d.ts +17 -0
  279. package/lib/typescript/BannerAdSize.d.ts +34 -0
  280. package/lib/typescript/MaxAdContentRating.d.ts +18 -0
  281. package/lib/typescript/MobileAds.d.ts +11 -0
  282. package/lib/typescript/RewardedAdEventType.d.ts +46 -0
  283. package/lib/typescript/TestIds.d.ts +6 -0
  284. package/lib/typescript/ads/AppOpenAd.d.ts +11 -0
  285. package/lib/typescript/ads/BannerAd.d.ts +3 -0
  286. package/lib/typescript/ads/InterstitialAd.d.ts +78 -0
  287. package/lib/typescript/ads/MobileAd.d.ts +32 -0
  288. package/lib/typescript/ads/RewardedAd.d.ts +84 -0
  289. package/lib/typescript/common/Base64.d.ts +14 -0
  290. package/lib/typescript/common/MutatableParams.d.ts +9 -0
  291. package/lib/typescript/common/ReferenceBase.d.ts +11 -0
  292. package/lib/typescript/common/deeps.d.ts +18 -0
  293. package/lib/typescript/common/id.d.ts +11 -0
  294. package/lib/typescript/common/index.d.ts +28 -0
  295. package/lib/typescript/common/path.d.ts +43 -0
  296. package/lib/typescript/common/promise.d.ts +13 -0
  297. package/lib/typescript/common/serialize.d.ts +5 -0
  298. package/lib/typescript/common/validate.d.ts +90 -0
  299. package/lib/typescript/index.d.ts +14 -0
  300. package/lib/typescript/internal/GoogleMobileAdsNativeEventEmitter.d.ts +12 -0
  301. package/lib/typescript/internal/Module.d.ts +13 -0
  302. package/lib/typescript/internal/NativeError.d.ts +26 -0
  303. package/lib/typescript/internal/SharedEventEmitter.d.ts +2 -0
  304. package/lib/typescript/internal/constants.d.ts +3 -0
  305. package/lib/typescript/internal/index.d.ts +4 -0
  306. package/lib/typescript/internal/registry/nativeModule.d.ts +15 -0
  307. package/lib/typescript/types/AdEventListener.d.ts +11 -0
  308. package/lib/typescript/types/AdShowOptions.d.ts +12 -0
  309. package/lib/typescript/types/AdapterStatus.d.ts +18 -0
  310. package/lib/typescript/types/AdsConsent.interface.d.ts +286 -0
  311. package/lib/typescript/types/BannerAdProps.d.ts +66 -0
  312. package/lib/typescript/types/GoogleMobileAdsNativeModule.d.ts +14 -0
  313. package/lib/typescript/types/MobileAd.interface.d.ts +64 -0
  314. package/lib/typescript/types/MobileAdsModule.interface.d.ts +38 -0
  315. package/lib/typescript/types/Module.interface.d.ts +14 -0
  316. package/lib/typescript/types/RequestConfiguration.d.ts +36 -0
  317. package/lib/typescript/types/RequestOptions.d.ts +106 -0
  318. package/lib/typescript/types/RewardedAdReward.d.ts +13 -0
  319. package/lib/typescript/validateAdRequestConfiguration.d.ts +2 -0
  320. package/lib/typescript/validateAdRequestOptions.d.ts +2 -0
  321. package/lib/typescript/validateAdShowOptions.d.ts +2 -0
  322. package/lib/typescript/version.d.ts +1 -0
  323. package/package.json +143 -0
  324. package/react-native.config.js +19 -0
  325. package/src/AdEventType.ts +68 -0
  326. package/src/AdsConsent.ts +191 -0
  327. package/src/AdsConsentDebugGeography.ts +38 -0
  328. package/src/AdsConsentStatus.ts +36 -0
  329. package/src/BannerAdSize.ts +59 -0
  330. package/src/MaxAdContentRating.ts +38 -0
  331. package/src/MobileAds.ts +84 -0
  332. package/src/RewardedAdEventType.ts +64 -0
  333. package/src/TestIds.ts +39 -0
  334. package/src/ads/AppOpenAd.ts +85 -0
  335. package/src/ads/BannerAd.tsx +126 -0
  336. package/src/ads/InterstitialAd.ts +156 -0
  337. package/src/ads/MobileAd.ts +101 -0
  338. package/src/ads/RewardedAd.ts +161 -0
  339. package/src/common/Base64.ts +114 -0
  340. package/src/common/MutatableParams.ts +50 -0
  341. package/src/common/ReferenceBase.ts +45 -0
  342. package/src/common/deeps.ts +88 -0
  343. package/src/common/id.ts +74 -0
  344. package/src/common/index.ts +103 -0
  345. package/src/common/path.ts +114 -0
  346. package/src/common/promise.ts +66 -0
  347. package/src/common/serialize.ts +43 -0
  348. package/src/common/validate.ts +205 -0
  349. package/src/declarations.d.ts +3 -0
  350. package/src/index.ts +35 -0
  351. package/src/internal/GoogleMobileAdsNativeEventEmitter.ts +81 -0
  352. package/src/internal/Module.ts +58 -0
  353. package/src/internal/NativeError.ts +56 -0
  354. package/src/internal/SharedEventEmitter.ts +22 -0
  355. package/src/internal/constants.ts +43 -0
  356. package/src/internal/index.ts +21 -0
  357. package/src/internal/registry/nativeModule.ts +226 -0
  358. package/src/types/AdEventListener.ts +16 -0
  359. package/src/types/AdShowOptions.ts +12 -0
  360. package/src/types/AdapterStatus.ts +20 -0
  361. package/src/types/AdsConsent.interface.ts +306 -0
  362. package/src/types/BannerAdProps.ts +73 -0
  363. package/src/types/GoogleMobileAdsNativeModule.ts +15 -0
  364. package/src/types/MobileAd.interface.ts +69 -0
  365. package/src/types/MobileAdsModule.interface.ts +43 -0
  366. package/src/types/Module.interface.ts +16 -0
  367. package/src/types/RequestConfiguration.ts +40 -0
  368. package/src/types/RequestOptions.ts +113 -0
  369. package/src/types/RewardedAdReward.ts +14 -0
  370. package/src/validateAdRequestConfiguration.ts +71 -0
  371. package/src/validateAdRequestOptions.ts +168 -0
  372. package/src/validateAdShowOptions.ts +41 -0
  373. package/src/version.ts +2 -0
@@ -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,48 @@
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)sendJSEvent:name:(NSString *)name body:(NSDictionary *)body;
40
+
41
+ + (void)rejectPromiseWithUserInfo:(RCTPromiseRejectBlock)reject
42
+ userInfo:(NSMutableDictionary *)userInfo;
43
+
44
+ + (NSString *)getISO8601String:(NSDate *)date;
45
+
46
+ @end
47
+
48
+ #endif
@@ -0,0 +1,56 @@
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
+ #import "RNRCTEventEmitter.h"
20
+
21
+ #pragma mark -
22
+ #pragma mark Constants
23
+
24
+ @implementation RNSharedUtils
25
+ static NSString *const RNErrorDomain = @"RNErrorDomain";
26
+
27
+ #pragma mark -
28
+ #pragma mark Methods
29
+
30
+ + (void)rejectPromiseWithUserInfo:(RCTPromiseRejectBlock)reject
31
+ userInfo:(NSMutableDictionary *)userInfo {
32
+ NSError *error = [NSError errorWithDomain:RNErrorDomain code:666 userInfo:userInfo];
33
+ reject(userInfo[@"code"], userInfo[@"message"], error);
34
+ }
35
+
36
+ + (void)sendJSEvent:name:(NSString *)name body:(NSDictionary *)body {
37
+ NSMutableDictionary *newBody = [body mutableCopy];
38
+ [[RNRCTEventEmitter shared] sendEventWithName:name body:newBody];
39
+ }
40
+
41
+ + (NSString *)getISO8601String:(NSDate *)date {
42
+ static NSDateFormatter *formatter = nil;
43
+
44
+ if (!formatter) {
45
+ formatter = [[NSDateFormatter alloc] init];
46
+ [formatter setLocale:[NSLocale localeWithLocaleIdentifier:@"en_US_POSIX"]];
47
+ formatter.timeZone = [NSTimeZone timeZoneWithAbbreviation:@"UTC"];
48
+ [formatter setDateFormat:@"yyyy-MM-dd'T'HH:mm:ss"];
49
+ }
50
+
51
+ NSString *iso8601String = [formatter stringFromDate:date];
52
+
53
+ return [iso8601String stringByAppendingString:@"Z"];
54
+ }
55
+
56
+ @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
+ }
@@ -0,0 +1,24 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>FILEHEADER</key>
6
+ <string>
7
+ /**
8
+ * Copyright (c) 2016-present Invertase Limited &amp; Contributors
9
+ *
10
+ * Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
11
+ * you may not use this library except in compliance with the License.
12
+ * You may obtain a copy of the License at
13
+ *
14
+ * http://www.apache.org/licenses/LICENSE-2.0
15
+ *
16
+ * Unless required by applicable law or agreed to in writing, software
17
+ * distributed under the License is distributed on an &quot;AS IS&quot; BASIS,
18
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ * See the License for the specific language governing permissions and
20
+ * limitations under the License.
21
+ *
22
+ */</string>
23
+ </dict>
24
+ </plist>