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 @@ -29,8 +29,8 @@ android {
applicationId = "com.eatssu.android"
minSdk = 28
targetSdk = 35
versionCode = 47
versionName = "3.2.0"
versionCode = 48
versionName = "3.2.1"
Comment on lines +32 to +33
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

유지보수성 향상을 위해 버전 코드와 이름을 build.gradle.kts 파일에 직접 작성하는 대신 gradle.properties 파일에서 관리하는 것을 고려해 보세요. 이렇게 하면 버전 정보를 한 곳에서 중앙 관리할 수 있어 실수를 줄이고, CI/CD 환경에서 버전을 자동으로 업데이트하기 더 수월해집니다.

gradle.properties에 다음과 같이 추가할 수 있습니다:

VERSION_CODE=48
VERSION_NAME=3.2.1

그런 다음 build.gradle.kts에서 아래와 같이 해당 프로퍼티를 읽어올 수 있습니다.

        versionCode = (project.findProperty("VERSION_CODE") as? String ?: "48").toInt()
        versionName = project.findProperty("VERSION_NAME") as? String ?: "3.2.1"


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