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.
@@ -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 {
@@ -5,5 +5,5 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = void 0;
7
7
  // Generated by genversion.
8
- const version = exports.version = '16.3.1';
8
+ const version = exports.version = '16.3.3';
9
9
  //# sourceMappingURL=version.js.map
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
 
3
3
  // Generated by genversion.
4
- export const version = '16.3.1';
4
+ export const version = '16.3.3';
5
5
  //# sourceMappingURL=version.js.map
@@ -1,4 +1,4 @@
1
- export declare const SDK_VERSION = "16.3.1";
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";
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.1",
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.1';
2
+ export const version = '16.3.3';