Skip to content

Commit

Permalink
Adopt new AGP dsl (#5288)
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Sep 9, 2022
1 parent f104e99 commit c6ac2b5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Expand Up @@ -596,13 +596,13 @@ private val KOTLIN_ONLY_LIB_PLUGIN_BLOCK = """

private val ANDROID_BLOCK = """
android {
compileSdkVersion(30)
compileSdk = 30
}
""".trimIndent()

private val ANDROID_BLOCK_WITH_FLAVOR = """
android {
compileSdkVersion(30)
compileSdk = 30
flavorDimensions("age", "name")
productFlavors {
create("harry") {
Expand All @@ -620,10 +620,10 @@ private val ANDROID_BLOCK_WITH_FLAVOR = """

private val ANDROID_BLOCK_WITH_VIEW_BINDING = """
android {
compileSdkVersion(30)
compileSdk = 30
defaultConfig {
applicationId = "io.gitlab.arturbosch.detekt.app"
minSdkVersion(24)
minSdk = 24
}
buildFeatures {
viewBinding = true
Expand Down
Expand Up @@ -153,7 +153,7 @@ class DetektMultiplatformSpec {
id("io.gitlab.arturbosch.detekt")
}
android {
compileSdkVersion(30)
compileSdk = 30
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
buildTypes {
release {
Expand Down
Expand Up @@ -104,7 +104,7 @@ class ReportMergeSpec {
id("io.gitlab.arturbosch.detekt")
}
android {
compileSdkVersion(30)
compileSdk = 30
}
dependencies {
implementation(project(":lib"))
Expand All @@ -121,7 +121,7 @@ class ReportMergeSpec {
kotlin("android")
}
android {
compileSdkVersion(30)
compileSdk = 30
}
""".trimIndent(),
srcDirs = listOf("src/main/java", "src/debug/java", "src/test/java", "src/androidTest/java")
Expand Down

0 comments on commit c6ac2b5

Please sign in to comment.