easy_flavor 0.1.1 copy "easy_flavor: ^0.1.1" to clipboard
easy_flavor: ^0.1.1 copied to clipboard

A CLI that sets up Flutter flavors (dev, staging, prod, ...) for Android and iOS in new or existing projects, with optional Firebase integration.

0.1.1 #

  • Fix iOS builds of projects that already used Firebase: an existing GoogleService-Info.plist in the Runner's Copy Bundle Resources is now removed from that phase (the file reference is kept), since the [easy_flavor] Copy GoogleService-Info.plist build phase copies the flavor's plist to the same place ("Multiple commands produce .../GoogleService-Info.plist"). doctor reports the conflict.

0.1.0 #

Initial release.

  • Commands: create, init, add, remove, doctor, restore.
  • easy_flavor.yaml holds the whole setup; flags override it. Interactive prompts, or fully non-interactive for CI.
  • Dart: lib/flavors.dart (Flavor enum and FlavorConfig), lib/main_<flavor>.dart entry points, lib/main.dart refactored into runMainApp() with a main() that starts the default flavor, and flutter: default-flavor in pubspec.yaml.
  • Android: a managed productFlavors block for Groovy and Kotlin DSL with applicationId and resValue app names (or per-flavor strings.xml when app_name already exists), @string/app_name manifest label, and src/<flavor>/ folders.
  • iOS: a Dart project.pbxproj parser/writer that round-trips Xcode's formatting, Debug/Release/Profile-<flavor> configurations, per-flavor xcconfig files (bundle id, display name, CocoaPods include), shared schemes, CFBundleDisplayName = $(APP_DISPLAY_NAME), and the Podfile configuration map.
  • Firebase (--firebase): tool and login checks, flutterfire configure per flavor, firebase_core, Firebase initialisation per entry point, and an Xcode build phase that copies the flavor's GoogleService-Info.plist.
  • Existing projects: git status check, backups in .easy_flavor_backup/, restore, --dry-run with diffs (--verbose), idempotent re-runs, and init --merge to adopt flavors the project already declares.
  • IDE: VS Code launch.json entries and Android Studio run configurations.
  • doctor validates the whole setup, including the iOS deployment target against the installed Xcode.
0
likes
160
points
--
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A CLI that sets up Flutter flavors (dev, staging, prod, ...) for Android and iOS in new or existing projects, with optional Firebase integration.

Repository (GitHub)
View/report issues

Topics

#flutter #flavors #cli #firebase #build-variants

License

MIT (license)

Dependencies

args, mason_logger, meta, path, yaml, yaml_edit

More

Packages that depend on easy_flavor