Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f36502e

Browse filesBrowse files
author
Blankj
committed
see 08/07 log
1 parent f443b35 commit f36502e
Copy full SHA for f36502e

3 files changed

+13Lines changed: 13 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apk/output.json‎

Copy file name to clipboard
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":1018003,"versionName":"1.18.3","enabled":true,"outputFile":"util_1_18_3.apk","fullName":"release","baseName":"release"},"path":"util_1_18_3.apk","properties":{}}]
Collapse file

‎apk/util_1_18_3.apk‎

Copy file name to clipboard
5.88 MB
Binary file not shown.
Collapse file

‎config.gradle‎

Copy file name to clipboardExpand all lines: config.gradle
+12Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def configAndroidDomain(Project pro) {
6161
def configAppAndroidDomain(Project pro) {
6262
configField(pro)
6363
configSigning(pro)
64+
configApkName(pro)
6465
pro.android {
6566
compileSdkVersion androidConfig.compileSdkVersion
6667
defaultConfig {
@@ -113,6 +114,17 @@ def configSigning(Project pro) {
113114
}
114115
}
115116

117+
def configApkName(Project pro) {
118+
pro.android.applicationVariants.all { variant ->
119+
if (variant.buildType.name != "debug") {
120+
variant.getPackageApplication().outputDirectory = new File(project.rootDir.absolutePath + "/apk")
121+
variant.getPackageApplication().outputScope.apkDatas.forEach { apkData ->
122+
apkData.outputFileName = "util_" + variant.versionName.replace(".", "_") + ".apk"
123+
}
124+
}
125+
}
126+
}
127+
116128
def configLibAndroidDomain(Project pro) {
117129
pro.android {
118130
compileSdkVersion androidConfig.compileSdkVersion

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.