Aller au contenu principal

CONFIGURATION GUIDE

Enabling Live Updates with Shorebird

We've reached our final configuration - setting up Shorebird to enable over-the-air updates for your Flutter apps. This powerful feature lets you update your apps without going through the app stores.

New to Shorebird?

Creating a Shorebird Account

  1. Head to shorebird.dev
  2. Click "Sign Up"
  3. Choose your authentication method:
    • GitHub
    • Google
    • Email
  4. Select your plan:
    • Free tier (Perfect for starting out)
    • Pro tier (For advanced features)
  5. Complete your profile setup

Setting Up the Shorebird CLI

Codika interacts with Shorebird through the CLI. Let's get it installed and connected to your account.

  1. Follow the installation steps on the Shorebird CLI installation page
  2. Once installed, connect it to your account using the shorebird login command. This will open your browser for authentication.

Adding Shorebird Credentials to Codemagic

Full Video

To give access to the Shorebird CLI, we need to add the Shorebird token to Codemagic. This is done by using the shorebird login:ci command. Run this command and copy the token. Now we need to add it to Codemagic as a global variable.

  1. Open your Codemagic Team settings
  2. Navigate to Global Variables and secrets
  3. Add a new variable with the name SHOREBIRD_TOKEN.
  4. Paste the token into the value field.
  5. For the group write shorebird and click on Create "shorebird" group.
  6. Make sure the Secure option is checked.
  7. Click Add to save.

What's Next?

You've completed all the one-time configurations needed to deploy your Flutter apps! Your development environment is now equipped with:

  • Automated deployment pipeline (Codemagic)
  • iOS distribution credentials
  • Android signing setup
  • Live update capabilities (Shorebird)

These configurations unlock the full potential of the Codika Framework, enabling you to focus on building great apps while we handle the infrastructure.

Ready for Your First App? 🚀

Now that your environment is fully configured, you're ready to dive into our First App Guide! This comprehensive tutorial will walk you through:

  • Creating a new Codika app from scratch
  • Using pre-built Codika components
  • Implementing authentication and data management
  • Deploying updates using the infrastructure you just set up

Head over to our First App Guide to start building your first production-ready Flutter app with Codika!