Initialize Shorebird
To configure an existing Flutter project to use Shorebird, use shorebird init
at the root of a Flutter project:
This does three things:
- Tells Shorebird to create a unique
app_idfor your app. Thisapp_idis how Shorebird identifies your app and knows which updates to send to it. It does not need to be kept secret. - Creates a
shorebird.yamlfile in your project’s root directory.shorebird.yamlcontains theapp_idmentioned above. - Adds the
shorebird.yamlto the assets section of yourpubspec.yamlfile, ensuringshorebird.yamlis bundled with your app’s assets and is available to the Shorebird updater at runtime.
You can safely commit these changes; they will have no effect on your app when not using Shorebird.
Example output for an app named shorebird_test:
The generated shorebird.yaml should look similar to:
If your application contains flavors, shorebird init will create an app per
flavor and shorebird.yaml will include all flavors and their corresponding
app_ids:
What’s next
Section titled “What’s next”Create a ReleaseBuild and submit your app to Shorebird.
Preview LocallyTest your release on a local device before publishing.