mirror of
https://github.com/aljazceru/Android-nRF-Toolbox.git
synced 2026-01-04 15:24:19 +01:00
Change code version to base on number of commits
This commit is contained in:
@@ -2,10 +2,10 @@ ext.getVersionCodeFromTags = { ->
|
||||
try {
|
||||
def code = new ByteArrayOutputStream()
|
||||
exec {
|
||||
commandLine 'git', 'tag', '--list'
|
||||
commandLine 'git', 'log'
|
||||
standardOutput = code
|
||||
}
|
||||
return 35 + code.toString().split("\n").size()
|
||||
return code.toString().split("\n").size()
|
||||
}
|
||||
catch (ignored) {
|
||||
return -1
|
||||
|
||||
Reference in New Issue
Block a user