codeplay-common 1.8.0 → 1.8.1

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.
@@ -13,6 +13,7 @@ const storeNames = {
13
13
  "7": "AmazonStore"
14
14
  };
15
15
 
16
+ let _appPackageId;
16
17
 
17
18
  let isAdmobFound = false;
18
19
 
@@ -39,6 +40,8 @@ function getAdMobConfig() {
39
40
 
40
41
  const config = JSON.parse(readFileSync(capacitorConfigPath, 'utf8'));
41
42
  const admobConfig = config.plugins?.AdMob;
43
+
44
+ _appPackageId=config.appId;
42
45
 
43
46
  if (!admobConfig) {
44
47
  throw new Error('❌ AdMob configuration is missing in capacitor.config.json.');
@@ -454,7 +457,7 @@ rl.question('Enter new versionCode (press enter to keep current): ', (newVersion
454
457
  }
455
458
  try {
456
459
  // Modify the minSdkVersion based on the store
457
- if (storeName === "SamsungStore" || storeName === "PlayStore") {
460
+ if (storeName === "SamsungStore" || storeName === "PlayStore" || _appPackageId=="vfx.green.editor") {
458
461
  if (currentMinSdkVersion !== 24) {
459
462
  variablesGradleContent = variablesGradleContent.replace(/minSdkVersion\s*=\s*\d+/, 'minSdkVersion = 24');
460
463
  console.log('minSdkVersion updated to 24 for SamsungStore & PlayStore');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeplay-common",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "description": "Common build scripts and files",
5
5
  "scripts": {
6
6
  "postinstall": "node scripts/sync-files.js",