• Home
  • Insight
  • Blog
  • Business
  • Entertainment
  • Health
  • Politics
  • Shop
    • Gift Shop
    • Value Shop
    • Store
    • Bargain Shop
    • Discount
  • Sports
  • Tech
  • Travel
  • USA
  • Video
  • World
    • Asia
    • Africa
    • South America
    • North America
    • Europe
    • Oceania
Tuesday, March 17, 2026
No Result
View All Result
Subscribe Now
  • Home
  • Insight
  • Blog
  • Business
  • Entertainment
  • Health
  • Politics
  • Shop
    • Gift Shop
    • Value Shop
    • Store
    • Bargain Shop
    • Discount
  • Sports
  • Tech
  • Travel
  • USA
    Jordin Sparks reveals whether ‘American Idol’ stiffed her after Kelly Clarkson confession

    Jordin Sparks reveals whether ‘American Idol’ stiffed her after Kelly Clarkson confession

    L.A. sheriff’s deputy made K a month on crypto mogul’s payroll. Now he’ll do five years in prison

    L.A. sheriff’s deputy made $20K a month on crypto mogul’s payroll. Now he’ll do five years in prison

    5th member of Iranian women’s soccer team gives up asylum in Australia : NPR

    5th member of Iranian women’s soccer team gives up asylum in Australia : NPR

    Poll: Trump era tilts US allies toward Beijing

    Poll: Trump era tilts US allies toward Beijing

    Headless victim in 1976 New York cold case identified through DNA: police

    Headless victim in 1976 New York cold case identified through DNA: police

    What’s Good? – The New York Times

    What’s Good? – The New York Times

    Israel’s Deadly Blockade Traps 7 U.S. Doctors in Gaza

    Israel’s Deadly Blockade Traps 7 U.S. Doctors in Gaza

    Carney announces billions for defense and infrastructure in Canada’s North

    Carney announces billions for defense and infrastructure in Canada’s North

    Right-wing media’s Mamdani outrage fuels GOP anti-Muslim rhetoric

    Right-wing media’s Mamdani outrage fuels GOP anti-Muslim rhetoric

  • Video
  • World
    • Asia
    • Africa
    • South America
    • North America
    • Europe
    • Oceania
The Insight Post
  • Home
  • Insight
  • Blog
  • Business
  • Entertainment
  • Health
  • Politics
  • Shop
    • Gift Shop
    • Value Shop
    • Store
    • Bargain Shop
    • Discount
  • Sports
  • Tech
  • Travel
  • USA
    Jordin Sparks reveals whether ‘American Idol’ stiffed her after Kelly Clarkson confession

    Jordin Sparks reveals whether ‘American Idol’ stiffed her after Kelly Clarkson confession

    L.A. sheriff’s deputy made K a month on crypto mogul’s payroll. Now he’ll do five years in prison

    L.A. sheriff’s deputy made $20K a month on crypto mogul’s payroll. Now he’ll do five years in prison

    5th member of Iranian women’s soccer team gives up asylum in Australia : NPR

    5th member of Iranian women’s soccer team gives up asylum in Australia : NPR

    Poll: Trump era tilts US allies toward Beijing

    Poll: Trump era tilts US allies toward Beijing

    Headless victim in 1976 New York cold case identified through DNA: police

    Headless victim in 1976 New York cold case identified through DNA: police

    What’s Good? – The New York Times

    What’s Good? – The New York Times

    Israel’s Deadly Blockade Traps 7 U.S. Doctors in Gaza

    Israel’s Deadly Blockade Traps 7 U.S. Doctors in Gaza

    Carney announces billions for defense and infrastructure in Canada’s North

    Carney announces billions for defense and infrastructure in Canada’s North

    Right-wing media’s Mamdani outrage fuels GOP anti-Muslim rhetoric

    Right-wing media’s Mamdani outrage fuels GOP anti-Muslim rhetoric

  • Video
  • World
    • Asia
    • Africa
    • South America
    • North America
    • Europe
    • Oceania
No Result
View All Result
No Result
View All Result
Home Mobile

Flutter のコードプッシュを Shorebird と Codemagic で自動化する

by Theinsightpost
February 26, 2025
in Mobile
0 0
0
Flutter のコードプッシュを Shorebird と Codemagic で自動化する

本記事は、佐藤将来が執筆しました。

この記事で出来るようになること

Shorebird を Codemagic へ連携することで、ストアからのインストールを必要とせずに Dart コードの変更をコードプッシュするワークフローを組み込むことが出来るようになります。

以下の例では、 アプリの UI 上に表示しているテキストの変更が即時反映されています:

Shorebird とは

Shorebirdは Flutter アプリケーション専用のコードプッシュ機能を提供するサービスです。コードプッシュによって、開発者はストアへのリリースを必要とせずにユーザーのデバイスに直接アップデートを反映することができます。つまり、Shorebird を活用することで、Flutter 開発者は Play Store や App Store といった各プラットフォーム上でのガイドラインに準拠しながら効率的にアプリの Dart コードのアップデートを管理することが出来ます。

