codeplay-common 4.11.41-alpha.0 → 4.11.41-alpha.2

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 (22) hide show
  1. package/README.md +30 -18
  2. package/files/buildCodeplay/codeplayBeforeBuild.js +5 -0
  3. package/package.json +3 -3
  4. package/scripts/prepare-capacitor-9.cjs +25 -9
  5. package/scripts/sync-files.js +19 -6
  6. package/migration/capacitor-8-to-9-migration.md +0 -49
  7. /package/{migration/patches → files/patches/catalog}/@byteowls+capacitor-filesharer+7.0.0.patch +0 -0
  8. /package/{migration/patches → files/patches/catalog}/@capacitor-community+file-opener+8.0.0.patch +0 -0
  9. /package/{migration/patches → files/patches/catalog}/@capacitor-community+in-app-review+8.0.0.patch +0 -0
  10. /package/{migration/patches → files/patches/catalog}/@capacitor-community+native-audio+8.0.0.patch +0 -0
  11. /package/{migration/patches → files/patches/catalog}/@capacitor-community+play-integrity+8.0.0.patch +0 -0
  12. /package/{migration/patches → files/patches/catalog}/@capacitor-community+privacy-screen+8.0.0.patch +0 -0
  13. /package/{migration/patches → files/patches/catalog}/@capacitor-community+safe-area+7.0.0-alpha.1.patch +0 -0
  14. /package/{migration/patches → files/patches/catalog}/@capacitor-community+speech-recognition+7.0.1.patch +0 -0
  15. /package/{migration/patches → files/patches/catalog}/@capacitor-community+text-to-speech+8.0.0.patch +0 -0
  16. /package/{migration/patches → files/patches/catalog}/@mozartec+capacitor-microphone+7.1.0.patch +0 -0
  17. /package/{migration/patches → files/patches/catalog}/@ottimis+capacitor-volumes+7.0.0.patch +0 -0
  18. /package/{migration/patches → files/patches/catalog}/@whiteguru+capacitor-plugin-media+8.0.1.patch +0 -0
  19. /package/{migration/patches → files/patches/catalog}/capacitor-admob-nextgen+1.6.0.patch +0 -0
  20. /package/{migration/patches → files/patches/catalog}/capacitor-music-controls-plugin+8.0.0.patch +0 -0
  21. /package/{migration/patches → files/patches/catalog}/capacitor-native-biometric+4.2.2.patch +0 -0
  22. /package/{migration/patches → files/patches/catalog}/capacitor-voice-recorder+7.0.6.patch +0 -0
package/README.md CHANGED
@@ -1,21 +1,31 @@
1
1
  # codeplay-common
2
2
 
3
- ## Capacitor 9 migration alpha (4.11.41-alpha.0)
4
-
5
- Install with `npm install codeplay-common@alpha` in a test branch. Installation places
6
- `AGENTS/capacitor-8-to-9-migration.md` only if the app does not already have it.
7
- Follow that guide for each app's dependency, Android, iOS, and device migration.
3
+ ## Capacitor 9 migration
4
+
5
+ Use the current stable release (`codeplay-common@latest`) when it contains the
6
+ migration helpers. Until then, use `codeplay-common@alpha` for testing. Verify
7
+ that `scripts/prepare-capacitor-9.cjs` and `files/patches/catalog/` are present
8
+ in the installed package. A stable publication does not automatically replace
9
+ an app's pinned alpha dependency; update and test that app explicitly. The
10
+ migration guide is delivered separately in the server's versioned
11
+ `agents-<version>.zip`; the npm package does not ship or copy it. Follow that
12
+ guide for each app's dependency, Android, iOS, and device migration.
8
13
  The package does not migrate an arbitrary app merely by being installed.
9
14
 
