Releasing to the Google Play Store
This guide walks through releasing a code push app to the Google Play Store and applying a patch to that release.
The app we will be releasing in this guide is
Time Shift,
our demo code push app. (source)
Prerequisites
Section titled “Prerequisites”This guide assumes that you have an existing Shorebird app. If you don’t have one, you can create one by following the code push quickstart guide.
Creating a release
Section titled “Creating a release”Determine next release version
Section titled “Determine next release version”Navigate to your app on the Shorebird console
to see the current set of releases. For our app, we see that the latest release
version is 1.0.2+5, so the version of our next release will be 1.0.3+6.
Make code changes
Section titled “Make code changes”Version 1.0.3+6 of Time Shift will change the default clock face from
particle to generative.
To make this change, edit lib/main.dart:
Verify that this change does what we expect by running the app with
shorebird run.
Once this change has been verified, commit this change and push it to GitHub:
Update app version
Section titled “Update app version”Next, bump the app version in pubspec.yaml:
Commit, tag, and push the change.
Create a Shorebird release
Section titled “Create a Shorebird release”To create a Shorebird release, run shorebird release android. You should see
output similar to the following:
Upload to the Play Store
Section titled “Upload to the Play Store”As per the instructions above, we must upload the generated .aab to the Play
Store.
- Navigate to the Play Console.
- Choose your developer account (for us, it’s Shorebird.dev).
- Select the Time Shift app.
- Select “Testing -> Open Testing” from the side bar.
- Click the “Create new release” button.

Upload the .aab file located at
./build/app/outputs/bundle/release/app-release.aab.
- From the root directory of the project, run
open ./build/app/outputs/bundle/release/to open the folder containing the.aabin Finder. - Drag
app-release.aabinto the Play Console to upload.
Once the upload completes, the Play Store will correctly recognize the new
version as 6 (1.0.3).

Click “Next” and then “Save” (both in the bottom-right corner) to submit.
This will take you to the publishing overview page. Click “Submit for review” to submit the release for review.
You should now see a release in the Play Store console with an “In review” status:

Now you must wait for the Play Store to approve the release.
Create a GitHub release
Section titled “Create a GitHub release”It’s recommended to create a GitHub release as well.
- Navigate to https://github.com/shorebirdtech/time_shift/releases.
- Click “Draft a new release”.
- Choose the tag we created earlier (
v1.0.3+6). - Title the release “v1.0.3+6”.
- Add a description of the release (“Changes the default clock face to ‘generative’”).
- Publish the release.
After the release is approved
Section titled “After the release is approved”Once the release has been approved, you will be able to download it from the Play Store.
Creating a patch
Section titled “Creating a patch”Patches can be pushed to fix bugs in the 1.0.3+6 release without requiring a
new submission to the Play Store.
Make the change
Section titled “Make the change”Start by checking out the v1.0.3+6 release tag:
Next, create a branch, as this change will represent a divergence from the
main branch:
For the purposes of this guide, we will change the default clock face back to
particle in lib/main.dart:
Commit the change and push our new patch branch:
Tag this commit as v1.0.3+6-patch1:
Create a Shorebird patch
Section titled “Create a Shorebird patch”Finally, push the patch with shorebird patch android. You should see output
similar to the following:
This patch will now be available to users with version 1.0.3+6 of the app.
Cleanup
Section titled “Cleanup”Delete the branch to keep the repository tidy: