codeplay-common 4.11.35 → 4.11.38

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 (63) hide show
  1. package/CHANGELOG.md +115 -115
  2. package/LICENSE +21 -21
  3. package/README.md +408 -374
  4. package/RELEASE_NOTES.md +97 -97
  5. package/files/buildCodeplay/HUAWEI-PRIVACY.md +9 -9
  6. package/files/buildCodeplay/add-splash-screen.js +255 -255
  7. package/files/buildCodeplay/apk-store-builder.js +97 -97
  8. package/files/buildCodeplay/codeplayBeforeBuild.js +4793 -4793
  9. package/files/buildCodeplay/disabled-ads.mjs +53 -53
  10. package/files/buildCodeplay/ensure-current-build.cjs +42 -42
  11. package/files/buildCodeplay/fix-onesignal-plugin.js +96 -96
  12. package/files/buildCodeplay/huawei-privacy-entry.js +135 -135
  13. package/files/buildCodeplay/huawei-privacy.cjs +102 -92
  14. package/files/buildCodeplay/huawei-privacy.css +22 -22
  15. package/files/buildCodeplay/iap-alias.cjs +116 -116
  16. package/files/buildCodeplay/ios-ad-consent.cjs +56 -56
  17. package/files/buildCodeplay/ios-emi-admob-modification.js +49 -49
  18. package/files/buildCodeplay/manifestModification.js +38 -38
  19. package/files/buildCodeplay/migrate-system-bars.cjs +122 -122
  20. package/files/buildCodeplay/newly added.txt +89 -89
  21. package/files/buildCodeplay/non-google-billing.pro +3 -3
  22. package/files/buildCodeplay/packageidBaseModification.js +528 -528
  23. package/files/buildCodeplay/project-scripts.cjs +69 -69
  24. package/files/buildCodeplay/release-sync.config.json +4 -4
  25. package/files/buildCodeplay/remove-force-kotlin-disable.js +43 -43
  26. package/files/buildCodeplay/ruads.cjs +220 -211
  27. package/files/buildCodeplay/saf-mediastore-dependency.cjs +21 -21
  28. package/files/buildCodeplay/setSplashAnimation.js +226 -226
  29. package/files/buildCodeplay/setup-ruads.cjs +62 -55
  30. package/files/buildCodeplay/splashxml/codeplay_splashScreen.xml +11 -11
  31. package/files/buildCodeplay/store-billing.cjs +43 -43
  32. package/files/buildCodeplay/sync-admob-nextgen.js +219 -219
  33. package/files/buildCodeplay/tests/huawei-live-reload.test.cjs +60 -0
  34. package/files/buildCodeplay/tests/huawei-multiple-entries.test.cjs +80 -0
  35. package/files/buildCodeplay/tests/huawei-privacy.test.cjs +49 -49
  36. package/files/buildCodeplay/tests/huawei-vite.test.cjs +38 -35
  37. package/files/buildCodeplay/versions.json +28 -28
  38. package/files/finalrelease +1365 -1365
  39. package/files/generate-ai-promo-video.js +23 -23
  40. package/files/ionic.config.json +6 -6
  41. package/files/scripts-common/collect-startup-profile.js +134 -0
  42. package/files/scripts-common/generate-baseline-profile.js +194 -22
  43. package/files/scripts-common/run-codeplay-sync-after.js +21 -21
  44. package/files/scripts-common/screenshot/background-decorations.js +120 -120
  45. package/files/scripts-common/screenshot/frame-samples.js +117 -117
  46. package/files/scripts-common/setup-baseline-profile.js +291 -291
  47. package/files/take-screen-image.js +4414 -4414
  48. package/files/take-screen-video.js +644 -644
  49. package/package.json +29 -29
  50. package/runtime/vk-ads/vk-ad-configuration.json +39 -39
  51. package/scripts/baseline-profile.test.cjs +189 -0
  52. package/scripts/ensure-current-build.test.cjs +76 -76
  53. package/scripts/iap-alias.test.cjs +117 -117
  54. package/scripts/ios-ad-consent.test.cjs +99 -99
  55. package/scripts/ruads-install.test.cjs +197 -180
  56. package/scripts/ruads-policy.test.cjs +174 -174
  57. package/scripts/saf-mediastore-dependency.test.cjs +44 -44
  58. package/scripts/squeezeback-config.test.cjs +78 -78
  59. package/scripts/sync-files.js +120 -120
  60. package/scripts/system-bars-package.test.cjs +38 -38
  61. package/scripts/system-bars.test.cjs +93 -93
  62. package/scripts/uninstall.js +2 -2
  63. package/scripts/vite-build-settings.test.cjs +93 -92
