Require Flutter 3.47.9 for all builds

pubspec.yaml now pins environment.flutter to 3.47.9, so pub get refuses
other SDKs. Every CI job reads that pin via flutter-version-file,
including the web deploy (was 3.41.2). The AppImage SDK pin moves to
3.47.9 and CI fails if it drifts from pubspec. The Nix shell no longer
bundles Flutter, since nixpkgs only packages 3.47.4; it warns when the
SDK on PATH is missing or the wrong version.
This commit is contained in:
zjs81 committed 2026-11-06 00:24:40 -07:00
1 parent 0e01fd27dd
commit 7087203c6b
9 files changed
+43 -25

No files matched your search

+8 -3
View File
@@ -22,9 +22,6 @@
];
buildInputs = with pkgs; [
# Flutter and Dart
flutter
# Java (required for Android development)
jdk17
@@ -50,6 +47,14 @@
shellHook = ''
echo "MeshCore Flutter Development Environment"
# Flutter itself is not provided here: pubspec.yaml pins an exact
# release that nixpkgs may not have yet. Use that SDK from PATH.
required_flutter=$(sed -n 's/^ flutter: *//p' pubspec.yaml 2>/dev/null)
if ! command -v flutter >/dev/null; then
echo "WARNING: flutter not on PATH; install Flutter $required_flutter"
elif ! flutter --version 2>/dev/null | grep -q "^Flutter $required_flutter "; then
echo "WARNING: this project requires Flutter $required_flutter; found $(flutter --version 2>/dev/null | head -1)"
fi
export LD_LIBRARY_PATH="${pkgs.lib.makeLibraryPath [pkgs.gtk3 pkgs.glib pkgs.sysprof pkgs.libdatrie]}:$LD_LIBRARY_PATH"
# Setup Android SDK in home directory (standard location)