codeplay-common 2.1.2 → 2.1.4

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.
@@ -17,7 +17,7 @@ const requiredPlugins = [
17
17
  { pattern: /localNotification-(\d+\.\d+)\.js$/, minVersion: '2.2', required: true },
18
18
  { pattern: /localNotification_AppSettings-(\d+\.\d+)\.js$/, minVersion: '1.0', required: true },
19
19
  { pattern: /onesignal-(\d+\.\d+)\.js$/, minVersion: '2.2', required: true },
20
- { pattern: /saveToGalleryAndSaveAnyFile-(\d+\.\d+)(-ios)?\.js$/, minVersion: '2.8', required: true },
20
+ { pattern: /saveToGalleryAndSaveAnyFile-(\d+\.\d+)(-ios)?\.js$/, minVersion: '2.9', required: true },
21
21
  { pattern: /Ads[\/\\]IAP-(\d+\.\d+)$/, minVersion: '2.5', isFolder: true , required: true },
22
22
  { pattern: /Ads[\/\\]admob-emi-(\d+\.\d+)\.js$/, minVersion: '3.2', required: true },
23
23
 
@@ -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
- let _admobConfig;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeplay-common",
3
- "version": "2.1.2",
3
+ "version": "2.1.4",
4
4
  "description": "Common build scripts and files",
5
5
  "scripts": {
6
6
  "postinstall": "node scripts/sync-files.js",