package/README.md CHANGED
@@ -1,374 +1,408 @@
1
- # codeplay-common
2
-
3
- When `cordova-plugin-saf-mediastore` is installed, setup, before-build and Capacitor
4
- sync/update hooks add its missing AndroidX DocumentFile dependency to plugin metadata.
5
- Existing dependency versions are preserved. After upgrading from an affected version,
6
- run `npx cap sync android` once to regenerate the native dependencies.
7
-
8
- ## VK / RuStore builds (4.11.23)
9
-
10
- Before-build 7.8 preserves the original Vite build settings when adding tree-shaking
11
- inside the generated store wrapper. It also repairs the exact treeshake-only build
12
- override created by the earlier migration; custom wrapper build settings are retained.
13
-
14
- IAP imports use `@iap/<module>.js`. Installation configures the Vite alias; before-build
15
- automatically migrates versioned IAP import paths without confirmation, after module
16
- downloads and generators. Static/dynamic imports, re-exports and require calls are
17
- covered. Comments, plain strings and Framework7 templates are preserved. Vite selects
18
- the newest installed IAP folder containing IAP-state.js for all callers, so the existing
19
- VK controller can use IAP 4.8 without a hardcoded 4.9 dependency. Missing imported
20
- modules stop migration before source changes. No new IAP package is created or downloaded
21
- by this alias helper; the existing server updater still owns version updates.
22
- Protected AdMob controllers are excluded from source migration. A Vite resolver
23
- maps their existing versioned IAP imports to the same installed folder without
24
- editing or increasing the AdMob version. Existing local AdMob versions are retained.
25
-
26
- Publish `capacitor-codeplay-rustore-ads` **0.1.1 first**, then this package **4.11.23**.
27
- The new build preparation upgrades the old VK 0.1.0 banner implementation when
28
- selected, installs only the selected ad provider, removes Google Billing for
29
- Android stores 4/10, adds store 10 commands, and configures Vite's store ID and
30
- provider alias for build and live reload. RuStore release sync sends the store
31
- name for lookup by the updated Codeplay server. Amazon messages are store-scoped.
32
-
33
- Each consuming app must use Capacitor 8, the shared `@admob` interface and a
34
- current `Ads/IAP-x.x/IAP-state.js` integration. Older direct AdMob imports or IAP
35
- integrations require updating first; this is not a universal migration of old apps.
36
- Opt in through the app's `capacitor.config.json`:
37
-
38
- ```json
39
- "RuAds": {
40
- "VK_ADS_ENABLED": true,
41
- "STORE_IDS": [4, 10]
42
- }
43
- ```
44
-
45
- Place this section under `plugins`. Copy the first versioned controller folder
46
- manually to `src/js/Ads/vk-ads-<version>/vk-ads.js`. This package never creates or
47
- ships a VK controller. Selecting VK without a complete controller reports an error.
48
- The resolver selects the highest complete installed numeric folder version.
49
- Installing/updating this package or running before-build creates only a missing
50
- `src/js/Ads/vk-ad-configuration.json`. Existing configuration is preserved.
51
- Fill the app's own HuaweiStore/RuStore publisher IDs; shipped defaults are zero.
52
- Set `config.isTesting=true` for official demo slots. Finalrelease warns and saves
53
- it as false before a VK release. Configuration stays outside the versioned folder
54
- so controller updates preserve each app's IDs.
55
-
56
- The existing folder updater handles subsequent VK versions. Add this key to the
57
- server's `https://htmlcodeplay.com/code-play-plugin/versions.json`:
58
-
59
- ```json
60
- "vk-ads": "1.0"
61
- ```
62
-
63
- Upload `vk-ads-1.0.zip` beside that manifest, with `vk-ads.js` directly at the ZIP
64
- root, following the existing folder-plugin ZIP format. For the next release,
65
- upload the new ZIP and raise only the server entry, for example to `"1.1"`.
66
- Before-build downloads higher advertised versions for existing VK installations,
67
- updates references using the shared updater, and preserves the app configuration.
68
- No codeplay-common path/version change is needed. Server deployment is manual.
69
-
70
- Missing RuAds settings preserve AdMob selection. iOS store 6 keeps AdMob; the VK
71
- plugin has a separate iOS API but this app adapter enables VK only on Android.
72
- App-open/native/PiP formats remain disabled for VK. Native package changes need
73
- a rebuilt install; changing live-reload JavaScript alone cannot replace plugins.
74
- Explicitly disabled providers use an SDK-free controller, preserve task continuations
75
- and never grant ad rewards. They do not require the VK adapter or IAP imports.
76
-
77
- Release credentials are not distributed. Existing consumer release-sync config
78
- is preserved; new consumers should set `CODEPLAY_RELEASE_SYNC_TOKEN` securely.
79
- Do not copy publisher IDs or credentials from another app. VK creates app/slot
80
- names using `<uniqueid>. <app name>`. Real ad serving requires separate publisher
81
- setup and is not guaranteed by successful SDK integration or demo ads.
82
-
83
- ## Android system bars (4.11.22)
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. 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
-
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
-
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.
369
-
370
- ## AdMob config 1.9 (4.11.33)
371
-
372
- Before-build adds `android.squeezebackid`, `ios.squeezebackid`, `testid.squeezebackid` and the config options `squeezebackEnabled`, `squeezebackRetryIntervalMs`, `squeezebackFallbackBackgroundColor`, `squeezebackPages` and `setCoarseLocationCollectionEnabled`. Squeezeback defaults to disabled, no automatic pages, a 5000ms retry interval and blank live IDs. The Google Squeezeback test ID is supplied automatically. Existing app settings, including false and empty IDs, take priority over downloaded templates.
373
-
374
- Coarse-location collection defaults to true at the user's request; this setting does not add or request Android location permission. Apps with existing legitimate location access must review their disclosures and consent. Squeezeback controller support requires admob-nextgen-5.0. Only apps that explicitly enable squeezebackEnabled require native capacitor-admob-nextgen >= 1.6.1-beta; other apps retain their installed native plugin. Native plugin changes require a later native sync and rebuild. Shared builds do not distribute publisher IDs or choose placements for apps.
1
+ # codeplay-common
2
+
3
+ Version 4.11.37 adds the `/buildCodeplay` Vite alias during installation and
4
+ before-build setup, including upgrades of existing generated wrappers. This
5
+ lets Huawei privacy startup modules load during Live Reload when the app's
6
+ Vite root is `src`. Object and array aliases and explicit app mappings are
7
+ preserved. Upgrade the package in each consuming app and restart its dev server.
8
+
9
+ When `cordova-plugin-saf-mediastore` is installed, setup, before-build and Capacitor
10
+ sync/update hooks add its missing AndroidX DocumentFile dependency to plugin metadata.
11
+ Existing dependency versions are preserved. After upgrading from an affected version,
12
+ run `npx cap sync android` once to regenerate the native dependencies.
13
+
14
+ ## Baseline Profile generation
15
+
16
+ Package installation updates `scripts-common/generate-baseline-profile.js` and
17
+ `scripts-common/collect-startup-profile.js` in consuming apps. Generate each app's
18
+ own profiles with `npm run baseline-profile:generate` after its existing Baseline
19
+ Profile setup and production web-asset preparation.
20
+
21
+ The generator temporarily disables the copied Android live-reload URL, profiles
22
+ bundled web assets, and restores the original configuration afterward. It selects
23
+ one online ADB device (`ANDROID_SERIAL` can select it explicitly), reports elapsed
24
+ time, and uses a 20-minute timeout. Set `BASELINE_PROFILE_TIMEOUT_MINUTES` to change
25
+ that limit. A recovery backup is kept under `agent-temp/baseline-profile/` while the
26
+ configuration is temporarily changed.
27
+
28
+ If the device freezes the instrumentation runner, collection switches to Android's
29
+ host-driven ADB workflow, which requires Android 14 or later. To use it directly:
30
+
31
+ ```sh
32
+ npm run baseline-profile:generate -- --host
33
+ ```
34
+
35
+ Host collection builds and installs the app's `nonMinifiedRelease` profiling APK,
36
+ requires three matching startup captures within 15 iterations, and saves
37
+ `baselineProfiles/baseline-prof.txt` and `baselineProfiles/startup-prof.txt`. Existing
38
+ setup helpers synchronize these into Android's generated profile directory.
39
+ Temporary captures stay under `agent-temp/`. Installation does not generate profiles
40
+ or copy one app's profile into another app; run generation separately in each app.
41
+
42
+ ## VK / RuStore builds (4.11.23)
43
+
44
+ Before-build 7.8 preserves the original Vite build settings when adding tree-shaking
45
+ inside the generated store wrapper. It also repairs the exact treeshake-only build
46
+ override created by the earlier migration; custom wrapper build settings are retained.
47
+
48
+ IAP imports use `@iap/<module>.js`. Installation configures the Vite alias; before-build
49
+ automatically migrates versioned IAP import paths without confirmation, after module
50
+ downloads and generators. Static/dynamic imports, re-exports and require calls are
51
+ covered. Comments, plain strings and Framework7 templates are preserved. Vite selects
52
+ the newest installed IAP folder containing IAP-state.js for all callers, so the existing
53
+ VK controller can use IAP 4.8 without a hardcoded 4.9 dependency. Missing imported
54
+ modules stop migration before source changes. No new IAP package is created or downloaded
55
+ by this alias helper; the existing server updater still owns version updates.
56
+ Protected AdMob controllers are excluded from source migration. A Vite resolver
57
+ maps their existing versioned IAP imports to the same installed folder without
58
+ editing or increasing the AdMob version. Existing local AdMob versions are retained.
59
+
60
+ Publish `capacitor-codeplay-rustore-ads` **0.1.1 first**, then this package **4.11.23**.
61
+ The new build preparation upgrades the old VK 0.1.0 banner implementation when
62
+ selected, installs only the selected ad provider, removes Google Billing for
63
+ Android stores 4/10, adds store 10 commands, and configures Vite's store ID and
64
+ provider alias for build and live reload. RuStore release sync sends the store
65
+ name for lookup by the updated Codeplay server. Amazon messages are store-scoped.
66
+
67
+ Each consuming app must use Capacitor 8, the shared `@admob` interface and a
68
+ current `Ads/IAP-x.x/IAP-state.js` integration. Older direct AdMob imports or IAP
69
+ integrations require updating first; this is not a universal migration of old apps.
70
+ Opt in through the app's `capacitor.config.json`:
71
+
72
+ ```json
73
+ "RuAds": {
74
+ "VK_ADS_ENABLED": true,
75
+ "STORE_IDS": [4, 10]
76
+ }
77
+ ```
78
+
79
+ Place this section under `plugins`. Copy the first versioned controller folder
80
+ manually to `src/js/Ads/vk-ads-<version>/vk-ads.js`. This package never creates or
81
+ ships a VK controller. Selecting VK without a complete controller reports an error.
82
+ The resolver selects the highest complete installed numeric folder version.
83
+ Installing/updating this package or running before-build creates only a missing
84
+ `src/js/Ads/vk-ad-configuration.json`. Existing configuration is preserved.
85
+ Fill the app's own HuaweiStore/RuStore publisher IDs; shipped defaults are zero.
86
+ Set `config.isTesting=true` for official demo slots. Finalrelease warns and saves
87
+ it as false before a VK release. Configuration stays outside the versioned folder
88
+ so controller updates preserve each app's IDs.
89
+
90
+ The existing folder updater handles subsequent VK versions. Add this key to the
91
+ server's `https://htmlcodeplay.com/code-play-plugin/versions.json`:
92
+
93
+ ```json
94
+ "vk-ads": "1.0"
95
+ ```
96
+
97
+ Upload `vk-ads-1.0.zip` beside that manifest, with `vk-ads.js` directly at the ZIP
98
+ root, following the existing folder-plugin ZIP format. For the next release,
99
+ upload the new ZIP and raise only the server entry, for example to `"1.1"`.
100
+ Before-build downloads higher advertised versions for existing VK installations,
101
+ updates references using the shared updater, and preserves the app configuration.
102
+ No codeplay-common path/version change is needed. Server deployment is manual.
103
+
104
+ Missing RuAds settings preserve AdMob selection. iOS store 6 keeps AdMob; the VK
105
+ plugin has a separate iOS API but this app adapter enables VK only on Android.
106
+ App-open/native/PiP formats remain disabled for VK. Native package changes need
107
+ a rebuilt install; changing live-reload JavaScript alone cannot replace plugins.
108
+ Explicitly disabled providers use an SDK-free controller, preserve task continuations
109
+ and never grant ad rewards. They do not require the VK adapter or IAP imports.
110
+
111
+ Release credentials are not distributed. Existing consumer release-sync config
112
+ is preserved; new consumers should set `CODEPLAY_RELEASE_SYNC_TOKEN` securely.
113
+ Do not copy publisher IDs or credentials from another app. VK creates app/slot
114
+ names using `<uniqueid>. <app name>`. Real ad serving requires separate publisher
115
+ setup and is not guaranteed by successful SDK integration or demo ads.
116
+
117
+ ## Android system bars (4.11.22)
118
+
119
+ 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.
120
+
121
+ 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.
122
+
123
+ This source update is not an npm publication. Existing apps receive future releases through their normal package update process.
124
+
125
+ ## Optional IAP configuration (4.11.21)
126
+
127
+ 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.
128
+
129
+ 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.
130
+
131
+ ## Shared splash setup (4.11.13)
132
+
133
+ 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.
134
+
135
+ Configure these separate controls in `capacitor.config.json`:
136
+
137
+ ```json
138
+ {
139
+ "plugins": {
140
+ "SplashScreen": {
141
+ "launchShowDuration": 8000,
142
+ "launchAutoHide": true
143
+ },
144
+ "CodeplaySplashScreen": {
145
+ "exitAnimationDuration": 200,
146
+ "readinessTimeout": 8000,
147
+ "readyImageSelector": "[data-splash-ready], .t-film-art img",
148
+ "migrateLegacyReadiness": true
149
+ }
150
+ }
151
+ }
152
+ ```
153
+
154
+ `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`.
155
+
156
+ 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.
157
+
158
+ For custom Framework7 startup code, retain your app's lifecycle and call:
159
+
160
+ ```js
161
+ import { SplashScreen } from '@capacitor/splash-screen';
162
+ import { hideSplashWhenReady } from 'codeplay-common/runtime/splash-ready.mjs';
163
+
164
+ hideSplashWhenReady({
165
+ f7: app,
166
+ hide: () => SplashScreen.hide(),
167
+ imageSelector: '[data-splash-ready]',
168
+ timeout: 8000
169
+ });
170
+ ```
171
+
172
+ 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.
173
+
174
+ 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.
175
+ Everything automatted in Capacitor apps, easy to maintain many apps in capacitor. It will reduce your 40% of work, with common file code.
176
+
177
+
178
+ Easy add splashscreen and set animation
179
+ Admob id automatically from capacitor.config.json file
180
+ Make three build file for different store as per our requirement
181
+ Based on store install various IAP plugins
182
+ Make it to ionic project
183
+
184
+
185
+ ## Capacitor Android permission metadata (4.11.4)
186
+
187
+ 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.
188
+
189
+ 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.
190
+
191
+ 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.
192
+
193
+ 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.
194
+
195
+ ## App helper folder
196
+
197
+ 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/`.
198
+
199
+ ## Shared unversioned build files (4.10.0)
200
+
201
+ 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.
202
+
203
+ 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.
204
+
205
+ 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.
206
+
207
+ 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.
208
+
209
+ 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.
210
+
211
+ ## AdMob folder packages
212
+
213
+ The next before-build automatically migrates AdMob to at least:
214
+
215
+ `src/js/Ads/admob-nextgen-4.1/admob-emi-nextgen.js`
216
+
217
+ `src/js/Ads/admob-nextgen-4.1/app-open-state.js`
218
+
219
+ Existing `@admob` imports continue to work. Direct imports of the controller or
220
+ lightweight state module are rewritten to the selected folder, including relative
221
+ paths, `@/` paths and static dynamic imports. App-owned
222
+ `src/js/Ads/admob-ad-configuration-nextgen.json` remains outside the package;
223
+ installation does not replace its values. The controller's analytics import is
224
+ aligned with the newest installed IAP folder containing `firebase-analytics.js`.
225
+
226
+ The pre-build script downloads IAP before migrating AdMob so the corresponding imports exist. Postinstall does not independently update AdMob ahead of IAP.
227
+ ZIPs may contain the files directly or one matching versioned folder. A complete
228
+ controller and state module are required before imports switch. An unavailable or
229
+ invalid remote ZIP leaves the installed package in use, with a warning. Unresolved
230
+ import targets stop migration before old packages are removed.
231
+
232
+ For future AdMob releases, upload `admob-nextgen-X.Y.zip` to
233
+ `https://htmlcodeplay.com/code-play-plugin/` and set `"admob-nextgen": "X.Y"`
234
+ in that server's `versions.json`. Version the folder, and keep module filenames
235
+ stable. The previous `admob-emi-nextgen` manifest key is accepted for versions
236
+ 4.0 and later during the transition. Apps automatically select a newer ZIP during
237
+ their next normal pre-build; no per-app import changes are needed.
238
+ For older manifests without a folder release entry, migration checks the required
239
+ `admob-nextgen-4.1.zip` directly from the same server. If offline, an existing compatible
240
+ installation is preserved; a missing required package stops the build.
241
+
242
+ ## Platform builds and shared validation
243
+
244
+ Installing or updating `codeplay-common` updates the consuming project's `package.json`
245
+ to use the copied unversioned pre-build script and adds these commands:
246
+
247
+ - `npm run build`: Android by default, including on macOS.
248
+ - `npm run build:ios`: sets `CODEPLAY_BUILD_PLATFORM=ios` and runs the same build pipeline.
249
+ - `npm run build-capacitor-android`: runs the shared checks and copies the web build to Android.
250
+
251
+ The pre-build script migrates direct `saveToGalleryAndSaveAnyFile` imports to
252
+ `@saveGallery` and sets the Vite alias to the matching Android or iOS helper.
253
+ Before changing source imports or the alias, it lists the build target, affected files,
254
+ and exact replacements. Press Enter or type `y` to continue; any other answer cancels.
255
+ Correct imports and alias targets continue without prompting. Missing helpers, mixed
256
+ versions and query/hash imports stop with an actionable error.
257
+
258
+ Source validation reuses a directory inventory and combines the gallery and editor
259
+ checks in one content pass. The inventory refreshes when generated or downloaded
260
+ files change the source tree.
261
+
262
+ Builds also keep `agent-temp/` ignored and remove existing `buildCodeplay/` ignore entries.
263
+ If `onesignal-cordova-plugin` is declared or installed, the pre-build script warns and
264
+ runs `npm uninstall onesignal-cordova-plugin`. It stops if removal fails or active
265
+ package imports remain. Legacy OneSignal patching and helper downloads are disabled.
266
+
267
+ ## Screenshot data
268
+
269
+ Shared screenshot helpers are installed into `scripts-common/screenshot/` and updated with
270
+ the package. App-specific data is not bundled with the package.
271
+ During an upgrade, cleanup removes only the two legacy helpers `frame-samples.js`
272
+ and `background-decorations.js` from `scripts-screenshot/screenshot/`, preserving
273
+ the folder, JSON data, and other app files.
274
+
275
+ `take-screen-image.js` creates `scripts-screenshot/screenshot/` and empty
276
+ `screenshot-copy.json` and `screenshot-info.json` files when needed. Existing files
277
+ are preserved during initialization, package installation, and cleanup. Capture
278
+ updates screenshot information; the AI text-generation workflow fills screenshot
279
+ copy. `--delete` removes matching records, and screenshot runs reconcile records
280
+ against the captured images (except dry runs and `--refresh-info`).
281
+
282
+ ## Agent instructions
283
+
284
+ Agent instructions are updated during `npm run build`, not during npm installation.
285
+ The build script reads the `agents` version from
286
+ `https://htmlcodeplay.com/code-play-plugin/versions.json` and downloads the matching
287
+ `agents-<version>.zip` archive when the project has no agent instructions or the
288
+ server version is newer.
289
+
290
+ The ZIP root must contain `AGENTS.md` and `AGENTS/`. These are copied directly to
291
+ the project root. The installed version is stored in `AGENTS/.codeplay-version`.
292
+ Existing files with matching names are replaced; project-only files with other
293
+ names inside `AGENTS/` are preserved.
294
+
295
+ For example, publish `agents-1.1.zip` and add this entry to the server's
296
+ `versions.json`:
297
+
298
+ ```json
299
+ "agents": "1.1"
300
+ ```
301
+
302
+ Donate to get full code including many common functions
303
+ https://ko-fi.com/codeplay
304
+
305
+ Version 4.6.1
306
+ Added automatic IAP startup integration for Framework7 home pages.
307
+ Updated minimum shared versions to IAP 4.2 and AdMob nextgen 2.5.
308
+
309
+ 4.2.8
310
+ baseline profile code modifications
311
+
312
+ Version 4.2.3
313
+ Added build warning confirmation when android.ORIENTATION is not "auto" or android.RESIZEABLE_ACTIVITY is not true.
314
+
315
+ Version 4.2.2
316
+ Added "bannerDisabledPages" property and its default value
317
+ The admob configuration default value priority is updated
318
+
319
+ Version 4.2.1
320
+ Updated AdMob nextgen file validation to match admob-emi-nextgen file names.
321
+
322
+ Version 4.2.0
323
+ Firebase related automatic changes updated
324
+
325
+ Version 4.1.9
326
+ Added AdMob nextgen 1.7 validation/default support for "overlappingHeight", "bannerTypeAndroidLandscape", and "bannerTypeiOSLandscape".
327
+
328
+ Version 4.1.8
329
+ "consentDebug: false" is added
330
+
331
+ Version 4.1.7
332
+ admob configuration automatically added.
333
+
334
+ Version 4.1.6
335
+ "setup-baseline-profile.js" modification, duplicate validation error fixed
336
+
337
+ Version 4.1.5
338
+ While isTesting is true it is not validated from our new configuration admob file, now it is solved
339
+
340
+ Version 4.1.4
341
+ hardcoded version is removed for the admob-emi-nextgen
342
+
343
+
344
+ Version 4.1.3
345
+ "consentDebug": false automatically adds if not
346
+
347
+ Version 4.1.2
348
+ Speedup
349
+
350
+ Version 4.1.1
351
+ Auto admob integration updated
352
+
353
+
354
+ version 4.0.9
355
+ packageJson.scripts["ionic:serve"] = "cross-env NODE_ENV=development vite"; this line updated in "sync-files.js"
356
+
357
+
358
+ version 4.0.8
359
+ safearea plugin is checked and removed automatically
360
+ Automatically added following in capacitor.config.json file
361
+ "SystemBars": {
362
+ "insetsHandling": "css"
363
+ }
364
+ patchFile() method is removed
365
+
366
+
367
+
368
+
369
+ Version 4.0.6
370
+ IAP related some automatic variable creation and validation
371
+ Fetch from vite.config.json file
372
+ 'import.meta.env.VITE_APP_UNIQUE_ID': JSON.stringify(APP_UNIQUE_ID),
373
+ 'import.meta.env.VITE_ANDROID_ANALYTICS_ENABLED': JSON.stringify(ANDROID_ANALYTICS_ENABLED),
374
+ 'import.meta.env.VITE_IOS_ANALYTICS_ENABLED': JSON.stringify(IOS_ANALYTICS_ENABLED),
375
+ 'import.meta.env.VITE_IAP_DESIGN': JSON.stringify(IAP_DESIGN),
376
+
377
+
378
+ Version 4.0.5
379
+ In "files\buildCodeplay\packageidBaseModification-1.4.js" SCHEDULE_EXACT_ALARM permission added for the app unique id 2 (resume generator app)
380
+
381
+
382
+ Version 4.0.4
383
+ 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"
384
+
385
+ Version 4.0.3
386
+ Old admob check performs through plugin location, but not it is validated from capacitor.config.json
387
+
388
+
389
+ Version: 4.0.2
390
+ After check & install/download the latest version, the re-check is cancelled now
391
+
392
+ Version: 4.0.1
393
+ Base profile script added
394
+
395
+
396
+ "version": "",
397
+ Version : 4.0.0 (Previous version 3.2.19)
398
+ 1) In here we are completly remove the admob-emi and use "capacitor-admob-nextgen"
399
+ 2) Removed "modify-plugin-xml.js"
400
+ 3)
401
+
402
+ 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.
403
+
404
+ ## AdMob config 1.9 (4.11.33)
405
+
406
+ Before-build adds `android.squeezebackid`, `ios.squeezebackid`, `testid.squeezebackid` and the config options `squeezebackEnabled`, `squeezebackRetryIntervalMs`, `squeezebackFallbackBackgroundColor`, `squeezebackPages` and `setCoarseLocationCollectionEnabled`. Squeezeback defaults to disabled, no automatic pages, a 5000ms retry interval and blank live IDs. The Google Squeezeback test ID is supplied automatically. Existing app settings, including false and empty IDs, take priority over downloaded templates.
407
+
408
+ Coarse-location collection defaults to true at the user's request; this setting does not add or request Android location permission. Apps with existing legitimate location access must review their disclosures and consent. Squeezeback controller support requires admob-nextgen-5.0. Only apps that explicitly enable squeezebackEnabled require native capacitor-admob-nextgen >= 1.6.1-beta; other apps retain their installed native plugin. Native plugin changes require a later native sync and rebuild. Shared builds do not distribute publisher IDs or choose placements for apps.