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

Flutter CI/CD with Fastlane

Flutter CI/CD with Fastlane

Enzo Lizama Paredes

September 17, 2019
Tweet

More Decks by Enzo Lizama Paredes

Other Decks in Programming

Transcript

  1. Enzo Lizama Paredes GDG Open @enzoftware Continious Delivery in Flutter

    with Fastlane Follow continuous integration and delivery best practices with Flutter, Fastlane.
  2. “Continuous Delivery is the ability to get changes of all

    types—including new features, configuration changes, bug fixes and experiments—into production, or into the hands of users, safely and quickly in a sustainable way.” - Jez Humble - https://continuousdelivery.com/
  3. • Low risk releases • Higher quality • Lower costs

    • Better products • Happier teams Why Continous Delivery?
  4. lane :beta do increment_build_number build_app upload_to_testflight end lane :release do

    capture_screenshots build_app upload_to_app_store # Upload the screenshots and the binary to iTunes slack # Let your team-mates know the new version is live end
  5. lane :up_version_code do path = '../app/build.gradle' re = /versionCode\s+(\d+)/ s

    = File.read(path) versionCode = s[re, 1].to_i s[re, 1] = (versionCode + 1).to_s f = File.new(path, 'w') f.write(s) f.close end
  6. //.circleci/config.yml version: 2 jobs: build: docker: - image: cirrusci/flutter steps:

    - checkout - run: flutter doctor - run: flutter test - run: flutter -v build apk