flutter_platform_sync 1.0.1
flutter_platform_sync: ^1.0.1 copied to clipboard
CLI that syncs a Flutter project's Android Gradle/AGP/Kotlin versions to a target Flutter release, pins compileSdk/targetSdk to 36, and prompts for minSdk.
Example #
flutter_platform_sync is a command-line tool, not a library you import —
so "using" it just means running it against a Flutter project.
Install dependencies once:
dart pub get
See what would change, without touching any files:
dart run bin/flutter_platform_sync.dart \
--project /path/to/your/flutter/project \
--version 3.35.5 \
--dry-run
If the diff looks right, run it again without --dry-run to apply it:
dart run bin/flutter_platform_sync.dart \
--project /path/to/your/flutter/project \
--version 3.35.5
You'll be asked to confirm before anything is written, and asked what
minSdk you want (press Enter to leave it unchanged). See the main
README for the full list of options.