Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .fvmrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"flutter": "3.41.6",
"flutter": "3.44.0",
"flavors": {}
}
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"dart.flutterSdkPath": ".fvm/versions/3.41.6"
"dart.flutterSdkPath": ".fvm/versions/3.44.0"
}
40 changes: 25 additions & 15 deletions ai/skills/upgrade/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,31 @@ Use this skill for SDK and dependency upgrades in this repository.
1. Check current SDK pin in `.fvmrc` and `pubspec.yaml`.
2. Confirm the target Flutter version.
3. Update `.fvmrc`.
4. Update `pubspec.yaml` environment constraints to match the new SDK floor.
5. Run dependency audit commands such as `fvm flutter pub outdated`.
6. Use `fvm flutter pub upgrade --major-versions` when the goal is to move the dependency graph forward broadly.
7. Review any changed direct constraints in `pubspec.yaml`.
8. Run:
- `fvm flutter pub get`
- `make gen`
- `fvm flutter analyze`
- `fvm flutter test`
9. Fix breakages from:
- package API changes
- analyzer/lint changes
- build runner or codegen config warnings
- generated native plugin files
10. Review GitHub Actions to ensure they still use the pinned project SDK.
4. Activate the new SDK locally — this always needs to happen after changing `.fvmrc`:
```
fvm install
fvm use global <version>
```
Without this, `fvm flutter` commands still invoke the old SDK.
Comment on lines +33 to +37
5. Update `.vscode/settings.json` — change `dart.flutterSdkPath` to `.fvm/versions/<new-version>`.
Then **restart VSCode** (or run "Dart: Change Flutter SDK" from the command palette) so the
Dart/Flutter extension reloads against the new SDK. Skipping this causes the IDE to keep
analyzing with the old version even though the CLI is already on the new one.
6. Update `pubspec.yaml` environment constraints to match the new SDK floor.
7. Run dependency audit commands such as `fvm flutter pub outdated`.
8. Use `fvm flutter pub upgrade --major-versions` when the goal is to move the dependency graph forward broadly.
9. Review any changed direct constraints in `pubspec.yaml`.
10. Run:
- `fvm flutter pub get`
- `make gen`
- `fvm flutter analyze`
- `fvm flutter test`
11. Fix breakages from:
- package API changes
- analyzer/lint changes
- build runner or codegen config warnings
- generated native plugin files
12. Review GitHub Actions to ensure they still use the pinned project SDK.

## Version Pairs To Check Together
- `freezed` with `freezed_annotation`
Expand Down
1 change: 1 addition & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ include: package:netglade_analysis/lints.yaml

analyzer:
exclude:
- 'build/**'
- 'project_setup/**'
- '**.g.dart'
- '**.gen.dart'
Expand Down
5 changes: 4 additions & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
plugins {
id "com.android.application"
id "kotlin-android"
id "dev.flutter.flutter-gradle-plugin"

// For Firebase App Distribution
Expand Down Expand Up @@ -49,6 +48,10 @@ android {
targetCompatibility JavaVersion.VERSION_17
}

buildFeatures {
buildConfig true
}

kotlinOptions {
jvmTarget = JavaVersion.VERSION_17
}
Expand Down
5 changes: 4 additions & 1 deletion android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
org.gradle.jvmargs=-Xmx4G -XX:MaxMetaspaceSize=2G -XX:+HeapDumpOnOutOfMemoryError
android.useAndroidX=true
android.enableJetifier=true
android.defaults.buildfeatures.buildconfig=true
# This builtInKotlin flag was added automatically by Flutter migrator
android.builtInKotlin=false
# This newDsl flag was added automatically by Flutter migrator
android.newDsl=false
2 changes: 1 addition & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
12 changes: 6 additions & 6 deletions android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ pluginManagement {

plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "8.9.1" apply false
id "org.jetbrains.kotlin.android" version "2.1.20" apply false
id "com.android.application" version "8.13.2" apply false
id "org.jetbrains.kotlin.android" version "2.3.21" apply false

id "com.google.gms.google-services" version "4.4.2" apply false
id "com.google.firebase.crashlytics" version "3.0.2" apply false
id "com.google.gms.google-services" version "4.4.4" apply false
id "com.google.firebase.crashlytics" version "3.0.7" apply false

// For Firebase App Distribution
id "com.google.firebase.appdistribution" version "5.0.0" apply false
id "com.google.firebase.appdistribution" version "5.2.1" apply false
}

include ":app"
include ":app"
Loading
Loading