Skip to content

Commit 52d9af3

Browse files
committed
chore: AAB/APK 출력 파일명에 variant, 버전, 타임스탬프 포함
- 형식: Runnect-{variant}-v{version}-{yyyyMMdd_HHmmss}.{aab|apk} - 예시: Runnect-release-v2.2.0-20260403_173829.aab
1 parent eeccb1c commit 52d9af3

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

app/build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,15 @@ android {
6969
}
7070
}
7171

72+
applicationVariants.all { variant ->
73+
variant.outputs.all {
74+
def timestamp = new Date().format('yyyyMMdd_HHmmss')
75+
def versionName = variant.versionName
76+
def ext = outputFileName.endsWith('.aab') ? 'aab' : 'apk'
77+
outputFileName = "Runnect-${variant.buildType.name}-v${versionName}-${timestamp}.${ext}"
78+
}
79+
}
80+
7281
compileOptions {
7382
sourceCompatibility JavaVersion.VERSION_17
7483
targetCompatibility JavaVersion.VERSION_17

0 commit comments

Comments
 (0)