codeplay-common 2.1.46 → 2.1.48
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: /backbutton-(\d+\.\d+)\.js$/, minVersion: '1.8', required: true, baseDir: 'js',mandatoryUpdate: true},
|
|
15
15
|
|
|
16
16
|
/*/common-(\d+\.\d+)\.js$/*/
|
|
17
|
-
{ pattern: /common-(\d+\.\d+)(?:-beta-(\d+))?\.js$/, minVersion: '5.
|
|
17
|
+
{ pattern: /common-(\d+\.\d+)(?:-beta-(\d+))?\.js$/, minVersion: '5.8', required: true, baseDir: 'js',mandatoryUpdate: true },
|
|
18
18
|
|
|
19
19
|
{ pattern: /localization_settings-(\d+\.\d+)\.js$/, minVersion: '1.1', required: true, baseDir: 'js',mandatoryUpdate: false },
|
|
20
20
|
{ pattern: /localization-(\d+\.\d+)\.js$/, minVersion: '1.5', required: true, baseDir: 'js',mandatoryUpdate: true },
|
|
@@ -34,7 +34,7 @@ const requiredPlugins = [
|
|
|
34
34
|
{ pattern: /IAP-(\d+\.\d+)$/, minVersion: '2.8', isFolder: true , required: true, baseDir: 'js/Ads',mandatoryUpdate: true },
|
|
35
35
|
{ pattern: /editor-(\d+\.\d+)$/, minVersion: '1.9', isFolder: true, required: true, baseDir: 'js',mandatoryUpdate: true },
|
|
36
36
|
{ pattern: /ffmpeg-(\d+\.\d+)$/, minVersion: '1.3', isFolder: true, required: true, baseDir: 'js',mandatoryUpdate: false },
|
|
37
|
-
{ pattern: /theme-(\d+\.\d+)$/, minVersion: '3.
|
|
37
|
+
{ pattern: /theme-(\d+\.\d+)$/, minVersion: '3.1', isFolder: true , required: true, baseDir: 'theme',mandatoryUpdate: true },
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
{ pattern: /certificatejs-(\d+\.\d+)$/, minVersion: '1.6', isFolder: true , required: true, baseDir: 'certificate',mandatoryUpdate: true }
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
|
|
4
|
+
// Path to the plugin.xml file
|
|
5
|
+
/* const pluginXmlPath = path.join(
|
|
6
|
+
'node_modules',
|
|
7
|
+
'emi-indo-cordova-plugin-admob',
|
|
8
|
+
'plugin.xml'
|
|
9
|
+
); */
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
const pluginXmlPath = path.resolve(
|
|
13
|
+
__dirname,
|
|
14
|
+
'../node_modules/emi-indo-cordova-plugin-admob/plugin.xml'
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
// Read and modify the plugin.xml file
|
|
18
|
+
fs.readFile(pluginXmlPath, 'utf8', (err, data) => {
|
|
19
|
+
if (err) {
|
|
20
|
+
console.error('Error reading plugin.xml:', err);
|
|
21
|
+
process.exit(1);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// Remove force-kotlin.gradle reference line
|
|
25
|
+
const modifiedData = data.replace(
|
|
26
|
+
/<framework\s+src="src\/android\/force-kotlin\.gradle"\s+custom="true"\s+type="gradleReference"\s*\/>\s*\n?/g,
|
|
27
|
+
''
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
/* const modifiedData = data.replace(
|
|
31
|
+
/<framework[^>]*force-kotlin\.gradle[^>]*\/>\s*\n?/g,
|
|
32
|
+
''
|
|
33
|
+
); */
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
// Write back
|
|
37
|
+
fs.writeFile(pluginXmlPath, modifiedData, 'utf8', (err) => {
|
|
38
|
+
if (err) {
|
|
39
|
+
console.error('Error writing plugin.xml:', err);
|
|
40
|
+
process.exit(1);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
console.log('plugin.xml updated successfully.');
|
|
44
|
+
});
|
|
45
|
+
});
|
package/package.json
CHANGED
package/scripts/sync-files.js
CHANGED
|
@@ -64,7 +64,7 @@ packageJson.scripts = packageJson.scripts || {};
|
|
|
64
64
|
|
|
65
65
|
// Update or add necessary scripts
|
|
66
66
|
if (latestCodeplayBuild) {
|
|
67
|
-
packageJson.scripts["build"] = `node buildCodeplay/${latestCodeplayBuild} && node buildCodeplay/${latestPackageIdModification} && cross-env NODE_ENV=production vite build --logLevel warn`;
|
|
67
|
+
packageJson.scripts["build"] = `node remove-force-kotlin-disable.js && node buildCodeplay/${latestCodeplayBuild} && node buildCodeplay/${latestPackageIdModification} && cross-env NODE_ENV=production vite build --logLevel warn`;
|
|
68
68
|
}
|
|
69
69
|
if (latestSplashScreen && latestSplashAnimation) {
|
|
70
70
|
packageJson.scripts["capacitor:sync:after"] = ` node buildCodeplay/${latestSplashScreen} && node buildCodeplay/${latestSplashAnimation} && node buildCodeplay/manifestModification.js`;
|