Android build fixes

This commit is contained in:
Anuken
2022-06-06 11:31:38 -04:00
parent 0177902010
commit 49d859f6bb
5 changed files with 50 additions and 42 deletions

View File

@@ -1,3 +1,47 @@
buildscript{
repositories{
mavenCentral()
}
dependencies{
classpath "com.mobidevelop.robovm:robovm-gradle-plugin:2.3.15"
}
}
apply plugin: "java"
apply plugin: "robovm"
task incrementConfig{
def vfile = file('robovm.properties')
def bversion = getBuildVersion()
def props = new Properties()
if(vfile.exists()){
props.load(new FileInputStream(vfile))
}else{
props['app.id'] = 'io.anuke.mindustry'
props['app.version'] = '7.0'
props['app.mainclass'] = 'mindustry.IOSLauncher'
props['app.executable'] = 'IOSLauncher'
props['app.name'] = 'Mindustry'
}
props['app.build'] = (!props.containsKey("app.build") ? 40 : props['app.build'].toInteger() + 1) + ""
if(bversion != "custom build"){
props['app.version'] = versionNumber + "." + bversion + (bversion.contains(".") ? "" : ".0")
}
props.store(vfile.newWriter(), null)
}
dependencies{
implementation project(":core")
implementation arcModule("natives:natives-ios")
implementation arcModule("natives:natives-freetype-ios")
implementation arcModule("backends:backend-robovm")
compileOnly project(":annotations")
}
sourceSets.main.java.srcDirs = ["src/"]
ext{