nowinandroid icon indicating copy to clipboard operation
nowinandroid copied to clipboard

[Refactor] Why do we use libs.findLibrary(alias).get() in all implementations?

Open boranfrkn opened this issue 2 years ago • 0 comments

why do we use libs.findLibrary(alias).get() in all implementations

I think we can write extensions for this and similar implementations

internal fun Project.findLibrary(alias: String): Provider<MinimalExternalModuleDependency> {
    return libs.findLibrary(alias).get()
}

internal fun Project.implementation(alias: String) {
    dependencies.add("implementation", findLibrary(alias))
}

What you think?

boranfrkn avatar Oct 07 '23 11:10 boranfrkn