From 038f4d65fe56efc56cb73f77e61793ec06c410d7 Mon Sep 17 00:00:00 2001 From: efrilm Date: Wed, 2 Sep 2026 20:43:49 +0700 Subject: [PATCH] chore: pin Flutter 3.41.9 lewat FVM Stack codegen project ini (freezed 2.x, build_runner 2.5, analyzer 7.7.1) hanya paham bahasa Dart sampai 3.9. Flutter 3.44+ membawa framework yang ditulis di bahasa 3.10+, dan analyzer 7.7.1 crash saat men-serialize-nya (visitDotShorthandPropertyAccess) sehingga build_runner tidak bisa jalan sama sekali. 3.41.9 adalah rilis terbaru yang framework-nya masih di bahasa 3.9. Versi dipin per-project lewat .fvmrc supaya tidak mengganggu project lain di mesin yang sama. android/build/ ikut di-ignore; isinya artefak Gradle. Co-Authored-By: Claude Opus 5 (1M context) --- .fvmrc | 3 +++ .gitignore | 6 ++++++ .vscode/settings.json | 3 +++ pubspec.lock | 10 +++++----- 4 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 .fvmrc create mode 100644 .vscode/settings.json diff --git a/.fvmrc b/.fvmrc new file mode 100644 index 0000000..d80cf57 --- /dev/null +++ b/.fvmrc @@ -0,0 +1,3 @@ +{ + "flutter": "3.41.9" +} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 79c113f..442521f 100644 --- a/.gitignore +++ b/.gitignore @@ -32,6 +32,7 @@ migrate_working_dir/ .pub-cache/ .pub/ /build/ +android/build/ # Symbolication related app.*.symbols @@ -43,3 +44,8 @@ app.*.map.json /android/app/debug /android/app/profile /android/app/release + +# FVM - versi Flutter dipin di .fvmrc (ikut di-commit), SDK-nya tidak + +# FVM Version Cache +.fvm/ \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..6a5b098 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "dart.flutterSdkPath": ".fvm/versions/3.41.9" +} \ No newline at end of file diff --git a/pubspec.lock b/pubspec.lock index 43de1dd..e880e30 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -852,10 +852,10 @@ packages: dependency: transitive description: name: meta - sha256: "1741988757a65eb6b36abe716829688cf01910bbf91c34354ff7ec1c3de2b349" + sha256: "23f08335362185a5ea2ad3a4e597f1375e78bce8a040df5c600c8d3552ef2394" url: "https://pub.dev" source: hosted - version: "1.18.0" + version: "1.17.0" mime: dependency: transitive description: @@ -1337,10 +1337,10 @@ packages: dependency: transitive description: name: test_api - sha256: "949a932224383300f01be9221c39180316445ecb8e7547f70a41a35bf421fb9e" + sha256: "8161c84903fd860b26bfdefb7963b3f0b68fee7adea0f59ef805ecca346f0c7a" url: "https://pub.dev" source: hosted - version: "0.7.11" + version: "0.7.10" time: dependency: transitive description: @@ -1502,5 +1502,5 @@ packages: source: hosted version: "3.1.3" sdks: - dart: ">=3.10.0-0 <4.0.0" + dart: ">=3.9.0-0 <4.0.0" flutter: ">=3.29.0"