codeplay-common 4.11.11 → 4.11.14

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 (35) hide show
  1. package/CHANGELOG.md +114 -101
  2. package/LICENSE +21 -21
  3. package/README.md +274 -229
  4. package/RELEASE_NOTES.md +110 -97
  5. package/files/buildCodeplay/add-splash-screen.js +256 -255
  6. package/files/buildCodeplay/apk-store-builder.js +97 -97
  7. package/files/buildCodeplay/codeplayBeforeBuild.js +45 -43
  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/release-sync.config.json +4 -4
  14. package/files/buildCodeplay/remove-force-kotlin-disable.js +43 -43
  15. package/files/buildCodeplay/setSplashAnimation.js +227 -225
  16. package/files/buildCodeplay/splash-setup.cjs +88 -0
  17. package/files/buildCodeplay/splashxml/codeplay_splashScreen.xml +1 -1
  18. package/files/buildCodeplay/sync-admob-nextgen.js +219 -219
  19. package/files/buildCodeplay/versions.json +27 -27
  20. package/files/finalrelease +1263 -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 +2 -1
  29. package/files/take-screen-video.js +644 -644
  30. package/package.json +3 -2
  31. package/runtime/splash-ready.mjs +52 -0
  32. package/scripts/ensure-current-build.test.cjs +76 -76
  33. package/scripts/splash-setup.test.cjs +142 -0
  34. package/scripts/sync-files.js +114 -113
  35. package/scripts/uninstall.js +2 -2
