|
|
@ -20,7 +20,6 @@ import com.android.build.api.dsl.CommonExtension
|
|
|
|
import com.android.build.api.dsl.ManagedVirtualDevice
|
|
|
|
import com.android.build.api.dsl.ManagedVirtualDevice
|
|
|
|
import org.gradle.api.Project
|
|
|
|
import org.gradle.api.Project
|
|
|
|
import org.gradle.kotlin.dsl.invoke
|
|
|
|
import org.gradle.kotlin.dsl.invoke
|
|
|
|
import java.util.Locale
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Configure project for Gradle managed devices
|
|
|
|
* Configure project for Gradle managed devices
|
|
|
@ -55,7 +54,7 @@ private data class DeviceConfig(
|
|
|
|
val systemImageSource: String,
|
|
|
|
val systemImageSource: String,
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
val taskName = buildString {
|
|
|
|
val taskName = buildString {
|
|
|
|
append(device.toLowerCase(Locale.ROOT).replace(" ", ""))
|
|
|
|
append(device.lowercase().replace(" ", ""))
|
|
|
|
append("api")
|
|
|
|
append("api")
|
|
|
|
append(apiLevel.toString())
|
|
|
|
append(apiLevel.toString())
|
|
|
|
append(systemImageSource.replace("-", ""))
|
|
|
|
append(systemImageSource.replace("-", ""))
|
|
|
|