Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
QuasselDroid-ng
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Janne Mareike Koschinski
QuasselDroid-ng
Commits
a7f35447
Commit
a7f35447
authored
9 years ago
by
Janne Mareike Koschinski
Browse files
Options
Downloads
Patches
Plain Diff
Updated build.gradle
parent
850ff98f
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/build.gradle
+4
-2
4 additions, 2 deletions
app/build.gradle
with
4 additions
and
2 deletions
app/build.gradle
+
4
−
2
View file @
a7f35447
...
...
@@ -55,7 +55,7 @@ if (project.hasProperty("storeFile")) {
def
versionPropsFile
=
file
(
'version.properties'
)
def
versionBuild
=
0
if
(
versionPropsFile
.
canRead
())
{
if
(
versionPropsFile
.
exists
()
&&
versionPropsFile
.
canRead
())
{
def
Properties
versionProps
=
new
Properties
()
versionProps
.
load
(
new
FileInputStream
(
versionPropsFile
))
...
...
@@ -67,7 +67,9 @@ if (versionPropsFile.canRead()) {
versionProps
[
'VERSION_BUILD'
]
=
versionBuild
.
toString
()
versionProps
.
store
(
versionPropsFile
.
newWriter
(),
null
)
}
else
{
throw
new
GradleException
(
"Could not read version.properties!"
+
versionPropsFile
.
toString
())
// Why 187? Because that’s the last build number of our old build system before
// we switched to travis
versionBuild
=
187
+
System
.
getenv
(
"TRAVIS_JOB_ID"
)
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment