Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Shorebird について
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
oyuk
September 04, 2023
Programming
530
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Shorebird について
oyuk
September 04, 2023
Transcript
17 slides
Shorebird について Relic Tech MeetUp 11 2023/9/8 oyuk
自己紹介 oyuk(@oydku) プログラマ 株式会社 Relic で Flutter やってます。
Shorebird とは? Flutter で Code Push を実現するサービス [1] https://shorebird.dev/#products-code-push
Shorebird とは? Code Push Code Push とはユーザーの端末に対して直接アップデートを配信する事。 つまり iOS, Android
においてはストアの申請を通さずにアプリを更新できる。
Shorebird の使い方 1. curl --proto '=https' --tlsv1.2 https://raw.githubusercontent.com/shorebirdtech/install/main/install.sh -sSf |
bash 2. shorebird login 3. Shorebird を使いたいアプリのルートディレクトリで shorebird init [2] https://m3.material.io/foundations/layout/applying-layout/window-size-classes#6e960b82-eff3-4f1b-92d3- 5edb5e338f49
Shorebird の使い方 Release と Patch という概念が存在します。1 つの Release に対し 0
個以上のパッチが紐づ いているという関係になります。 Release アプリのバージョンを示す。Storeに公開するアプリのバージョンと同じにすると分かりやす い。 Patch Release に含まれる変更を指す。
Shorebird の使い方 1. Release を作成 i. shorebird release コマンドでビルドを生成 ii.
1.1で出力されたビルドをリリース 2. 実装を変更する 3. Patch を作成 i. shorebird patch でビルドを生成、Shorebirdのサーバにビルドをpush 4. アプリに適用(詳細は後述) 一つのリリースにつき手順2~4は複数回行われる想定
Shorebird の使い方 どうやってcode pushを実現しているか 起動時にpatchが適用されたビルドを取得している Flutter Engineの起動処理を一部書き換えて、起動時にコードを取得するように している。 ShorebirdのSDK内にShorebirdで必要な機能を入れたFlutter SDKが含まれてい
る。ShorebirdのコマンドはこのShorebird用Flutter SDKを用いてアプリをビル ドする。
Shorebird の使い方
Shorebird の使い方 実際にやってみた 動画で紹介
Shorebird の使い方 起動時にpatchを取得、適用するライブラリ updater は公開されている 。 updaterはRustで書かれている。Rustで書いてCのAPIとして公開。Flutter Engine(c++) はそのAPIを使用している 理由
DartVMが二つ起動するのを防ぎたい 複数の言語で updater を使用できるようにしたい [3] https://github.com/shorebirdtech/updater [4] https://docs.shorebird.dev/faq#why-are-some-parts-of-the-code-push-library-written-in-rust
Shorebird の使い方 updater の機能を切り出した shorebird_code_push というライブラリがある 。 これを使うとアプリ内で任意のタイミングでpatchをインストールする事が可能。 [5] https://pub.dev/packages/shorebird_code_push
Shorebird の使い方 任意のタイミングでpatchをインストールする例 push通知を起点にpatchをインストールする
Shorebird の使い方 ストアのポリシーに違反しないか? 違反していない アプリの挙動を大きく変える変更をするのはポリシー違反になる可能性がある [6] https://docs.shorebird.dev/faq#does-shorebird-comply-with-play-store-guidelines [7] https://docs.shorebird.dev/faq#does-shorebird-comply-with-app-store-guidelines
Shorebird の使い方 具体的なユースケース 不具合を修正したい場合 細かい機能アップデート [8] https://docs.shorebird.dev/faq#what-can-i-use-shorebird-code-push-for
Shorebird の使い方 料金 無料のHobbyプランがあるので気軽に試しやすい
Shorebird について まとめ ShorebirdはCode pushをするサービス 細かい機能追加、不具合修正を審査を通さずに実現可能 FAQが非常に充実している 本記事はShorebird 0.14.6時点の情報です。
More Decks by oyuk
See All by oyuk
Material designのWindow size classについて
oyuk
0
1.6k
Swiftでなんで[weak self]するのか?
oyuk
2
5.4k
LLVMについて調べた
oyuk
0
230
Swiftのmapからその次へ
oyuk
1
1.4k
Other Decks in Programming
See All in Programming
AWS CDKを理解するために公式の定義を深掘って解説してみる / Understanding AWS CDK by Digging into Its Official Definition
akihisaikeda
3
320
AIが生成したコードは読むべきか?抽象化設計とコードの品質保証 / abstraction-design-and-quality
minodriven
16
9.4k
例外からRich Errorsまで Kotlinエラーハンドリングの進化を読み解く
shiita0903
0
230
protojson における文字化けの扱い
kazuki1023
0
450
AIがコードを書いてくれる時代、我々は何を確かめるのか
yosuke_furukawa
PRO
13
6.1k
仕様駆動開発入門 (何を作るかを先に決めて渡す) | 目指せ Kiro マスター 05
inariku
PRO
3
210
Spec-driven Development with AI
simas
PRO
0
2.3k
GraphQL の onError と Nullability のこれから
quramy
0
220
AI Augmentation Techniques with Liberty
ivargrimstad
1
530
TS 7.0 で baseUrl が使えなくなった今、パスエイリアスをどうするか
bicstone
2
760
プロジェクトコードをキレイキレイしよう!暗黙的な参照を読み解く静的解析
ostk0069
0
220
Ruby から Emacs を操作したい
phigasui
0
370
Featured
See All Featured
Fantastic passwords and where to find them - at NoRuKo
philnash
53
4k
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.7k
Being A Developer After 40
akosma
PRO
92
590k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
340
How Software Deployment tools have changed in the past 20 years
geshan
3
35k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.4k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3.1k
Designing Powerful Visuals for Engaging Learning
tmiket
1
660
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
470
Paper Plane (Part 1)
katiecoart
PRO
3
12k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
310
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
330