Skip to content
This repository was archived by the owner on Dec 16, 2023. It is now read-only.

Commit 4624d48

Browse files
committed
Set custom apk name
1 parent 5ebb683 commit 4624d48

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

app/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ android {
1515
multiDexEnabled true
1616
vectorDrawables.useSupportLibrary = true
1717
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
18+
android.applicationVariants.all { variant ->
19+
variant.outputs.all {
20+
def date = new Date()
21+
def formattedDate = date.format('YYYYMMddHHmm')
22+
outputFileName = "justjava-${variant.name}-${formattedDate}.apk"
23+
}
24+
}
1825
}
1926
buildTypes {
2027
debug {

0 commit comments

Comments
 (0)