codeplay-common 2.1.35 → 2.1.37
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.6', 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.4', required: true, baseDir: 'js',mandatoryUpdate: true },
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
const fs = require('fs');
|
|
2
|
-
const path = require('path');
|
|
3
|
-
const plist = require('plist');
|
|
4
|
-
|
|
5
|
-
const { readFileSync } = require("fs");
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const addToolAttribute=()=>{
|
|
13
|
-
//const platformRoot = path.join(context.opts.projectRoot, 'android');
|
|
14
|
-
//const manifestPath = path.join(platformRoot, 'capacitor-cordova-android-plugins/src/main/AndroidManifest.xml');
|
|
15
|
-
|
|
16
|
-
const manifestPath = path.resolve(__dirname, '../android/capacitor-cordova-android-plugins/src/main/AndroidManifest.xml');
|
|
17
|
-
|
|
18
|
-
if (fs.existsSync(manifestPath)) {
|
|
19
|
-
let manifest = fs.readFileSync(manifestPath, 'utf8');
|
|
20
|
-
|
|
21
|
-
// Check if xmlns:tools exists
|
|
22
|
-
if (!manifest.includes('xmlns:tools="http://schemas.android.com/tools"')) {
|
|
23
|
-
// Add the tools namespace to the <manifest> tag.
|
|
24
|
-
manifest = manifest.replace('<manifest', '<manifest xmlns:tools="http://schemas.android.com/tools"');
|
|
25
|
-
fs.writeFileSync(manifestPath, manifest, 'utf8');
|
|
26
|
-
console.log('✅ EMI-ADMob: Added xmlns:tools to AndroidManifest.xml');
|
|
27
|
-
} else {
|
|
28
|
-
console.log('ℹ️ EMI-ADMob: xmlns:tools already exists, skipping...');
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
addToolAttribute()
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
const plist = require('plist');
|
|
4
|
+
|
|
5
|
+
const { readFileSync } = require("fs");
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
const addToolAttribute=()=>{
|
|
13
|
+
//const platformRoot = path.join(context.opts.projectRoot, 'android');
|
|
14
|
+
//const manifestPath = path.join(platformRoot, 'capacitor-cordova-android-plugins/src/main/AndroidManifest.xml');
|
|
15
|
+
|
|
16
|
+
const manifestPath = path.resolve(__dirname, '../android/capacitor-cordova-android-plugins/src/main/AndroidManifest.xml');
|
|
17
|
+
|
|
18
|
+
if (fs.existsSync(manifestPath)) {
|
|
19
|
+
let manifest = fs.readFileSync(manifestPath, 'utf8');
|
|
20
|
+
|
|
21
|
+
// Check if xmlns:tools exists
|
|
22
|
+
if (!manifest.includes('xmlns:tools="http://schemas.android.com/tools"')) {
|
|
23
|
+
// Add the tools namespace to the <manifest> tag.
|
|
24
|
+
manifest = manifest.replace('<manifest', '<manifest xmlns:tools="http://schemas.android.com/tools"');
|
|
25
|
+
fs.writeFileSync(manifestPath, manifest, 'utf8');
|
|
26
|
+
console.log('✅ EMI-ADMob: Added xmlns:tools to AndroidManifest.xml');
|
|
27
|
+
} else {
|
|
28
|
+
console.log('ℹ️ EMI-ADMob: xmlns:tools already exists, skipping...');
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
addToolAttribute()
|