Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_fiveworld
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
android_fiveworld
Commits
55a8084e
Commit
55a8084e
authored
Jul 10, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
911fc445
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
build.gradle
library_base/build.gradle
+10
-10
version.properties
library_base/version.properties
+1
-1
No files found.
library_base/build.gradle
View file @
55a8084e
...
...
@@ -10,17 +10,17 @@ apply plugin: 'kotlin-allopen'
def
buildVersion
android
{
File
versionPropsFile
=
file
(
'./version.properties'
)
Properties
versionProps
=
new
Properties
()
versionProps
.
load
(
new
FileInputStream
(
versionPropsFile
))
buildVersion
=
versionProps
[
'VERSION_BUILD'
].
toLong
()
+
1
versionProps
[
'VERSION_BUILD'
]
=
buildVersion
.
toString
()
versionProps
.
store
(
versionPropsFile
.
newWriter
(),
null
)
//
File versionPropsFile = file('./version.properties')
//
//
Properties versionProps = new Properties()
//
versionProps.load(new FileInputStream(versionPropsFile))
//
//
buildVersion = versionProps['VERSION_BUILD'].toLong() + 1
//
versionProps['VERSION_BUILD'] = buildVersion.toString()
//
versionProps.store(versionPropsFile.newWriter(), null)
//
defaultConfig
{
buildConfigField
(
"int"
,
"BUILD_VERSION"
,
"${buildVersion}"
)
//
buildConfigField ("int","BUILD_VERSION","${buildVersion}")
}
noArg
{
...
...
library_base/version.properties
View file @
55a8084e
#Sat Jul 10 14:1
3:3
9 CST 2021
#Sat Jul 10 14:1
0:0
9 CST 2021
VERSION_BUILD
=
2725
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