|
|
@ -21,7 +21,6 @@ import com.google.samples.apps.nowinandroid.configureGradleManagedDevices
|
|
|
|
import com.google.samples.apps.nowinandroid.configureKotlinAndroid
|
|
|
|
import com.google.samples.apps.nowinandroid.configureKotlinAndroid
|
|
|
|
import com.google.samples.apps.nowinandroid.configurePrintApksTask
|
|
|
|
import com.google.samples.apps.nowinandroid.configurePrintApksTask
|
|
|
|
import com.google.samples.apps.nowinandroid.disableUnnecessaryAndroidTests
|
|
|
|
import com.google.samples.apps.nowinandroid.disableUnnecessaryAndroidTests
|
|
|
|
import com.google.samples.apps.nowinandroid.libs
|
|
|
|
|
|
|
|
import org.gradle.api.Plugin
|
|
|
|
import org.gradle.api.Plugin
|
|
|
|
import org.gradle.api.Project
|
|
|
|
import org.gradle.api.Project
|
|
|
|
import org.gradle.kotlin.dsl.configure
|
|
|
|
import org.gradle.kotlin.dsl.configure
|
|
|
@ -46,13 +45,6 @@ class AndroidLibraryConventionPlugin : Plugin<Project> {
|
|
|
|
configurePrintApksTask(this)
|
|
|
|
configurePrintApksTask(this)
|
|
|
|
disableUnnecessaryAndroidTests(target)
|
|
|
|
disableUnnecessaryAndroidTests(target)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
configurations.configureEach {
|
|
|
|
|
|
|
|
resolutionStrategy {
|
|
|
|
|
|
|
|
force(libs.findLibrary("junit4").get())
|
|
|
|
|
|
|
|
// Temporary workaround for https://issuetracker.google.com/174733673
|
|
|
|
|
|
|
|
force("org.objenesis:objenesis:2.6")
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
dependencies {
|
|
|
|
add("androidTestImplementation", kotlin("test"))
|
|
|
|
add("androidTestImplementation", kotlin("test"))
|
|
|
|
add("testImplementation", kotlin("test"))
|
|
|
|
add("testImplementation", kotlin("test"))
|
|
|
|