mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-10-31 18:19:43 +00:00
chore(android): target API 36 with Expo 54
Upgrade the mobile runtime and tracked Android project to compile and target API 36. Align Expo modules, React Native, Node, Gradle, and Android build tooling while preserving the custom widget sources.\n\nAdapt file-system, notification, animation, test, and Metro compatibility for the SDK 54 runtime.
This commit is contained in:
1 parent
1be54175e4
commit
f35114dc77
30 files changed
+4072
-5645
No files matched your search
@@ -15,6 +15,7 @@ const path = require('path');
|
||||
|
||||
const ROOT = path.resolve(__dirname, '..');
|
||||
const MOBILE_NM = path.join(ROOT, 'apps', 'mobile', 'node_modules');
|
||||
const WEB_NM = path.join(ROOT, 'apps', 'web', 'node_modules');
|
||||
const ROOT_NM = path.join(ROOT, 'node_modules');
|
||||
|
||||
// Packages that must live in apps/mobile/node_modules, not root
|
||||
@@ -40,3 +41,25 @@ for (const pkg of PACKAGES_TO_FIX) {
|
||||
fs.renameSync(rootPkg, localPkg);
|
||||
console.log(`fix-hoisting: moved ${pkg} → apps/mobile/node_modules/`);
|
||||
}
|
||||
|
||||
// Next and its React-facing tooling must resolve the web workspace's React 18
|
||||
// runtime, not the React 19 runtime hoisted for Expo SDK 54 / React Native.
|
||||
for (const pkg of ['next', 'styled-jsx', 'eslint-config-next']) {
|
||||
const rootPkg = path.join(ROOT_NM, pkg);
|
||||
const localPkg = path.join(WEB_NM, pkg);
|
||||
if (!fs.existsSync(rootPkg) || fs.existsSync(localPkg)) continue;
|
||||
|
||||
fs.mkdirSync(WEB_NM, { recursive: true });
|
||||
fs.renameSync(rootPkg, localPkg);
|
||||
console.log(`fix-hoisting: moved ${pkg} → apps/web/node_modules/`);
|
||||
}
|
||||
|
||||
const localNext = path.join(WEB_NM, 'next');
|
||||
if (fs.existsSync(localNext)) {
|
||||
const localBinDir = path.join(WEB_NM, '.bin');
|
||||
const localBin = path.join(localBinDir, 'next');
|
||||
fs.mkdirSync(localBinDir, { recursive: true });
|
||||
if (!fs.existsSync(localBin)) {
|
||||
fs.symlinkSync(path.join('..', 'next', 'dist', 'bin', 'next'), localBin);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user