Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
huangzhicong
/
SmartCanteen
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
341a4aca
authored
Mar 18, 2020
by
pye52
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
不再固定输出目录
parent
f34cba96
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
app/build.gradle
+6
-7
No files found.
app/build.gradle
View file @
341a4aca
...
...
@@ -48,15 +48,14 @@ android {
// but continue the build even when errors are found:
abortOnError
false
}
// 命名生成的apk
applicationVariants
.
all
{
variant
->
if
(
variant
.
buildType
.
name
!=
"debug"
)
{
variant
.
getPackageApplicationProvider
().
get
().
outputDirectory
=
new
File
(
project
.
rootDir
.
absolutePath
+
"/apk"
)
variant
.
getPackageApplicationProvider
().
get
().
outputScope
.
apkDatas
.
forEach
{
apkData
->
apkData
.
outputFileName
=
"SmartCanteen"
+
"_"
+
variant
.
buildType
.
name
+
"_v"
+
variant
.
versionName
+
".apk"
}
variant
.
getPackageApplicationProvider
()
.
get
()
.
outputScope
.
apkDatas
.
forEach
{
apkData
->
apkData
.
outputFileName
=
"SmartCanteen"
+
"_v"
+
variant
.
versionName
+
".apk"
}
}
}
compileOptions
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment