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
0b4770a5
authored
May 30, 2020
by
pye52
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into rel-1.3.6
parents
fa2fb7ae
e79b5e85
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
13 deletions
+14
-13
app/build.gradle
+6
-5
build.gradle
+1
-1
daemon/build.gradle
+7
-7
No files found.
app/build.gradle
View file @
0b4770a5
...
@@ -87,11 +87,12 @@ android {
...
@@ -87,11 +87,12 @@ android {
// 命名生成的apk
// 命名生成的apk
applicationVariants
.
all
{
variant
->
applicationVariants
.
all
{
variant
->
if
(
variant
.
buildType
.
name
!=
"debug"
)
{
if
(
variant
.
buildType
.
name
!=
"debug"
)
{
variant
.
getPackageApplicationProvider
()
variant
.
getVariantData
()
.
get
()
.
getPublicVariantPropertiesApi
()
.
outputScope
.
getOutputs
()
.
apkDatas
.
forEach
{
output
->
.
forEach
{
apkData
->
apkData
.
outputFileName
=
"SmartCanteen"
+
"_v"
+
variant
.
versionName
+
".apk"
}
output
.
apkData
.
outputFileName
=
"SmartCanteen"
+
"_v"
+
variant
.
versionName
+
".apk"
}
}
}
}
}
lintOptions
{
lintOptions
{
...
...
build.gradle
View file @
0b4770a5
...
@@ -9,7 +9,7 @@ buildscript {
...
@@ -9,7 +9,7 @@ buildscript {
jcenter
()
jcenter
()
}
}
dependencies
{
dependencies
{
classpath
'com.android.tools.build:gradle:
3.6.3
'
classpath
'com.android.tools.build:gradle:
4.0.0
'
}
}
}
}
...
...
daemon/build.gradle
View file @
0b4770a5
...
@@ -55,15 +55,15 @@ android {
...
@@ -55,15 +55,15 @@ android {
if
(
variant
.
buildType
.
name
!=
"debug"
)
{
if
(
variant
.
buildType
.
name
!=
"debug"
)
{
String
targetDir
=
findAppAssetsDir
()
String
targetDir
=
findAppAssetsDir
()
if
(!
targetDir
.
isEmpty
())
{
if
(!
targetDir
.
isEmpty
())
{
variant
.
getPackageApplicationProvider
()
variant
.
getPackageApplication
()
.
get
()
.
outputDirectory
=
new
File
(
targetDir
)
.
outputDirectory
=
new
File
(
targetDir
)
}
}
variant
.
getPackageApplicationProvider
()
variant
.
getVariantData
()
.
get
()
.
getPublicVariantPropertiesApi
()
.
outputScope
.
getOutputs
()
.
apkDatas
.
forEach
{
output
->
.
forEach
{
apkData
->
apkData
.
outputFileName
=
signed
}
output
.
apkData
.
outputFileName
=
signed
}
}
}
}
}
}
}
...
...
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