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
Riverpod 移行を支えた LivMap のアーキテクチャ
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Chooyan
October 06, 2024
1.4k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Riverpod 移行を支えた LivMap のアーキテクチャ
Findy 主催「Flutter技術構成を紐解く クロスプラットフォーム開発の裏側」の LT 資料です。
https://findy.connpass.com/event/331062/
Chooyan
October 06, 2024
Transcript
11 slides
Riverpod 移行を支えた LivMap のアーキテクチャ ちゅーやん(中條 剛) @chooyan_i18n
https://livmap.co/
View input / output BusinessLogic データの流れ Repository データベース操作 LivMap のアーキテクチャ(ざっくり)
依存の方向
課題から考える 副業参加のメンバーが多い テストの体制が薄い 同機能の別アプリを作りたい バックエンドの役割が薄い Firebase が使えない別アプリがあり得る リアルな移動を伴うメイン機能がある いずれは Riverpod
に移行する ルールは最小限にする 自動テストの書きやすさを考える View を分離する BusinessLogic をひとつの層として設ける Repository を差し替え可能にする GPS を差し替え可能にする 状態管理パッケージは View のみが依存する から から から から から から から
View Business Logic Repository LivMap のアーキテクチャ (もう少し広い目で) Provider
View Business Logic Repository Riverpod 移行 Provider
View Business Logic Repository Riverpod 移行
Riverpod 移行 • View のみの修正 • 機能ごとの違いはほぼ影響無し • 「アプリ全体書き直し」感はなかった! •
依存関係を整理すると修正範囲を限定できる、を体験できた
課題 • 日々の開発に活かせていない ◦ ❌ とりあえず守ってもらう ◦ 🙆 開発効率アップに活用する •
守れていない部分も多々ある • 「テストが書きやすい」≠「テストが書けている」
“最適なアーキテクチャは変化するもの” ご清聴ありがとうございました
あわせて読みたい https://zenn.dev/chooyan/articles/eefc76dbd2ba25
More Decks by Chooyan
See All by Chooyan
新規アプリ開発で Xamarin導入を見送った話
chooyan244
0
170
Azureもくもく会 #21 成果発表LT資料
chooyan244
0
310
CodeYourRubyでRubyを仕事にする全てのエンジニアに貢献する
chooyan244
1
320
CodeYourRubyでRubyを仕事にする全てのエンジニアに貢献する.pdf
chooyan244
0
280
Featured
See All Featured
A designer walks into a library…
pauljervisheath
211
25k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
620
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
2
4k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
1
310
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
700
Un-Boring Meetings
codingconduct
0
510
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
690
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
680
It's Worth the Effort
3n
188
30k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k