codeplay-common 1.7.9 → 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.
|
@@ -14,7 +14,7 @@ const requiredPlugins = [
|
|
|
14
14
|
{ pattern: /onesignal-(\d+\.\d+)\.js$/, minVersion: '2.1', required: true },
|
|
15
15
|
{ pattern: /saveToGalleryAndSaveAnyFile-(\d+\.\d+)(-ios)?\.js$/, minVersion: '2.5', required: true },
|
|
16
16
|
{ pattern: /Ads[\/\\]IAP-(\d+\.\d+)$/, minVersion: '2.5', isFolder: true , required: true},
|
|
17
|
-
{ pattern: /Ads[\/\\]admob-emi-(\d+\.\d+)\.js$/, minVersion: '2.
|
|
17
|
+
{ pattern: /Ads[\/\\]admob-emi-(\d+\.\d+)\.js$/, minVersion: '2.8', required: true }
|
|
18
18
|
];
|
|
19
19
|
|
|
20
20
|
|
|
@@ -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');
|