flavor_tools 2.0.3
flavor_tools: ^2.0.3 copied to clipboard
CLI tool for creating and managing Flutter flavors. Configures iOS (Xcode, xcconfig, schemes) and Android (Gradle) automatically.
2.0.3 #
- Added validation for Gradle file existence before Android flavor creation
- Added validation for invalid YAML flavor entries in
create-allcommand
2.0.2 #
- Fixed dart analyze warnings
- Updated dependencies
- Updated README.md documentation
2.0.0 #
New features #
create-allcommand — batch flavor creation from YAML config file (flavor_tools.yaml)updatecommand — update package name and display name for existing flavors (iOS xcconfig + Android Gradle)- Smart diff detection —
create-allautomatically detects config changes and updates only modified flavors - Kotlin DSL support — auto-detection and support for
build.gradle.ktsalongside Groovybuild.gradle - Duplicate check — skips flavor creation if it already exists in the project
Improvements #
- XCBuildConfiguration modernized to Xcode 16 standards:
- Removed
ENABLE_BITCODE CODE_SIGN_IDENTITY:iPhone Developer→Apple DevelopmentCLANG_CXX_LANGUAGE_STANDARD:gnu++0x→gnu++20GCC_C_LANGUAGE_STANDARD:gnu99→gnu17IPHONEOS_DEPLOYMENT_TARGET:12.0→13.0SWIFT_VERSION:5.0→6.0
- Removed
- Auto-detection of project settings — reads
SWIFT_VERSION,IPHONEOS_DEPLOYMENT_TARGET,TARGETED_DEVICE_FAMILY,CLANG_CXX_LANGUAGE_STANDARD,GCC_C_LANGUAGE_STANDARDfrom existing Xcode configurations instead of hardcoding - Scheme generation rewritten with
xmlpackage — correctBlueprintIdentifierfrom PBXNativeTarget, scheme version1.7,customLLDBInitFilesupport - Removed unused Profile xcconfig file references (Profile reuses Release xcconfig per Flutter standard)
- Refactored
create_xc_flavor.dart— eliminated duplication across build types using loops and UUID maps - Error handling — proper exit codes (
exit(1)instead ofexit(404)), descriptive context messages for all error points
1.0.6 #
- Updated XCBuildConfiguration.