saket
08/16/2019, 2:34 AM// Kotlin Native
expect class Feature
// Android
actual typealias Feature = AndroidFeature
where AndroidFeature is a class
// iOS
actual typealias Feature = iOSFeature
where iOSFeature is an interface
jw
08/16/2019, 2:37 AMinline class
works well here because you can provide an abstraction the encapsulates the original different types without paying the overhead of traditional interface/class encapsulation at runtime.jw
08/16/2019, 2:38 AMtypealias
and another would have to define a wrapper. It's hard to build something that typealiases
on every platform thoughsaket
08/16/2019, 2:42 AMjw
08/16/2019, 3:12 AMtypealias
to an inline class
on a single platform? I would have to try it again. It was for experimenting with making a multiplatform data/time library.jw
08/16/2019, 3:12 AMsaket
08/16/2019, 3:14 AMsaket
08/16/2019, 3:16 AMjw
08/16/2019, 3:17 AMsaket
08/16/2019, 3:49 PMsaket
08/16/2019, 10:38 PMkpgalligan
08/17/2019, 5:18 PMkpgalligan
08/17/2019, 5:19 PMkpgalligan
08/17/2019, 5:19 PMkpgalligan
08/17/2019, 5:20 PMkpgalligan
08/17/2019, 5:23 PMsaket
08/17/2019, 7:10 PMkpgalligan
08/17/2019, 7:12 PMsaket
08/17/2019, 7:14 PMsaket
on github.kpgalligan
08/17/2019, 7:15 PMkpgalligan
08/17/2019, 7:16 PMkpgalligan
08/17/2019, 7:16 PMkpgalligan
08/17/2019, 7:18 PMpublishToMavenLocal
on the firestore project.kpgalligan
08/17/2019, 7:19 PMkpg/cleaning_api_2
kpgalligan
08/17/2019, 7:20 PMkpgalligan
08/17/2019, 7:32 PMDocumentReference
, Iāve renamed get
to getDocument
. https://github.com/touchlab/FirestoreKMP/blob/kpg/cleaning_api_2/firestore/src/commonMain/kotlin/co/touchlab/firebase/firestore/DocumentReference.kt#L14kpgalligan
08/17/2019, 7:35 PMsaket
08/18/2019, 12:10 AMItās like having guests show up when you havenāt cleaned the placeHahah no worries. This looks like a good reference project for beginners like me. Thanks Kevin!