Yuki
Yuki

Reputation: 325

Can I change my Flutter/iOS/Android App version dynamically during build?

I want to push 2 app versions of my Flutter app in the App Store Connect. One is my actual release and one is my backup. They are technically the same app version. They should both be a release/production version and not dev or testing versions.

My release app has e.g the version 3.5.0. and my backup should be version 4.0.0 or 3.6.0.

I want to do this automatically for example when I push something on my master branch. Maybe I can do this via fastlane, codemagic or even a flavor?

Upvotes: 0

Views: 905

Answers (1)

Soyellow
Soyellow

Reputation: 304

You have to push two different builds to App Store Connect, since Version and Build Number are variables injected into multiple points in the iOS .ipa

I would setup two codemagic flows, where you can set it via --build-name and --build-number flags for the flutter build command.

If you don't want to use codemagic, just write a script that runs the build command with the flags and into different output directories.

Upvotes: 0

Related Questions