- Check that you are on the
develop
branch 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.gradle
and 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.dart
and update the version numberconst String ApplicationVersion = "1.0.1";
-
Open
android\app\build.gradle
and 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.aab
file -
Write the change log
-
Save, verify and publish the release
- Open a terminal and execute
flutter clean ios
then executeflutter build ios
- Open the Runner project in Xcode
- In the menu go to
Product
->Scheme
and select "Runner" - In the menu go to
Product
->Destination
and 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"