Skip to content

Commit 212a967

Browse files
committed
Update Gradle, AGP, and dependencies
1 parent a023beb commit 212a967

14 files changed

Lines changed: 542 additions & 505 deletions

File tree

app-timer-one/src/main/java/xyz/aprildown/timer/app/timer/one/layout/one/OneLayoutOneFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ internal class OneLayoutOneFragment :
155155

156156
private fun toggleStep(show: Boolean) {
157157
val view = requireView()
158-
view.findViewById<LinearLayout?>(R.id.layoutOneStepName).isVisible = show
158+
view.findViewById<LinearLayout>(R.id.layoutOneStepName).isVisible = show
159159
}
160160

161161
private fun toggleTimingBar(show: Boolean) {

app/build.gradle.kts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,15 +172,17 @@ dependencies {
172172
androidTestCompileOnly(libs.taskerPlugin)
173173
}
174174

175-
android.applicationVariants.configureEach {
176-
if (flavorName != "google") {
177-
val variantNameCapitalized = name.replaceFirstChar {
175+
androidComponents.onVariants { variant ->
176+
if (variant.flavorName != "google") {
177+
val variantNameCapitalized = variant.name.replaceFirstChar {
178178
if (it.isLowerCase()) it.titlecase(Locale.getDefault()) else it.toString()
179179
}
180180
project.tasks.named("process${variantNameCapitalized}GoogleServices").getOrNull()
181181
?.enabled = false
182182
project.tasks.named("injectCrashlyticsMappingFileId${variantNameCapitalized}")
183183
.getOrNull()?.enabled = false
184+
project.tasks.named("injectCrashlyticsVersionControlInfo${variantNameCapitalized}")
185+
.getOrNull()?.enabled = false
184186
try {
185187
project.tasks.named("uploadCrashlyticsMappingFile${variantNameCapitalized}")
186188
.getOrNull()?.enabled = false

app/dependencies/dogReleaseRuntimeClasspath.txt

Lines changed: 149 additions & 136 deletions
Large diffs are not rendered by default.

app/dependencies/googleReleaseRuntimeClasspath.txt

Lines changed: 181 additions & 168 deletions
Large diffs are not rendered by default.

app/dependencies/otherReleaseRuntimeClasspath.txt

Lines changed: 149 additions & 136 deletions
Large diffs are not rendered by default.

baselineProfile/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
plugins {
22
alias(libs.plugins.android.test)
3-
alias(libs.plugins.kotlin.android)
43
alias(libs.plugins.androidx.baselineprofile)
54
}
65

build-logic/convention/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ kotlin {
2020
dependencies {
2121
compileOnly(plugin(libs.plugins.android.application))
2222
compileOnly(plugin(libs.plugins.android.library))
23-
compileOnly(plugin(libs.plugins.kotlin.android))
2423
compileOnly(plugin(libs.plugins.kotlin.compose))
2524
compileOnly(plugin(libs.plugins.kotlin.kapt))
2625
compileOnly(plugin(libs.plugins.hilt))

build-logic/convention/src/main/kotlin/AndroidApplicationConventionPlugin.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ class AndroidApplicationConventionPlugin : Plugin<Project> {
1212
val libs = libs
1313

1414
apply(plugin = libs.findPlugin("android-application").get().get().pluginId)
15-
apply(plugin = libs.findPlugin("kotlin-android").get().get().pluginId)
1615
apply(plugin = libs.findPlugin("kotlin-compose").get().get().pluginId)
1716

1817
configureKotlin()

build-logic/convention/src/main/kotlin/AndroidLibraryConventionPlugin.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ class AndroidLibraryConventionPlugin : Plugin<Project> {
1111
val libs = libs
1212

1313
apply(plugin = libs.findPlugin("android-library").get().get().pluginId)
14-
apply(plugin = libs.findPlugin("kotlin-android").get().get().pluginId)
1514

1615
configureKotlin()
1716

build-logic/convention/src/main/kotlin/Configurations.kt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,28 +23,29 @@ internal fun Project.configureKotlin() {
2323
jvmTarget.set(
2424
JvmTarget.fromTarget(libs.findVersion("jvmTarget").get().toString())
2525
)
26+
freeCompilerArgs.add("-Xannotation-default-target=param-property")
2627
}
2728
}
2829
}
2930

30-
internal fun Project.configureAndroid(commonExtension: CommonExtension<*, *, *, *, *, *>) {
31+
internal fun Project.configureAndroid(commonExtension: CommonExtension) {
3132
val libs = libs
3233
commonExtension.run {
3334
compileSdk = libs.findVersion("compileSdk").get().toString().toInt()
34-
defaultConfig {
35+
defaultConfig.run {
3536
minSdk = libs.findVersion("minSdk").get().toString().toInt()
3637

3738
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
3839
vectorDrawables.useSupportLibrary = true
3940
}
40-
compileOptions {
41+
compileOptions.run {
4142
isCoreLibraryDesugaringEnabled = true
4243
val javaVersion =
4344
JavaVersion.toVersion(libs.findVersion("jvmTarget").get().toString())
4445
sourceCompatibility = javaVersion
4546
targetCompatibility = javaVersion
4647
}
47-
buildFeatures {
48+
buildFeatures.run {
4849
viewBinding = true
4950
}
5051
dependencies {
@@ -53,7 +54,7 @@ internal fun Project.configureAndroid(commonExtension: CommonExtension<*, *, *,
5354
}
5455
}
5556

56-
internal fun Project.configureCompose(commonExtension: CommonExtension<*, *, *, *, *, *>) {
57+
internal fun Project.configureCompose(commonExtension: CommonExtension) {
5758
val libs = libs
5859
commonExtension.buildFeatures.compose = true
5960
extensions.getByType<ComposeCompilerGradlePluginExtension>().run {

0 commit comments

Comments
 (0)