Skip to content

Commit 6527f57

Browse files
committed
versionCode, versionNameをVersionCatalogから参照するように変更
1 parent 4dd9a18 commit 6527f57

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ internal fun Project.configureApplication(
1212
defaultConfig {
1313
minSdk = libs.version("minSdk").toInt()
1414
targetSdk = libs.version("targetSdk").toInt()
15-
versionCode = 2
16-
versionName = "1.1"
15+
versionCode = libs.version("versionCode").toInt()
16+
versionName = libs.version("versionName")
1717
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
1818
}
1919
buildTypes {

AndroidApp/gradle/libs.versions.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
compileSdk = "35"
55
minSdk = "35"
66
targetSdk = "35"
7+
# App Versions
8+
versionCode = "2"
9+
versionName = "1.1"
10+
# ---------------------------------------------------------
711

812
# Library
913
agp = "8.9.3"

0 commit comments

Comments
 (0)