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.
- package/ios/RNGoogleMobileAds/RNGoogleMobileAdsCommon.m +11 -5
- package/ios_config.sh +1 -1
- 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/types/AdapterStatus.d.ts +1 -1
- package/lib/typescript/types/AdapterStatus.d.ts.map +1 -1
- package/lib/typescript/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/types/AdapterStatus.ts +1 -1
- package/src/version.ts +1 -1
|
@@ -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
|
-
|
|
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;
|
package/lib/commonjs/version.js
CHANGED
package/lib/module/version.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "8.2.
|
|
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';
|
|
@@ -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,
|
|
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
|
+
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.
|
|
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",
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '8.2.
|
|
2
|
+
export const version = '8.2.3';
|