Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Release! Flutter app

Rui Kowase
March 29, 2018

Release! Flutter app

Rui Kowase

March 29, 2018
Tweet

More Decks by Rui Kowase

Other Decks in Technology

Transcript

  1. Profile • Name: Rui Kowase / 小和瀬 塁 • Account:

    @rkowase 2 Skill: Flutter (2 weeks), Android, etc...
  2. What’s Flutter Flutter makes it easy and fast to build

    beautiful mobile apps. https://github.com/flutter/flutter
  3. Feature • Build beautiful native apps in record time •

    Fast development • Expressive, beautiful UIs • Modern, reactive framework • Access native features and SDKs • Unified app development https://flutter.io/
  4. Dart 1 to Dart 2 13 Container( padding: EdgeInsets.all(16.0), child:

    Text("Flutter") ), Dart 1 new Container( padding: const EdgeInsets.all(16.0), child: new Text("Flutter") ), Dart 2
  5. Build production app for Android - Step1 (Create key.properties) 15

    storePassword=<password from previous step> keyPassword=<password from previous step> keyAlias=key storeFile=<location of the key store file, e.g. /Users/<username>/key.jks>
  6. Build production app for Android - Step2 (Edit build.gradle) 16

    +def keystorePropertiesFile = rootProject.file("key.properties") +def keystoreProperties = new Properties() +keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) android {
  7. Build production app for Android - Step3 (Edit build.gradle) 17

    +signingConfigs { + release { + keyAlias keystoreProperties['keyAlias'] + keyPassword keystoreProperties['keyPassword'] + storeFile file(keystoreProperties['storeFile']) + storePassword keystoreProperties['storePassword'] + } +} +buildTypes { + release { + signingConfig signingConfigs.release + } +}
  8. Build production app for Android - Step4 (flutter build apk)

    18 $ flutter build apk --preview-dart-2 Initializing gradle... 1.0s Resolving dependencies... 8.1s Running 'gradlew assembleRelease'... Skipping AOT snapshot build. Fingerprint match. Built build/app/outputs/apk/release/app-release.apk (9.2MB).
  9. Summary • Develop by Android Studio and VSCode • Flutter

    Documentation for Web/Android/ReactNative devs • Dart 2 ready • Build app of release version by terminal and IDE • Many contributing chance 20