Achievement fixes

This commit is contained in:
Anuken
2020-11-30 18:58:20 -05:00
parent c0c8235e3d
commit 4c777fba5c
2 changed files with 4 additions and 3 deletions

View File

@@ -297,9 +297,10 @@ project(":core"){
def props = loadVersionProps()
def androidVersion = props['androidBuildCode'].toInteger() - 2
def loglines = file("../changelog").text.split("\n")
def notice = "[This is a truncated changelog, see Github for full notes]"
def maxLength = 460
def androidLogList = loglines.findAll{ line -> !line.endsWith("]") || line.endsWith("[Mobile]") || line.endsWith("[Android]")}
def androidLogList = [notice] + loglines.findAll{ line -> !line.endsWith("]") || line.endsWith("[Mobile]") || line.endsWith("[Android]")}
def result = ""
androidLogList.forEach{line ->
if(result.length() + line.length() + 1 < maxLength){