react-native-google-mobile-ads 8.2.1 → 8.2.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.
@@ -195,12 +195,18 @@ NSString *const GOOGLE_MOBILE_ADS_EVENT_REWARDED_EARNED_REWARD = @"rewarded_earn
195
195
  } else if ([value isEqualToString:@"LEADERBOARD"]) {
196
196
  return GADAdSizeLeaderboard;
197
197
  } else if ([value isEqualToString:@"ADAPTIVE_BANNER"] ||
198
- [value isEqualToString:@"ANCHORED_ADAPTIVE_BANNER"]) {
199
- CGFloat viewWidth = [[UIScreen mainScreen] bounds].size.width;
198
+ [value isEqualToString:@"ANCHORED_ADAPTIVE_BANNER"] ||
199
+ [value isEqualToString:@"INLINE_ADAPTIVE_BANNER"]) {
200
+ CGRect frame = [[UIScreen mainScreen] bounds];
201
+ if (@available(iOS 11.0, *)) {
202
+ frame =
203
+ UIEdgeInsetsInsetRect(frame, [UIApplication sharedApplication].keyWindow.safeAreaInsets);
204
+ }
205
+ CGFloat viewWidth = frame.size.width;
206
+ if ([value isEqualToString:@"INLINE_ADAPTIVE_BANNER"]) {
207
+ return GADCurrentOrientationInlineAdaptiveBannerAdSizeWithWidth(viewWidth);
208
+ }
200
209
  return GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(viewWidth);
201
- } else if ([value isEqualToString:@"INLINE_ADAPTIVE_BANNER"]) {
202
- CGFloat viewWidth = [[UIScreen mainScreen] bounds].size.width;
203
- return GADCurrentOrientationInlineAdaptiveBannerAdSizeWithWidth(viewWidth);
204
210
  } else {
205
211
  return GADAdSizeBanner;
206
212
  }
package/ios_config.sh CHANGED
@@ -67,7 +67,7 @@ while true; do
67
67
  _CURRENT_SEARCH_DIR=$(dirname "$_CURRENT_SEARCH_DIR")
68
68
  if [[ "$_CURRENT_SEARCH_DIR" == "/" ]] || [[ ${_CURRENT_LOOKUPS} -gt ${_MAX_LOOKUPS} ]]; then break; fi;
69
69
  echo "info: ($_CURRENT_LOOKUPS of $_MAX_LOOKUPS) Searching in '$_CURRENT_SEARCH_DIR' for a ${_JSON_FILE_NAME} file."
70
- _SEARCH_RESULT=$(find "$_CURRENT_SEARCH_DIR" -maxdepth 2 -name ${_JSON_FILE_NAME} -print | head -n 1)
70
+ _SEARCH_RESULT=$(find "$_CURRENT_SEARCH_DIR" -maxdepth 2 -name ${_JSON_FILE_NAME} -print | /usr/bin/head -n 1)
71
71
  if [[ ${_SEARCH_RESULT} ]]; then
72
72
  echo "info: ${_JSON_FILE_NAME} found at $_SEARCH_RESULT"
73
73
  break;
@@ -5,6 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = void 0;
7
7
  // Generated by genversion.
8
- const version = '8.2.1';
8
+ const version = '8.2.3';
9
9
  exports.version = version;
10
10
  //# sourceMappingURL=version.js.map
@@ -1,3 +1,3 @@
1
1
  // Generated by genversion.
2
- export const version = '8.2.1';
2
+ export const version = '8.2.3';
3
3
  //# sourceMappingURL=version.js.map
@@ -1,4 +1,4 @@
1
- export declare const SDK_VERSION = "8.2.1";
1
+ export declare const SDK_VERSION = "8.2.3";
2
2
  export { default, MobileAds } from './MobileAds';
3
3
  export { AdsConsentDebugGeography } from './AdsConsentDebugGeography';
4
4
  export { AdsConsentPurposes } from './AdsConsentPurposes';
@@ -14,6 +14,6 @@ export declare enum InitializationState {
14
14
  export declare type AdapterStatus = {
15
15
  name: string;
16
16
  description: string;
17
- status: InitializationState;
17
+ state: InitializationState;
18
18
  };
19
19
  //# sourceMappingURL=AdapterStatus.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AdapterStatus.d.ts","sourceRoot":"","sources":["../../../src/types/AdapterStatus.ts"],"names":[],"mappings":"AAAA,oBAAY,mBAAmB;IAC7B;;OAEG;IACH,kCAAkC,IAAI;IAEtC;;OAEG;IACH,+BAA+B,IAAI;CACpC;AAED;;GAEG;AACH,oBAAY,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,mBAAmB,CAAC;CAC7B,CAAC"}
1
+ {"version":3,"file":"AdapterStatus.d.ts","sourceRoot":"","sources":["../../../src/types/AdapterStatus.ts"],"names":[],"mappings":"AAAA,oBAAY,mBAAmB;IAC7B;;OAEG;IACH,kCAAkC,IAAI;IAEtC;;OAEG;IACH,+BAA+B,IAAI;CACpC;AAED;;GAEG;AACH,oBAAY,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,mBAAmB,CAAC;CAC5B,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const version = "8.2.1";
1
+ export declare const version = "8.2.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": "8.2.1",
3
+ "version": "8.2.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",
@@ -16,5 +16,5 @@ export enum InitializationState {
16
16
  export type AdapterStatus = {
17
17
  name: string;
18
18
  description: string;
19
- status: InitializationState;
19
+ state: InitializationState;
20
20
  };
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '8.2.1';
2
+ export const version = '8.2.3';