Skip to content

Commit 76aef1a

Browse files
committed
android: Move Set sdkVersion to settings.gradle.kts
1 parent fc5199a commit 76aef1a

File tree

5 files changed

+7
-14
lines changed

5 files changed

+7
-14
lines changed

example/build.gradle.kts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,8 @@ dependencies {
109109

110110
android {
111111
namespace = pkgName
112-
compileSdk = libs.versions.android.compileSdk.get().toInt()
113-
114112
defaultConfig {
115113
applicationId = pkgName
116-
minSdk = libs.versions.android.minSdk.get().toInt()
117-
targetSdk = libs.versions.android.targetSdk.get().toInt()
118114
versionCode = verCode
119115
versionName = verName
120116
}

example/src/commonMain/kotlin/component/OtherComponent.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,6 @@ fun OtherComponent(padding: PaddingValues) {
268268
TextField(
269269
value = text2,
270270
onValueChange = { text2 = it },
271-
backgroundColor = MiuixTheme.colorScheme.secondaryContainer,
272271
label = "Text Field",
273272
modifier = Modifier
274273
.padding(horizontal = 12.dp)
@@ -280,7 +279,6 @@ fun OtherComponent(padding: PaddingValues) {
280279
TextField(
281280
value = text3,
282281
onValueChange = { text3 = it },
283-
backgroundColor = MiuixTheme.colorScheme.secondaryContainer,
284282
label = "Placeholder & SingleLine",
285283
useLabelAsPlaceholder = true,
286284
singleLine = true,

gradle/libs.versions.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
[versions]
2-
android-minSdk = "26"
3-
android-compileSdk = "36"
4-
android-targetSdk = "36"
5-
62
android-gradle-plugin = "8.10.0"
73
androidx-activity-compose = "1.10.1"
84
androidx-window = "1.3.0"

miuix/build.gradle.kts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,4 @@ kotlin {
5656

5757
android {
5858
namespace = "top.yukonga.miuix.kmp"
59-
compileSdk = libs.versions.android.compileSdk.get().toInt()
60-
defaultConfig {
61-
minSdk = libs.versions.android.minSdk.get().toInt()
62-
}
6359
}

settings.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,15 @@ dependencyResolutionManagement {
3030
}
3131

3232
plugins {
33+
id("com.android.settings") version("8.10.0")
3334
id("org.gradle.toolchains.foojay-resolver-convention") version("0.4.0")
3435
}
3536

37+
android {
38+
compileSdk = 36
39+
targetSdk = 36
40+
minSdk = 26
41+
}
42+
3643
rootProject.name = "miuix"
3744
include(":miuix", ":example")

0 commit comments

Comments
 (0)