codeplay-common 4.9.9 → 4.10.1

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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.10.0 — 2026-10-23
4
+
5
+ Version name: 4.10.0. Version code/build number: not applicable to this npm package.
6
+ Bundled pre-build script: 6.7.
7
+
8
+ 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`.
9
+
10
+ - Copy shared build scripts and the versions manifest into each app; run local scripts with unversioned filenames.
11
+ - Rename app helper scripts to scripts-common automatically, migrate command paths, and preserve existing files without overwriting folder conflicts.
12
+ - Migrate app build/store/sync paths automatically and remove only superseded versioned helpers; preserve app-owned configuration and screenshot data.
13
+ - Resolve app sources/native targets from the consuming app directory while keeping bundled assets inside the plugin.
14
+ - Download IAP and AdMob directly from htmlcodeplay.com, without bundling archives or adding a separate fallback.
15
+ - Automatically migrate deferred ownership verification, purchase-safe advertising, and Home Pro visibility according to each store IAP flag.
16
+ - Copy the full finalrelease implementation so it can be tested from the application folder.
17
+ - Preserve working files during preinstall and avoid downgrading local/newer plugin installations to an older registry release.
18
+
3
19
  ## 4.9.8 — 2026-10-22
4
20
 
5
21
  Version name: 4.9.8. Version code/build number: not applicable to this npm package.
@@ -12,20 +28,20 @@ Files changed: `package.json`, `scripts/sync-files.js`, `files/buildCodeplay/cod
12
28
  - Preserve app-owned ad configuration and select each app's existing IAP analytics module.
13
29
  - Download every AdMob folder ZIP from htmlcodeplay.com; no AdMob archive is included in this npm package.
14
30
  - Validate ZIP contents before switching imports; retain the working package when a remote update fails.
15
- - Validate the selected folder controller during final-release checks while continuing to reject test aliases.
16
-
17
- ## 4.7.7 — 2026-10-07
18
-
19
- Version name: 4.7.7. Version code/build number: not applicable to this npm package.
20
- Bundled pre-build script: 6.4.
21
-
22
- Files changed: `package.json`, `scripts/sync-files.js`, `files/buildCodeplay/codeplayBeforeBuild-6.4.js`
23
- (replaces `codeplayBeforeBuild-6.3.js`), `README.md`, `CHANGELOG.md`, `RELEASE_NOTES.md`.
24
-
25
- - Keep `npm run build` as the Android default on every host; add `npm run build:ios` automatically during installation.
26
- - Route `build-capacitor-android` through the same pre-build validation before copying the web build.
27
- - Migrate direct save-gallery imports to `@saveGallery` and select the matching platform helper in Vite after one detailed Enter/y confirmation.
28
- - Stop without import writes on cancellation, missing helpers, mixed versions, unsupported query/hash aliases or concurrent source edits.
29
- - Reuse source directory traversal and combine gallery, retired OneSignal import, StatusBar and editor checks in one content pass.
30
- - Automatically remove an installed/declared `onesignal-cordova-plugin` with a warning; skip legacy OneSignal patching/helper downloads and stop on remaining package imports.
31
- - Keep `agent-temp/` ignored and remove existing `buildCodeplay/` ignore entries without adding them in future projects.
31
+ - Validate the selected folder controller during final-release checks while continuing to reject test aliases.
32
+
33
+ ## 4.7.7 — 2026-10-07
34
+
35
+ Version name: 4.7.7. Version code/build number: not applicable to this npm package.
36
+ Bundled pre-build script: 6.4.
37
+
38
+ Files changed: `package.json`, `scripts/sync-files.js`, `files/buildCodeplay/codeplayBeforeBuild-6.4.js`
39
+ (replaces `codeplayBeforeBuild-6.3.js`), `README.md`, `CHANGELOG.md`, `RELEASE_NOTES.md`.
40
+
41
+ - Keep `npm run build` as the Android default on every host; add `npm run build:ios` automatically during installation.
42
+ - Route `build-capacitor-android` through the same pre-build validation before copying the web build.
43
+ - Migrate direct save-gallery imports to `@saveGallery` and select the matching platform helper in Vite after one detailed Enter/y confirmation.
44
+ - Stop without import writes on cancellation, missing helpers, mixed versions, unsupported query/hash aliases or concurrent source edits.
45
+ - Reuse source directory traversal and combine gallery, retired OneSignal import, StatusBar and editor checks in one content pass.
46
+ - Automatically remove an installed/declared `onesignal-cordova-plugin` with a warning; skip legacy OneSignal patching/helper downloads and stop on remaining package imports.
47
+ - Keep `agent-temp/` ignored and remove existing `buildCodeplay/` ignore entries without adding them in future projects.
package/README.md CHANGED
@@ -9,13 +9,27 @@ Based on store install various IAP plugins
9
9
  Make it to ionic project
10
10
 
11
11
 
12
- ## AdMob folder packages (4.9.8)
12
+ ## App helper folder
13
13
 
14
- Installing this release automatically migrates AdMob to:
14
+ Application helper scripts are kept in `scripts-common/`. Installation migrates the old `scripts/` folder and package command paths automatically, preserving every existing file. A conflicting destination file stops migration before any files are moved. The plugin’s internal npm lifecycle folder remains `scripts/`.
15
15
 
16
- `src/js/Ads/admob-nextgen-4.0/admob-emi-nextgen.js`
16
+ ## Shared unversioned build files (4.10.0)
17
17
 
18
- `src/js/Ads/admob-nextgen-4.0/app-open-state.js`
18
+ The plugin keeps the master build templates in files/buildCodeplay and copies them into each app's buildCodeplay folder during installation/update. Test changes in the application folder, then update these master templates for distribution to other apps.
19
+
20
+ App package scripts run local files: node buildCodeplay/codeplayBeforeBuild.js, node buildCodeplay/packageidBaseModification.js, node buildCodeplay/add-splash-screen.js and node buildCodeplay/setSplashAnimation.js. Filenames have no version suffixes. The versions.json plugin manifest remains alongside these scripts and is copied too.
21
+
22
+ Installation migrates both legacy versioned filenames and the temporary node_modules runner commands to these local paths. It removes only superseded versioned build scripts, preserves app-owned release configuration and splash XML overrides, and keeps screenshot data and custom helpers. The root finalrelease script is also copied as a local implementation.
23
+
24
+ Before-build includes the automatic IAP startup and Home Pro-button migrations. IAP and AdMob ZIPs are downloaded directly from https://htmlcodeplay.com/code-play-plugin/ using the existing update flow. No plugin ZIPs are bundled in this npm package. App-specific configuration and designs remain in the app.
25
+
26
+ ## AdMob folder packages
27
+
28
+ The next before-build automatically migrates AdMob to at least:
29
+
30
+ `src/js/Ads/admob-nextgen-4.1/admob-emi-nextgen.js`
31
+
32
+ `src/js/Ads/admob-nextgen-4.1/app-open-state.js`
19
33
 
20
34
  Existing `@admob` imports continue to work. Direct imports of the controller or
21
35
  lightweight state module are rewritten to the selected folder, including relative
@@ -24,7 +38,7 @@ paths, `@/` paths and static dynamic imports. App-owned
24
38
  installation does not replace its values. The controller's analytics import is
25
39
  aligned with the newest installed IAP folder containing `firebase-analytics.js`.
26
40
 
27
- The postinstall hook and pre-build script use the same migration helper. AdMob archives are downloaded only from the live plugin server; none are stored in this npm package.
41
+ The pre-build script downloads IAP before migrating AdMob so the corresponding imports exist. Postinstall does not independently update AdMob ahead of IAP.
28
42
  ZIPs may contain the files directly or one matching versioned folder. A complete
29
43
  controller and state module are required before imports switch. An unavailable or
30
44
  invalid remote ZIP leaves the installed package in use, with a warning. Unresolved
@@ -35,15 +49,15 @@ For future AdMob releases, upload `admob-nextgen-X.Y.zip` to
35
49
  in that server's `versions.json`. Version the folder, and keep module filenames
36
50
  stable. The previous `admob-emi-nextgen` manifest key is accepted for versions
37
51
  4.0 and later during the transition. Apps automatically select a newer ZIP during
38
- installation or their next normal pre-build; no per-app import changes are needed.
52
+ their next normal pre-build; no per-app import changes are needed.
39
53
  For older manifests without a folder release entry, migration checks the required
40
- `admob-nextgen-4.0.zip` directly on the same server. If offline, an existing complete
41
- folder remains usable; first migration stops with the legacy files preserved.
54
+ `admob-nextgen-4.1.zip` directly from the same server. If offline, an existing compatible
55
+ installation is preserved; a missing required package stops the build.
42
56
 
43
57
  ## Platform builds and shared validation
44
58
 
45
59
  Installing or updating `codeplay-common` updates the consuming project's `package.json`
46
- to use the latest bundled pre-build script and adds these commands:
60
+ to use the copied unversioned pre-build script and adds these commands:
47
61
 
48
62
  - `npm run build`: Android by default, including on macOS.
