Skip to content

Commit

Permalink
[Android]update gradle config.
Browse files Browse the repository at this point in the history
  • Loading branch information
xgfd3 committed Aug 15, 2023
1 parent edfbcb7 commit 0d096e0
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ android {
applicationId "io.agora.entfull"
minSdkVersion 21
targetSdkVersion 31
versionCode 1
versionName "1.0.0"
versionCode 2
versionName "1.0.2"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
Expand Down Expand Up @@ -58,6 +58,15 @@ android {
excludes += '/META-INF/{AL2.0,LGPL2.1}'
}
}

applicationVariants.all {
variant ->
variant.outputs.all { output ->
outputFileName = new File(rootProject.name + "_" +
"v" + defaultConfig.versionName + "_" +
new Date().format("yyyyMMddHHmm") + ".apk")
}
}
}

dependencies {
Expand Down

0 comments on commit 0d096e0

Please sign in to comment.