Jeff Tycz
04/07/2022, 12:11 AMlintPublish
to the androidMain
dependencies like this
val androidMain by getting {
dependencies {
lintPublish(project(":lint"))
implementation("androidx.core:core-ktx:1.7.0")
implementation("io.ktor:ktor-client-android:1.6.7")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.0")
}
}
but the kotlin dsl does not recognize lintPublish
. The exact error is
Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:What am I doing wrong, do I place the lintPublish somewhere else? Does KMM work with custom lint checks?
Ky
04/07/2022, 5:56 AMshared
module that should be place in android{}
block. I believe lint is packaged with the AGP.
plugins{
kotlin('multiplatform')
id(com.android.library')
}
android {
dependencies {
lintPublish()
}
}