jw
10/20/2018, 11:47 PMursus
10/21/2018, 2:23 PMserepasf
10/22/2018, 12:46 AMserepasf
10/22/2018, 8:04 AMJakub
10/22/2018, 8:53 AMpablisco
10/22/2018, 10:57 AMEgor Trutenko
10/22/2018, 12:02 PMleolima
10/22/2018, 12:07 PMfetchAlbums().flatMap { album -> fetchPhotos(album.id).map { photos -> album to photos } }
would give you a pair of album / photosJakub
10/22/2018, 12:22 PMdialog
in my onClickListener
. Do you have any idea how to solve it?serepasf
10/23/2018, 8:02 AMSoundlicious
10/23/2018, 8:41 AMSanthosh
10/23/2018, 9:53 AMgreybeard1123
10/23/2018, 11:32 AMjw
10/23/2018, 1:24 PMnmthompson
10/23/2018, 3:07 PMamanda.hinchman-dominguez
10/23/2018, 4:59 PMSlackbot
10/23/2018, 6:00 PMTravis Griggs
10/23/2018, 8:54 PMtemp_man
10/23/2018, 10:59 PMursus
10/23/2018, 11:26 PMerikmedina
10/24/2018, 11:45 AMjurajsolarml
10/24/2018, 2:38 PMjw
10/24/2018, 5:22 PMrajkumar
10/25/2018, 12:55 AMti4n
10/25/2018, 2:22 AMJason
10/25/2018, 6:28 AMCamilleBC
10/25/2018, 10:38 AMkotlinx-android-extensions
. I'm using Android Studio v3.2.1 (Build #AI-181.5540.7.32.5056338).
If I comment out the plugin, then sync, then un-comment, and resync, the plugin works again.
Any idea how I could solve that?Sergio Crespo Toubes
10/25/2018, 3:05 PMursus
10/25/2018, 4:55 PMMatt Rea
10/25/2018, 8:52 PMsingle
declaration in your module? If you’re doing single<ComponentA>()
, I would change it to single { ComponentA(get(), get()) }
. Omitting parameters and having koin find them is experimental. As far as I can tell from the source code its based on reflection
https://github.com/InsertKoinIO/koin/blob/e159f2dd845990a9b5588d142692d132d7597708/koin-projects/koin-core/src/main/kotlin/org/koin/core/instance/InstanceHolder.kt
Here’s a Retrofit example in my app
val networkModule: Module = module {
single { createWebApi<AuthApi>(get<NetworkClient>().defaultRetrofit) }
single { createWebApi<MapBoxApi>(get<NetworkClient>().mapBoxRetrofit) }
}
inline fun <reified T> createWebApi(retrofit: Retrofit): T = retrofit.create(T::class.java)
Matt Rea
10/25/2018, 8:52 PMsingle
declaration in your module? If you’re doing single<ComponentA>()
, I would change it to single { ComponentA(get(), get()) }
. Omitting parameters and having koin find them is experimental. As far as I can tell from the source code its based on reflection
https://github.com/InsertKoinIO/koin/blob/e159f2dd845990a9b5588d142692d132d7597708/koin-projects/koin-core/src/main/kotlin/org/koin/core/instance/InstanceHolder.kt
Here’s a Retrofit example in my app
val networkModule: Module = module {
single { createWebApi<AuthApi>(get<NetworkClient>().defaultRetrofit) }
single { createWebApi<MapBoxApi>(get<NetworkClient>().mapBoxRetrofit) }
}
inline fun <reified T> createWebApi(retrofit: Retrofit): T = retrofit.create(T::class.java)
GurpreetSK
10/26/2018, 6:22 AM