You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
648 B
22 lines
648 B
3 years ago
|
import com.android.build.gradle.TestExtension
|
||
|
import com.google.samples.apps.nowinandroid.configureKotlinAndroid
|
||
|
import org.gradle.api.Plugin
|
||
|
import org.gradle.api.Project
|
||
|
import org.gradle.kotlin.dsl.configure
|
||
|
|
||
|
class AndroidTestConventionPlugin : Plugin<Project> {
|
||
|
override fun apply(target: Project) {
|
||
|
with(target) {
|
||
|
with(pluginManager) {
|
||
|
apply("com.android.test")
|
||
|
apply("org.jetbrains.kotlin.android")
|
||
|
}
|
||
|
|
||
|
extensions.configure<TestExtension> {
|
||
|
configureKotlinAndroid(this)
|
||
|
defaultConfig.targetSdk = 32
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|