Skip to content

Commit

Permalink
fix: set compile sdk to 35 to make androidx.appcompat happy
Browse files Browse the repository at this point in the history
  • Loading branch information
cinit committed Nov 23, 2024
1 parent fb8141a commit f36e9a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build-logic/convention/src/main/kotlin/Version.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import java.util.Properties
object Version {
val java = JavaVersion.VERSION_11

const val compileSdkVersion = 34
const val compileSdkVersion = 35
val buildToolsVersion = findBuildToolsVersion()
const val minSdk = 24
const val targetSdk = 34
const val targetSdk = 35
const val versionName = "1.5.4"

private const val defaultNdkVersion = "27.0.12077973"
Expand Down Expand Up @@ -62,7 +62,7 @@ object Version {
}

private fun findBuildToolsVersion(): String {
val defaultBuildToolsVersion = "34.0.0" // AGP 8.2.0 need Build Tools 34.0.0
val defaultBuildToolsVersion = "35.0.0" // AGP 8.2.0 need Build Tools 34.0.0
return File(System.getenv("ANDROID_HOME"), "build-tools").listFiles()?.filter { it.isDirectory }?.maxOfOrNull { it.name }
?.also { println("Using build tools version $it") }
?: defaultBuildToolsVersion
Expand Down

0 comments on commit f36e9a9

Please sign in to comment.