startKoin from java
See original GitHub issueMy application is java but I want to use Koin in my Kotlin Code.
I have found this PR
https://github.com/InsertKoinIO/koin/pull/25
It states that could be done like
AndroidExtKt.startKoin(this, this, modules, properties);
But how is the modules defined?
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Koin for Android Java app - gists · GitHub
Koin for Android Java app. GitHub Gist: instantly share code ... A module with Kotlin and Java components ... startKoin(listOf(module)) with (myApplication). }....
Read more >How to get Android Context for Koin in Java - Stack Overflow
According to KDoc KoinAndroidApplication.create(..) Create Koin Application with Android context - For Java compat.
Read more >Start Koin
The startKoin function is the main entry point to launch Koin container. It need a list of Koin modules to run. Modules are...
Read more >Easy Android Dependency Injection with Koin - Medium
1- Gradle Setup · 2- Our components (Java & Kotlin) · 3- Writing the Koin module · 4- Start Koin · 5- Injecting...
Read more >Dependency Injection with Kotlin and Koin - Auth0
startKoin import org.koin.dsl.module class SingleInstance ... java -cp . ... Next we call the startKoin function, which is part of the ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Here is all you need for java: https://beta.insert-koin.io/docs/1.0/quick-references/koin-java/
The best is that you wait the
koin-java
project that will help you on this topic. Beta will be published in next days.