본문 바로가기
Android/Technic

APK 생성할 때 output 이름 변경

by 등촌동 꼬북이 2022. 12. 2.
applicationVariants.all { v ->
    v.outputs.all {
        def formattedDate =  new Date().format('yyMMdd')
        outputFileName = "v${versionName}_code${versionCode}_${formattedDate}_v1.apk"
    }
}

 

이런식으로 날짜도 커스텀 할 수 있다.

댓글