Shorebird in Flutter


Introducing Shorebird: Revolutionizing Flutter Development with Code Push Capability

Shorebird brings a groundbreaking change to the flutter development cycle by empowering developers to seamlessly integrate code push features into their apps.

How Shorebird Works:

With Shorebird, implementing code modifications is straightforward. Developers create a release and transmit it to their updater hosted on their server. Subsequently, they execute the patch command, prompting the server to hold a new patch derived from the code changes. Upon launching the app, it automatically checks for new patches. Upon detection, the app initiates background downloads, and the new patch is applied during the next app run.

Installation Made Easy:

Getting started with Shorebird is hassle-free. Follow these simple installation steps:

For MacOS/Linux:

Execute the following command in your terminal:

curl --proto '=https' --tlsv1.2 https://raw.githubusercontent.com/shorebirdtech/install/main/install.sh -sSf | bash

For Windows:

Open PowerShell and run:

Set-ExecutionPolicy RemoteSigned -scope CurrentUser 
iwr -UseBasicParsing 'https://raw.githubusercontent.com/shorebirdtech/install/main/install.ps1'|iex

Account Setup:

After installation, set up your Shorebird account directly from the terminal by running:

shorebird account create

Follow the subsequent Google OAuth2 instructions to complete the setup. Existing users can log in using:

shorebird login

Initializing Shorebird in Your Project:

Navigate to your Flutter project and initialize Shorebird by running:

shorebird init

During initialization, confirm the project name. Upon completion, you'll obtain a shorebird.yaml file containing the appId, development, and production appId, which will also be added to the pubspec.yaml file.

Fixing Required Changes:

Shorebird automatically fixes necessary changes like internet permissions in your manifest file, enabling seamless communication with Shorebird servers to download patches.

Creating a Release:

To create a release, execute the following commands:

For Android:

shorebird release android

For iOS:

shorebird release ios-alpha

For projects with different flavors, additional commands allow you to specify the target file and flavor.

Patching Your App:

Apply patches effortlessly with the patch command:

For Android:

shorebird patch android

For iOS:

shorebird patch ios-alpha

Ensure Correct Setup:

Run the shorebird doctor command to verify correct setup, similar to the flutter doctor utility." 

Post a Comment

Previous Post Next Post

Subscribe Us


Get tutorials, Flutter news and other exclusive content delivered to your inbox. Join 1000+ growth-oriented Flutter developers subscribed to the newsletter

100% value, 0% spam. Unsubscribe anytime