Pin Flutter 3.32.0 via .tool-versions and document in README

Newer Flutter SDKs drop the _macros pseudo-package that Cake's pinned
hive_generator + build_resolvers transitively require, so 'flutter pub get'
fails on Flutter 3.5+. Pin the version with .tool-versions (asdf/mise pick
this up automatically) and document the manual install path for everyone
else.
This commit is contained in:
jwinterm
2026-05-14 16:19:56 -04:00
parent 1b37802fbc
commit 3196284773
2 changed files with 9 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
flutter 3.32.0
+8 -1
View File
@@ -46,7 +46,14 @@ The build system is unchanged from upstream Cake Wallet. See `docs/` for per-pla
* Linux: `docs/build_linux.md` * Linux: `docs/build_linux.md`
* Windows: `docs/build_windows.md` * Windows: `docs/build_windows.md`
Required Flutter version is pinned in `Dockerfile` (currently 3.32.0). Before the first `flutter pub get`, you must run the prep scripts to clone external native dependencies: Required Flutter version is pinned in `Dockerfile` (currently 3.32.0) and `.tool-versions`. Newer Flutter SDKs (3.5+) drop the `_macros` pseudo-package that Cake's pinned `hive_generator` + `build_resolvers` transitively require — `flutter pub get` will fail until you switch to 3.32.0. If using `asdf` or `mise`, the version will be picked up automatically; otherwise:
```bash
git clone --depth 1 --branch 3.32.0 https://github.com/flutter/flutter.git ~/sdks/flutter/3.32.0
export PATH="$HOME/sdks/flutter/3.32.0/bin:$PATH"
flutter --version # confirm 3.32.0 / Dart 3.8.0
```
Before the first `flutter pub get`, you must run the prep scripts to clone external native dependencies:
```bash ```bash
./scripts/prepare_torch.sh ./scripts/prepare_torch.sh