Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
MiYaFastCashier
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jiangjiantao
MiYaFastCashier
Commits
92357ce4
Commit
92357ce4
authored
Apr 20, 2022
by
zhaopengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改打包名称,更显version版本
parent
c54af9b9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
3 deletions
+30
-3
build.gradle
app/build.gradle
+24
-0
gradle.properties
gradle.properties
+4
-1
versions.gradle
versions.gradle
+2
-2
No files found.
app/build.gradle
View file @
92357ce4
...
...
@@ -50,6 +50,20 @@ android {
buildFeatures
{
viewBinding
true
}
android
.
applicationVariants
.
all
{
variant
->
variant
.
outputs
.
all
{
output
->
outputFileName
=
new
File
(
output
.
outputFile
.
parent
,
"${getAppChannel()}"
+
"_v"
+
variant
.
versionName
+
"_"
+
variant
.
versionCode
+
"_"
+
variant
.
buildType
.
name
+
"_"
+
"${buildTime()}"
+
".apk"
).
getName
()
}
}
}
dependencies
{
...
...
@@ -89,4 +103,14 @@ dependencies {
debugImplementation
'com.squareup.leakcanary:leakcanary-android:2.7'
implementation
'com.contrarywind:Android-PickerView:4.1.9'
implementation
'com.guolindev.permissionx:permissionx:1.6.1'
}
static
String
buildTime
()
{
Date
date
=
new
Date
()
String
dates
=
date
.
format
(
"yyyyMMddHHmm"
,
TimeZone
.
getTimeZone
(
"Asia/Shanghai"
))
return
dates
}
String
getAppChannel
()
{
return
project
.
channel
}
\ No newline at end of file
gradle.properties
View file @
92357ce4
...
...
@@ -19,4 +19,7 @@ android.useAndroidX=true
kotlin.code.style
=
official
android.enableJetifier
=
true
android.jetifier.blacklist
=
miya-print
android.useDeprecatedNdk
=
true
\ No newline at end of file
android.useDeprecatedNdk
=
true
#区别品牌
channel
=
CONVERSE
\ No newline at end of file
versions.gradle
View file @
92357ce4
ext
{
VERSION_CODE
=
2
2
VERSION_NAME
=
'2.1.
1
'
VERSION_CODE
=
2
3
VERSION_NAME
=
'2.1.
2
'
}
\ No newline at end of file
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