package/RELEASE_NOTES.md CHANGED
@@ -1,97 +1,110 @@
1
- # Release notes
2
-
3
- ## Unreleased
4
-
5
- - Improve Amazon device compatibility by making camera features optional during build preparation. If a camera feature is required, press Enter or wait 5 seconds to make it optional, or press n to keep it required. This also checks manually added declarations and preserves existing camera permissions.
6
- - Prevent builds from failing on deleted theme paths immediately after automatic plugin updates.
7
- - Repair old save-file imports automatically, including imports in Framework7 pages, and keep the Vite alias aligned with the latest installed Android or iOS helper.
8
- - Avoid repeated Analytics and conditional-plugin installs when the required packages are already installed. Native Analytics does not require installing the optional Firebase web SDK.
9
- - Report installed build-helper loading errors without unnecessary reinstall attempts.
10
- - Keep notification icons in optimized Android apps by generating resource protection from each app's configuration during build preparation. Rebuild and reinstall consuming apps to apply this fix.
11
-
12
- ## 4.11.4 — 2026-10-27
13
-
14
- Version name: 4.11.4. Version code/build number: not applicable to this npm package.
15
-
16
- 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`.
17
-
18
- - Fix missing permission-check results caused by release optimization removing Capacitor metadata.
19
- - Apply protection to all Android apps using this package, including apps with no permission-dependent features.
20
- - Restore protection after native platform regeneration and package updates, and check it on every Gradle build without overwriting custom ProGuard rules.
21
- - Keep the fix self-contained in the shared package and provide a manual restore command.
22
- - No new permissions or prompts are added. Update the package and rebuild each app to include the correction.
23
- - Preserve existing release minification choices and protect FFmpeg native entry points in apps using that plugin.
24
-
25
- ## 4.10.5 — 2026-10-23
26
-
27
- Version name: 4.10.5. Version code/build number: not applicable to this npm package.
28
-
29
- Files changed: `package.json`, `scripts/sync-files.js`, `CHANGELOG.md`, `RELEASE_NOTES.md`.
30
-
31
- - Prevent app postinstall failures after shared scripts switch to unversioned filenames.
32
- - Repair the known old sync-hook path during plugin installation.
33
- - Preserve each app's custom configuration and leave apps without the affected configurator unchanged.
34
-
35
- ## 4.10.4 — 2026-10-23
36
-
37
- Version name: 4.10.4. Version code/build number: not applicable to this npm package.
38
-
39
- Files changed: `package.json`, `files/scripts-common/run-codeplay-sync-after.js`, `CHANGELOG.md`, `RELEASE_NOTES.md`.
40
-
41
- - Fix Android sync failures caused by the old versioned splash script lookup.
42
- - Use the migrated baseline profile setup path.
43
- - Update the custom sync hook automatically during plugin installation.
44
-
45
- ## 4.10.3 — 2026-10-23
46
-
47
- Version name: 4.10.3. Version code/build number: not applicable to this npm package.
48
-
49
- Files changed: `package.json`, `files/finalrelease`, `CHANGELOG.md`, `RELEASE_NOTES.md`.
50
-
51
- - Release ad-free apps without adding an unnecessary AdMob alias or controller.
52
- - Explicitly set `plugins.AdMob.ADMOB_ENABLED` to `false` to use the ad-free release path.
53
- - Keep production AdMob safety checks for apps with advertising enabled.
54
-
55
- ## 4.10.0 — 2026-10-23
56
-
57
- Version name: 4.10.0. Version code/build number: not applicable to this npm package.
58
- Bundled pre-build script: 6.7.
59
-
60
- 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`.
61
-
62
- - Copy shared build scripts and the versions manifest into each app; run local scripts with unversioned filenames.
63
- - Rename app helper scripts to scripts-common automatically, migrate command paths, and preserve existing files without overwriting folder conflicts.
64
- - Migrate app build/store/sync paths automatically and remove only superseded versioned helpers; preserve app-owned configuration and screenshot data.
65
- - Resolve app sources/native targets from the consuming app directory while keeping bundled assets inside the plugin.
66
- - Download IAP and AdMob directly from htmlcodeplay.com, without bundling archives or adding a separate fallback.
67
- - Automatically migrate deferred ownership verification, purchase-safe advertising, and Home Pro visibility according to each store IAP flag.
68
- - Copy the full finalrelease implementation so it can be tested from the application folder.
69
- - Preserve working files during preinstall and avoid downgrading local/newer plugin installations to an older registry release.
70
-
71
- ## 4.9.8 — 2026-10-22
72
-
73
- Version name: 4.9.8. Version code/build number: not applicable to this npm package.
74
- Bundled pre-build script: 6.5.
75
-
76
- 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`.
77
-
78
- - Install AdMob as `src/js/Ads/admob-nextgen-4.0/` with stable `admob-emi-nextgen.js` and `app-open-state.js` filenames.
79
- - Automatically migrate loose-file references, folder references and Vite aliases during installation and before builds.
80
- - Preserve app-owned ad configuration and select each app's existing IAP analytics module.
81
- - Download every AdMob folder ZIP from htmlcodeplay.com; no AdMob archive is included in this npm package.
82
- - Validate ZIP contents before switching imports; retain the working package when a remote update fails.
83
- - Validate the selected folder controller during final-release checks while continuing to reject test aliases.
84
-
85
- ## 4.7.7 — 2026-10-07
86
-
87
- Version name: 4.7.7. Version code/build number: not applicable to this npm package.
88
-
89
- Files changed: `package.json`, `scripts/sync-files.js`, `files/buildCodeplay/codeplayBeforeBuild-6.4.js`
90
- (replaces `codeplayBeforeBuild-6.3.js`), `README.md`, `CHANGELOG.md`, `RELEASE_NOTES.md`.
91
-
92
- - Installation automatically configures Android and iOS build commands in your app's `package.json`.
93
- - Android builds remain the default; use `npm run build:ios` for iOS.
94
- - Save-gallery imports use one alias with a platform-specific helper and a clear confirmation before source changes.
95
- - Shared checks reuse file traversal to reduce repeated scanning.
96
- - Builds warn and automatically uninstall the retired OneSignal Cordova plugin when found.
97
- - `agent-temp/` stays ignored, while `buildCodeplay/` is removed from ignore rules.
1
+ # Release notes
2
+
3
+ ## 4.11.13 — 2026-11-04
4
+
5
+ Version name:4.11.13. Version code/build number:not applicable to this npm package.
6
+
7
+ Files changed: `package.json`, `runtime/splash-ready.mjs`, `files/buildCodeplay/splash-setup.cjs`, `files/buildCodeplay/setSplashAnimation.js`, `files/buildCodeplay/add-splash-screen.js`, `files/buildCodeplay/splashxml/codeplay_splashScreen.xml`, `files/buildCodeplay/codeplayBeforeBuild.js`, `scripts/sync-files.js`, `scripts/splash-setup.test.cjs`, `README.md`, `CHANGELOG.md`, `RELEASE_NOTES.md`.
8
+
9
+ - Use a DayNight post-splash theme and migrate only the known legacy default in existing app templates; preserve custom themes.
10
+ - Configure native exit animation duration,including0ms,without editing generated MainActivity;default remains1000ms.
11
+ - Share the existing Framework7 page/image readiness flow with timeout,error handling and listener cleanup.
12
+ - Migrate the known existing readiness handler;offer explicit opt-in for supported legacy timer handlers,with native fallback/plugin checks. Preserve unsupported custom startup code.
13
+ - Run splash preparation during installation,before-build and splash setup;rebuild consuming apps to apply native changes.
14
+
15
+
16
+ ## Unreleased
17
+
18
+ - Improve Amazon device compatibility by making camera features optional during build preparation. If a camera feature is required, press Enter or wait 5 seconds to make it optional, or press n to keep it required. This also checks manually added declarations and preserves existing camera permissions.
19
+ - Prevent builds from failing on deleted theme paths immediately after automatic plugin updates.
20
+ - Repair old save-file imports automatically, including imports in Framework7 pages, and keep the Vite alias aligned with the latest installed Android or iOS helper.
21
+ - Avoid repeated Analytics and conditional-plugin installs when the required packages are already installed. Native Analytics does not require installing the optional Firebase web SDK.
22
+ - Report installed build-helper loading errors without unnecessary reinstall attempts.
23
+ - Keep notification icons in optimized Android apps by generating resource protection from each app's configuration during build preparation. Rebuild and reinstall consuming apps to apply this fix.
24
+
25
+ ## 4.11.4 — 2026-10-27
26
+
27
+ Version name: 4.11.4. Version code/build number: not applicable to this npm package.
28
+
29
+ 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`.
30
+
31
+ - Fix missing permission-check results caused by release optimization removing Capacitor metadata.
32
+ - Apply protection to all Android apps using this package, including apps with no permission-dependent features.
33
+ - Restore protection after native platform regeneration and package updates, and check it on every Gradle build without overwriting custom ProGuard rules.
34
+ - Keep the fix self-contained in the shared package and provide a manual restore command.
35
+ - No new permissions or prompts are added. Update the package and rebuild each app to include the correction.
36
+ - Preserve existing release minification choices and protect FFmpeg native entry points in apps using that plugin.
37
+
38
+ ## 4.10.5 — 2026-10-23
39
+
40
+ Version name: 4.10.5. Version code/build number: not applicable to this npm package.
41
+
42
+ Files changed: `package.json`, `scripts/sync-files.js`, `CHANGELOG.md`, `RELEASE_NOTES.md`.
43
+
44
+ - Prevent app postinstall failures after shared scripts switch to unversioned filenames.
45
+ - Repair the known old sync-hook path during plugin installation.
46
+ - Preserve each app's custom configuration and leave apps without the affected configurator unchanged.
47
+
48
+ ## 4.10.4 — 2026-10-23
49
+
50
+ Version name: 4.10.4. Version code/build number: not applicable to this npm package.
51
+
52
+ Files changed: `package.json`, `files/scripts-common/run-codeplay-sync-after.js`, `CHANGELOG.md`, `RELEASE_NOTES.md`.
53
+
54
+ - Fix Android sync failures caused by the old versioned splash script lookup.
55
+ - Use the migrated baseline profile setup path.
56
+ - Update the custom sync hook automatically during plugin installation.
57
+
58
+ ## 4.10.3 — 2026-10-23
59
+
60
+ Version name: 4.10.3. Version code/build number: not applicable to this npm package.
61
+
62
+ Files changed: `package.json`, `files/finalrelease`, `CHANGELOG.md`, `RELEASE_NOTES.md`.
63
+
64
+ - Release ad-free apps without adding an unnecessary AdMob alias or controller.
65
+ - Explicitly set `plugins.AdMob.ADMOB_ENABLED` to `false` to use the ad-free release path.
66
+ - Keep production AdMob safety checks for apps with advertising enabled.
67
+
68
+ ## 4.10.0 — 2026-10-23
69
+
70
+ Version name: 4.10.0. Version code/build number: not applicable to this npm package.
71
+ Bundled pre-build script: 6.7.
72
+
73
+ 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`.
74
+
75
+ - Copy shared build scripts and the versions manifest into each app; run local scripts with unversioned filenames.
76
+ - Rename app helper scripts to scripts-common automatically, migrate command paths, and preserve existing files without overwriting folder conflicts.
77
+ - Migrate app build/store/sync paths automatically and remove only superseded versioned helpers; preserve app-owned configuration and screenshot data.
78
+ - Resolve app sources/native targets from the consuming app directory while keeping bundled assets inside the plugin.
79
+ - Download IAP and AdMob directly from htmlcodeplay.com, without bundling archives or adding a separate fallback.
80
+ - Automatically migrate deferred ownership verification, purchase-safe advertising, and Home Pro visibility according to each store IAP flag.
81
+ - Copy the full finalrelease implementation so it can be tested from the application folder.
82
+ - Preserve working files during preinstall and avoid downgrading local/newer plugin installations to an older registry release.
83
+
84
+ ## 4.9.8 — 2026-10-22
85
+
86
+ Version name: 4.9.8. Version code/build number: not applicable to this npm package.
87
+ Bundled pre-build script: 6.5.
88
+
89
+ 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`.
90
+
91
+ - Install AdMob as `src/js/Ads/admob-nextgen-4.0/` with stable `admob-emi-nextgen.js` and `app-open-state.js` filenames.
92
+ - Automatically migrate loose-file references, folder references and Vite aliases during installation and before builds.
93
+ - Preserve app-owned ad configuration and select each app's existing IAP analytics module.
94
+ - Download every AdMob folder ZIP from htmlcodeplay.com; no AdMob archive is included in this npm package.
95
+ - Validate ZIP contents before switching imports; retain the working package when a remote update fails.
96
+ - Validate the selected folder controller during final-release checks while continuing to reject test aliases.
97
+
98
+ ## 4.7.7 — 2026-10-07
99
+
100
+ Version name: 4.7.7. Version code/build number: not applicable to this npm package.
101
+
102
+ Files changed: `package.json`, `scripts/sync-files.js`, `files/buildCodeplay/codeplayBeforeBuild-6.4.js`
103
+ (replaces `codeplayBeforeBuild-6.3.js`), `README.md`, `CHANGELOG.md`, `RELEASE_NOTES.md`.
104
+
105
+ - Installation automatically configures Android and iOS build commands in your app's `package.json`.
106
+ - Android builds remain the default; use `npm run build:ios` for iOS.
107
+ - Save-gallery imports use one alias with a platform-specific helper and a clear confirmation before source changes.
108
+ - Shared checks reuse file traversal to reduce repeated scanning.
109
+ - Builds warn and automatically uninstall the retired OneSignal Cordova plugin when found.
110
+ - `agent-temp/` stays ignored, while `buildCodeplay/` is removed from ignore rules.