flavor_tools 2.0.2
flavor_tools: ^2.0.2 copied to clipboard
Easily create and manage application flavors
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.