Shorebird 初期設定

まずは、Shorebird へサインアップして、以下の手順で CLI ツールを使ってみましょう:

  1. こちら より、 Shorebird の無料アカウントを作成します。

  2. Shorebird の CLI を自身の PC へインストールしましょう。

    以下のコマンドをターミナルで実行します:

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

    上記のコマンドを使用せずに手動で CLI をインストールすることも可能です。詳細については、Shorebird 公式ドキュメント をご覧ください。

  3. ログイン

    shorebird login コマンドを実行して、ステップ1で作成したアカウントにログインします。

  4. Shorebird の初期化

    shorebird init コマンドを実行して shorebird.yaml を作成し、AndroidManifest.xml に INTERNET 権限を追加します:

    Shorebird コンソール にアプリが追加されます:

  5. Shorebird 認証トークンの作成

    Shorebird のコードプッシュはこの CLI ツールだけで実行できますが、今回は Codemagic の CI/CD と連携して自動化する方法を紹介します。CI サーバーで Shorebird を使用するには、Shorebird 認証トークンを生成し、CI 環境にインポートする必要があります。

    トークンを生成するには、ローカルマシンのターミナルを開き、以下のコマンドを実行します:

    これにより、Codemagic に暗号化されてワークフロー上で変数として利用できる認証トークンが返されます。

    後で Codemagic の設定に必要となるため紛失しないように保管しておいてください。

Codemagic とは

ここからは Codemagic を使った手順に入っていきますが、簡単に Codemagic についてご紹介します。

Codemagic とは、Flutter 開発に特化した、テストやビルド、デプロイを自動化する CI/CD ツールです。iOS, Android や React Native など、様々なプロジェクトにおいて利用できますが、Flutter プロジェクトでは Workflow Editor という GUI ツールを用いることが出来ます。これにより、yaml ファイルなどの専用ファイルの作成を必要とせずに直感的な操作による開発が可能です。

個人利用であれば無料で使い始めることが出来、十分な無料枠(毎月500分)を提供しています。料金の詳細については こちら をご覧ください。

前提条件

  • 環境の Flutter バージョンは 3.24.0 以降であること
  • Codemagic の Workflow Editor 上で Distribution プロセスが有効化されていること

ストアへのリリース

この記事では、Google Play と App Store Connect の内部テストを使用して、自身の実機にて動作を確認する手順を紹介します。

サンプルリポジトリは こちら にあるので、必要に応じて適宜ご覧ください。

Android

まず、Workflow Editor を開き、プラットフォームが Android に設定されていることを確認します:

尚、既存のワークフローを複製することでも新規ワークフローが作成できます:

以下の Release を選択します:

Shorebird セクション(Tests セクションの後に表示されています)で、先ほど作成した Shorebird Auth トークンを設定します:

Distribution セクションで、Track として Internal Testing を指定します:

該当のブランチを選択し、ビルドを開始しましょう。

ビルドが成功すると、ドラフト状態で Google Play コンソール上にアップロードされるので、以下のように保存して公開状態にしましょう。

iOS

Workflow Editor でプラットフォームが iOS に設定されていることを確認します:

以下の Release を選択します:

Shorebird セクションにて、Shorebird の Auth トークンを設定します:

Distribution セクションにて、App Store Connect への配信が有効化されていることを確認してください。

該当のブランチを選択し、ビルドを開始しましょう。

ビルドが成功したら、App Store Connect 上から内部テストとして自身へ配信しましょう:

アプリをインストールする

このアプリをご自身のデバイスへインストールしてください。今回の例では、以下のように Hello World! のテキストがこの時点では表示されています。

Dart コードの更新

画面上で変更差分が分かりやすいように、テキストを以下のように更新しましょう。コードプッシュにより反映が可能なのは Dart コードのみなことにご注意ください。

Before:

After:

Text('Hello World from Shorebird code push!')

上記の変更をコミットして、対応するリモートブランチにプッシュします。

パッチの反映

では、Workflow Editor 上で、変更をコードプッシュしていきましょう。

以下のように Patch を選択して進めていきます:

Shorebird セクションでは、変更を適用したいリリースバージョンを指定します。常に最新版に対して適用したい場合は、空欄のままで問題ありません。

Android では、一時的に Google Play コンソールへの提出を一時的に停止します:

iOS では、一時的に App Store Connect への提出を一時的に停止します:

※ 同時にストアにもアップロードしたい場合、 pubspec.yaml で指定しているバージョン表記をインクリメントしておく必要があることに注意してください。詳しくは こちら をご覧ください。

この状態でワークフローの変更を保存して、再度ビルドしましょう。

ビルドが成功すると、Shorebird のコンソール上にもパッチの配布状況が反映されます。

数分待ってからアプリを2回再起動します。

※ アップデート時の挙動についての詳細は、こちら の Shorebird 公式ドキュメントをご覧ください

以下のように、ストアを経由することなく UI が更新されています?

終わりに

お疲れ様でした?

今回のデモを通して、コードプッシュによるアップデートの便利さがお分かりいただけたかと思います。そしてこのコードプッシュは、今回のように CI/CD ワークフローの中に組み込まれ自動化されることでより利便性が向上します。

何かご質問やお困りごとありましたら、サポートコミュニティにご相談ください?

If you’ve already enabled billing, you can also get support from the in-app chat widget in the bottom right corner of the page.

これからも Codemagic を使って快適に開発を楽しんでいきましょう!

ShareTweetSend
Previous Post

Volklec eyes £1bn gigafactory plan as it signs deal with Chinese manufacturer

Next Post

SHAKTIMAAN – HINDI Trailer | Ranveer Singh | Rashmika Mandanna | Mukesh Khanna | PEOPLE’S SUPERHERO

Related News

La casa inteligente nunca ha funcionado del todo, pero ahora tiene IA
Mobile

La casa inteligente nunca ha funcionado del todo, pero ahora tiene IA

March 17, 2026
Get inspired and take your apps to desktop
Mobile

Get inspired and take your apps to desktop

March 16, 2026
How To Deploy .NET Apps To Containers On AWS?
Mobile

How To Deploy .NET Apps To Containers On AWS?

March 16, 2026
10 Best Apps Like QooApp: QooApp Alternatives in 2024
Mobile

10 Best Apps Like QooApp: QooApp Alternatives in 2024

March 15, 2026
Next Post
SHAKTIMAAN – HINDI Trailer | Ranveer Singh | Rashmika Mandanna | Mukesh Khanna | PEOPLE’S SUPERHERO

SHAKTIMAAN - HINDI Trailer | Ranveer Singh | Rashmika Mandanna | Mukesh Khanna | PEOPLE’S SUPERHERO

Discussion about this post

Subscribe To Our Newsletters

    Customer Support


    1251 Wilcrest Drive
    Houston, Texas
    77042 USA
    Call-832.795.1420
    e-mail – news@theinsightpost.com

    Subscribe To Our Newsletters

      Categories

      • Africa
      • Africa-East
      • African Sports
      • American Sports
      • Arts
      • Asia
      • Australia
      • Business
      • Business Asia
      • Business- Africa
      • Canada
      • Defense
      • Education
      • Egypt
      • Energy
      • Entertainment
      • Europe
      • European Soccer
      • Finance
      • Germany
      • Ghana
      • Health
      • Insight
      • International
      • Investing
      • Japan
      • Latest Headlines
      • Life & Living
      • Markets
      • Mobile
      • Movies
      • New Zealand
      • Nigeria
      • Politics
      • Scholarships
      • Science
      • South Africa
      • South America
      • Sports
      • Tech
      • Travel
      • Travel-Africa
      • UK
      • USA
      • Weather
      • World
      No Result
      View All Result

      Recent News

      Senegal stripped of AFCON title, Morocco declared winner months after controversial final

      Senegal stripped of AFCON title, Morocco declared winner months after controversial final

      March 17, 2026
      Iowa Senate panel blocks anti-DEI bill targeting private colleges

      Iowa Senate panel blocks anti-DEI bill targeting private colleges

      March 17, 2026
      The Thursday Murder Club | Official Trailer | Netflix

      The Thursday Murder Club | Official Trailer | Netflix

      March 17, 2026
      Circulatory diseases responsible for one-third of deaths in the EU in 2023

      Circulatory diseases responsible for one-third of deaths in the EU in 2023

      March 17, 2026
      • Home
      • Advertise With Us
      • About Us
      • Corporate
      • Consumer Rewards
      • Forum
      • Privacy Policy
      • Social Trends

      Theinsightpost ©2026 | All Rights Reserved. Theinsightpost is an Elnegy LLC company, registered in Texas, USA

      Welcome Back!

      Login to your account below

      Forgotten Password?

      Retrieve your password

      Please enter your username or email address to reset your password.

      Log In

      Add New Playlist

      We are using cookies to give you the best experience on our website.

      You can find out more about which cookies we are using or switch them off in .

      No Result
      View All Result
      • Home
      • Insight
      • Blog
      • Business
      • Entertainment
      • Health
      • Politics
      • Shop
        • Gift Shop
        • Value Shop
        • Store
        • Bargain Shop
        • Discount
      • Sports
      • Tech
      • Travel
      • USA
      • Video
      • World
        • Asia
        • Africa
        • South America
        • North America
        • Europe
        • Oceania

      Theinsightpost ©2026 | All Rights Reserved. Theinsightpost is an Elnegy LLC company, registered in Texas, USA

      The Insight Post
      Powered by  GDPR Cookie Compliance
      Privacy Overview

      This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

      Strictly Necessary Cookies

      Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.

      Cookie Policy

      More information about our Cookie Policy