codeplay-common 2.1.1 → 2.1.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.
|
@@ -625,7 +625,7 @@ console.log('✅ Kotlin version updated in build.gradle.');
|
|
|
625
625
|
|
|
626
626
|
|
|
627
627
|
|
|
628
|
-
|
|
628
|
+
let _admobConfig;
|
|
629
629
|
|
|
630
630
|
|
|
631
631
|
|
|
@@ -820,7 +820,7 @@ function updateInfoPlist(admobConfig) {
|
|
|
820
820
|
console.log('AdMob IDs and additional configurations successfully updated in Info.plist');
|
|
821
821
|
}
|
|
822
822
|
|
|
823
|
-
|
|
823
|
+
|
|
824
824
|
try {
|
|
825
825
|
if (!fileExists(configPath)) {
|
|
826
826
|
throw new Error(' ❌ capacitor.config.json not found. Skipping setup.');
|
|
@@ -1088,7 +1088,7 @@ const admobConfigPath = path.join('src', 'js','Ads', 'admob-ad-configuration.jso
|
|
|
1088
1088
|
const checkAdmobConfigurationProperty=()=>{
|
|
1089
1089
|
|
|
1090
1090
|
|
|
1091
|
-
if (_admobConfig.ADMOB_ENABLED)
|
|
1091
|
+
if (!_admobConfig.ADMOB_ENABLED)
|
|
1092
1092
|
{
|
|
1093
1093
|
console.log("ℹ️ Admob is not enabled so 'admob-ad-configuration.json' checking is skipping...");
|
|
1094
1094
|
return;
|
|
@@ -43,7 +43,7 @@ const replaceEmiPluginCode=()=>
|
|
|
43
43
|
console.log('⚠️ hideBannerAd method not found.');
|
|
44
44
|
}
|
|
45
45
|
} else {
|
|
46
|
-
console.log('ℹ️
|
|
46
|
+
console.log('ℹ️ emiAdmobPlugin.m file not found, skipping modification.');
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -119,7 +119,7 @@ const appJssmallModifications=()=>{
|
|
|
119
119
|
);
|
|
120
120
|
console.log('✅ iosOverlaysWebView added');
|
|
121
121
|
} else {
|
|
122
|
-
console.log('ℹ️
|
|
122
|
+
console.log('ℹ️ iosOverlaysWebView already true');
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
// 2. ensure androidOverlaysWebView is true
|
|
@@ -134,7 +134,7 @@ const appJssmallModifications=()=>{
|
|
|
134
134
|
);
|
|
135
135
|
console.log('✅ androidOverlaysWebView added');
|
|
136
136
|
} else {
|
|
137
|
-
console.log('ℹ️
|
|
137
|
+
console.log('ℹ️ androidOverlaysWebView already true');
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
// 3. change theme
|
|
@@ -143,7 +143,7 @@ const appJssmallModifications=()=>{
|
|
|
143
143
|
appJsContent = appJsContent.replace(themeRegex, `theme: 'md'`);
|
|
144
144
|
console.log('✅ theme changed to md');
|
|
145
145
|
} else {
|
|
146
|
-
console.log('ℹ️
|
|
146
|
+
console.log('ℹ️ theme: auto not found, no changes made');
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
fs.writeFileSync(appJsPath, appJsContent, 'utf8');
|