10
- After the app uses Capacitor 9, run
11
- `node node_modules/codeplay-common/scripts/prepare-capacitor-9.cjs` to list
12
- version-matched compatibility patches. Install `patch-package` in the app and run
13
- the same command with `--apply` to copy those patches into `patches/active/` and
14
- append a postinstall command. The shared AdMob patch changes only the removed
15
- `hasOption()` API; app-specific banner layout changes remain in their own app.
16
- Review the app's existing active patch before applying a catalog patch.
17
-
18
- The alpha build helper no longer rewrites Capacitor's `BridgeWebViewClient.java` or
15
+ After the app uses Capacitor 9, installation copies the full catalog from
16
+ `files/patches/catalog/` to the app's `patches/catalog/`, then selects exact-version
17
+ patches for `patches/active/` and applies them with the
18
+ package-owned `patch-package`, and adds a root postinstall hook for future
19
+ installs. Every build checks and reapplies the active patches before native
20
+ work. Run `node node_modules/codeplay-common/scripts/prepare-capacitor-9.cjs`
21
+ for a read-only report. An active patch for an absent or newer plugin stops the
22
+ install/build with its old and installed versions so the team can review it.
23
+ Existing app-specific patches for the same version are preserved. The shared
24
+ AdMob patch changes only the removed `hasOption()` API; app-specific banner
25
+ layout changes remain in their own app. An older AdMob NextGen installation
26
+ must first be upgraded to 1.6.0; the patch manager stops with that instruction.
27
+
28
+ The migration build helper no longer rewrites Capacitor's `BridgeWebViewClient.java` or
19
29
  `SystemBars.java`. In Capacitor 9 apps, the installer leaves the old custom splash
20
30
  scripts uninstalled and uses the notification icon sync helper instead. Inspect
21
31
  existing scripts and native files as described in the guide before building.
@@ -307,10 +317,12 @@ The build script reads the `agents` version from
307
317
  `agents-<version>.zip` archive when the project has no agent instructions or the
308
318
  server version is newer.
309
319
 
310
- The ZIP root must contain `AGENTS.md` and `AGENTS/`. These are copied directly to
311
- the project root. The installed version is stored in `AGENTS/.codeplay-version`.
312
- Existing files with matching names are replaced; project-only files with other
313
- names inside `AGENTS/` are preserved.
320
+ The ZIP root must contain `AGENTS.md` and at least one supporting instruction
321
+ file; supporting files can be at the ZIP root or under `AGENTS/`. They are installed
322
+ in the project's `AGENTS/` directory. The installed version is stored in
323
+ `AGENTS/.codeplay-version`.
324
+ On a version update, the existing `AGENTS/` directory is replaced by the ZIP's
325
+ contents. Include every instruction file that consuming apps need in that archive.
314
326
 
315
327
  For example, publish `agents-1.1.zip` and add this entry to the server's
316
328
  `versions.json`:
