Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
6
600SeriesAndroidUploader
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
cgm
uploader
600SeriesAndroidUploader
Commits
682928a3
Commit
682928a3
authored
7 years ago
by
Lennart Goedhart
Browse files
Options
Downloads
Patches
Plain Diff
Base versionCode for build on number of tags, not number of releases
parent
df52b357
No related branches found
Branches containing commit
Tags
v0.2.0
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/build.gradle
+1
-1
1 addition, 1 deletion
app/build.gradle
with
1 addition
and
1 deletion
app/build.gradle
+
1
−
1
View file @
682928a3
...
...
@@ -31,7 +31,7 @@ apply plugin: 'realm-android'
def
generateVersionCode
()
{
// We need to get the number of releases directly from GitHub, since Travis
// does a "git clone --depth=50", meaning we don't get all the tags locally.
String
url
=
"https://api.github.com/repos/pazaan/600SeriesAndroidUploader/
release
s"
String
url
=
"https://api.github.com/repos/pazaan/600SeriesAndroidUploader/
tag
s"
def
json
=
new
JsonSlurper
().
parseText
(
url
.
toURL
().
text
)
def
numOfTags
=
json
.
size
()
...
...
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