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
package/README.md
CHANGED
|
@@ -82,287 +82,287 @@ setup and is not guaranteed by successful SDK integration or demo ads.
|
|
|
82
82
|
|
|
83
83
|
## Android system bars (4.11.22)
|
|
84
84
|
|
|
85
|
-
Installation and before-build migrate installed `capacitor-codeplay-system-bars` 1.0.1 to avoid calling `Window.setNavigationBarColor` on Android 15+. Existing inset protection views, keyboard handling, icon appearance and older Android compatibility remain intact. Missing plugins are skipped; unexpected native source requires review. Before-build removes `@capacitor/status-bar` only when parsed app sources confirm modern `SystemBars` usage without legacy references. Apps with active legacy calls or unparseable source retain the dependency and report why.
|
|
85
|
+
Installation and before-build migrate installed `capacitor-codeplay-system-bars` 1.0.1 to avoid calling `Window.setNavigationBarColor` on Android 15+. Existing inset protection views, keyboard handling, icon appearance and older Android compatibility remain intact. Missing plugins are skipped; unexpected native source requires review. Before-build removes `@capacitor/status-bar` only when parsed app sources confirm modern `SystemBars` usage without legacy references. Apps with active legacy calls or unparseable source retain the dependency and report why. Terser is included as a package dependency and resolved through codeplay-common, so apps do not need to install it or change Vite settings. Run normal Capacitor sync after dependency cleanup. Native changes require a rebuilt install; older Android compatibility code can still trigger Play static warnings.
|
|
86
86
|
|
|
87
87
|
Dependency cleanup also runs `npx --no-install cap update android` when an Android platform exists and removes the standard stale iOS Podfile declaration. It does not build or install an APK. Run normal iOS sync on the supported build system before the next iOS build.
|
|
88
88
|
|
|
89
89
|
This source update is not an npm publication. Existing apps receive future releases through their normal package update process.
|
|
90
|
-
|
|
91
|
-
## Optional IAP configuration (4.11.21)
|
|
92
|
-
|
|
93
|
-
Before-build upgrades the AdMob configuration schema to at least 1.8 and adds empty defaults for `IAP.configuration.adFreeEntitlement`, `offeringIdentifier`, `lifetimeProductIds` (playstore/ios/amazon/samsung), and `samsungPaywallProductIds`. Existing store flags, keys, product IDs and explicit settings are preserved. Empty settings retain the legacy current offering and subscription behavior; these fields do not create store products or enable lifetime purchases automatically.
|
|
94
|
-
|
|
95
|
-
These optional settings come only from the consuming app's configuration, including its legacy configuration when migrating. Downloaded shared templates cannot opt an app into another app's entitlement, offering or lifetime products. Configure each store and RevenueCat before selecting nonempty values in an app. This package update does not ship the new IAP runtime modules or publish store releases.
|
|
96
|
-
|
|
97
|
-
## Shared splash setup (4.11.13)
|
|
98
|
-
|
|
99
|
-
The package owns the splash theme template, Android splash setup, MainActivity generator and Framework7 readiness helper. Install/update copies the build scripts into the consuming app. Installation, before-build and splash setup repair the known legacy `Theme.AppCompat.NoActionBar` post-splash default in the app's preserved `buildCodeplay/splashxml/codeplay_splashScreen.xml` template. The replacement uses `Theme.AppCompat.DayNight.NoActionBar`; other custom themes and resource attributes are preserved. Android sync applies the template to generated resources. Existing APKs require a rebuild to receive native changes.
|
|
100
|
-
|
|
101
|
-
Configure these separate controls in `capacitor.config.json`:
|
|
102
|
-
|
|
103
|
-
```json
|
|
104
|
-
{
|
|
105
|
-
"plugins": {
|
|
106
|
-
"SplashScreen": {
|
|
107
|
-
"launchShowDuration": 8000,
|
|
108
|
-
"launchAutoHide": true
|
|
109
|
-
},
|
|
110
|
-
"CodeplaySplashScreen": {
|
|
111
|
-
"exitAnimationDuration": 200,
|
|
112
|
-
"readinessTimeout": 8000,
|
|
113
|
-
"readyImageSelector": "[data-splash-ready], .t-film-art img",
|
|
114
|
-
"migrateLegacyReadiness": true
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
`CodeplaySplashScreen` is build-time configuration, not an additional native plugin. `exitAnimationDuration` accepts integer milliseconds from0 through10000 and defaults to1000 for compatibility;0 removes the configured exit-animation delay. Run Android sync after changing it. The sample opts into200ms; installation does not choose a new duration for existing apps. `SplashScreen.launchShowDuration` is the native maximum fallback;0 bypasses Capacitor's launch-splash holding flow, so do not use it to disable only the exit animation. Keep `launchAutoHide:true` and a native duration at least as long as `readinessTimeout`.
|
|
121
|
-
|
|
122
|
-
The package automatically recognizes the previously shared page/image readiness implementation and moves it to the package helper. `migrateLegacyReadiness:true` additionally opts a supported fixed2000ms handler into readiness;its default is false. Migration requires the installed `@capacitor/splash-screen` dependency, the native fallback configuration above and a supported `capacitorApp.handleSplashscreen` method. Config and unsupported custom startup methods are preserved; preparation reports manual integration requirements. Existing explicitly managed helper calls receive updated selector/timeout options during preparation.
|
|
123
|
-
|
|
124
|
-
For custom Framework7 startup code, retain your app's lifecycle and call:
|
|
125
|
-
|
|
126
|
-
```js
|
|
127
|
-
import { SplashScreen } from '@capacitor/splash-screen';
|
|
128
|
-
import { hideSplashWhenReady } from 'codeplay-common/runtime/splash-ready.mjs';
|
|
129
|
-
|
|
130
|
-
hideSplashWhenReady({
|
|
131
|
-
f7: app,
|
|
132
|
-
hide: () => SplashScreen.hide(),
|
|
133
|
-
imageSelector: '[data-splash-ready]',
|
|
134
|
-
timeout: 8000
|
|
135
|
-
});
|
|
136
|
-
```
|
|
137
|
-
|
|
138
|
-
Invoke after the Framework7 instance exists. The helper uses `pageAfterIn` for the main view, handles an already-current page, waits for the selected image's load/decode, and then hides once. Mark the important `<img>` with `data-splash-ready` or configure its selector;without a matching image it hides after the page is ready. Image errors and timeout release the splash and remove listeners. It does not track every image, async request or custom page render;call from your own ready point for those requirements. Retain the native timeout as a second fallback. No new dependencies are added.
|
|
139
|
-
|
|
140
|
-
Validation: migration/runtime/generator tests cover0ms,theme preservation,repeat runs,image errors,decode failure and timeout cleanup. Earlier app release benchmarks used the equivalent app-local readiness flow;they do not validate every consuming app or guarantee a startup speedup from this package update. Rebuild and check light/dark switching and splash handoff on Android before releasing an app.
|
|
141
|
-
Everything automatted in Capacitor apps, easy to maintain many apps in capacitor. It will reduce your 40% of work, with common file code.
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
Easy add splashscreen and set animation
|
|
145
|
-
Admob id automatically from capacitor.config.json file
|
|
146
|
-
Make three build file for different store as per our requirement
|
|
147
|
-
Based on store install various IAP plugins
|
|
148
|
-
Make it to ionic project
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
## Capacitor Android permission metadata (4.11.4)
|
|
152
|
-
|
|
153
|
-
The package preserves the runtime `CapacitorPlugin` and `Permission` annotation members required by optimized Android builds. This applies to every Android consumer, even if the app does not currently use permission-dependent plugins. It does not declare or grant permissions, show prompts, or enable minification.
|
|
154
|
-
|
|
155
|
-
Installation applies the rules to an existing Android project and installs one `apply from` line in `android/app/build.gradle`. The included Gradle script reruns the repair during every Gradle configuration, including direct Android Studio/Gradle and Capacitor `run --no-sync` builds. All repair logic stays in the shared fix folder. Android sync, build preparation and release preparation restore missing rules after platform regeneration. The generated Gradle hook is restored after platform regeneration. Existing custom ProGuard rules are preserved and repeated runs do not add duplicates. Apps without an Android platform are skipped until that platform exists.
|
|
156
|
-
|
|
157
|
-
All fix implementations ship under `buildCodeplay/fix-optimize-builld/`, including the restore command and its Gradle integration; no app-specific `Scripts` file is required. Run `npm run android:r8-rules` to restore the rules manually. Existing custom npm commands are preserved; the known older `restore-android-r8-rules.cjs` command is migrated automatically.
|
|
158
|
-
|
|
159
|
-
After installing this package update, rebuild and test each app's optimized release. Updating build tooling cannot change APKs or app-store releases already distributed to users.
|
|
160
|
-
|
|
161
|
-
## App helper folder
|
|
162
|
-
|
|
163
|
-
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/`.
|
|
164
|
-
|
|
165
|
-
## Shared unversioned build files (4.10.0)
|
|
166
|
-
|
|
167
|
-
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.
|
|
168
|
-
|
|
169
|
-
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.
|
|
170
|
-
|
|
171
|
-
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.
|
|
172
|
-
|
|
173
|
-
After this update is installed, `npm run build` checks the app's `buildCodeplay/` folder for version-suffixed files before preparing the build. If any exist, it runs `npm uninstall codeplay-common` followed by `npm install codeplay-common`, then runs the refreshed before-build script before continuing. A failed command or remaining versioned files stops the build. Unrecognized legacy files must be migrated manually; they are not deleted automatically.
|
|
174
|
-
|
|
175
|
-
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.
|
|
176
|
-
|
|
177
|
-
## AdMob folder packages
|
|
178
|
-
|
|
179
|
-
The next before-build automatically migrates AdMob to at least:
|
|
180
|
-
|
|
181
|
-
`src/js/Ads/admob-nextgen-4.1/admob-emi-nextgen.js`
|
|
182
|
-
|
|
183
|
-
`src/js/Ads/admob-nextgen-4.1/app-open-state.js`
|
|
184
|
-
|
|
185
|
-
Existing `@admob` imports continue to work. Direct imports of the controller or
|
|
186
|
-
lightweight state module are rewritten to the selected folder, including relative
|
|
187
|
-
paths, `@/` paths and static dynamic imports. App-owned
|
|
188
|
-
`src/js/Ads/admob-ad-configuration-nextgen.json` remains outside the package;
|
|
189
|
-
installation does not replace its values. The controller's analytics import is
|
|
190
|
-
aligned with the newest installed IAP folder containing `firebase-analytics.js`.
|
|
191
|
-
|
|
192
|
-
The pre-build script downloads IAP before migrating AdMob so the corresponding imports exist. Postinstall does not independently update AdMob ahead of IAP.
|
|
193
|
-
ZIPs may contain the files directly or one matching versioned folder. A complete
|
|
194
|
-
controller and state module are required before imports switch. An unavailable or
|
|
195
|
-
invalid remote ZIP leaves the installed package in use, with a warning. Unresolved
|
|
196
|
-
import targets stop migration before old packages are removed.
|
|
197
|
-
|
|
198
|
-
For future AdMob releases, upload `admob-nextgen-X.Y.zip` to
|
|
199
|
-
`https://htmlcodeplay.com/code-play-plugin/` and set `"admob-nextgen": "X.Y"`
|
|
200
|
-
in that server's `versions.json`. Version the folder, and keep module filenames
|
|
201
|
-
stable. The previous `admob-emi-nextgen` manifest key is accepted for versions
|
|
202
|
-
4.0 and later during the transition. Apps automatically select a newer ZIP during
|
|
203
|
-
their next normal pre-build; no per-app import changes are needed.
|
|
204
|
-
For older manifests without a folder release entry, migration checks the required
|
|
205
|
-
`admob-nextgen-4.1.zip` directly from the same server. If offline, an existing compatible
|
|
206
|
-
installation is preserved; a missing required package stops the build.
|
|
207
|
-
|
|
208
|
-
## Platform builds and shared validation
|
|
209
|
-
|
|
210
|
-
Installing or updating `codeplay-common` updates the consuming project's `package.json`
|
|
211
|
-
to use the copied unversioned pre-build script and adds these commands:
|
|
212
|
-
|
|
213
|
-
- `npm run build`: Android by default, including on macOS.
|
|
214
|
-
- `npm run build:ios`: sets `CODEPLAY_BUILD_PLATFORM=ios` and runs the same build pipeline.
|
|
215
|
-
- `npm run build-capacitor-android`: runs the shared checks and copies the web build to Android.
|
|
216
|
-
|
|
217
|
-
The pre-build script migrates direct `saveToGalleryAndSaveAnyFile` imports to
|
|
218
|
-
`@saveGallery` and sets the Vite alias to the matching Android or iOS helper.
|
|
219
|
-
Before changing source imports or the alias, it lists the build target, affected files,
|
|
220
|
-
and exact replacements. Press Enter or type `y` to continue; any other answer cancels.
|
|
221
|
-
Correct imports and alias targets continue without prompting. Missing helpers, mixed
|
|
222
|
-
versions and query/hash imports stop with an actionable error.
|
|
223
|
-
|
|
224
|
-
Source validation reuses a directory inventory and combines the gallery and editor
|
|
225
|
-
checks in one content pass. The inventory refreshes when generated or downloaded
|
|
226
|
-
files change the source tree.
|
|
227
|
-
|
|
228
|
-
Builds also keep `agent-temp/` ignored and remove existing `buildCodeplay/` ignore entries.
|
|
229
|
-
If `onesignal-cordova-plugin` is declared or installed, the pre-build script warns and
|
|
230
|
-
runs `npm uninstall onesignal-cordova-plugin`. It stops if removal fails or active
|
|
231
|
-
package imports remain. Legacy OneSignal patching and helper downloads are disabled.
|
|
232
|
-
|
|
233
|
-
## Screenshot data
|
|
234
|
-
|
|
235
|
-
Shared screenshot helpers are installed into `scripts-common/screenshot/` and updated with
|
|
236
|
-
the package. App-specific data is not bundled with the package.
|
|
237
|
-
During an upgrade, cleanup removes only the two legacy helpers `frame-samples.js`
|
|
238
|
-
and `background-decorations.js` from `scripts-screenshot/screenshot/`, preserving
|
|
239
|
-
the folder, JSON data, and other app files.
|
|
240
|
-
|
|
241
|
-
`take-screen-image.js` creates `scripts-screenshot/screenshot/` and empty
|
|
242
|
-
`screenshot-copy.json` and `screenshot-info.json` files when needed. Existing files
|
|
243
|
-
are preserved during initialization, package installation, and cleanup. Capture
|
|
244
|
-
updates screenshot information; the AI text-generation workflow fills screenshot
|
|
245
|
-
copy. `--delete` removes matching records, and screenshot runs reconcile records
|
|
246
|
-
against the captured images (except dry runs and `--refresh-info`).
|
|
247
|
-
|
|
248
|
-
## Agent instructions
|
|
249
|
-
|
|
250
|
-
Agent instructions are updated during `npm run build`, not during npm installation.
|
|
251
|
-
The build script reads the `agents` version from
|
|
252
|
-
`https://htmlcodeplay.com/code-play-plugin/versions.json` and downloads the matching
|
|
253
|
-
`agents-<version>.zip` archive when the project has no agent instructions or the
|
|
254
|
-
server version is newer.
|
|
255
|
-
|
|
256
|
-
The ZIP root must contain `AGENTS.md` and `AGENTS/`. These are copied directly to
|
|
257
|
-
the project root. The installed version is stored in `AGENTS/.codeplay-version`.
|
|
258
|
-
Existing files with matching names are replaced; project-only files with other
|
|
259
|
-
names inside `AGENTS/` are preserved.
|
|
260
|
-
|
|
261
|
-
For example, publish `agents-1.1.zip` and add this entry to the server's
|
|
262
|
-
`versions.json`:
|
|
263
|
-
|
|
264
|
-
```json
|
|
265
|
-
"agents": "1.1"
|
|
266
|
-
```
|
|
267
|
-
|
|
268
|
-
Donate to get full code including many common functions
|
|
269
|
-
https://ko-fi.com/codeplay
|
|
270
|
-
|
|
271
|
-
Version 4.6.1
|
|
272
|
-
Added automatic IAP startup integration for Framework7 home pages.
|
|
273
|
-
Updated minimum shared versions to IAP 4.2 and AdMob nextgen 2.5.
|
|
274
|
-
|
|
275
|
-
4.2.8
|
|
276
|
-
baseline profile code modifications
|
|
277
|
-
|
|
278
|
-
Version 4.2.3
|
|
279
|
-
Added build warning confirmation when android.ORIENTATION is not "auto" or android.RESIZEABLE_ACTIVITY is not true.
|
|
280
|
-
|
|
281
|
-
Version 4.2.2
|
|
282
|
-
Added "bannerDisabledPages" property and its default value
|
|
283
|
-
The admob configuration default value priority is updated
|
|
284
|
-
|
|
285
|
-
Version 4.2.1
|
|
286
|
-
Updated AdMob nextgen file validation to match admob-emi-nextgen file names.
|
|
287
|
-
|
|
288
|
-
Version 4.2.0
|
|
289
|
-
Firebase related automatic changes updated
|
|
290
|
-
|
|
291
|
-
Version 4.1.9
|
|
292
|
-
Added AdMob nextgen 1.7 validation/default support for "overlappingHeight", "bannerTypeAndroidLandscape", and "bannerTypeiOSLandscape".
|
|
293
|
-
|
|
294
|
-
Version 4.1.8
|
|
295
|
-
"consentDebug: false" is added
|
|
296
|
-
|
|
297
|
-
Version 4.1.7
|
|
298
|
-
admob configuration automatically added.
|
|
299
|
-
|
|
300
|
-
Version 4.1.6
|
|
301
|
-
"setup-baseline-profile.js" modification, duplicate validation error fixed
|
|
302
|
-
|
|
303
|
-
Version 4.1.5
|
|
304
|
-
While isTesting is true it is not validated from our new configuration admob file, now it is solved
|
|
305
|
-
|
|
306
|
-
Version 4.1.4
|
|
307
|
-
hardcoded version is removed for the admob-emi-nextgen
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
Version 4.1.3
|
|
311
|
-
"consentDebug": false automatically adds if not
|
|
312
|
-
|
|
313
|
-
Version 4.1.2
|
|
314
|
-
Speedup
|
|
315
|
-
|
|
316
|
-
Version 4.1.1
|
|
317
|
-
Auto admob integration updated
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
version 4.0.9
|
|
321
|
-
packageJson.scripts["ionic:serve"] = "cross-env NODE_ENV=development vite"; this line updated in "sync-files.js"
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
version 4.0.8
|
|
325
|
-
safearea plugin is checked and removed automatically
|
|
326
|
-
Automatically added following in capacitor.config.json file
|
|
327
|
-
"SystemBars": {
|
|
328
|
-
"insetsHandling": "css"
|
|
329
|
-
}
|
|
330
|
-
patchFile() method is removed
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
Version 4.0.6
|
|
336
|
-
IAP related some automatic variable creation and validation
|
|
337
|
-
Fetch from vite.config.json file
|
|
338
|
-
'import.meta.env.VITE_APP_UNIQUE_ID': JSON.stringify(APP_UNIQUE_ID),
|
|
339
|
-
'import.meta.env.VITE_ANDROID_ANALYTICS_ENABLED': JSON.stringify(ANDROID_ANALYTICS_ENABLED),
|
|
340
|
-
'import.meta.env.VITE_IOS_ANALYTICS_ENABLED': JSON.stringify(IOS_ANALYTICS_ENABLED),
|
|
341
|
-
'import.meta.env.VITE_IAP_DESIGN': JSON.stringify(IAP_DESIGN),
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
Version 4.0.5
|
|
345
|
-
In "files\buildCodeplay\packageidBaseModification-1.4.js" SCHEDULE_EXACT_ALARM permission added for the app unique id 2 (resume generator app)
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
Version 4.0.4
|
|
349
|
-
patchFile(); method is disabled, Due to "@capacitor/android:8.4.2" this update. I think it is realted to safearea issue fixed in this latest version, file in "SystemBars.java"
|
|
350
|
-
|
|
351
|
-
Version 4.0.3
|
|
352
|
-
Old admob check performs through plugin location, but not it is validated from capacitor.config.json
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
Version: 4.0.2
|
|
356
|
-
After check & install/download the latest version, the re-check is cancelled now
|
|
357
|
-
|
|
358
|
-
Version: 4.0.1
|
|
359
|
-
Base profile script added
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
"version": "",
|
|
363
|
-
Version : 4.0.0 (Previous version 3.2.19)
|
|
364
|
-
1) In here we are completly remove the admob-emi and use "capacitor-admob-nextgen"
|
|
365
|
-
2) Removed "modify-plugin-xml.js"
|
|
366
|
-
3)
|
|
367
|
-
|
|
368
|
-
The fix preserves the metadata behind the release permission-check failure verified in testing. It does not guarantee every native dialog or plugin: required manifest declarations, Android permission policy, device settings and plugin-specific keep rules still apply.
|
|
90
|
+
|
|
91
|
+
## Optional IAP configuration (4.11.21)
|
|
92
|
+
|
|
93
|
+
Before-build upgrades the AdMob configuration schema to at least 1.8 and adds empty defaults for `IAP.configuration.adFreeEntitlement`, `offeringIdentifier`, `lifetimeProductIds` (playstore/ios/amazon/samsung), and `samsungPaywallProductIds`. Existing store flags, keys, product IDs and explicit settings are preserved. Empty settings retain the legacy current offering and subscription behavior; these fields do not create store products or enable lifetime purchases automatically.
|
|
94
|
+
|
|
95
|
+
These optional settings come only from the consuming app's configuration, including its legacy configuration when migrating. Downloaded shared templates cannot opt an app into another app's entitlement, offering or lifetime products. Configure each store and RevenueCat before selecting nonempty values in an app. This package update does not ship the new IAP runtime modules or publish store releases.
|
|
96
|
+
|
|
97
|
+
## Shared splash setup (4.11.13)
|
|
98
|
+
|
|
99
|
+
The package owns the splash theme template, Android splash setup, MainActivity generator and Framework7 readiness helper. Install/update copies the build scripts into the consuming app. Installation, before-build and splash setup repair the known legacy `Theme.AppCompat.NoActionBar` post-splash default in the app's preserved `buildCodeplay/splashxml/codeplay_splashScreen.xml` template. The replacement uses `Theme.AppCompat.DayNight.NoActionBar`; other custom themes and resource attributes are preserved. Android sync applies the template to generated resources. Existing APKs require a rebuild to receive native changes.
|
|
100
|
+
|
|
101
|
+
Configure these separate controls in `capacitor.config.json`:
|
|
102
|
+
|
|
103
|
+
```json
|
|
104
|
+
{
|
|
105
|
+
"plugins": {
|
|
106
|
+
"SplashScreen": {
|
|
107
|
+
"launchShowDuration": 8000,
|
|
108
|
+
"launchAutoHide": true
|
|
109
|
+
},
|
|
110
|
+
"CodeplaySplashScreen": {
|
|
111
|
+
"exitAnimationDuration": 200,
|
|
112
|
+
"readinessTimeout": 8000,
|
|
113
|
+
"readyImageSelector": "[data-splash-ready], .t-film-art img",
|
|
114
|
+
"migrateLegacyReadiness": true
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
`CodeplaySplashScreen` is build-time configuration, not an additional native plugin. `exitAnimationDuration` accepts integer milliseconds from0 through10000 and defaults to1000 for compatibility;0 removes the configured exit-animation delay. Run Android sync after changing it. The sample opts into200ms; installation does not choose a new duration for existing apps. `SplashScreen.launchShowDuration` is the native maximum fallback;0 bypasses Capacitor's launch-splash holding flow, so do not use it to disable only the exit animation. Keep `launchAutoHide:true` and a native duration at least as long as `readinessTimeout`.
|
|
121
|
+
|
|
122
|
+
The package automatically recognizes the previously shared page/image readiness implementation and moves it to the package helper. `migrateLegacyReadiness:true` additionally opts a supported fixed2000ms handler into readiness;its default is false. Migration requires the installed `@capacitor/splash-screen` dependency, the native fallback configuration above and a supported `capacitorApp.handleSplashscreen` method. Config and unsupported custom startup methods are preserved; preparation reports manual integration requirements. Existing explicitly managed helper calls receive updated selector/timeout options during preparation.
|
|
123
|
+
|
|
124
|
+
For custom Framework7 startup code, retain your app's lifecycle and call:
|
|
125
|
+
|
|
126
|
+
```js
|
|
127
|
+
import { SplashScreen } from '@capacitor/splash-screen';
|
|
128
|
+
import { hideSplashWhenReady } from 'codeplay-common/runtime/splash-ready.mjs';
|
|
129
|
+
|
|
130
|
+
hideSplashWhenReady({
|
|
131
|
+
f7: app,
|
|
132
|
+
hide: () => SplashScreen.hide(),
|
|
133
|
+
imageSelector: '[data-splash-ready]',
|
|
134
|
+
timeout: 8000
|
|
135
|
+
});
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
Invoke after the Framework7 instance exists. The helper uses `pageAfterIn` for the main view, handles an already-current page, waits for the selected image's load/decode, and then hides once. Mark the important `<img>` with `data-splash-ready` or configure its selector;without a matching image it hides after the page is ready. Image errors and timeout release the splash and remove listeners. It does not track every image, async request or custom page render;call from your own ready point for those requirements. Retain the native timeout as a second fallback. No new dependencies are added.
|
|
139
|
+
|
|
140
|
+
Validation: migration/runtime/generator tests cover0ms,theme preservation,repeat runs,image errors,decode failure and timeout cleanup. Earlier app release benchmarks used the equivalent app-local readiness flow;they do not validate every consuming app or guarantee a startup speedup from this package update. Rebuild and check light/dark switching and splash handoff on Android before releasing an app.
|
|
141
|
+
Everything automatted in Capacitor apps, easy to maintain many apps in capacitor. It will reduce your 40% of work, with common file code.
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
Easy add splashscreen and set animation
|
|
145
|
+
Admob id automatically from capacitor.config.json file
|
|
146
|
+
Make three build file for different store as per our requirement
|
|
147
|
+
Based on store install various IAP plugins
|
|
148
|
+
Make it to ionic project
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
## Capacitor Android permission metadata (4.11.4)
|
|
152
|
+
|
|
153
|
+
The package preserves the runtime `CapacitorPlugin` and `Permission` annotation members required by optimized Android builds. This applies to every Android consumer, even if the app does not currently use permission-dependent plugins. It does not declare or grant permissions, show prompts, or enable minification.
|
|
154
|
+
|
|
155
|
+
Installation applies the rules to an existing Android project and installs one `apply from` line in `android/app/build.gradle`. The included Gradle script reruns the repair during every Gradle configuration, including direct Android Studio/Gradle and Capacitor `run --no-sync` builds. All repair logic stays in the shared fix folder. Android sync, build preparation and release preparation restore missing rules after platform regeneration. The generated Gradle hook is restored after platform regeneration. Existing custom ProGuard rules are preserved and repeated runs do not add duplicates. Apps without an Android platform are skipped until that platform exists.
|
|
156
|
+
|
|
157
|
+
All fix implementations ship under `buildCodeplay/fix-optimize-builld/`, including the restore command and its Gradle integration; no app-specific `Scripts` file is required. Run `npm run android:r8-rules` to restore the rules manually. Existing custom npm commands are preserved; the known older `restore-android-r8-rules.cjs` command is migrated automatically.
|
|
158
|
+
|
|
159
|
+
After installing this package update, rebuild and test each app's optimized release. Updating build tooling cannot change APKs or app-store releases already distributed to users.
|
|
160
|
+
|
|
161
|
+
## App helper folder
|
|
162
|
+
|
|
163
|
+
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/`.
|
|
164
|
+
|
|
165
|
+
## Shared unversioned build files (4.10.0)
|
|
166
|
+
|
|
167
|
+
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.
|
|
168
|
+
|
|
169
|
+
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.
|
|
170
|
+
|
|
171
|
+
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.
|
|
172
|
+
|
|
173
|
+
After this update is installed, `npm run build` checks the app's `buildCodeplay/` folder for version-suffixed files before preparing the build. If any exist, it runs `npm uninstall codeplay-common` followed by `npm install codeplay-common`, then runs the refreshed before-build script before continuing. A failed command or remaining versioned files stops the build. Unrecognized legacy files must be migrated manually; they are not deleted automatically.
|
|
174
|
+
|
|
175
|
+
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.
|
|
176
|
+
|
|
177
|
+
## AdMob folder packages
|
|
178
|
+
|
|
179
|
+
The next before-build automatically migrates AdMob to at least:
|
|
180
|
+
|
|
181
|
+
`src/js/Ads/admob-nextgen-4.1/admob-emi-nextgen.js`
|
|
182
|
+
|
|
183
|
+
`src/js/Ads/admob-nextgen-4.1/app-open-state.js`
|
|
184
|
+
|
|
185
|
+
Existing `@admob` imports continue to work. Direct imports of the controller or
|
|
186
|
+
lightweight state module are rewritten to the selected folder, including relative
|
|
187
|
+
paths, `@/` paths and static dynamic imports. App-owned
|
|
188
|
+
`src/js/Ads/admob-ad-configuration-nextgen.json` remains outside the package;
|
|
189
|
+
installation does not replace its values. The controller's analytics import is
|
|
190
|
+
aligned with the newest installed IAP folder containing `firebase-analytics.js`.
|
|
191
|
+
|
|
192
|
+
The pre-build script downloads IAP before migrating AdMob so the corresponding imports exist. Postinstall does not independently update AdMob ahead of IAP.
|
|
193
|
+
ZIPs may contain the files directly or one matching versioned folder. A complete
|
|
194
|
+
controller and state module are required before imports switch. An unavailable or
|
|
195
|
+
invalid remote ZIP leaves the installed package in use, with a warning. Unresolved
|
|
196
|
+
import targets stop migration before old packages are removed.
|
|
197
|
+
|
|
198
|
+
For future AdMob releases, upload `admob-nextgen-X.Y.zip` to
|
|
199
|
+
`https://htmlcodeplay.com/code-play-plugin/` and set `"admob-nextgen": "X.Y"`
|
|
200
|
+
in that server's `versions.json`. Version the folder, and keep module filenames
|
|
201
|
+
stable. The previous `admob-emi-nextgen` manifest key is accepted for versions
|
|
202
|
+
4.0 and later during the transition. Apps automatically select a newer ZIP during
|
|
203
|
+
their next normal pre-build; no per-app import changes are needed.
|
|
204
|
+
For older manifests without a folder release entry, migration checks the required
|
|
205
|
+
`admob-nextgen-4.1.zip` directly from the same server. If offline, an existing compatible
|
|
206
|
+
installation is preserved; a missing required package stops the build.
|
|
207
|
+
|
|
208
|
+
## Platform builds and shared validation
|
|
209
|
+
|
|
210
|
+
Installing or updating `codeplay-common` updates the consuming project's `package.json`
|
|
211
|
+
to use the copied unversioned pre-build script and adds these commands:
|
|
212
|
+
|
|
213
|
+
- `npm run build`: Android by default, including on macOS.
|
|
214
|
+
- `npm run build:ios`: sets `CODEPLAY_BUILD_PLATFORM=ios` and runs the same build pipeline.
|
|
215
|
+
- `npm run build-capacitor-android`: runs the shared checks and copies the web build to Android.
|
|
216
|
+
|
|
217
|
+
The pre-build script migrates direct `saveToGalleryAndSaveAnyFile` imports to
|
|
218
|
+
`@saveGallery` and sets the Vite alias to the matching Android or iOS helper.
|
|
219
|
+
Before changing source imports or the alias, it lists the build target, affected files,
|
|
220
|
+
and exact replacements. Press Enter or type `y` to continue; any other answer cancels.
|
|
221
|
+
Correct imports and alias targets continue without prompting. Missing helpers, mixed
|
|
222
|
+
versions and query/hash imports stop with an actionable error.
|
|
223
|
+
|
|
224
|
+
Source validation reuses a directory inventory and combines the gallery and editor
|
|
225
|
+
checks in one content pass. The inventory refreshes when generated or downloaded
|
|
226
|
+
files change the source tree.
|
|
227
|
+
|
|
228
|
+
Builds also keep `agent-temp/` ignored and remove existing `buildCodeplay/` ignore entries.
|
|
229
|
+
If `onesignal-cordova-plugin` is declared or installed, the pre-build script warns and
|
|
230
|
+
runs `npm uninstall onesignal-cordova-plugin`. It stops if removal fails or active
|
|
231
|
+
package imports remain. Legacy OneSignal patching and helper downloads are disabled.
|
|
232
|
+
|
|
233
|
+
## Screenshot data
|
|
234
|
+
|
|
235
|
+
Shared screenshot helpers are installed into `scripts-common/screenshot/` and updated with
|
|
236
|
+
the package. App-specific data is not bundled with the package.
|
|
237
|
+
During an upgrade, cleanup removes only the two legacy helpers `frame-samples.js`
|
|
238
|
+
and `background-decorations.js` from `scripts-screenshot/screenshot/`, preserving
|
|
239
|
+
the folder, JSON data, and other app files.
|
|
240
|
+
|
|
241
|
+
`take-screen-image.js` creates `scripts-screenshot/screenshot/` and empty
|
|
242
|
+
`screenshot-copy.json` and `screenshot-info.json` files when needed. Existing files
|
|
243
|
+
are preserved during initialization, package installation, and cleanup. Capture
|
|
244
|
+
updates screenshot information; the AI text-generation workflow fills screenshot
|
|
245
|
+
copy. `--delete` removes matching records, and screenshot runs reconcile records
|
|
246
|
+
against the captured images (except dry runs and `--refresh-info`).
|
|
247
|
+
|
|
248
|
+
## Agent instructions
|
|
249
|
+
|
|
250
|
+
Agent instructions are updated during `npm run build`, not during npm installation.
|
|
251
|
+
The build script reads the `agents` version from
|
|
252
|
+
`https://htmlcodeplay.com/code-play-plugin/versions.json` and downloads the matching
|
|
253
|
+
`agents-<version>.zip` archive when the project has no agent instructions or the
|
|
254
|
+
server version is newer.
|
|
255
|
+
|
|
256
|
+
The ZIP root must contain `AGENTS.md` and `AGENTS/`. These are copied directly to
|
|
257
|
+
the project root. The installed version is stored in `AGENTS/.codeplay-version`.
|
|
258
|
+
Existing files with matching names are replaced; project-only files with other
|
|
259
|
+
names inside `AGENTS/` are preserved.
|
|
260
|
+
|
|
261
|
+
For example, publish `agents-1.1.zip` and add this entry to the server's
|
|
262
|
+
`versions.json`:
|
|
263
|
+
|
|
264
|
+
```json
|
|
265
|
+
"agents": "1.1"
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
Donate to get full code including many common functions
|
|
269
|
+
https://ko-fi.com/codeplay
|
|
270
|
+
|
|
271
|
+
Version 4.6.1
|
|
272
|
+
Added automatic IAP startup integration for Framework7 home pages.
|
|
273
|
+
Updated minimum shared versions to IAP 4.2 and AdMob nextgen 2.5.
|
|
274
|
+
|
|
275
|
+
4.2.8
|
|
276
|
+
baseline profile code modifications
|
|
277
|
+
|
|
278
|
+
Version 4.2.3
|
|
279
|
+
Added build warning confirmation when android.ORIENTATION is not "auto" or android.RESIZEABLE_ACTIVITY is not true.
|
|
280
|
+
|
|
281
|
+
Version 4.2.2
|
|
282
|
+
Added "bannerDisabledPages" property and its default value
|
|
283
|
+
The admob configuration default value priority is updated
|
|
284
|
+
|
|
285
|
+
Version 4.2.1
|
|
286
|
+
Updated AdMob nextgen file validation to match admob-emi-nextgen file names.
|
|
287
|
+
|
|
288
|
+
Version 4.2.0
|
|
289
|
+
Firebase related automatic changes updated
|
|
290
|
+
|
|
291
|
+
Version 4.1.9
|
|
292
|
+
Added AdMob nextgen 1.7 validation/default support for "overlappingHeight", "bannerTypeAndroidLandscape", and "bannerTypeiOSLandscape".
|
|
293
|
+
|
|
294
|
+
Version 4.1.8
|
|
295
|
+
"consentDebug: false" is added
|
|
296
|
+
|
|
297
|
+
Version 4.1.7
|
|
298
|
+
admob configuration automatically added.
|
|
299
|
+
|
|
300
|
+
Version 4.1.6
|
|
301
|
+
"setup-baseline-profile.js" modification, duplicate validation error fixed
|
|
302
|
+
|
|
303
|
+
Version 4.1.5
|
|
304
|
+
While isTesting is true it is not validated from our new configuration admob file, now it is solved
|
|
305
|
+
|
|
306
|
+
Version 4.1.4
|
|
307
|
+
hardcoded version is removed for the admob-emi-nextgen
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
Version 4.1.3
|
|
311
|
+
"consentDebug": false automatically adds if not
|
|
312
|
+
|
|
313
|
+
Version 4.1.2
|
|
314
|
+
Speedup
|
|
315
|
+
|
|
316
|
+
Version 4.1.1
|
|
317
|
+
Auto admob integration updated
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
version 4.0.9
|
|
321
|
+
packageJson.scripts["ionic:serve"] = "cross-env NODE_ENV=development vite"; this line updated in "sync-files.js"
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
version 4.0.8
|
|
325
|
+
safearea plugin is checked and removed automatically
|
|
326
|
+
Automatically added following in capacitor.config.json file
|
|
327
|
+
"SystemBars": {
|
|
328
|
+
"insetsHandling": "css"
|
|
329
|
+
}
|
|
330
|
+
patchFile() method is removed
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
Version 4.0.6
|
|
336
|
+
IAP related some automatic variable creation and validation
|
|
337
|
+
Fetch from vite.config.json file
|
|
338
|
+
'import.meta.env.VITE_APP_UNIQUE_ID': JSON.stringify(APP_UNIQUE_ID),
|
|
339
|
+
'import.meta.env.VITE_ANDROID_ANALYTICS_ENABLED': JSON.stringify(ANDROID_ANALYTICS_ENABLED),
|
|
340
|
+
'import.meta.env.VITE_IOS_ANALYTICS_ENABLED': JSON.stringify(IOS_ANALYTICS_ENABLED),
|
|
341
|
+
'import.meta.env.VITE_IAP_DESIGN': JSON.stringify(IAP_DESIGN),
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
Version 4.0.5
|
|
345
|
+
In "files\buildCodeplay\packageidBaseModification-1.4.js" SCHEDULE_EXACT_ALARM permission added for the app unique id 2 (resume generator app)
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
Version 4.0.4
|
|
349
|
+
patchFile(); method is disabled, Due to "@capacitor/android:8.4.2" this update. I think it is realted to safearea issue fixed in this latest version, file in "SystemBars.java"
|
|
350
|
+
|
|
351
|
+
Version 4.0.3
|
|
352
|
+
Old admob check performs through plugin location, but not it is validated from capacitor.config.json
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
Version: 4.0.2
|
|
356
|
+
After check & install/download the latest version, the re-check is cancelled now
|
|
357
|
+
|
|
358
|
+
Version: 4.0.1
|
|
359
|
+
Base profile script added
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
"version": "",
|
|
363
|
+
Version : 4.0.0 (Previous version 3.2.19)
|
|
364
|
+
1) In here we are completly remove the admob-emi and use "capacitor-admob-nextgen"
|
|
365
|
+
2) Removed "modify-plugin-xml.js"
|
|
366
|
+
3)
|
|
367
|
+
|
|
368
|
+
The fix preserves the metadata behind the release permission-check failure verified in testing. It does not guarantee every native dialog or plugin: required manifest declarations, Android permission policy, device settings and plugin-specific keep rules still apply.
|