codeplay-common 2.0.6 â 2.0.8
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.
|
@@ -1005,7 +1005,7 @@ const checkAndupdateDropInViteConfig = () => {
|
|
|
1005
1005
|
return;
|
|
1006
1006
|
}
|
|
1007
1007
|
|
|
1008
|
-
console.log("đ Using:", viteConfigPath.split("/").pop());
|
|
1008
|
+
//console.log("đ Using:", viteConfigPath.split("/").pop());
|
|
1009
1009
|
|
|
1010
1010
|
let viteContent = fs.readFileSync(viteConfigPath, "utf8");
|
|
1011
1011
|
|
|
@@ -1086,6 +1086,14 @@ const admobConfigPath = path.join('src', 'js','Ads', 'admob-ad-configuration.jso
|
|
|
1086
1086
|
|
|
1087
1087
|
const checkAdmobConfigurationProperty=()=>{
|
|
1088
1088
|
|
|
1089
|
+
|
|
1090
|
+
if (admobConfig.ADMOB_ENABLED)
|
|
1091
|
+
{
|
|
1092
|
+
console.log("âšī¸ Admob is not enabled so admob-ad-configuration is skipping...");
|
|
1093
|
+
return;
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
|
|
1089
1097
|
const REQUIRED_CONFIG_KEYS = [
|
|
1090
1098
|
"isKidsApp",
|
|
1091
1099
|
"isTesting",
|
|
@@ -1118,13 +1126,16 @@ const REQUIRED_CONFIG_KEYS = [
|
|
|
1118
1126
|
];
|
|
1119
1127
|
|
|
1120
1128
|
|
|
1129
|
+
|
|
1130
|
+
|
|
1131
|
+
|
|
1121
1132
|
let admobConfig;
|
|
1122
1133
|
|
|
1123
1134
|
try {
|
|
1124
1135
|
admobConfig = JSON.parse(readFileSync(admobConfigPath, "utf8"));
|
|
1125
1136
|
} catch (err) {
|
|
1126
|
-
|
|
1127
|
-
|
|
1137
|
+
console.error("â Failed to read admob-ad-configuration.json", err);
|
|
1138
|
+
process.exit(1);
|
|
1128
1139
|
}
|
|
1129
1140
|
|
|
1130
1141
|
// â
Validate config object exists
|