Shipping production applications often requires multiple environments (e.g. dev, staging, prod) with separate bundle identifiers, Firebase instances, and app icons, alongside strict Apple App Store privacy permission declarations in Info.plist.
π¦ Custom Flavors (`appblink.createFlavor`)
App Blink automates the boilerplate required to configure flavors across Android and iOS:
What App Blink Configures:
1. **Android (`android/app/build.gradle`)**: * Scaffolds `flavorDimensions "default"` * Defines product flavors (`dev`, `staging`, `prod`) with custom `applicationIdSuffix` and `versionNameSuffix`. 2. **iOS (`ios/Runner.xcodeproj`)**: * Creates matching Xcode build configurations (`Debug-dev`, `Release-prod`). * Configures separate bundle identifiers (e.g. `com.company.app.dev` vs `com.company.app`). 3. **Flutter Run Configuration**: * Generates `.vscode/launch.json` entries allowing you to run any flavor directly from the IDE Debug panel.How to Create a Flavor:
1. Open the Command Palette (`Cmd+Shift+P`). 2. Select **App Blink: Create Custom Flavor**. 3. Enter the flavor name (e.g. `staging`). 4. Specify the bundle identifier suffix (e.g. `.staging`). 5. App Blink writes the Gradle and Xcode configurations automatically.π iOS Permissions Fixer (`appblink.fixIosPermissions`)
Apple App Store Review strictly rejects builds that access device capabilities (Camera, Microphone, Photo Library, Location, Tracking) without clear human-readable permission descriptions in Info.plist.
How It Works:
1. Run **App Blink: Fix iOS Permissions** (`appblink.fixIosPermissions`). 2. App Blink scans your Flutter codebase for imported native plugins (e.g. `image_picker`, `geolocator`, `camera`, `app_tracking_transparency`). 3. If missing, App Blink injects policy-compliant descriptions into `ios/Runner/Info.plist`:<!-- Injected by App Blink -->
<key>NSCameraUsageDescription</key>
<string>$(PRODUCT_NAME) uses the camera to allow you to take profile pictures and scan documents.</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>$(PRODUCT_NAME) accesses your photo library so you can select and upload images.</string>