codeplay-common 2.1.0 → 2.1.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.
@@ -820,6 +820,7 @@ function updateInfoPlist(admobConfig) {
820
820
  console.log('AdMob IDs and additional configurations successfully updated in Info.plist');
821
821
  }
822
822
 
823
+ let _admobConfig;
823
824
  try {
824
825
  if (!fileExists(configPath)) {
825
826
  throw new Error(' ❌ capacitor.config.json not found. Skipping setup.');
@@ -833,20 +834,20 @@ try {
833
834
 
834
835
 
835
836
 
836
- const admobConfig = getAdMobConfig();
837
+ _admobConfig = getAdMobConfig();
837
838
 
838
839
 
839
840
 
840
841
 
841
842
 
842
843
  // Proceed only if ADMOB_ENABLED is true
843
- if (admobConfig.ADMOB_ENABLED) {
844
+ if (_admobConfig.ADMOB_ENABLED) {
844
845
  if (fileExists(androidPlatformPath)) {
845
- updatePluginXml(admobConfig);
846
+ updatePluginXml(_admobConfig);
846
847
  }
847
848
 
848
849
  if (fileExists(iosPlatformPath)) {
849
- updateInfoPlist(admobConfig);
850
+ updateInfoPlist(_admobConfig);
850
851
  }
851
852
  }
852
853
 
@@ -1087,7 +1088,7 @@ const admobConfigPath = path.join('src', 'js','Ads', 'admob-ad-configuration.jso
1087
1088
  const checkAdmobConfigurationProperty=()=>{
1088
1089
 
1089
1090
 
1090
- if (admobConfig.ADMOB_ENABLED)
1091
+ if (_admobConfig.ADMOB_ENABLED)
1091
1092
  {
1092
1093
  console.log("ℹ️ Admob is not enabled so 'admob-ad-configuration.json' checking is skipping...");
1093
1094
  return;
@@ -43,7 +43,7 @@ const replaceEmiPluginCode=()=>
43
43
  console.log('⚠️ hideBannerAd method not found.');
44
44
  }
45
45
  } else {
46
- console.log('ℹ️ emiAdmobPlugin.m file not found, skipping modification.');
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('ℹ️ iosOverlaysWebView already true');
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('ℹ️ androidOverlaysWebView already true');
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('ℹ️ theme: auto not found, no changes made');
146
+ console.log('ℹ️ theme: auto not found, no changes made');
147
147
  }
148
148
 
149
149
  fs.writeFileSync(appJsPath, appJsContent, 'utf8');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeplay-common",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "Common build scripts and files",
5
5
  "scripts": {
6
6
  "postinstall": "node scripts/sync-files.js",