react-native-google-mobile-ads 16.3.1 → 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/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsFullScreenAdModule.kt +2 -2
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsNativeModule.mm +4 -0
- package/lib/commonjs/version.js +1 -1
- package/lib/module/version.js +1 -1
- package/lib/typescript/index.d.ts +1 -1
- package/lib/typescript/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/version.ts +1 -1
|
@@ -69,7 +69,7 @@ abstract class ReactNativeGoogleMobileAdsFullScreenAdModule<T>(
|
|
|
69
69
|
fun load(
|
|
70
70
|
requestId: Int, adUnitId: String, adRequestOptions: ReadableMap
|
|
71
71
|
) {
|
|
72
|
-
val activity = currentActivity
|
|
72
|
+
val activity = reactApplicationContext.currentActivity
|
|
73
73
|
if (activity == null) {
|
|
74
74
|
val error = Arguments.createMap()
|
|
75
75
|
error.putString("code", "null-activity")
|
|
@@ -105,7 +105,7 @@ abstract class ReactNativeGoogleMobileAdsFullScreenAdModule<T>(
|
|
|
105
105
|
fun show(
|
|
106
106
|
requestId: Int, adUnitId: String, showOptions: ReadableMap, promise: Promise
|
|
107
107
|
) {
|
|
108
|
-
val activity = currentActivity
|
|
108
|
+
val activity = reactApplicationContext.currentActivity
|
|
109
109
|
if (activity == null) {
|
|
110
110
|
rejectPromiseWithCodeAndMessage(
|
|
111
111
|
promise,
|
|
@@ -48,6 +48,10 @@ RCT_EXPORT_MODULE();
|
|
|
48
48
|
return dispatch_get_main_queue();
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
+ (BOOL)requiresMainQueueSetup {
|
|
52
|
+
return YES;
|
|
53
|
+
}
|
|
54
|
+
|
|
51
55
|
#ifdef RCT_NEW_ARCH_ENABLED
|
|
52
56
|
- (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:
|
|
53
57
|
(const facebook::react::ObjCTurboModule::InitParams &)params {
|
package/lib/commonjs/version.js
CHANGED
package/lib/module/version.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "16.3.
|
|
1
|
+
export declare const SDK_VERSION = "16.3.3";
|
|
2
2
|
export { default, MobileAds } from './MobileAds';
|
|
3
3
|
export { AdsConsentDebugGeography, AdsConsentInfo, AdsConsentInfoOptions, AdsConsentInterface, AdsConsentPrivacyOptionsRequirementStatus, AdsConsentStatus, AdsConsentUserChoices, } from './specs/modules/NativeConsentModule';
|
|
4
4
|
export { AdsConsentPurposes } from './AdsConsentPurposes';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "16.3.
|
|
1
|
+
export declare const version = "16.3.3";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-google-mobile-ads",
|
|
3
|
-
"version": "16.3.
|
|
3
|
+
"version": "16.3.3",
|
|
4
4
|
"author": "Invertase <oss@invertase.io> (http://invertase.io)",
|
|
5
5
|
"description": "React Native Google Mobile Ads is an easy way to monetize mobile apps with targeted, in-app advertising.",
|
|
6
6
|
"main": "lib/commonjs/index.js",
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '16.3.
|
|
2
|
+
export const version = '16.3.3';
|