codeplay-common 4.11.29 → 4.11.32
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.
- package/CHANGELOG.md +115 -115
- package/LICENSE +21 -21
- package/README.md +280 -280
- package/RELEASE_NOTES.md +110 -110
- package/files/buildCodeplay/add-splash-screen.js +256 -256
- package/files/buildCodeplay/apk-store-builder.js +97 -97
- package/files/buildCodeplay/codeplayBeforeBuild.js +19 -6
- package/files/buildCodeplay/fix-onesignal-plugin.js +96 -96
- package/files/buildCodeplay/fix-optimize-builld/android-r8-rules.cjs +31 -31
- package/files/buildCodeplay/fix-optimize-builld/ffmpeg-jni-rules.cjs +28 -28
- package/files/buildCodeplay/fix-optimize-builld/fix-optimize-build.gradle +9 -9
- package/files/buildCodeplay/fix-optimize-builld/restore-android-r8-rules.cjs +30 -30
- package/files/buildCodeplay/ios-emi-admob-modification.js +24 -24
- package/files/buildCodeplay/manifestModification.js +38 -38
- package/files/buildCodeplay/migrate-system-bars.cjs +9 -2
- package/files/buildCodeplay/packageidBaseModification.js +528 -528
- package/files/buildCodeplay/project-scripts.cjs +69 -69
- package/files/buildCodeplay/setSplashAnimation.js +228 -228
- package/files/buildCodeplay/splash-setup.cjs +88 -88
- package/files/buildCodeplay/splashxml/codeplay_splashScreen.xml +11 -11
- package/files/buildCodeplay/sync-admob-nextgen.js +219 -219
- package/files/buildCodeplay/versions.json +28 -28
- package/files/finalrelease +1365 -1365
- package/files/generate-ai-promo-video.js +23 -23
- package/files/ionic.config.json +6 -6
- package/files/scripts-common/run-codeplay-sync-after.js +21 -21
- package/files/scripts-common/screenshot/background-decorations.js +120 -120
- package/files/scripts-common/screenshot/frame-samples.js +117 -117
- package/files/scripts-common/setup-baseline-profile.js +291 -291
- package/files/take-screen-video.js +644 -644
- package/package.json +29 -28
- package/runtime/splash-ready.mjs +52 -52
- package/scripts/splash-setup.test.cjs +142 -142
- package/scripts/sync-files.js +119 -119
- package/scripts/system-bars-package.test.cjs +38 -0
- package/scripts/system-bars.test.cjs +16 -0
- package/scripts/uninstall.js +2 -2
|
@@ -9,30 +9,30 @@ const replaceEmiPluginCode=()=>
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
if (fs.existsSync(filePath)) {
|
|
12
|
-
let fileContent = fs.readFileSync(filePath, 'utf8');
|
|
13
|
-
|
|
14
|
-
// match the hideBannerAd method
|
|
15
|
-
const methodRegex = /(- \(void\)hideBannerAd:[\s\S]*?\{)([\s\S]*?)(^\})/m;
|
|
16
|
-
|
|
17
|
-
const match = fileContent.match(methodRegex);
|
|
18
|
-
|
|
19
|
-
if (match) {
|
|
20
|
-
const methodBody = match[2];
|
|
21
|
-
|
|
22
|
-
// replace only if the line is not already commented
|
|
23
|
-
const modifiedMethodBody = methodBody.replace(
|
|
24
|
-
/^(\s*)(?!\/\/)\[self\s+resetWebViewHeight\];/m,
|
|
25
|
-
'$1//[self resetWebViewHeight];'
|
|
26
|
-
);
|
|
27
|
-
|
|
28
|
-
const updatedFileContent =
|
|
29
|
-
fileContent.slice(0, match.index) +
|
|
30
|
-
match[1] +
|
|
31
|
-
modifiedMethodBody +
|
|
32
|
-
match[3] +
|
|
33
|
-
fileContent.slice(match.index + match[0].length);
|
|
34
|
-
|
|
35
|
-
fs.writeFileSync(filePath, updatedFileContent, 'utf8');
|
|
12
|
+
let fileContent = fs.readFileSync(filePath, 'utf8');
|
|
13
|
+
|
|
14
|
+
// match the hideBannerAd method
|
|
15
|
+
const methodRegex = /(- \(void\)hideBannerAd:[\s\S]*?\{)([\s\S]*?)(^\})/m;
|
|
16
|
+
|
|
17
|
+
const match = fileContent.match(methodRegex);
|
|
18
|
+
|
|
19
|
+
if (match) {
|
|
20
|
+
const methodBody = match[2];
|
|
21
|
+
|
|
22
|
+
// replace only if the line is not already commented
|
|
23
|
+
const modifiedMethodBody = methodBody.replace(
|
|
24
|
+
/^(\s*)(?!\/\/)\[self\s+resetWebViewHeight\];/m,
|
|
25
|
+
'$1//[self resetWebViewHeight];'
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
const updatedFileContent =
|
|
29
|
+
fileContent.slice(0, match.index) +
|
|
30
|
+
match[1] +
|
|
31
|
+
modifiedMethodBody +
|
|
32
|
+
match[3] +
|
|
33
|
+
fileContent.slice(match.index + match[0].length);
|
|
34
|
+
|
|
35
|
+
fs.writeFileSync(filePath, updatedFileContent, 'utf8');
|
|
36
36
|
console.log(
|
|
37
37
|
'✅ Successfully ensured [self resetWebViewHeight]; is commented only inside hideBannerAd in emiAdmobPlugin.m'
|
|
38
38
|
);
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
const fs = require('fs');
|
|
2
|
-
const path = require('path');
|
|
3
|
-
const plist = require('plist');
|
|
4
|
-
const { syncAndroidR8Rules } = require('./fix-optimize-builld/restore-android-r8-rules.cjs');
|
|
5
|
-
|
|
6
|
-
syncAndroidR8Rules(process.cwd(), { installGradleHook: true });
|
|
7
|
-
|
|
8
|
-
const { readFileSync } = require("fs");
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const addToolAttribute=()=>{
|
|
16
|
-
//const platformRoot = path.join(context.opts.projectRoot, 'android');
|
|
17
|
-
//const manifestPath = path.join(platformRoot, 'capacitor-cordova-android-plugins/src/main/AndroidManifest.xml');
|
|
18
|
-
|
|
19
|
-
const manifestPath = path.resolve(process.cwd(), 'android/capacitor-cordova-android-plugins/src/main/AndroidManifest.xml');
|
|
20
|
-
|
|
21
|
-
if (fs.existsSync(manifestPath)) {
|
|
22
|
-
let manifest = fs.readFileSync(manifestPath, 'utf8');
|
|
23
|
-
|
|
24
|
-
// Check if xmlns:tools exists
|
|
25
|
-
if (!manifest.includes('xmlns:tools="http://schemas.android.com/tools"')) {
|
|
26
|
-
// Add the tools namespace to the <manifest> tag.
|
|
27
|
-
manifest = manifest.replace('<manifest', '<manifest xmlns:tools="http://schemas.android.com/tools"');
|
|
28
|
-
fs.writeFileSync(manifestPath, manifest, 'utf8');
|
|
29
|
-
console.log('✅ Added xmlns:tools to AndroidManifest.xml');
|
|
30
|
-
} else {
|
|
31
|
-
console.log('ℹ️ xmlns:tools already exists, skipping...');
|
|
32
|
-
}
|
|
33
|
-
} else {
|
|
34
|
-
console.log('ℹ️ capacitor-cordova-android-plugins AndroidManifest.xml not found, skipping tools namespace update.');
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
addToolAttribute()
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
const plist = require('plist');
|
|
4
|
+
const { syncAndroidR8Rules } = require('./fix-optimize-builld/restore-android-r8-rules.cjs');
|
|
5
|
+
|
|
6
|
+
syncAndroidR8Rules(process.cwd(), { installGradleHook: true });
|
|
7
|
+
|
|
8
|
+
const { readFileSync } = require("fs");
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
const addToolAttribute=()=>{
|
|
16
|
+
//const platformRoot = path.join(context.opts.projectRoot, 'android');
|
|
17
|
+
//const manifestPath = path.join(platformRoot, 'capacitor-cordova-android-plugins/src/main/AndroidManifest.xml');
|
|
18
|
+
|
|
19
|
+
const manifestPath = path.resolve(process.cwd(), 'android/capacitor-cordova-android-plugins/src/main/AndroidManifest.xml');
|
|
20
|
+
|
|
21
|
+
if (fs.existsSync(manifestPath)) {
|
|
22
|
+
let manifest = fs.readFileSync(manifestPath, 'utf8');
|
|
23
|
+
|
|
24
|
+
// Check if xmlns:tools exists
|
|
25
|
+
if (!manifest.includes('xmlns:tools="http://schemas.android.com/tools"')) {
|
|
26
|
+
// Add the tools namespace to the <manifest> tag.
|
|
27
|
+
manifest = manifest.replace('<manifest', '<manifest xmlns:tools="http://schemas.android.com/tools"');
|
|
28
|
+
fs.writeFileSync(manifestPath, manifest, 'utf8');
|
|
29
|
+
console.log('✅ Added xmlns:tools to AndroidManifest.xml');
|
|
30
|
+
} else {
|
|
31
|
+
console.log('ℹ️ xmlns:tools already exists, skipping...');
|
|
32
|
+
}
|
|
33
|
+
} else {
|
|
34
|
+
console.log('ℹ️ capacitor-cordova-android-plugins AndroidManifest.xml not found, skipping tools namespace update.');
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
addToolAttribute()
|
|
@@ -47,9 +47,16 @@ async function auditLegacyStatusBar(projectRoot = process.cwd()) {
|
|
|
47
47
|
}
|
|
48
48
|
let minify;
|
|
49
49
|
try {
|
|
50
|
-
|
|
50
|
+
// Copied app helpers must also support npm nesting Terser inside this package.
|
|
51
|
+
const packagePath = require.resolve('codeplay-common/package.json', { paths: [projectRoot] });
|
|
52
|
+
({ minify } = createRequire(packagePath)('terser'));
|
|
51
53
|
} catch {
|
|
52
|
-
|
|
54
|
+
try {
|
|
55
|
+
// Source checkout and package-local execution resolve the declared dependency here.
|
|
56
|
+
({ minify } = require('terser'));
|
|
57
|
+
} catch {
|
|
58
|
+
return { status: 'retained', references: ['JavaScript parser unavailable; cannot prove the plugin is unused.'] };
|
|
59
|
+
}
|
|
53
60
|
}
|
|
54
61
|
const files = sourceFiles(path.join(projectRoot, 'src'), /\.(?:js|cjs|mjs|ts|tsx|jsx|f7|vue|html)$/);
|
|
55
62
|
for (const entry of fs.readdirSync(projectRoot, { withFileTypes: true })) {
|