question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Gradle] Koin Gradle Plugin - check your modules

See original GitHub issue

Hi all,

while I’m looking at Arrow Meta to help leverage some tooling, what do you think of having a Gradle plugin to allow you to verify your Koin configuration via Gradle?

I would imagine something like this, in your gradle:

koin {
    modules = ["com.myapp.myModule1","com.myapp.myModule2"]
}

and having a task like ./gradlew checkKoinModules

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
erickokcommented, Feb 13, 2020

The original checkModules implementation did something like that but it gave false positives. A problem with most solutions is that you need to compile the code itself in order to check it, which is (from performance standpoint) a no-go. A linter could work but writing one that transitively checks all modules, with parameters and qualifiers, is going to be a challenge.

0reactions
arnaudgiulianicommented, Mar 4, 2020

can you remove this?

@RunWith(AndroidJUnit4::class)
@Config(sdk = [Build.VERSION_CODES.P])
Read more comments on GitHub >

github_iconTop Results From Across the Web

io.insert-koin : koin-gradle-plugin : 3.1.2 - Maven Central
koin -gradle-plugin - KOIN - Kotlin simple Dependency Injection Framework.
Read more >
Verifying your Koin configuration
Koin allows you to verify your configuration modules, avoiding to discover dependency injection issues at runtime.
Read more >
Setting up Koin 2.0.1 for Android | by Matti Mäki-Kihniä | Medium
Koin is a dependency injection framework. Version 2.0 was recently released, but it's still a bit tricky to find all the information in...
Read more >
kotlin - Gradle problems of adding koin test dependencies
It looks like there are 3 problems. As I mentioned in the comment, the Kotlin JVM and Serialization plugins have mismatched versions.
Read more >
Learning the Basics - Gradle User Manual
The location for storing modules is called a repository. By declaring repositories for a build, Gradle will know how to find and retrieve...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found