Share
Effective Multiplatform Architecture
Building multiplatform apps requires thinking about architecture a little differently than their single platform counterparts. Individually, each platform has their own norms and customs, filled with M's and V's and Promises, but they aren't alway a good fit to be shared with others. Often they have coupled relationships with the platforms for which they were designed that don't play nicely with others.
Over the past several months I've been migrating the Chicago Roboto app from a Kotlin first Android app to a multiplatform app, and have learned a lot about things that work well for one platform but not another, and how to make those feel a bit more native.
As I share the things I've learned with you, we'll discuss:
• Where to start the multiplatform conversion.
• Adapting native libraries
• Communicating between shared Kotlin code and native platforms
• Designing systems that non-Kotlin developers can get behind.
Ryan Harter
Annual Pro sale · Save $30
Have presentations of your own?
Share with private links, password protection, and more control over your work.
Transcript
108 slides
-
#DCNYC19 @rharter Multiplatform Auth API Database Login Feature User Repo
App Account Feature Library Feature Social Repo Content Repo Activity API Content API -
#DCNYC19 @rharter Multiplatform Auth API Database Login Feature User Repo
App Account Feature Library Feature Social Repo Content Repo Activity API Content API Auth API Database Login Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API -
#DCNYC19 @rharter Multiplatform Auth API Database Login Feature User Repo
App Account Feature Library Feature Social Repo Content Repo Activity API Content API -
#DCNYC19 @rharter Multiplatform Auth API Database Login Feature User Repo
Account Feature Library Feature Social Repo Content Repo Activity API Content API App App App -
#DCNYC19 @rharter Multiplatform Auth API Database Login Feature User Repo
Account Feature Library Feature Social Repo Content Repo Activity API Content API App App App -
#DCNYC19 @rharter Multiplatform App App Auth API Database Login Feature
User Repo Account Feature Library Feature Social Repo Content Repo Activity API Content API -
#DCNYC19 @rharter Modularize • Easier to migrate one module at
a time • “clean” architecture is important (MVI) • -
#DCNYC19 @rharter Modularize • Easier to migrate one module at
a time • “clean” architecture is important (MVI) • Inversion of Control (Dependency Injection) • -
#DCNYC19 @rharter Modularize • Easier to migrate one module at
a time • “clean” architecture is important (MVI) • Inversion of Control (Dependency Injection) • Minimal platform dependencies • -
#DCNYC19 @rharter Modularize • Easier to migrate one module at
a time • “clean” architecture is important (MVI) • Inversion of Control (Dependency Injection) • Minimal platform dependencies • Limit to View and Repo dependencies • -
#DCNYC19 @rharter Modularize • Easier to migrate one module at
a time • “clean” architecture is important (MVI) • Inversion of Control (Dependency Injection) • Minimal platform dependencies • Limit to View and Repo dependencies • LiveData -
#DCNYC19 @rharter Modularize • Easier to migrate one module at
a time • “clean” architecture is important (MVI) • Inversion of Control (Dependency Injection) • Minimal platform dependencies • Limit to View and Repo dependencies • LiveData -
#DCNYC19 @rharter Modularize Auth API Database Login Feature User Repo
App Account Feature Library Feature Social Repo Content Repo Activity API Content API -
#DCNYC19 @rharter Multiplatform Auth API Database Login Feature User Repo
App Account Feature Library Feature Social Repo Content Repo Activity API Content API -
#DCNYC19 @rharter Multiplatform Auth API Database Login Feature User Repo
Account Feature Library Feature Social Repo Content Repo Activity API Content API App Auth API Database Login Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API -
#DCNYC19 @rharter Multiplatform Auth API Database Login Feature User Repo
App Account Feature Library Feature Social Repo Content Repo Activity API Content API Auth API Database Login Feature User Repo Account Feature Library Feature Social Repo Content Repo Activity API Content API App -
#DCNYC19 @rharter Multiplatform Auth API Database Login Feature User Repo
App Account Feature Library Feature Social Repo Content Repo Activity API Content API Multiple Similar Apps Single App Multiple Different Apps App Auth API Database Login Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API Auth API Database Login Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API Auth API Database Login Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API -
#DCNYC19 @rharter Single App Auth API Database Login Feature User
Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API -
#DCNYC19 @rharter Single App Auth API Database Login Feature User
Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API • All functionality needs to be replicated • Can start anywhere • Same approach as new app -
#DCNYC19 @rharter Single App Auth API Database Login Feature User
Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API -
#DCNYC19 @rharter Single App Auth API Database Login Feature User
Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API -
#DCNYC19 @rharter Single App Auth API Database Login Feature User
Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API App -
#DCNYC19 @rharter Single App Auth API Database Login Feature User
Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API App -
#DCNYC19 @rharter Single App Auth API Database Login Feature User
Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API App -
#DCNYC19 @rharter Multiplatform Auth API Database Login Feature User Repo
App Account Feature Library Feature Social Repo Content Repo Activity API Content API Multiple Similar Apps Single App Multiple Different Apps Auth API Database Login Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API Auth API Database Login Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API App Auth API Database Login Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API App Auth API Database Login Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API -
#DCNYC19 @rharter Multiple Different Apps • Similar to modularization strategy
• Convert to MPP as you modularize • Pick a feature to convert • Start from the bottom App Auth API Database Login Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API -
#DCNYC19 @rharter Multiple Different Apps App Auth API Database Login
Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API -
#DCNYC19 @rharter Multiple Different Apps App Auth API Database Login
Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API -
#DCNYC19 @rharter Multiple Different Apps App Auth API Database Login
Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API -
#DCNYC19 @rharter Multiple Different Apps App Auth API Database Login
Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API -
#DCNYC19 @rharter Multiple Different Apps App Auth API Database Login
Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API -
#DCNYC19 @rharter Multiple Different Apps App Auth API Database Login
Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API -
#DCNYC19 @rharter Multiple Different Apps App Auth API Database Login
Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API -
#DCNYC19 @rharter Multiple Different Apps App Auth API Database Login
Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API -
#DCNYC19 @rharter Multiple Different Apps App Auth API Database Login
Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API -
#DCNYC19 @rharter Auth API Database Login Feature User Repo App
Account Feature Library Feature Social Repo Content Repo Activity API Content API App Multiple Different Apps -
#DCNYC19 @rharter Multiplatform Auth API Database Login Feature User Repo
App Account Feature Library Feature Social Repo Content Repo Activity API Content API Multiple Similar Apps Single App Multiple Different Apps App Auth API Database Login Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API Auth API Database Login Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API Auth API Database Login Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API -
#DCNYC19 @rharter Multiple Similar Apps • Multiple Approaches • New
Feature • Vertical Migration • Horizontal Migration • Choice depends on existing arch, teams, etc. • Can be done with many small PRs (i.e. reduce risk) Auth API Database Login Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API Auth API Database Login Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API -
#DCNYC19 @rharter Auth API Database Login Feature User Repo App
Account Feature Library Feature Social Repo Content Repo Activity API Content API Auth API Database Login Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API Auth API Database Login Feature User Repo Account Feature Library Feature Social Repo Content Repo Activity API Content API Auth API Database Login Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API App Similar Apps - New Features -
#DCNYC19 @rharter Database Login Feature User Repo App Account Feature
Library Feature Social Repo Content Repo Activity API Content API Auth API Database Login Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API Auth API Similar Apps - New Features Subscription Feature -
#DCNYC19 @rharter Database Login Feature User Repo App Account Feature
Library Feature Social Repo Content Repo Activity API Content API Auth API Database Login Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API Auth API Similar Apps - New Features Subscription Feature -
#DCNYC19 @rharter Database Login Feature User Repo App Account Feature
Library Feature Social Repo Content Repo Activity API Content API Auth API Database Login Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API Auth API Similar Apps - New Features Subscription Feature -
#DCNYC19 @rharter Subscription Feature Common expect interface UserRepository { suspend
fun getUser(): User suspend fun updateUser(user: User): User ... } -
#DCNYC19 @rharter Subscription Feature Common expect interface UserRepository { suspend
fun getUser(): User suspend fun updateUser(user: User): User ... } -
#DCNYC19 @rharter Subscription Feature Common expect interface UserRepository { suspend
fun getUser(): User suspend fun updateUser(user: User): User ... } iOS actual typealias UserRepository = backend.UserRepository JVM actual typealias UserRepository = com.example.myApp.backend.UserRepository -
#DCNYC19 @rharter Database Login Feature User Repo App Account Feature
Library Feature Social Repo Content Repo Activity API Content API Auth API Database Login Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API Auth API Similar Apps - New Features Subscription Feature -
#DCNYC19 @rharter Auth API Database Login Feature User Repo App
Account Feature Library Feature Social Repo Content Repo Activity API Content API Auth API Database Login Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API Auth API Database Login Feature User Repo Account Feature Library Feature Social Repo Content Repo Activity API Content API Auth API Database Login Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API App Similar Apps - Vertical -
#DCNYC19 @rharter Similar Apps - Vertical Database Login Feature User
Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API Auth API Database Login Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API Auth API -
#DCNYC19 @rharter Auth API Database Login Feature User Repo App
Account Feature Library Feature Social Repo Content Repo Activity API Content API Database Login Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API Auth API Similar Apps - Vertical -
#DCNYC19 @rharter Database Login Feature User Repo App Account Feature
Library Feature Social Repo Content Repo Activity API Content API Database Login Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API Auth API Similar Apps - Vertical -
#DCNYC19 @rharter Database Login Feature User Repo App Account Feature
Library Feature Social Repo Content Repo Activity API Content API Login Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API Auth API Database Similar Apps - Vertical -
#DCNYC19 @rharter Login Feature User Repo App Account Feature Library
Feature Social Repo Content Repo Activity API Content API Login Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API Auth API Database Similar Apps - Vertical -
#DCNYC19 @rharter User Repo Login Feature App Account Feature Library
Feature Social Repo Content Repo Activity API Content API Login Feature App Account Feature Library Feature Social Repo Content Repo Activity API Content API Auth API Database User Repo Similar Apps - Vertical -
#DCNYC19 @rharter Login Feature App Account Feature Library Feature Social
Repo Content Repo Activity API Content API Login Feature App Account Feature Library Feature Social Repo Content Repo Activity API Content API Auth API Database User Repo Similar Apps - Vertical -
#DCNYC19 @rharter Login Feature App Account Feature Library Feature Social
Repo Content Repo Activity API Content API App Account Feature Library Feature Social Repo Content Repo Activity API Content API Auth API Database User Repo Login Feature Similar Apps - Vertical -
#DCNYC19 @rharter Database Login Feature User Repo App Account Feature
Library Feature Social Repo Content Repo Activity API Content API Auth API App Similar Apps - Vertical -
#DCNYC19 @rharter Auth API Database Login Feature User Repo Account
Feature Library Feature Social Repo Content Repo Activity API Content API App Auth API Database Login Feature User Repo Account Feature Library Feature Social Repo Content Repo Activity API Content API App Similar Apps - Horizontal -
#DCNYC19 @rharter Database Login Feature User Repo Account Feature Library
Feature Social Repo Content Repo Activity API Content API Auth API Database Login Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API Auth API App Similar Apps - Horizontal -
#DCNYC19 @rharter Database Login Feature User Repo Account Feature Library
Feature Social Repo Content Repo Activity API Content API Auth API Database Login Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API Auth API App Similar Apps - Horizontal -
#DCNYC19 @rharter Database User Repo Account Feature Library Feature Social
Repo Content Repo Activity API Content API Auth API Database Login Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API Auth API App Similar Apps - Horizontal -
#DCNYC19 @rharter Database User Repo Account Feature Library Feature Social
Repo Content Repo Activity API Content API Auth API Database Login Feature User Repo App Library Feature Social Repo Content Repo Activity API Content API Auth API App Similar Apps - Horizontal Account Feature Account Feature Library Feature -
#DCNYC19 @rharter Database User Repo Social Repo Content Repo Activity
API Content API Auth API Database Login Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API Auth API App Similar Apps - Horizontal User Repo Social Repo Content Repo -
#DCNYC19 @rharter Login Feature User Repo App Account Feature Library
Feature Social Repo Content Repo App Similar Apps - Horizontal Database Activity API Content API Auth API Database Activity API Content API Auth API Auth API Database Activity API Content API -
#DCNYC19 @rharter Database User Repo Account Feature Library Feature Social
Repo Content Repo Activity API Content API Auth API Database Login Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API Auth API App Similar Apps - Horizontal -
#DCNYC19 @rharter Login Feature Feature Layer • Interface with platform
implementations • Views • Repositories (or Use Cases) • Connected at both front and back • How to observe values? -
#DCNYC19 @rharter Login Feature Feature Layer To Repositories To View
? ☵ !☵ !☵ ViewActions -
#DCNYC19 @rharter Login Feature Feature Layer To Repositories To View
☵ !☵ !☵ ViewActions ViewState -
#DCNYC19 @rharter Login Feature Feature Layer To Repositories To View
☵ !☵ !☵ ViewActions ViewState ☵ -
#DCNYC19 @rharter Login Feature Feature Layer To Repositories To View
☵ !☵ !☵ ViewActions ViewState -
#DCNYC19 @rharter Login Feature Feature Layer To Repositories To View
☵ !☵ !☵ ViewActions ViewState !⚛ -
#DCNYC19 @rharter ⚛ Common package org.reactivestreams.mpp expect interface Subscriber<T> {
fun onSubscribe(s: Subscription) fun onNext(t: T) fun onError(t: Throwable) fun onComplete() } -
#DCNYC19 @rharter ⚛ Common JVM package org.reactivestreams.mpp actual typealias Subscriber<T>
= org.reactivestreams.Subscriber<T> package org.reactivestreams.mpp expect interface Subscriber<T> { fun onSubscribe(s: Subscription) fun onNext(t: T) fun onError(t: Throwable) fun onComplete() } -
#DCNYC19 @rharter ⚛ package org.reactivestreams.mpp actual interface Subscriber<T> { actual
fun onSubscribe(s: Subscription) actual fun onNext(t: T) actual fun onError(t: Throwable) actual fun onComplete() } Common JVM iOS package org.reactivestreams.mpp actual typealias Subscriber<T> = org.reactivestreams.Subscriber<T> package org.reactivestreams.mpp expect interface Subscriber<T> { fun onSubscribe(s: Subscription) fun onNext(t: T) fun onError(t: Throwable) fun onComplete() } -
#DCNYC19 @rharter ⚛ package org.reactivestreams.mpp actual interface Subscriber<T> { actual
fun onSubscribe(s: Subscription) actual fun onNext(t: T) actual fun onError(t: Throwable) actual fun onComplete() } class BlockSubscriber<T>( private val onNextBlock: (T) -> Unit, private val onErrorBlock: (Throwable) -> Unit, private val onCompleteBlock: () -> Unit ) : Subscriber<T>, Disposable { ... } Common JVM iOS package org.reactivestreams.mpp actual typealias Subscriber<T> = org.reactivestreams.Subscriber<T> package org.reactivestreams.mpp expect interface Subscriber<T> { fun onSubscribe(s: Subscription) fun onNext(t: T) fun onError(t: Throwable) fun onComplete() } -
#DCNYC19 @rharter ⚛ package org.reactivestreams.mpp actual interface Subscriber<T> { actual
fun onSubscribe(s: Subscription) actual fun onNext(t: T) actual fun onError(t: Throwable) actual fun onComplete() } class BlockSubscriber<T>( private val onNextBlock: (T) -> Unit, private val onErrorBlock: (Throwable) -> Unit, private val onCompleteBlock: () -> Unit ) : Subscriber<T>, Disposable { ... } iOS extension Reactive_streams_mppPublisher { func subscribe<T: AnyObject>( onNext onNextBlock: @escaping (T) -> Void, onError onErrorBlock: @escaping (Error) -> Void, onComplete onCompleteBlock: @escaping () -> Void ) -> Disposable { let subscriber = BlockSubscriber<T>( onNextBlock: onNextBlock, onErrorBlock: onErrorBlock, onCompleteBlock: onCompleteBlock ) subscribe(s: subscriber) return subscriber } } iOS - Swift -
#DCNYC19 @rharter Login Feature Feature Layer To Repositories To View
☵ !☵ !☵ ViewActions ViewState !⚛ -
#DCNYC19 @rharter Login Feature ViewModel Common package com.chicagoroboto.features.shared expect interface
ViewModel<ViewState : Any> { val viewState: Flow<ViewState> } -
#DCNYC19 @rharter Login Feature JVM ViewModel Common package com.chicagoroboto.features.shared expect
interface ViewModel<ViewState : Any> { val viewState: Flow<ViewState> } package com.chicagoroboto.features.shared actual interface ViewModel<ViewState : Any> { actual val viewState: Flow<ViewState> } -
#DCNYC19 @rharter Login Feature Common JVM package com.chicagoroboto.features.shared expect interface
ViewModel<ViewState : Any> { val viewState: Flow<ViewState> } ViewModel package com.chicagoroboto.features.shared actual interface ViewModel<ViewState : Any> { actual val viewState: Flow<ViewState> } iOS package com.chicagoroboto.features.shared actual interface ViewModel<ViewState : Any> { actual val viewState: Flow<ViewState> fun viewState(): Publisher<ViewState> = viewState.asPublisher() } fun viewState(): Publisher<ViewState> = viewState.asPublisher() -
#DCNYC19 @rharter Login Feature ViewModel Common JVM package com.chicagoroboto.features.shared expect
interface ViewModel<ViewState : Any> { val viewState: Flow<ViewState> } package com.chicagoroboto.features.shared actual interface ViewModel<ViewState : Any> { actual val viewState: Flow<ViewState> } iOS package com.chicagoroboto.features.shared actual interface ViewModel<ViewState : Any> { actual val viewState: Flow<ViewState> fun viewState(): Publisher<ViewState> = viewState.asPublisher() } fun viewState(): Publisher<ViewState> = viewState.asPublisher() -
#DCNYC19 @rharter Login Feature SessionListViewModel class SessionListViewModel( private val sessionRepo:
SessionRepository, speakerRepo SpeakerRepository, favoriteRepo: FavoriteRepository ) : ViewModel<SessionListViewState> { private val dateChannel = ConflatedBroadcastChannel<String>() private val sessionFlow: Flow<List<Session>> = dateChannel.asFlow() .flatMapConcat { sessionRepo.sessionsForDate(it) } private val speakerFlow: Flow<List<Speaker>> = speakerRepo.getSpeakers() private val favoriteFlow: Flow<Set<String>> = favoriteRepo.getFavorites() override val viewState = combine(sessionFlow, speakerFlow, favoriteFlow) { sessions, speakers, favorites -> SessionListViewState(date, viewSessions) } } -
#DCNYC19 @rharter Login Feature SessionListViewModel override val viewState = combine(sessionFlow,
speakerFlow, favoriteFlow) { sessions, speakers, favorites -> SessionListViewState(date, viewSessions) } class SessionListViewModel( private val sessionRepo: SessionRepository, speakerRepo SpeakerRepository, favoriteRepo: FavoriteRepository ) : ViewModel<SessionListViewState> { private val dateChannel = ConflatedBroadcastChannel<String>() private val sessionFlow: Flow<List<Session>> = dateChannel.asFlow() .flatMapConcat { sessionRepo.sessionsForDate(it) } private val speakerFlow: Flow<List<Speaker>> = speakerRepo.getSpeakers() private val favoriteFlow: Flow<Set<String>> = favoriteRepo.getFavorites() override val viewState = combine(sessionFlow, speakerFlow, favoriteFlow) { sessions, speakers, favorites -> SessionListViewState(date, viewSessions) } } -
#DCNYC19 @rharter iOS App .subscribe( onNext: { [weak self] (state:
SessionListViewState) in self?.sessions = state.sessions }, onError: { error in NSLog("Failed to load state.", error) }, onComplete: { NSLog("onComplete") } ) class SessionListViewController: UICollectionViewController { override func viewDidLoad() { super.viewDidLoad() disposables <= self.viewModel.viewState() .subscribe( onNext: { [weak self] (state: SessionListViewState) in self?.sessions = state.sessions }, onError: { error in NSLog("Failed to load state.", error) }, onComplete: { NSLog("onComplete") } ) self.viewModel.setDate(date: self.date) } } -
#DCNYC19 @rharter iOS App .subscribe( onNext: { [weak self] (state:
SessionListViewState) in self?.sessions = state.sessions }, onError: { error in NSLog("Failed to load state.", error) }, onComplete: { NSLog("onComplete") } ) class SessionListViewController: UICollectionViewController { override func viewDidLoad() { super.viewDidLoad() disposables <= self.viewModel.viewState() .subscribe( onNext: { [weak self] (state: SessionListViewState) in self?.sessions = state.sessions }, onError: { error in NSLog("Failed to load state.", error) }, onComplete: { NSLog("onComplete") } ) self.viewModel.setDate(date: self.date) } } -
#DCNYC19 @rharter Login Feature Common JVM package com.chicagoroboto.features.shared expect interface
ViewModel<ViewState : Any> { val viewState: Flow<ViewState> } ViewModel package com.chicagoroboto.features.shared actual interface ViewModel<ViewState : Any> { actual val viewState: Flow<ViewState> } iOS package com.chicagoroboto.features.shared actual interface ViewModel<ViewState : Any> { actual val viewState: Flow<ViewState> fun viewState(): Publisher<ViewState> = viewState.asPublisher() } fun viewState(): Publisher<ViewState> = viewState.asPublisher() -
#DCNYC19 @rharter Login Feature Feature Layer To Repositories To View
☵ !☵ !☵ ViewActions ViewState !⚛ -
#DCNYC19 @rharter Database User Repo Account Feature Library Feature Social
Repo Content Repo Activity API Content API Auth API Database Login Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API Auth API App Similar Apps - Horizontal -
#DCNYC19 @rharter Login Feature User Repo App Account Feature Library
Feature Social Repo Content Repo App Similar Apps - Horizontal Auth API Database Activity API Content API -
#DCNYC19 @rharter Multiplatform Auth API Database Login Feature User Repo
App Account Feature Library Feature Social Repo Content Repo Activity API Content API Multiple Similar Apps Single App Multiple Different Apps App Auth API Database Login Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API Auth API Database Login Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API Auth API Database Login Feature User Repo App Account Feature Library Feature Social Repo Content Repo Activity API Content API