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

Experience seamless production updates with Sho...

Gidudu wisdom nico
July 11, 2024
10

Experience seamless production updates with Shorebird in Flutter

In this session, attendees will learn about code push using Shorebird and how to use it in their Flutter applications.

Gidudu wisdom nico

July 11, 2024
Tweet

Transcript

  1. Experience seamless production updates with shorebird Shorebird is a code-push

    solution designed specifically for Flutter, providing stability on both Android and iOS platforms. With Shorebird, you can address app issues without publishing updates to the stores, streamlining the development process and reducing unnecessary delays. This allows you to update your Flutter app instantly over the air, without going through the store update process and directly deploy fixes and new features to your end users’ devices. Shorebird
  2. curl --proto '=https' --tlsv1.2 https://raw.githubusercontent.com/shorebirdtech/install/main/install.s h -sSf | bash (Mac/Linux)

    https://raw.githubusercontent.com/shorebirdtech/install/main/install.p s1'|iex (windows) Getting started
  3. This command configures your Flutter project to use Shorebird and

    creates a shorebird.yaml file which contains an app_id and uniquely Identifies your app during code push. Refer to the image below. shorebird init
  4. To start pushing updates, you will need to create a

    release. This command creates a production-ready release of your app and submits your app to Shorebird and by default, it creates an app bundle (.aab). You can also add the Flutter version you are currently running with shorebird release android --flutter-version=3.19.0 or shorebird release ios --flutter-version=3.19.0.where 3.19.0 is the version of Flutter you are currently running on your machine. shorebird release android/ ios
  5. You can preview your release on your physical device (android/ios)

    or emulator with shorebird preview. shorebird preview
  6. Once you have published a release of your app, you

    can push updates using one of the shorebird patch commands. i.e shorebird patch android or shorebird patch ios. This command does the following: 1. Builds the artifacts for the update. 2. Downloads the corresponding release artifacts. 3. Generates a patch using the diff between the release and the current changes. 4. Uploads the patch artifacts to the Shorebird backend. 5. Promotes the patch to the stable channel. shorebird patch