From 6349530fc542c13bba4dbccf7677f97989408ed0 Mon Sep 17 00:00:00 2001 From: Anuken Date: Wed, 8 Aug 2018 14:42:10 -0400 Subject: [PATCH] Updated build.gradle --- build.gradle | 24 +++++++++++++++++++----- ios/robovm.properties | 2 +- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index 5e3e6ec7f2..22d677a674 100644 --- a/build.gradle +++ b/build.gradle @@ -126,21 +126,35 @@ project(":ios") { apply plugin: "java" apply plugin: "robovm" + task copyGen{ + doFirst{ + copy{ + from ("../core/build/classes/java/main/io/anuke/mindustry/gen/"){ + include "**/*.java" + } + + into "../core/src/io/anuke/mindustry/gen" + } + } + + doLast{ + delete{ + delete "../core/src/io/anuke/mindustry/gen/" + } + } + } + + build.finalizedBy(copyGen) dependencies { compile project(":core") implementation project(":kryonet") - compileOnly project(":annotations") compile "com.mobidevelop.robovm:robovm-rt:$roboVMVersion" compile "com.mobidevelop.robovm:robovm-cocoatouch:$roboVMVersion" compile "com.badlogicgames.gdx:gdx-backend-robovm:$gdxVersion" compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-ios" } - - compileJava.options.compilerArgs = [ - "-processor", "io.anuke.annotations.RemoteMethodAnnotationProcessor" - ] } project(":core") { diff --git a/ios/robovm.properties b/ios/robovm.properties index 854980777c..215c08b0c3 100644 --- a/ios/robovm.properties +++ b/ios/robovm.properties @@ -2,5 +2,5 @@ app.version=4.0 app.id=io.anuke.mindustry app.mainclass=io.anuke.mindustry.IOSLauncher app.executable=IOSLauncher -app.build=19 +app.build=20 app.name=Mindustry