Skip to content

Commit

Permalink
버전 코드, 버전 이름 년월일 순으로 나오도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
kts6056 committed Nov 9, 2024
1 parent d4e168d commit fdb7064
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import java.io.FileInputStream
import java.util.Properties
import java.text.SimpleDateFormat
import java.util.Date

@Suppress("DSL_SCOPE_VIOLATION") // TODO: Remove once KTIJ-19369 is fixed
plugins {
Expand All @@ -18,8 +20,8 @@ android {
namespace = "com.dkin.chevit.app"
defaultConfig {
applicationId = "com.dkin.chevit"
versionCode = 8
versionName = "1.0.7"
versionCode = SimpleDateFormat("yyMMdd").format(Date()).toInt()
versionName = SimpleDateFormat("yy.MM.dd").format(Date())
}
lint {
disable.add("Instantiatable")
Expand Down

0 comments on commit fdb7064

Please sign in to comment.