@@ -4362,6 +4362,11 @@ function syncAndroidCordovaResourceKeep() {
4362
4362
  async function main() {
4363
4363
  require('./saf-mediastore-dependency.cjs').syncSafMediastoreDependency(process.cwd());
4364
4364
  const buildPackage = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
4365
+ const capacitorCore = require('@capacitor/core/package.json').version;
4366
+ if (Number(capacitorCore.split('.')[0]) >= 9) {
4367
+ const patchResult = require('codeplay-common/scripts/prepare-capacitor-9.cjs').prepare(process.cwd(), true);
4368
+ for (const item of patchResult.review) console.warn(`codeplay-common patch review: ${item}`);
4369
+ }
4365
4370
  const buildScripts = updateBuildEntrypoints(buildPackage.scripts || {});
4366
4371
  if (JSON.stringify(buildScripts) !== JSON.stringify(buildPackage.scripts)) {
4367
4372
  buildPackage.scripts = buildScripts;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeplay-common",
3
- "version": "4.11.41-alpha.0",
3
+ "version": "4.11.41-alpha.2",
4
4
  "description": "Common build scripts and files",
5
5
  "scripts": {
6
6
  "postinstall": "node scripts/sync-files.js",
@@ -9,6 +9,7 @@
9
9
  },
10
10
  "dependencies": {
11
11
  "adm-zip": "^0.6.1",
12
+ "patch-package": "^8.0.1",
12
13
  "plist": "^3.1.0",
13
14
  "terser": "^5.51.4"
14
15
  },
@@ -25,7 +26,6 @@
25
26
  "CHANGELOG.md",
26
27
  "RELEASE_NOTES.md",
27
28
  "LICENSE",
28
- "runtime/",
29
- "migration/"
29
+ "runtime/"
30
30
  ]
31
31
  }
@@ -1,5 +1,6 @@
1
1
  const fs = require('fs');
2
2
  const path = require('path');
3
+ const { execFileSync } = require('child_process');
3
4
 
4
5
  function prepare(root, apply = false) {
5
6
  const packageFile = path.join(root, 'package.json');
@@ -7,7 +8,7 @@ function prepare(root, apply = false) {
7
8
  const coreFile = path.join(root, 'node_modules/@capacitor/core/package.json');
8
9
  const coreVersion = fs.existsSync(coreFile) ? JSON.parse(fs.readFileSync(coreFile, 'utf8')).version : null;
9
10
  if (apply && !coreVersion?.startsWith('9.')) throw new Error('Apply patches only after installing Capacitor 9 in this app.');
10
- const catalog = path.resolve(__dirname, '../migration/patches');
11
+ const catalog = path.resolve(__dirname, '../files/patches/catalog');
11
12
  const active = path.join(root, 'patches/active');
12
13
  const selected = [];
13
14
  const review = [];
@@ -34,23 +35,37 @@ function prepare(root, apply = false) {
34
35
  if (!fs.existsSync(installed)) continue;
35
36
  const actual = JSON.parse(fs.readFileSync(installed, 'utf8')).version;
36
37
  if (actual !== version) {
38
+ if (apply && dependency === 'capacitor-admob-nextgen' && /^\d+\.\d+\.\d+/.test(actual)) {
39
+ const [major, minor] = actual.split('.').map(Number);
40
+ if (major < 1 || (major === 1 && minor < 6)) {
41
+ throw new Error(`capacitor-admob-nextgen ${actual} must be upgraded to 1.6.0 before the Capacitor 9 patch can be applied. Update package.json and the lockfile, then run npm install again.`);
42
+ }
43
+ }
37
44
  review.push(`${dependency}: installed ${actual}; catalog patch ${version}. Check upstream before changing versions.`);
38
45
  continue;
39
46
  }
40
47
  selected.push(name);
41
48
  }
42
49
  if (apply) {
43
- if (!fs.existsSync(path.join(root, 'node_modules/patch-package/package.json'))) {
44
- throw new Error('Install patch-package in this app before --apply.');
45
- }
50
+ const patchPackage = require.resolve('patch-package/index.js', { paths: [__dirname] });
46
51
  const existing = fs.existsSync(active) ? fs.readdirSync(active) : [];
52
+ for (const name of existing.filter(name => name.endsWith('.patch'))) {
53
+ const match = name.match(/^(.*)\+([^+]+)\.patch$/);
54
+ if (!match) throw new Error(`Invalid active patch name: ${name}`);
55
+ const dependency = match[1].startsWith('@') ? match[1].replace('+', '/') : match[1];
56
+ const installed = path.join(root, 'node_modules', dependency, 'package.json');
57
+ const installedVersion = fs.existsSync(installed) ? JSON.parse(fs.readFileSync(installed, 'utf8')).version : null;
58
+ if (installedVersion !== match[2]) {
59
+ throw new Error(`Active patch ${name} targets ${match[2]}, but ${dependency} is ${installedVersion || 'not installed'}. Review the newer plugin and remove or regenerate this patch before continuing.`);
60
+ }
61
+ }
47
62
  for (const name of selected) {
48
63
  const target = path.join(active, name);
49
64
  const source = path.join(catalog, name);
50
65
  const related = existing.filter(file => file !== name && file.startsWith(name.replace(/\+[^+]+\.patch$/, '+')) && file.endsWith('.patch'));
51
66
  if (related.length) throw new Error(`Conflicting active patch for ${name}: ${related.join(', ')}`);
52
67
  if (fs.existsSync(target) && !fs.readFileSync(target).equals(fs.readFileSync(source))) {
53
- throw new Error(`Existing app patch differs; preserved ${target}`);
68
+ review.push(`Preserved app-specific active patch: ${target}`);
54
69
  }
55
70
  }
56
71
  fs.mkdirSync(active, { recursive: true });
@@ -58,12 +73,13 @@ function prepare(root, apply = false) {
58
73
  const target = path.join(active, name);
59
74
  if (!fs.existsSync(target)) fs.copyFileSync(path.join(catalog, name), target);
60
75
  }
61
- if (selected.length) {
62
- const command = 'patch-package --patch-dir patches/active --error-on-fail';
76
+ if (fs.readdirSync(active).some(name => name.endsWith('.patch'))) {
77
+ const command = 'node node_modules/codeplay-common/scripts/prepare-capacitor-9.cjs --apply';
63
78
  if (!pkg.scripts) pkg.scripts = {};
64
79
  if (!pkg.scripts.postinstall) pkg.scripts.postinstall = command;
65
- else if (!pkg.scripts.postinstall.includes(command)) pkg.scripts.postinstall += ` && ${command}`;
80
+ else if (!pkg.scripts.postinstall.includes(command)) pkg.scripts.postinstall = `${command} && ${pkg.scripts.postinstall}`;
66
81
  fs.writeFileSync(packageFile, JSON.stringify(pkg, null, 2) + '\n');
82
+ execFileSync(process.execPath, [patchPackage, '--patch-dir', 'patches/active', '--error-on-fail'], { cwd: root, stdio: 'inherit' });
67
83
  }
68
84
  }
69
85
  return { selected, review, apply };
@@ -75,7 +91,7 @@ if (require.main === module) {
75
91
  const result = prepare(root, process.argv.includes('--apply'));
76
92
  console.log(`${result.apply ? 'Prepared' : 'Would prepare'} ${result.selected.length} version-matched patches: ${result.selected.join(', ') || 'none'}`);
77
93
  for (const item of result.review) console.warn(`Review: ${item}`);
78
- if (result.apply) console.log('Run npm install (or npx patch-package --patch-dir patches/active --error-on-fail) and verify the native builds.');
94
+ if (result.apply) console.log('Installed matching patches in patches/active and applied them before the native build.');
79
95
  } catch (error) { console.error(error.message); process.exitCode = 1; }
80
96
  }
81
97
 
@@ -96,14 +96,21 @@ function install(options = {}) {
96
96
  fs.copyFileSync(path.join(commonFiles, 'finalrelease'), path.join(projectRoot, 'finalrelease'));
97
97
  if (options.copyAssets !== false) {
98
98
  for (const name of fs.readdirSync(commonFiles)) {
99
- if (name === 'buildCodeplay' || name === 'scripts-screenshot') continue;
99
+ if (name === 'buildCodeplay' || name === 'scripts-screenshot' || name === 'patches') continue;
100
100
  fs.cpSync(path.join(commonFiles, name), path.join(projectRoot, name), { recursive: true });
101
101
  }
102
- }
103
- const guide = path.join(projectRoot, 'AGENTS', 'capacitor-8-to-9-migration.md');
104
- if (!fs.existsSync(guide)) {
105
- fs.mkdirSync(path.dirname(guide), { recursive: true });
106
- fs.copyFileSync(path.resolve(__dirname, '../migration/capacitor-8-to-9-migration.md'), guide);
102
+ const patchCatalog = path.join(commonFiles, 'patches', 'catalog');
103
+ const appCatalog = path.join(projectRoot, 'patches', 'catalog');
104
+ fs.mkdirSync(appCatalog, { recursive: true });
105
+ for (const name of fs.readdirSync(patchCatalog)) {
106
+ const source = path.join(patchCatalog, name);
107
+ const target = path.join(appCatalog, name);
108
+ if (!fs.statSync(source).isFile()) continue;
109
+ if (!fs.existsSync(target)) fs.copyFileSync(source, target);
110
+ else if (!fs.statSync(target).isFile() || !fs.readFileSync(target).equals(fs.readFileSync(source))) {
111
+ console.warn(`codeplay-common: preserved app-specific catalog patch ${target}`);
112
+ }
113
+ }
107
114
  }
108
115
  if (!capacitor9) require('../files/buildCodeplay/splash-setup.cjs').syncSplashSetup(projectRoot);
109
116
  require('../files/buildCodeplay/setup-ruads.cjs').syncRuAdsSetup(projectRoot, {
@@ -116,6 +123,12 @@ function install(options = {}) {
116
123
  pkg.scripts = scripts;
117
124
  require('../files/buildCodeplay/saf-mediastore-dependency.cjs').syncSafMediastoreDependency(projectRoot);
118
125
  fs.writeFileSync(packagePath, JSON.stringify(pkg, null, 2) + '\n');
126
+ if (capacitor9 && fs.existsSync(path.join(projectRoot, 'node_modules', '@capacitor', 'core', 'package.json'))) {
127
+ const result = require('./prepare-capacitor-9.cjs').prepare(projectRoot, true);
128
+ for (const item of result.review) console.warn(`codeplay-common patch review: ${item}`);
129
+ } else if (capacitor9) {
130
+ console.warn('codeplay-common: Capacitor core is not installed yet; patch setup will run before the next build.');
131
+ }
119
132
  // Cleanup happens only after replacement assets and package commands exist.
120
133
  removeVersionedBuildScripts(projectRoot);
121
134
  console.log('codeplay-common: unversioned build scripts copied to app buildCodeplay; app-owned settings preserved.');
@@ -1,49 +0,0 @@
1
- # Capacitor 8 to 9 migration playbook
2
-
3
- Use this checklist separately for each app. Installing `codeplay-common` only installs build helpers, this guide, and a version-specific patch catalog. A Markdown file cannot execute a migration. The developer or coding agent must follow the steps below, review every native diff, and test each app. Do not copy this app's package IDs, store IDs, native customizations, plugin list, or SDK choices into another app without inspecting it first. Source: https://capacitorjs.com/docs/updating/9-0
4
-
5
- ## Shared alpha package and patch preparation
6
-
7
- 1. Install `codeplay-common@alpha` in a disposable branch or test copy. The alpha installer copies this guide into `AGENTS/` only when the file is absent, and preserves an existing app guide. It does **not** run `cap migrate`, edit app native templates, select patches, or build an app automatically. Pin the tested alpha version for each app instead of using a floating range in production.
8
- 2. After updating the app's dependencies and running `npm install`, inspect exact installed versions with `npm ls --depth=0`. Run `node node_modules/codeplay-common/scripts/prepare-capacitor-9.cjs` for a read-only patch selection and legacy native-writer report. The catalog does not apply to absent plugins or different versions. Resolve reported writer call sites before sync/build.
9
- 3. If the selection is correct, install `patch-package` in the app, then run `node node_modules/codeplay-common/scripts/prepare-capacitor-9.cjs --apply`. This copies only exact-version patches to `patches/active/` and adds its command to an existing `postinstall` without deleting that script. Run the postinstall command and check `git diff`; keep app-specific patches that differ from the shared catalog under app ownership. Inspect newer plugin releases before carrying a patch forward. A lower `capacitor-admob-nextgen` version must be upgraded to **1.6.0** before selecting its compatibility patch.
10
- 4. For this Maths app, the existing AdMob patch additionally contains later banner layout fixes. The shared alpha catalog intentionally contains only the two-line Capacitor 9 `hasOption()` API fix. Do not replace this app's active AdMob patch with the shared one.
11
-
12
- ## Preparation
13
-
14
- 1. Read that app's `AGENTS.md` and linked instructions. Record its clean Git status, Node version, Java version, Android SDK path, Gradle/AGP versions, iOS deployment target, and installed Capacitor and Cordova plugins.
15
- 2. Search build, install, and sync scripts for writes to `android/`, `ios/`, and `node_modules/`. Classify each write as app-owned configuration, generated native integration, or a workaround for an older Capacitor version. Preserve app-owned behavior; remove obsolete core/native workarounds. Search every call site before deleting a script.
16
- 3. Record the intended ADB serial and use `adb -s <serial>` for **every** ADB operation. Never use unqualified `adb`, `cap run`, or an install script that chooses a device implicitly when another device is connected.
17
- 4. Keep temporary downloads, build logs, screenshots, and APK copies under `agent-temp/`. Follow that app's native-file authorization rule. Do not edit generated web output by hand.
18
-
19
- ## Upgrade and native sync
20
-
21
- 1. Use Node 24 or later and Java 21. Upgrade `@capacitor/cli`, `core`, `android`, `ios`, and every official `@capacitor/*` plugin to major 9. Check every community plugin's peer range and native Gradle/Swift compatibility; an npm install succeeding is insufficient. Keep the app's lockfile in sync.
22
- 2. Run `npx cap migrate` and read every warning. Review its diff before accepting generated changes. Then run `npx cap sync android` and `npx cap sync ios` after the plugin set is final.
23
- 3. Android: use the Gradle and AGP versions required by the current Capacitor guide, install the matching compile SDK/build tools, set the guide's minimum and target SDKs, and check `android/variables.gradle`, root/app Gradle files, wrapper files, and `gradle.properties`. Remove old direct Cordova module wiring from `settings.gradle` and `app/build.gradle`; Capacitor 9 generates conditional wiring in `capacitor.settings.gradle` and `app/capacitor.build.gradle`. Keep actual Cordova plugins and store-specific billing/ads exclusions.
24
- 4. Check old plugin Gradle files for unsupported `proguard-android.txt`, standalone Kotlin plugin, old `core-ktx`, `jcenter()`, and removed Capacitor APIs. Prefer a compatible plugin release. If none exists and the plugin is used, carry a narrow, reproducible dependency patch with its reason documented. Reapply and verify it after a clean install.
25
- 5. Compare `MainActivity` with the installed Capacitor 9 template and remove obsolete app-specific Java behavior. Search `postinstall`, `capacitor:sync:*`, before-build scripts, and Gradle hooks for old `setSplashAnimation.js`, `add-splash-screen.js`, `splash-setup.cjs`, `BridgeWebViewClient.java`, and `SystemBars.java` writers. Remove or disable their callers so the next install/build/sync does not restore obsolete code. Keep the native launch splash from the Capacitor 9 template unless that app explicitly needs custom behavior. Confirm edge-to-edge and `SystemBars.insetsHandling` together on device. Keep app-owned manifest, notification icon, resource, R8, store, TV, and baseline-profile modifications; update their integration for AGP 9. A baseline-profile Gradle plugin at 1.5.0 or later is needed for this app's AGP 9 build.
26
- 6. iOS: set deployment target 16.0, use Xcode 27 or later, migrate to SwiftUI `App.swift`/`CapacitorView.swift`, adapt `AppDelegate`, empty the old `SceneDelegate` window/URL code, remove `Main.storyboard`, and check Xcode target file references and `Info.plist`. Confirm URL, universal-link, notification, ad consent, orientation, and custom plugin behavior on an iOS device. Windows cannot complete this validation.
27
-
28
- ## Validation and handoff
29
-
30
- 1. Run `npm ls --depth=0`, JavaScript syntax checks, `git diff --check`, and an Android Gradle build. Check warnings and errors from every plugin module. Verify a web build using the relevant store mode without hand-editing `www`.
31
- 2. Inspect merged manifests and packaged assets/classes for each store variant whose billing or ads are excluded. Check that the package ID and signing key match the installed app before upgrading it; preserve app data when possible.
32
- 3. Install only with `adb -s <serial> install -r <apk>`. Confirm startup, native bridge, splash, status/navigation bars and both landscape edges, keyboard, notifications, purchases, ads, and relevant plugin flows. Record any unavailable device or platform checks explicitly.
33
- 4. Before building a Play internal-test AAB, increase the app's `versionCode` beyond every version already uploaded to Play and advance `versionName` using that app's version scheme. Sign with its existing Play upload key; verify the AAB manifest's actual version values, packaged web/Cordova assets, and signing certificate before handing it off. Do not reuse a prior Play build code for a revised migration test.
34
- 5. Save concise durable validation results under `AI-Logs/` and update `Version-history.md` under Unreleased. Do not declare iOS complete until an Xcode build and device check pass.
35
-
36
- ## Findings from this app
37
-
38
- - Capacitor 9's Cordova wiring is conditional. This app still uses Cordova plugins, so its generated files include that runtime.
39
- - `@capacitor-community/in-app-review` 8.0.0 has no major-9 release and uses the removed default ProGuard file. `patches/active/@capacitor-community+in-app-review+8.0.0.patch` changes that single Gradle call and `postinstall` reapplies it.
40
- - For `capacitor-admob-nextgen`, update older installations to 1.6.0 before applying the single `patches/active/capacitor-admob-nextgen+1.6.0.patch`. Version 1.6.0 calls the removed `PluginCall.hasOption()` API; the patch uses `call.getData().has()` for the two optional privacy flags. Recheck whether an upstream release fixes this before patching a newer version.
41
- - `patches/catalog/` holds version-specific patches for other apps. Select only patches matching an app's installed versions; see `patches/README.md`. The catalog patches passed isolated Capacitor 9 Android debug/release Java compilation but still require each app's native release and runtime checks. Update the owned RuStore ads package upstream instead of copying a patch.
42
- - The former `setSplashAnimation.js` sync hook replaced all of `MainActivity`; removing every caller avoids restoring Capacitor 8-era native code.
43
- - This app's `MainActivity.java` matches the Capacitor 9 Android template exactly except for `package maths.formulas;`. Its old custom splash exit animation was removed.
44
- - The default Capacitor 9 `AppTheme.NoActionBarLaunch`, `styles.xml`, splash.png assets, and Gradle wrapper properties were restored. The custom `Theme.Codeplay.SplashScreen`, its sync script, the manual startup hide timer, and `launchShowDuration: 0` were removed so the stock launch splash can be evaluated. `splash_icon.png` is retained only for LocalNotifications.largeIcon. The TV banner, launcher resources, app identity, plugin-generated Gradle files, and notification assets remain app-specific. Baseline-profile, R8, and store build rules are deliberate exceptions to the template at the user's request.
45
- - When using a temporary Vite output directory for a test APK, route it through `npx cap copy android` so Cordova's JavaScript runtime and plugin files are generated. Directly copying Vite output into native assets omits those files. Restore the source `webDir` and native generated assets after the APK is built.
46
- - This app's pre-Android-15 custom inset listener was removed after migration. Capacitor 9 `SystemBars.insetsHandling=css` now provides the inset values, and `src/assets/css/app.less` maps them to the existing layout variables. Keep this mapping when migrating related layouts; test older Android versions separately.
47
- - Play Console can still show its edge-to-edge recommendation for an optimized release even when the Capacitor 9 template calls `EdgeToEdge.enable(this)`: R8 may inline that call into `MainActivity.onCreate`. Check the release mapping before changing UI code. In this app, a narrow `-keep` rule for `androidx.activity.EdgeToEdge.enable(ComponentActivity)` retained the entry point in release code; the later production 8.1 (89) dashboard screenshot no longer showed those recommendations. This is an observed result, not proof that every device or later dependency build will pass. Do not add the rule to other apps without checking their own release mapping and Play result.
48
- - Play's deprecated edge-to-edge API warning for version 88 points mainly to AndroidX Activity/Core compatibility code. `WindowCompat.enableEdgeToEdge()` in AndroidX Core 1.19.1 still calls `setStatusBarColor` and `setNavigationBarColor`, so swapping the entry point does not remove that warning. Preserve working Android 14+ insets and bar contrast while assessing future AndroidX updates.
49
- - If Java's Gradle wrapper download times out, download the specified Gradle distribution with an available HTTP client and regenerate the wrapper from that distribution. Keep the chosen Gradle version aligned with AGP.