49
63
  - `npm run build:ios`: sets `CODEPLAY_BUILD_PLATFORM=ios` and runs the same build pipeline.
@@ -67,7 +81,7 @@ package imports remain. Legacy OneSignal patching and helper downloads are disab
67
81
 
68
82
  ## Screenshot data
69
83
 
70
- Shared screenshot helpers are installed into `scripts/screenshot/` and updated with
84
+ Shared screenshot helpers are installed into `scripts-common/screenshot/` and updated with
71
85
  the package. App-specific data is not bundled with the package.
72
86
  During an upgrade, cleanup removes only the two legacy helpers `frame-samples.js`
73
87
  and `background-decorations.js` from `scripts-screenshot/screenshot/`, preserving
package/RELEASE_NOTES.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release notes
2
2
 
3
+ ## 4.10.0 — 2026-10-23
4
+
5
+ Version name: 4.10.0. Version code/build number: not applicable to this npm package.
6
+ Bundled pre-build script: 6.7.
7
+
8
+ 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`.
9
+
10
+ - Copy shared build scripts and the versions manifest into each app; run local scripts with unversioned filenames.
11
+ - Rename app helper scripts to scripts-common automatically, migrate command paths, and preserve existing files without overwriting folder conflicts.
12
+ - Migrate app build/store/sync paths automatically and remove only superseded versioned helpers; preserve app-owned configuration and screenshot data.
13
+ - Resolve app sources/native targets from the consuming app directory while keeping bundled assets inside the plugin.
14
+ - Download IAP and AdMob directly from htmlcodeplay.com, without bundling archives or adding a separate fallback.
15
+ - Automatically migrate deferred ownership verification, purchase-safe advertising, and Home Pro visibility according to each store IAP flag.
16
+ - Copy the full finalrelease implementation so it can be tested from the application folder.
17
+ - Preserve working files during preinstall and avoid downgrading local/newer plugin installations to an older registry release.
18
+
3
19
  ## 4.9.8 — 2026-10-22
4
20
 
5
21
  Version name: 4.9.8. Version code/build number: not applicable to this npm package.
@@ -12,18 +28,18 @@ Files changed: `package.json`, `scripts/sync-files.js`, `files/buildCodeplay/cod
12
28
  - Preserve app-owned ad configuration and select each app's existing IAP analytics module.
13
29
  - Download every AdMob folder ZIP from htmlcodeplay.com; no AdMob archive is included in this npm package.
14
30
  - Validate ZIP contents before switching imports; retain the working package when a remote update fails.
15
- - Validate the selected folder controller during final-release checks while continuing to reject test aliases.
16
-
17
- ## 4.7.7 — 2026-10-07
18
-
19
- Version name: 4.7.7. Version code/build number: not applicable to this npm package.
20
-
21
- Files changed: `package.json`, `scripts/sync-files.js`, `files/buildCodeplay/codeplayBeforeBuild-6.4.js`
22
- (replaces `codeplayBeforeBuild-6.3.js`), `README.md`, `CHANGELOG.md`, `RELEASE_NOTES.md`.
23
-
24
- - Installation automatically configures Android and iOS build commands in your app's `package.json`.
25
- - Android builds remain the default; use `npm run build:ios` for iOS.
26
- - Save-gallery imports use one alias with a platform-specific helper and a clear confirmation before source changes.
27
- - Shared checks reuse file traversal to reduce repeated scanning.
28
- - Builds warn and automatically uninstall the retired OneSignal Cordova plugin when found.
29
- - `agent-temp/` stays ignored, while `buildCodeplay/` is removed from ignore rules.
31
+ - Validate the selected folder controller during final-release checks while continuing to reject test aliases.
32
+
33
+ ## 4.7.7 — 2026-10-07
34
+
35
+ Version name: 4.7.7. Version code/build number: not applicable to this npm package.
36
+
37
+ Files changed: `package.json`, `scripts/sync-files.js`, `files/buildCodeplay/codeplayBeforeBuild-6.4.js`
38
+ (replaces `codeplayBeforeBuild-6.3.js`), `README.md`, `CHANGELOG.md`, `RELEASE_NOTES.md`.
39
+
40
+ - Installation automatically configures Android and iOS build commands in your app's `package.json`.
41
+ - Android builds remain the default; use `npm run build:ios` for iOS.
42
+ - Save-gallery imports use one alias with a platform-specific helper and a clear confirmation before source changes.
43
+ - Shared checks reuse file traversal to reduce repeated scanning.
44
+ - Builds warn and automatically uninstall the retired OneSignal Cordova plugin when found.
45
+ - `agent-temp/` stays ignored, while `buildCodeplay/` is removed from ignore rules.