Marius Kotsbak
01/25/2021, 2:17 PMTony Kazanjian
01/27/2021, 8:36 PMorg.koin:koin-androidx-viewmodel:$koin_version
versus just the basic org.koin:koin-android-viewmodel:$koin_version
. I have been using the latter with ViewModels from the AndroidX lifecycle package and everything is working just fine. What would I need the AndroidX Koin dependency for?arnaud.giuliani
02/01/2021, 3:56 PMchi
02/04/2021, 4:44 PMIncompatible Kotlin/Native libraries
There are 2 third-party libraries attached to the project that were compiled with an older Kotlin/Native compiler and cant be read in IDE:
Gradle: org.koin:koin-core-metadata:darwinMain:3.0.0-alpha-4
Gradle: org.koin:koin-core-metadata:nativeMain:3.0.0-alpha-4
Please edit Gradle buildfile(s) and specify library a version compatible with Kotlin/Native 1.4.30-RC. Then re-import the project in IDE.
I'm using AS 4.1.2 and the Kotlin version 1.4.30-RC
, any way I can fix this?Mark
02/06/2021, 2:59 AMCyril Find
02/11/2021, 1:00 PMigor.wojda
02/13/2021, 1:35 PMNavArgs
on the fly and inject then directly into ViewModel
?gammax
02/15/2021, 7:46 PMLG
02/22/2021, 11:54 AMarnaud.giuliani
02/24/2021, 10:45 AMFedora
02/26/2021, 4:45 PMby inject
like this: private val presenter: MySamplePresenter by inject { parametersOf(requireContext(), get()) }
at the top of the Fragment? (not in lifecycle events like onViewCreated etc). Is this gonna cause a memory leak on screen rotation? (cause then fragment is retained during configuration change but view is destroyed and recreated)gabin
02/26/2021, 6:26 PMclasspath "org.koin:koin-gradle-plugin:3.0.0-alpha4"
, but getting errorgabin
02/26/2021, 6:36 PMarnaud.giuliani
03/02/2021, 9:40 AMAlex
03/04/2021, 3:47 PMJoseph Roffey
03/09/2021, 2:15 PMorg.koin:koin-core:3.0.0-alpha-4
to io.insert-koin:koin-core:3.0.1-beta-1
but I can no longer import org.koin.core.get
, org.koin.core.KoinComponent
or org.koin.core.inject
, has anyone else seen this issue/know how to resolve it?chi
03/09/2021, 4:43 PMFailed to resolve: org.koin:koin-core:3.0.1-beta-1
Failed to resolve: org.koin:koin-test:3.0.1-beta-1
Failed to resolve: org.koin:koin-android:3.0.1-beta-1
Failed to resolve: org.koin:koin-androidx-viewmodel:3.0.1-beta-1
arnaud.giuliani
03/10/2021, 8:36 AMtieskedh
03/11/2021, 9:09 AMaipok
03/17/2021, 8:09 PM@Preview
annotation? For me it gives java.lang.IllegalStateException: KoinApplication has not been started
because application isn’t started during compose preview
🤔Dhaval Gondaliya
03/25/2021, 5:27 AMio.insert-koin
) and it gives error in android studio for viewmodelchristophsturm
03/26/2021, 8:18 PM@Test
fun `multi instance koin`() {
class User()
val user = User()
val myModule = module {
single {user}
}
fun app() = koinApplication { modules(myModule) }
val koin1 = app()
val koin2 = app()
koin1.koin.get<User>()
koin1.close()
koin2.koin.get<User>()
}
nikolaymetchev
03/30/2021, 9:25 AMfun saveProperties(properties: Properties) {
if (_koin.logger.isAt(Level.DEBUG)) {
_koin.logger.debug("load ${properties.size} properties")
}
val propertiesMapValues = properties.toMap() as Map<String, String>
propertiesMapValues.forEach { (k: String, v: String) ->
saveProperty(k, v.quoted())
}
}
v.quoted()
is the culprit
This makes it very hard to put JSON in environment variables and get it back such that parsers don’t complain! Why are quotes being stripped?pawegio
04/01/2021, 7:53 AMDefinitionParameters
to android ViewModel
in koin? It fails when I try to and value is null
(InstanceCreationException
is thrown).oday
04/03/2021, 6:48 PMjcenter()
should be removed soon, doing so right now breaks the importsaipok
04/11/2021, 4:25 PM3.0.1-beta-2
the io.insert-koin:koin-androidx-compose
isn’t discoverable. While with beta 1 it works just fine. Am I missed some changes to packages?Slava Glushenkov
04/17/2021, 2:33 PMdave08
04/18/2021, 12:55 PMdave08
04/21/2021, 11:32 AMinterface UseCase<in Request : Any> {
suspend fun execute(request: Request): ServerResponse
suspend operator fun invoke(request: Request): ServerResponse = execute(request)
}
in a ktor fun Route.someRoutes()
using the `Request`'s type? I want to be able to provide an implementation in Unit tests without mocking the actual implementation for that route... and the Request
object is unique for each UseCase
...Fabio
04/26/2021, 12:33 AMFabio
04/26/2021, 12:33 AModay
04/26/2021, 9:29 AMarnaud.giuliani
04/26/2021, 10:13 AModay
04/26/2021, 10:28 AM