- Check that you are on the
developbranch and the code is ready to publish - Follow the steps according to the specific platform
- Commit the current state in a publish commit (Message:
Publish version 1.0.1) - Create a new release on GitHub and tag the commit
- Merge the new version into the master branch
-
Open the app in the developer console
-
Go to "App releases" and search for the latest version code
-
Open
android\app\build.gradleand increase theflutterVersionCode(must be greater than the version code read from the developer console) andflutterVersionName:def flutterVersionCode = 'x' def flutterVersionName = '1.x.y'
-
Open
common\application_constants.dartand update the version numberconst String ApplicationVersion = "1.0.1";
-
Open
android\app\build.gradleand change the signing configuration to release mode:buildTypes { release { signingConfig signingConfigs.release //signingConfig signingConfigs.debug } }
-
In Android Studio select the root folder and click Build -> Flutter -> Build App Bundle:
-
In the app developer console create a new release
-
Upload the built
app-release.aabfile -
Write the change log
-
Save, verify and publish the release
Used flutter version: 3.3.10
Used Xcode version: Xcode 14.3
- Open a terminal and execute
flutter clean iosthen executeflutter build ios - Open the Runner project in Xcode
- In the menu go to
Product->Schemeand select "Runner" - In the menu go to
Product->Destinationand select "Generic iOS Device" - Go to the properties of the Runner project. In the "General" page increase the version and build number. Also check that the version number and build number are the same in the app and widget package.
- In the menu go to
Product->Archive. Wait until the build finishes and a window opens - Click on "Validate App"
- Click on "Distribute App"
