mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 22:17:03 +05:30
gradle: upgrade AGP
This commit is contained in:
parent
a93eeab14a
commit
2a87fcf968
2 changed files with 18 additions and 1 deletions
|
@ -4,7 +4,10 @@
|
||||||
*/
|
*/
|
||||||
@file:Suppress("UnstableApiUsage")
|
@file:Suppress("UnstableApiUsage")
|
||||||
|
|
||||||
|
import com.android.build.api.variant.ApplicationAndroidComponentsExtension
|
||||||
|
import com.android.build.api.variant.LibraryAndroidComponentsExtension
|
||||||
import com.android.build.gradle.TestedExtension
|
import com.android.build.gradle.TestedExtension
|
||||||
|
import org.gradle.kotlin.dsl.findByType
|
||||||
|
|
||||||
extensions.configure<TestedExtension> {
|
extensions.configure<TestedExtension> {
|
||||||
compileSdkVersion = "android-Tiramisu"
|
compileSdkVersion = "android-Tiramisu"
|
||||||
|
@ -13,6 +16,20 @@ extensions.configure<TestedExtension> {
|
||||||
targetSdkPreview = "Tiramisu"
|
targetSdkPreview = "Tiramisu"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extensions.findByType<LibraryAndroidComponentsExtension>()?.run {
|
||||||
|
beforeVariants(selector().withBuildType("release")) {
|
||||||
|
it.enableUnitTest = false
|
||||||
|
it.enableAndroidTest = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
extensions.findByType<ApplicationAndroidComponentsExtension>()?.run {
|
||||||
|
beforeVariants(selector().withBuildType("release")) {
|
||||||
|
it.enableUnitTest = false
|
||||||
|
it.enableAndroidTest = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
named("main") { java.srcDirs("src/main/kotlin") }
|
named("main") { java.srcDirs("src/main/kotlin") }
|
||||||
named("test") { java.srcDirs("src/test/kotlin") }
|
named("test") { java.srcDirs("src/test/kotlin") }
|
||||||
|
|
|
@ -30,7 +30,7 @@ androidx-work-runtime-ktx = { module = "androidx.work:work-runtime-ktx", version
|
||||||
aurora-component = { module = "org.pushing-pixels:aurora-component", version.ref = "aurora" }
|
aurora-component = { module = "org.pushing-pixels:aurora-component", version.ref = "aurora" }
|
||||||
aurora-theming = { module = "org.pushing-pixels:aurora-theming", version.ref = "aurora" }
|
aurora-theming = { module = "org.pushing-pixels:aurora-theming", version.ref = "aurora" }
|
||||||
aurora-window = { module = "org.pushing-pixels:aurora-window", version.ref = "aurora" }
|
aurora-window = { module = "org.pushing-pixels:aurora-window", version.ref = "aurora" }
|
||||||
build-agp = "com.android.tools.build:gradle:7.0.4"
|
build-agp = "com.android.tools.build:gradle:7.4.0-alpha02"
|
||||||
build-kotlin-gradle = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
|
build-kotlin-gradle = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
|
||||||
build-kotlin-serialization = { module = "org.jetbrains.kotlin:kotlin-serialization", version.ref = "kotlin" }
|
build-kotlin-serialization = { module = "org.jetbrains.kotlin:kotlin-serialization", version.ref = "kotlin" }
|
||||||
build-spotless = "com.diffplug.spotless:spotless-plugin-gradle:6.6.1"
|
build-spotless = "com.diffplug.spotless:spotless-plugin-gradle:6.6.1"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue