Tools

iOS Building .ipa

  1. Open Flutter Project via xcode

  2. If you using command line

    # Build iOS .ipa
    xcodebuild -exportArchive -exportOptionsPlist buildPackage/release/ExportOptions.plist -archivePath build/ios/archive/Runner.xcarchive -exportPath build/app_ci/ -allowProvisioningUpdates
    

Android Building .apk or .aab File

When build your apk file to publishing and release to PlayStore&AppStore

  • fvm command is Flutter version management. It allows per-project SDK versions

  • # Optional case for difference signature app
    --dart-define=CHANNEL=office
#For profile apk with specific 4 columns version name
fvm flutter build apk --profile --target-platform android-arm64 --build-name=2.8.5.1 --obfuscate --split-debug-info=buildPackage/AndroidDartMapping

#For profile apk that update version go to landing page
fvm flutter build apk --profile --target-platform android-arm64 --obfuscate --dart-define=CHANNEL=office --split-debug-info=buildPackage/AndroidDartMapping

#For production apk
fvm flutter build apk --release --target-platform android-arm64 --obfuscate --dart-define=CHANNEL=office --split-debug-info=buildPackage/AndroidDartMapping

# For production release aab
fvm flutter build appbundle --target-platform android-arm,android-arm64,android-x64 --obfuscate --split-debug-info=buildPackage/BundleMapping

Last updated