Android build fixes
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user