Flutter Decoded.
esc

Type to search lessons, steps and concepts.

↑ ↓ move · ↵ open · esc close
Support
Language
Made with ♥ by Aman Singh · Support the projectNot affiliated with Google. Flutter and Dart are trademarks of Google LLC. Videos belong to their creators.
Course46 lessons
›01. Dart Foundations0/4
  1. Variables, Types & Null Safety
  2. Functions & Classes
  3. Futures, async/await & Streams
  4. Records, Patterns & Sealed Classes
›02. Flutter Fundamentals0/4
  1. Everything Is a Widget
  2. Stateless vs Stateful Widgets
  3. Widgets, Elements & RenderObjects
  4. Project Structure & Hot Reload
›03. Layout & UI0/6
  1. Constraints Go Down, Sizes Go Up
  2. Rows, Columns & Flex
  3. Stack, Positioned & Layering
  4. Lists, Grids & Slivers
  5. Responsive & Adaptive Design
  6. Theming with Material 3
›04. Interaction & Navigation0/4
  1. Taps, Gestures & Input
  2. Forms & Validation
  3. Navigator & Routes
  4. go_router & Deep Links
›05. State Management0/5
  1. Ephemeral vs App State
  2. InheritedWidget & Provider
  3. Riverpod
  4. The BLoC Pattern
  5. Choosing an Approach
›06. Data & Backend0/6
  1. HTTP & JSON
  2. Dio: Interceptors & Retries
  3. Saving Data Locally
  4. Firebase: Auth & Firestore
  5. Backend Options: Supabase, Appwrite & More
  6. Isolates & Heavy Work
›07. App Architecture0/3
  1. UI Layer & Data Layer
  2. Repositories & Dependency Injection
  3. Clean Architecture & Folder Structure
›08. Motion & Performance0/4
  1. Implicit Animations
  2. Explicit Animations
  3. Custom Painting
  4. Performance & DevTools
›09. Testing & Shipping0/4
  1. Unit, Widget & Integration Tests
  2. Environments & Flavors
  3. CI/CD & Releasing
  4. Flutter on the Web & Desktop
›10. Release Automation & Code Push0/6
  1. Codemagic: Your First Pipeline
  2. Codemagic: Code Signing
  3. Codemagic: Publish to the Stores
  4. Shorebird: Code Push for Flutter
  5. Shorebird: Safe Patching
  6. Shorebird in Codemagic
Progress0 / 46
Browse all videos →
10. Release Automation & Code Push / Lesson 6 / 6

Shorebird in Codemagic

Run Shorebird releases and patches from Codemagic with a service-account token, shared YAML anchors and workflow inputs.

6 minAdvanced4 steps
codemagic.yaml
1definitions:
2 environment:
3 shared_env: &shared_env
4 flutter: 3.50.1
5 groups:
6 - shorebird # SHOREBIRD_TOKEN from a service account
7 - play_store # GCLOUD_SERVICE_ACCOUNT_CREDENTIALS
8 scripts:
9 - &shorebird_install
10 name: Install Shorebird
11 script: |
12 curl -fsSL https://shorebird.dev/install.sh | bash
13 echo PATH="$HOME/.shorebird/bin:$PATH" >> $CM_ENV
14
15workflows:
16 release-android:
17 environment:
18 <<: *shared_env
19 android_signing:
20 - android_keystore
21 scripts:
22 - *shorebird_install
23 - name: Shorebird release
24 script: shorebird release android
25 publishing:
26 google_play:
27 credentials: $GCLOUD_SERVICE_ACCOUNT_CREDENTIALS
28 track: internal
29
30 patch-android:
31 environment:
32 <<: *shared_env
33 android_signing:
34 - android_keystore
35 inputs:
36 release_version:
37 description: The release version to patch
38 scripts:
39 - *shorebird_install
40 - name: Shorebird patch
41 script: |
42 shorebird patch android \
43 --release-version=${{ inputs.release_version }} \
44 --track=stable
Live simulatorCodemagic + Shorebird
◆release-android#127Ready
manualStart build from the UI
  1. Press Start build
$ waiting for logs…
Step 1 / 4

Authenticate CI with a token

In the Shorebird console create a service account and an API key, then save it in a Codemagic environment group as SHOREBIRD_TOKEN. The CLI reads it automatically, so no interactive login is needed.

You'll learn

  • SHOREBIRD_TOKEN from a service account
  • Installing Shorebird on the build machine
  • Release and patch workflows
  • Workflow inputs for the release version

Read the official docs

Shorebird + Codemagic ↗Shorebird CI overview ↗
1 / 4
← → step · Space pause · R replay