Skip to content

Latest commit

 

History

History
60 lines (42 loc) · 2.06 KB

Publish.md

File metadata and controls

60 lines (42 loc) · 2.06 KB

Steps to publish this app

  • 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

Android

  • 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 the flutterVersionCode (must be greater than the version code read from the developer console) and flutterVersionName:

    def flutterVersionCode = 'x'
    def flutterVersionName = '1.x.y'
  • Open common\application_constants.dart and update the version number

    const 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:

    image-20200706093154007

  • 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

iOS

  • Open a terminal and execute flutter clean ios then execute flutter 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"