codeplay-common 4.11.7 → 4.11.9

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.
Files changed (33) hide show
  1. package/CHANGELOG.md +100 -96
  2. package/LICENSE +21 -21
  3. package/README.md +229 -229
  4. package/RELEASE_NOTES.md +21 -17
  5. package/files/buildCodeplay/add-splash-screen.js +255 -255
  6. package/files/buildCodeplay/apk-store-builder.js +97 -97
  7. package/files/buildCodeplay/codeplayBeforeBuild.js +42 -45
  8. package/files/buildCodeplay/ensure-current-build.cjs +42 -42
  9. package/files/buildCodeplay/fix-onesignal-plugin.js +96 -96
  10. package/files/buildCodeplay/ios-emi-admob-modification.js +49 -49
  11. package/files/buildCodeplay/manifestModification.js +38 -38
  12. package/files/buildCodeplay/newly added.txt +89 -89
  13. package/files/buildCodeplay/packageidBaseModification.js +445 -445
  14. package/files/buildCodeplay/project-scripts.cjs +62 -62
  15. package/files/buildCodeplay/release-sync.config.json +4 -4
  16. package/files/buildCodeplay/remove-force-kotlin-disable.js +43 -43
  17. package/files/buildCodeplay/setSplashAnimation.js +226 -226
  18. package/files/buildCodeplay/sync-admob-nextgen.js +219 -219
  19. package/files/buildCodeplay/versions.json +27 -27
  20. package/files/finalrelease +1246 -1246
  21. package/files/generate-ai-promo-video.js +23 -23
  22. package/files/ionic.config.json +6 -6
  23. package/files/scripts-common/generate-baseline-profile.js +46 -46
  24. package/files/scripts-common/run-codeplay-sync-after.js +21 -21
  25. package/files/scripts-common/screenshot/background-decorations.js +120 -120
  26. package/files/scripts-common/screenshot/frame-samples.js +117 -117
  27. package/files/scripts-common/setup-baseline-profile.js +291 -291
  28. package/files/take-screen-image.js +4382 -4382
  29. package/files/take-screen-video.js +644 -644
  30. package/package.json +27 -27
  31. package/scripts/ensure-current-build.test.cjs +76 -76
  32. package/scripts/sync-files.js +113 -113
  33. package/scripts/uninstall.js +2 -2
