sourceSets.main.java.srcDirs = ["src/"] sourceCompatibility = '1.8' [compileJava, compileTestJava]*.options*.encoding = 'UTF-8' ext{ mainClassName = "mindustry.ios.IOSLauncher" } task copyAssets(){ doLast{ delete{ delete "assets/" } copy{ from "../core/assets" into "assets/" } exec{ ignoreExitValue true commandLine "sh", "./convert_audio.sh", "assets/sounds" } exec{ ignoreExitValue true commandLine "sh", "./convert_audio.sh", "assets/music" } delete{ delete fileTree('assets') { include '**/*.ogg' } } } } task deploy{ if(System.getProperty("os.name").contains("Mac")) dependsOn copyAssets dependsOn createIPA } launchIPhoneSimulator.dependsOn build launchIPadSimulator.dependsOn build launchIOSDevice.dependsOn build createIPA.dependsOn build robovm{ archs = "thumbv7:arm64" }