Skip to content

Commit 2482fb8

Browse files
committed
compileSdk, minSdk, targetSdkをVersionCatalogから参照するように変更
1 parent 7ea12ee commit 2482fb8

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

AndroidApp/build-logic/src/main/kotlin/me/nya_n/notificationnotifier/Application.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ internal fun Project.configureApplication(
88
extension: ApplicationExtension
99
) {
1010
extension.apply {
11-
compileSdk = 35
11+
compileSdk = libs.version("compileSdk").toInt()
1212
defaultConfig {
13-
minSdk = 30
14-
targetSdk = 35
13+
minSdk = libs.version("minSdk").toInt()
14+
targetSdk = libs.version("targetSdk").toInt()
1515
versionCode = 2
1616
versionName = "1.1"
1717
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"

AndroidApp/build-logic/src/main/kotlin/me/nya_n/notificationnotifier/Library.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ internal fun Project.configureLibrary(
88
extension: LibraryExtension
99
) {
1010
extension.apply {
11-
compileSdk = 35
11+
compileSdk = libs.version("compileSdk").toInt()
1212
defaultConfig {
13-
minSdk = 30
13+
minSdk = libs.version("minSdk").toInt()
1414
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
1515
}
1616
buildTypes {

AndroidApp/gradle/libs.versions.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
[versions]
2+
# Android Sdk Versions
3+
# memo: unusedになっているがbuild-logic内から参照している
4+
compileSdk = "35"
5+
minSdk = "35"
6+
targetSdk = "35"
7+
8+
# Library
29
agp = "8.9.3"
310
kotlin = "2.1.20"
411
com-google-devtools-ksp = "2.1.20-2.0.1" # Kotlinのバージョンに合わせる必要がある

0 commit comments

Comments
 (0)