package/CHANGELOG.md CHANGED
@@ -1,96 +1,100 @@
1
- # Changelog
2
-
3
- ## Unreleased
4
-
5
- - Preserve configured LocalNotifications small/large drawables and the default OneSignal drawable when present in Android resources; regenerate the shrinker keep rules on every before-build run, including after platform recreation.
6
- - Detect version-suffixed files in the app's `buildCodeplay` folder at build startup, then run `npm uninstall codeplay-common` and `npm install codeplay-common` sequentially before resuming with the refreshed before-build script.
7
- - Stop on reinstall failure or incomplete legacy cleanup rather than continuing with stale build templates.
8
-
9
- ## 4.11.4 — 2026-10-27
10
-
11
- Version name: 4.11.4. Version code/build number: not applicable to this npm package.
12
-
13
- Files changed: `package.json`, `scripts/sync-files.js`, `files/buildCodeplay/fix-optimize-builld/android-r8-rules.cjs`, `files/buildCodeplay/fix-optimize-builld/ffmpeg-jni-rules.cjs`, `files/buildCodeplay/fix-optimize-builld/restore-android-r8-rules.cjs`, `files/buildCodeplay/fix-optimize-builld/fix-optimize-build.gradle`, `files/buildCodeplay/codeplayBeforeBuild.js`, `files/buildCodeplay/manifestModification.js`, `files/buildCodeplay/project-scripts.cjs`, `files/finalrelease`, `README.md`, `CHANGELOG.md`, `RELEASE_NOTES.md`.
14
-
15
- - Preserve Capacitor permission annotations in every consuming Android app, without an app ID or permission-use restriction.
16
- - Restore the scoped ProGuard rules during installation, Android sync and every Gradle build through a regenerated apply-from hook; keep existing custom rules and avoid duplicates.
17
- - Ship the helper inside `buildCodeplay` so shared templates do not depend on an app-specific `Scripts` file.
18
- - Provide `npm run android:r8-rules` and migrate the known previous helper command while preserving custom commands.
19
- - Keep permission declarations, prompts, minification settings and iOS configuration unchanged; already-distributed binaries require rebuilding.
20
- - Preserve explicit release minification settings when distributing shared templates, and retain the tested FFmpeg JNI rules when that plugin is installed.
21
-
22
- ## 4.10.5 — 2026-10-23
23
-
24
- Version name: 4.10.5. Version code/build number: not applicable to this npm package.
25
-
26
- Files changed: `package.json`, `scripts/sync-files.js`, `CHANGELOG.md`, `RELEASE_NOTES.md`.
27
-
28
- - Migrate known legacy filename lookups in an existing app configurator after installing shared scripts.
29
- - Prefer unversioned pre-build and package-ID helpers while retaining the versioned fallback.
30
- - Correct the known old sync-hook folder assignment without replacing app-specific configuration or adding a configurator to apps that do not have one.
31
-
32
- ## 4.10.4 — 2026-10-23
33
-
34
- Version name: 4.10.4. Version code/build number: not applicable to this npm package.
35
-
36
- Files changed: `package.json`, `files/scripts-common/run-codeplay-sync-after.js`, `CHANGELOG.md`, `RELEASE_NOTES.md`.
37
-
38
- - Ship an updated sync-after hook for apps retaining the custom hook command after script migration.
39
- - Run unversioned splash helpers instead of searching for removed versioned filenames.
40
- - Resolve baseline profile setup from `scripts-common/` and preserve the existing native splash when no splash icon is configured.
41
-
42
- ## 4.10.3 — 2026-10-23
43
-
44
- Version name: 4.10.3. Version code/build number: not applicable to this npm package.
45
-
46
- Files changed: `package.json`, `files/finalrelease`, `CHANGELOG.md`, `RELEASE_NOTES.md`.
47
-
48
- - Allow ad-free apps with `plugins.AdMob.ADMOB_ENABLED: false` to pass release validation without an AdMob alias or controller.
49
- - Continue requiring a production AdMob alias when advertising is enabled or the enabled flag is unspecified.
50
- - Preserve rejection of test aliases, commented or duplicate aliases, and missing production controllers for apps with ads enabled.
51
-
52
- ## 4.10.0 — 2026-10-23
53
-
54
- Version name: 4.10.0. Version code/build number: not applicable to this npm package.
55
- Bundled pre-build script: 6.7.
56
-
57
- Files changed: `package.json`, `files/buildCodeplay/project-scripts.cjs`, `scripts/sync-files.js`, `scripts/uninstall.js`, `files/finalrelease`, `files/buildCodeplay/`, `files/scripts-common/`, `files/take-screen-image.js`, `README.md`, `CHANGELOG.md`, `RELEASE_NOTES.md`.
58
-
59
- - Copy shared build scripts and the versions manifest into each app; run local scripts with unversioned filenames.
60
- - Rename app helper scripts to scripts-common automatically, migrate command paths, and preserve existing files without overwriting folder conflicts.
61
- - Migrate app build/store/sync paths automatically and remove only superseded versioned helpers; preserve app-owned configuration and screenshot data.
62
- - Resolve app sources/native targets from the consuming app directory while keeping bundled assets inside the plugin.
63
- - Download IAP and AdMob directly from htmlcodeplay.com, without bundling archives or adding a separate fallback.
64
- - Automatically migrate deferred ownership verification, purchase-safe advertising, and Home Pro visibility according to each store IAP flag.
65
- - Copy the full finalrelease implementation so it can be tested from the application folder.
66
- - Preserve working files during preinstall and avoid downgrading local/newer plugin installations to an older registry release.
67
-
68
- ## 4.9.8 — 2026-10-22
69
-
70
- Version name: 4.9.8. Version code/build number: not applicable to this npm package.
71
- Bundled pre-build script: 6.5.
72
-
73
- Files changed: `package.json`, `scripts/sync-files.js`, `files/buildCodeplay/codeplayBeforeBuild-6.5.js`, `files/buildCodeplay/sync-admob-nextgen.js`, `files/buildCodeplay/versions.json`, `files/finalrelease`, `README.md`, `CHANGELOG.md`, `RELEASE_NOTES.md`.
74
-
75
- - Install AdMob as `src/js/Ads/admob-nextgen-4.0/` with stable `admob-emi-nextgen.js` and `app-open-state.js` filenames.
76
- - Automatically migrate loose-file references, folder references and Vite aliases during installation and before builds.
77
- - Preserve app-owned ad configuration and select each app's existing IAP analytics module.
78
- - Download every AdMob folder ZIP from htmlcodeplay.com; no AdMob archive is included in this npm package.
79
- - Validate ZIP contents before switching imports; retain the working package when a remote update fails.
80
- - Validate the selected folder controller during final-release checks while continuing to reject test aliases.
81
-
82
- ## 4.7.7 — 2026-10-07
83
-
84
- Version name: 4.7.7. Version code/build number: not applicable to this npm package.
85
- Bundled pre-build script: 6.4.
86
-
87
- Files changed: `package.json`, `scripts/sync-files.js`, `files/buildCodeplay/codeplayBeforeBuild-6.4.js`
88
- (replaces `codeplayBeforeBuild-6.3.js`), `README.md`, `CHANGELOG.md`, `RELEASE_NOTES.md`.
89
-
90
- - Keep `npm run build` as the Android default on every host; add `npm run build:ios` automatically during installation.
91
- - Route `build-capacitor-android` through the same pre-build validation before copying the web build.
92
- - Migrate direct save-gallery imports to `@saveGallery` and select the matching platform helper in Vite after one detailed Enter/y confirmation.
93
- - Stop without import writes on cancellation, missing helpers, mixed versions, unsupported query/hash aliases or concurrent source edits.
94
- - Reuse source directory traversal and combine gallery, retired OneSignal import, StatusBar and editor checks in one content pass.
95
- - Automatically remove an installed/declared `onesignal-cordova-plugin` with a warning; skip legacy OneSignal patching/helper downloads and stop on remaining package imports.
96
- - Keep `agent-temp/` ignored and remove existing `buildCodeplay/` ignore entries without adding them in future projects.
1
+ # Changelog
2
+
3
+ ## Unreleased
4
+
5
+ - Invalidate the cached source-file inventory after removing replaced plugin folders or versioned files, so post-update validation scans the installed sources instead of deleted theme paths.
6
+ - Automatically migrate versioned save-file imports to `@saveGallery`, scan the script section of Framework7 pages, and add or refresh the Vite alias for the newest installed platform helper before and after plugin updates.
7
+ - Check installed package versions before conditional plugin installation; a missing optional Firebase web SDK no longer reinstalls native Analytics. Preserve disabled-feature removal and required Samsung IAP upgrades.
8
+ - Propagate loading errors from installed build helpers instead of attempting to reinstall them.
9
+ - Preserve configured LocalNotifications small/large drawables and the default OneSignal drawable when present in Android resources; regenerate the shrinker keep rules on every before-build run, including after platform recreation.
10
+ - Detect version-suffixed files in the app's `buildCodeplay` folder at build startup, then run `npm uninstall codeplay-common` and `npm install codeplay-common` sequentially before resuming with the refreshed before-build script.
11
+ - Stop on reinstall failure or incomplete legacy cleanup rather than continuing with stale build templates.
12
+
13
+ ## 4.11.4 — 2026-10-27
14
+
15
+ Version name: 4.11.4. Version code/build number: not applicable to this npm package.
16
+
17
+ Files changed: `package.json`, `scripts/sync-files.js`, `files/buildCodeplay/fix-optimize-builld/android-r8-rules.cjs`, `files/buildCodeplay/fix-optimize-builld/ffmpeg-jni-rules.cjs`, `files/buildCodeplay/fix-optimize-builld/restore-android-r8-rules.cjs`, `files/buildCodeplay/fix-optimize-builld/fix-optimize-build.gradle`, `files/buildCodeplay/codeplayBeforeBuild.js`, `files/buildCodeplay/manifestModification.js`, `files/buildCodeplay/project-scripts.cjs`, `files/finalrelease`, `README.md`, `CHANGELOG.md`, `RELEASE_NOTES.md`.
18
+
19
+ - Preserve Capacitor permission annotations in every consuming Android app, without an app ID or permission-use restriction.
20
+ - Restore the scoped ProGuard rules during installation, Android sync and every Gradle build through a regenerated apply-from hook; keep existing custom rules and avoid duplicates.
21
+ - Ship the helper inside `buildCodeplay` so shared templates do not depend on an app-specific `Scripts` file.
22
+ - Provide `npm run android:r8-rules` and migrate the known previous helper command while preserving custom commands.
23
+ - Keep permission declarations, prompts, minification settings and iOS configuration unchanged; already-distributed binaries require rebuilding.
24
+ - Preserve explicit release minification settings when distributing shared templates, and retain the tested FFmpeg JNI rules when that plugin is installed.
25
+
26
+ ## 4.10.5 — 2026-10-23
27
+
28
+ Version name: 4.10.5. Version code/build number: not applicable to this npm package.
29
+
30
+ Files changed: `package.json`, `scripts/sync-files.js`, `CHANGELOG.md`, `RELEASE_NOTES.md`.
31
+
32
+ - Migrate known legacy filename lookups in an existing app configurator after installing shared scripts.
33
+ - Prefer unversioned pre-build and package-ID helpers while retaining the versioned fallback.
34
+ - Correct the known old sync-hook folder assignment without replacing app-specific configuration or adding a configurator to apps that do not have one.
35
+
36
+ ## 4.10.4 — 2026-10-23
37
+
38
+ Version name: 4.10.4. Version code/build number: not applicable to this npm package.
39
+
40
+ Files changed: `package.json`, `files/scripts-common/run-codeplay-sync-after.js`, `CHANGELOG.md`, `RELEASE_NOTES.md`.
41
+
42
+ - Ship an updated sync-after hook for apps retaining the custom hook command after script migration.
43
+ - Run unversioned splash helpers instead of searching for removed versioned filenames.
44
+ - Resolve baseline profile setup from `scripts-common/` and preserve the existing native splash when no splash icon is configured.
45
+
46
+ ## 4.10.3 — 2026-10-23
47
+
48
+ Version name: 4.10.3. Version code/build number: not applicable to this npm package.
49
+
50
+ Files changed: `package.json`, `files/finalrelease`, `CHANGELOG.md`, `RELEASE_NOTES.md`.
51
+
52
+ - Allow ad-free apps with `plugins.AdMob.ADMOB_ENABLED: false` to pass release validation without an AdMob alias or controller.
53
+ - Continue requiring a production AdMob alias when advertising is enabled or the enabled flag is unspecified.
54
+ - Preserve rejection of test aliases, commented or duplicate aliases, and missing production controllers for apps with ads enabled.
55
+
56
+ ## 4.10.0 — 2026-10-23
57
+
58
+ Version name: 4.10.0. Version code/build number: not applicable to this npm package.
59
+ Bundled pre-build script: 6.7.
60
+
61
+ Files changed: `package.json`, `files/buildCodeplay/project-scripts.cjs`, `scripts/sync-files.js`, `scripts/uninstall.js`, `files/finalrelease`, `files/buildCodeplay/`, `files/scripts-common/`, `files/take-screen-image.js`, `README.md`, `CHANGELOG.md`, `RELEASE_NOTES.md`.
62
+
63
+ - Copy shared build scripts and the versions manifest into each app; run local scripts with unversioned filenames.
64
+ - Rename app helper scripts to scripts-common automatically, migrate command paths, and preserve existing files without overwriting folder conflicts.
65
+ - Migrate app build/store/sync paths automatically and remove only superseded versioned helpers; preserve app-owned configuration and screenshot data.
66
+ - Resolve app sources/native targets from the consuming app directory while keeping bundled assets inside the plugin.
67
+ - Download IAP and AdMob directly from htmlcodeplay.com, without bundling archives or adding a separate fallback.
68
+ - Automatically migrate deferred ownership verification, purchase-safe advertising, and Home Pro visibility according to each store IAP flag.
69
+ - Copy the full finalrelease implementation so it can be tested from the application folder.
70
+ - Preserve working files during preinstall and avoid downgrading local/newer plugin installations to an older registry release.
71
+
72
+ ## 4.9.8 — 2026-10-22
73
+
74
+ Version name: 4.9.8. Version code/build number: not applicable to this npm package.
75
+ Bundled pre-build script: 6.5.
76
+
77
+ Files changed: `package.json`, `scripts/sync-files.js`, `files/buildCodeplay/codeplayBeforeBuild-6.5.js`, `files/buildCodeplay/sync-admob-nextgen.js`, `files/buildCodeplay/versions.json`, `files/finalrelease`, `README.md`, `CHANGELOG.md`, `RELEASE_NOTES.md`.
78
+
79
+ - Install AdMob as `src/js/Ads/admob-nextgen-4.0/` with stable `admob-emi-nextgen.js` and `app-open-state.js` filenames.
80
+ - Automatically migrate loose-file references, folder references and Vite aliases during installation and before builds.
81
+ - Preserve app-owned ad configuration and select each app's existing IAP analytics module.
82
+ - Download every AdMob folder ZIP from htmlcodeplay.com; no AdMob archive is included in this npm package.
83
+ - Validate ZIP contents before switching imports; retain the working package when a remote update fails.
84
+ - Validate the selected folder controller during final-release checks while continuing to reject test aliases.
85
+
86
+ ## 4.7.7 — 2026-10-07
87
+
88
+ Version name: 4.7.7. Version code/build number: not applicable to this npm package.
89
+ Bundled pre-build script: 6.4.
90
+
91
+ Files changed: `package.json`, `scripts/sync-files.js`, `files/buildCodeplay/codeplayBeforeBuild-6.4.js`
92
+ (replaces `codeplayBeforeBuild-6.3.js`), `README.md`, `CHANGELOG.md`, `RELEASE_NOTES.md`.
93
+
94
+ - Keep `npm run build` as the Android default on every host; add `npm run build:ios` automatically during installation.
95
+ - Route `build-capacitor-android` through the same pre-build validation before copying the web build.
96
+ - Migrate direct save-gallery imports to `@saveGallery` and select the matching platform helper in Vite after one detailed Enter/y confirmation.
97
+ - Stop without import writes on cancellation, missing helpers, mixed versions, unsupported query/hash aliases or concurrent source edits.
98
+ - Reuse source directory traversal and combine gallery, retired OneSignal import, StatusBar and editor checks in one content pass.
99
+ - Automatically remove an installed/declared `onesignal-cordova-plugin` with a warning; skip legacy OneSignal patching/helper downloads and stop on remaining package imports.
100
+ - Keep `agent-temp/` ignored and remove existing `buildCodeplay/` ignore entries without adding them in future projects.
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Merbin Joe
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Merbin Joe
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.