Skip to content

Commit

Permalink
move compile and minSdk versions to version catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
kibettheophilus authored and chepsi committed Jun 6, 2024
1 parent d1a27f5 commit 0c51b3d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import com.android.build.gradle.LibraryExtension
import com.android254.libs
import org.gradle.api.JavaVersion
import org.gradle.api.Plugin
import org.gradle.api.Project
Expand Down Expand Up @@ -34,9 +35,9 @@ class MultiplaftormConventionPlugin : Plugin<Project> {
}

extensions.configure<LibraryExtension> {
compileSdk = 34
compileSdk = libs.findVersion("android-compile-sdk").get().toString().toInt()
defaultConfig {
minSdk = 24
minSdk = libs.findVersion("android-min-sdk").get().toString().toInt()
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
Expand Down
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
[versions]
android-compile-sdk = "34"
android-min-sdk = "24"
composecompiler = "1.5.3"
coroutines = "1.7.3"
coroutines_datetime = "0.4.0"
Expand Down

0 comments on commit 0c51b3d

Please sign in to comment.