Building fix

This commit is contained in:
Anuken
2019-08-28 16:17:04 -04:00
parent a575284bfe
commit 3ce870fb19
2 changed files with 9 additions and 13 deletions
+4 -4
View File
@@ -50,8 +50,8 @@ task deploy(type: Copy){
}
android{
buildToolsVersion '29.0.2'
compileSdkVersion 29
buildToolsVersion '28.0.3'
compileSdkVersion 28
sourceSets{
main{
manifest.srcFile 'AndroidManifest.xml'
@@ -70,12 +70,12 @@ android{
}
defaultConfig{
Integer vcode = new Properties().with{p -> p.load(new FileInputStream(file('../core/assets/version.properties'))); return p }['androidBuildCode'].toInteger()
Integer vcode = new Properties().with{p -> p.load(new FileInputStream(file('../core/assets/version.properties'))); return p }['androidBuildCode']?.toInteger() ?: 1
def versionNameResult = "$versionNumber-$versionType-${getBuildVersion().replace(" ", "-")}"
applicationId "io.anuke.mindustry"
minSdkVersion 14
targetSdkVersion 29
targetSdkVersion 28
versionName versionNameResult
versionCode vcode