Skip to main content

flutter_migration_audit 0.1.2 copy "flutter_migration_audit: ^0.1.2" to clipboard
flutter_migration_audit: ^0.1.2 copied to clipboard

Read-only audit of a Flutter app's native files: what each Podfile hand edit needs for Swift Package Manager, and what a Flutter upgrade changes for Android edge-to-edge.

example/README.md

Examples #

Install the tool, then run it on the directory of a Flutter app. It only reads files and never changes the app.

dart pub global activate flutter_migration_audit

CocoaPods to Swift Package Manager #

flutter_migration_audit spm --input path/to/app

An excerpt of the report for an app with flavors and an app extension target (the test fixture of test/cli_test.dart):

flutter_migration_audit 0.1.1: CocoaPods to Swift Package Manager
...
iOS: Podfile present; Swift Package Manager integration started
  Closest Flutter Podfile template: 3.47.0/Podfile-ios to 3.50.0/Podfile-ios

  [affected] ios/Podfile:5
    Podfile platform 15.0 is higher than the Runner target
    The pods are built for 15.0, but every Runner build configuration (12) targets 13.0. A Swift package that needs 15.0 will not build for them.
    Action: In Xcode, set the Minimum Deployments of the Runner target to 15.0 (General tab), then run `flutter build ios --config-only`.
    Check: Every Runner build configuration in ios/Runner.xcodeproj/project.pbxproj sets IPHONEOS_DEPLOYMENT_TARGET to 15.0 or higher.
    Sources: [12] [13] [14]
...

Android system bars and edge-to-edge #

flutter_migration_audit edge-to-edge --from 3.32.5 --to 3.50.1 --input path/to/app

An excerpt of the report for samples/player_opt_out in the repository, an app whose style opts out of edge-to-edge:

flutter_migration_audit 0.1.1: Android system bars and edge-to-edge
Flutter 3.32.5 → 3.50.1
App: samples/player_opt_out
...
Summary: 5 affected, 1 needs check, 0 not affected

[affected] targetSdk change
  targetSdk follows flutter.targetSdkVersion, so it changes from API 35 to API 36 (Android 16).
  App clues:
    android/app/build.gradle:14  targetSdk = flutter.targetSdkVersion
...

Add --json to either command for a report that a script can read. The README lists the options, the exit codes, and the supported upgrade ranges.

0
likes
160
points
308
downloads

Documentation

API reference

Publisher

verified publisherdonminzzi.kr

Weekly Downloads

Read-only audit of a Flutter app's native files: what each Podfile hand edit needs for Swift Package Manager, and what a Flutter upgrade changes for Android edge-to-edge.

Repository (GitHub)
View/report issues

Topics

#android #cli #flutter #ios #migration

License

MIT (license)

Dependencies

args

More

Packages that depend on flutter_migration_audit