Main coves client
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(config): add ENV shorthand for environment override

Add support for --dart-define=ENV=dev as a convenience shorthand
alongside the existing ENVIRONMENT override. Maps 'dev'/'local' to
local environment and 'prod'/'production' to production.

Also remove macos Flutter config files from tracking (already in gitignore).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

+14 -2
+14
lib/config/environment_config.dart
··· 54 static const String _flavor = String.fromEnvironment('FLUTTER_FLAVOR'); 55 56 /// Explicit environment override via --dart-define=ENVIRONMENT=local 57 static const String _envOverride = String.fromEnvironment('ENVIRONMENT'); 58 59 /// Get current environment based on build configuration 60 /// ··· 68 switch (_envOverride) { 69 case 'local': 70 return local; 71 case 'production': 72 return production; 73 }
··· 54 static const String _flavor = String.fromEnvironment('FLUTTER_FLAVOR'); 55 56 /// Explicit environment override via --dart-define=ENVIRONMENT=local 57 + /// Also supports --dart-define=ENV=dev for convenience 58 static const String _envOverride = String.fromEnvironment('ENVIRONMENT'); 59 + static const String _envShorthand = String.fromEnvironment('ENV'); 60 61 /// Get current environment based on build configuration 62 /// ··· 70 switch (_envOverride) { 71 case 'local': 72 return local; 73 + case 'production': 74 + return production; 75 + } 76 + } 77 + 78 + // Priority 1b: Shorthand ENV override (dev -> local, prod -> production) 79 + if (_envShorthand.isNotEmpty) { 80 + switch (_envShorthand) { 81 + case 'dev': 82 + case 'local': 83 + return local; 84 + case 'prod': 85 case 'production': 86 return production; 87 }
-1
macos/Flutter/Flutter-Debug.xcconfig
··· 1 - #include "ephemeral/Flutter-Generated.xcconfig"
···
-1
macos/Flutter/Flutter-Release.xcconfig
··· 1 - #include "ephemeral/Flutter-Generated.xcconfig"
···