Skip to content

Commit

Permalink
🎨 moved android sdk versioning to to version catalogue
Browse files Browse the repository at this point in the history
  • Loading branch information
schachi5000 committed Jun 4, 2024
1 parent 2d141de commit 9aa1206
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 15 deletions.
8 changes: 4 additions & 4 deletions androidApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ kotlin {
}

android {
compileSdk = (findProperty("android.compileSdk") as String).toInt()
compileSdk = libs.versions.androidCompileSdk.get().toInt()
namespace = "net.schacher.mcc"

sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")

defaultConfig {
applicationId = "net.schacher.mcc"
minSdk = (findProperty("android.minSdk") as String).toInt()
targetSdk = (findProperty("android.targetSdk") as String).toInt()
minSdk = libs.versions.androidMinSdk.get().toInt()
targetSdk = libs.versions.androidTargetSdk.get().toInt()
versionCode = 4
versionName = "1.0.0-alpha"
versionName = "1.0.0-development"
}

buildTypes {
Expand Down
8 changes: 1 addition & 7 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,8 @@ org.jetbrains.compose.experimental.uikit.enabled=true

#Android
android.useAndroidX=true
android.targetSdk=34
android.compileSdk=34
android.minSdk=24

#Versions
kotlin.version=1.9.22
agp.version=8.3.0
compose.version=1.6.0

#SQLDelight
sqlDelightVersion=1.5.5
compose.version=1.6.0
7 changes: 7 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
[versions]
# @keep
androidCompileSdk = "34"
androidGradlePlugin = "8.2.2"
# @keep
androidMinSdk = "24"
# @keep
androidTargetSdk = "34"
appcompat = "1.6.1"
activity = "1.8.2"
core-ktx = "1.12.0"
Expand Down
2 changes: 0 additions & 2 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ pluginManagement {
}
}



plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version ("0.4.0")
}
Expand Down
4 changes: 2 additions & 2 deletions shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,15 @@ fun getLocalProperty(key: String, file: String = "local.properties"): Any {
}

android {
compileSdk = (findProperty("android.compileSdk") as String).toInt()
compileSdk = libs.versions.androidCompileSdk.get().toInt()
namespace = "net.schacher.mcc"

sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
sourceSets["main"].res.srcDirs("src/androidMain/res")
sourceSets["main"].resources.srcDirs("src/commonMain/resources")

defaultConfig {
minSdk = (findProperty("android.minSdk") as String).toInt()
minSdk = libs.versions.androidMinSdk.get().toInt()
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
Expand Down

0 comments on commit 9aa1206

Please sign in to comment.