react-native-google-mobile-ads 14.2.1 → 14.2.2
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/build.gradle +5 -6
- package/ios_config.sh +3 -8
- 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
package/android/build.gradle
CHANGED
|
@@ -74,29 +74,28 @@ project.ext {
|
|
|
74
74
|
|
|
75
75
|
apply from: file("./app-json.gradle")
|
|
76
76
|
|
|
77
|
-
def isManagedExpoProject = !rootProject.file("android").exists() && !rootProject.file("ios").exists()
|
|
78
77
|
def appJSONGoogleMobileAdsAppIDString = ""
|
|
79
78
|
def appJSONGoogleMobileAdsDelayAppMeasurementInitBool = false
|
|
80
79
|
def appJSONGoogleMobileAdsOptimizeInitializationBool = true
|
|
81
80
|
def appJSONGoogleMobileAdsOptimizeAdLoadingBool = true
|
|
82
81
|
|
|
83
|
-
if (rootProject.ext.has("googleMobileAdsJson")) {
|
|
82
|
+
if (rootProject.ext.has("googleMobileAdsJson") && rootProject.ext.googleMobileAdsJson) {
|
|
84
83
|
appJSONGoogleMobileAdsAppIDString = rootProject.ext.googleMobileAdsJson.getStringValue("android_app_id", "")
|
|
85
84
|
appJSONGoogleMobileAdsDelayAppMeasurementInitBool = rootProject.ext.googleMobileAdsJson.isFlagEnabled("delay_app_measurement_init", false)
|
|
86
85
|
appJSONGoogleMobileAdsOptimizeInitializationBool = rootProject.ext.googleMobileAdsJson.isFlagEnabled("optimize_initialization", true)
|
|
87
86
|
appJSONGoogleMobileAdsOptimizeAdLoadingBool = rootProject.ext.googleMobileAdsJson.isFlagEnabled("optimize_ad_loading", true)
|
|
88
87
|
}
|
|
89
88
|
|
|
90
|
-
if (!appJSONGoogleMobileAdsAppIDString
|
|
89
|
+
if (!appJSONGoogleMobileAdsAppIDString) {
|
|
91
90
|
println "\n\n\n"
|
|
92
91
|
println "**************************************************************************************************************"
|
|
93
92
|
println "\n\n\n"
|
|
94
|
-
println "
|
|
95
|
-
println "
|
|
93
|
+
println "WARNING: react-native-google-mobile-ads requires an 'android_app_id' property inside a 'react-native-google-mobile-ads' key in your app.json."
|
|
94
|
+
println " No android_app_id property was found in this location. The native Google Mobile Ads SDK will crash on startup without it."
|
|
95
|
+
println " You can safely ignore this warning if you are using our Expo config plugin."
|
|
96
96
|
println "\n\n\n"
|
|
97
97
|
println "**************************************************************************************************************"
|
|
98
98
|
println "\n\n\n"
|
|
99
|
-
System.exit(1)
|
|
100
99
|
}
|
|
101
100
|
|
|
102
101
|
android {
|
package/ios_config.sh
CHANGED
|
@@ -88,12 +88,6 @@ while true; do
|
|
|
88
88
|
_CURRENT_LOOKUPS=$((_CURRENT_LOOKUPS+1))
|
|
89
89
|
done
|
|
90
90
|
|
|
91
|
-
# Bail out if project is a managed Expo project:
|
|
92
|
-
if [[ ! -d "${PROJECT_DIR}/ios" ]] && [[ ! -d "${PROJECT_DIR}/android" ]]; then
|
|
93
|
-
echo "info: Project does not contain an ios or android folder, assume it's a managed Expo project using our Expo Config Plugin."
|
|
94
|
-
exit 0
|
|
95
|
-
fi
|
|
96
|
-
|
|
97
91
|
if [[ ${_SEARCH_RESULT} ]]; then
|
|
98
92
|
_JSON_OUTPUT_RAW=$(cat "${_SEARCH_RESULT}")
|
|
99
93
|
_RN_ROOT_EXISTS=$(ruby -KU -e "require 'rubygems';require 'json'; output=JSON.parse('$_JSON_OUTPUT_RAW'); puts output[$_JSON_ROOT]" || echo '')
|
|
@@ -169,8 +163,9 @@ if ! [[ -f "${_TARGET_PLIST}" ]]; then
|
|
|
169
163
|
fi
|
|
170
164
|
|
|
171
165
|
if ! [[ $_IOS_APP_ID ]]; then
|
|
172
|
-
echo "
|
|
173
|
-
|
|
166
|
+
echo "warning: ios_app_id key not found in react-native-google-mobile-ads key in app.json. App will crash without it."
|
|
167
|
+
echo " You can safely ignore this warning if you are using our Expo config plugin."
|
|
168
|
+
exit 0
|
|
174
169
|
fi
|
|
175
170
|
|
|
176
171
|
for plist in "${_TARGET_PLIST}" "${_DSYM_PLIST}" ; do
|
package/lib/commonjs/version.js
CHANGED
package/lib/module/version.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "14.2.
|
|
1
|
+
export declare const SDK_VERSION = "14.2.2";
|
|
2
2
|
export { default, MobileAds } from './MobileAds';
|
|
3
3
|
export { AdsConsentDebugGeography } from './AdsConsentDebugGeography';
|
|
4
4
|
export { AdsConsentPurposes } from './AdsConsentPurposes';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "14.2.
|
|
1
|
+
export declare const version = "14.2.2";
|
|
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": "14.2.
|
|
3
|
+
"version": "14.2.2",
|
|
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 = '14.2.
|
|
2
|
+
export const version = '14.2.2';
|