codeplay-common 2.0.8 → 2.1.0

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.
@@ -1089,7 +1089,7 @@ const checkAdmobConfigurationProperty=()=>{
1089
1089
 
1090
1090
  if (admobConfig.ADMOB_ENABLED)
1091
1091
  {
1092
- console.log("ℹ️ Admob is not enabled so admob-ad-configuration is skipping...");
1092
+ console.log("ℹ️ Admob is not enabled so 'admob-ad-configuration.json' checking is skipping...");
1093
1093
  return;
1094
1094
  }
1095
1095
 
@@ -1129,17 +1129,17 @@ const REQUIRED_CONFIG_KEYS = [
1129
1129
 
1130
1130
 
1131
1131
 
1132
- let admobConfig;
1132
+ let admobConfigInJson;
1133
1133
 
1134
1134
  try {
1135
- admobConfig = JSON.parse(readFileSync(admobConfigPath, "utf8"));
1135
+ admobConfigInJson = JSON.parse(readFileSync(admobConfigPath, "utf8"));
1136
1136
  } catch (err) {
1137
1137
  console.error("❌ Failed to read admob-ad-configuration.json", err);
1138
1138
  process.exit(1);
1139
1139
  }
1140
1140
 
1141
1141
  // ✅ Validate config object exists
1142
- if (!admobConfig.config) {
1142
+ if (!admobConfigInJson.config) {
1143
1143
  console.error('❌ "config" object is missing in admob-ad-configuration.json');
1144
1144
  process.exit(1);
1145
1145
  }
@@ -1147,13 +1147,13 @@ const REQUIRED_CONFIG_KEYS = [
1147
1147
 
1148
1148
  const admobConfigMinVersion="1.4"
1149
1149
 
1150
- if (compareVersion(admobConfig.VERSION, admobConfigMinVersion) < 0) {
1150
+ if (compareVersion(admobConfigInJson.VERSION, admobConfigMinVersion) < 0) {
1151
1151
  console.error(`❌ Please use at-least version ${admobConfigMinVersion} in "src/js/Ads/admob-ad-configuration.json"`);
1152
1152
  process.exit(1);
1153
1153
  }
1154
1154
 
1155
1155
 
1156
- const config = admobConfig.config;
1156
+ const config = admobConfigInJson.config;
1157
1157
 
1158
1158
  // ✅ Find missing properties
1159
1159
  const missingKeys = REQUIRED_CONFIG_KEYS.filter(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeplay-common",
3
- "version": "2.0.8",
3
+ "version": "2.1.0",
4
4
  "description": "Common build scripts and files",
5
5
  "scripts": {
6
6
  "postinstall": "node scripts/sync-files.js",