Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ android {
applicationId = "com.eatssu.android"
minSdk = 28
targetSdk = 35
versionCode = 41
versionName = "3.1.3"
versionCode = 42
versionName = "3.1.4"
Comment on lines +26 to +27
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

versionCodeversionNamebuild.gradle.kts 파일 내에서 직접 수동으로 관리하고 있습니다. 이 방식은 버전 업데이트 시 실수를 유발할 수 있으며, CI/CD와 같은 자동화된 빌드 환경에서 버전을 관리하기 어렵게 만듭니다.

유지보수성을 향상시키고 버전 관리를 중앙화하기 위해, 이러한 값들을 gradle.properties 또는 별도의 version.properties 파일로 추출하는 것을 권장합니다.

예를 들어, 프로젝트 루트의 gradle.properties에 버전 정보를 추가할 수 있습니다:

appVersionCode=42
appVersionName=3.1.4

그런 다음 build.gradle.kts에서 다음과 같이 참조할 수 있습니다:

defaultConfig {
    // ...
    versionCode = (project.property("appVersionCode") as String).toInt()
    versionName = project.property("appVersionName") as String
    // ...
}

이렇게 변경하면 버전 관리가 더 명확해지고 자동화하기 쉬워집니다.


testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down