2019-04-08 20:03:18 +07:00
|
|
|
sourceSets.main.java.srcDirs = ["src/"]
|
2018-04-28 03:01:37 +07:00
|
|
|
|
|
|
|
sourceCompatibility = '1.8'
|
|
|
|
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
|
|
|
|
2019-04-08 20:03:18 +07:00
|
|
|
ext{
|
|
|
|
mainClassName = "io.anuke.mindustry.IOSLauncher"
|
2018-04-28 03:01:37 +07:00
|
|
|
}
|
|
|
|
|
2019-08-15 00:10:29 +07:00
|
|
|
task copyAssets(){
|
2019-08-15 00:53:23 +07:00
|
|
|
doLast{
|
2019-08-15 00:10:29 +07:00
|
|
|
delete{
|
|
|
|
delete "assets/"
|
|
|
|
}
|
|
|
|
|
|
|
|
copy{
|
|
|
|
from "../core/assets"
|
|
|
|
into "assets/"
|
|
|
|
}
|
|
|
|
|
|
|
|
exec{
|
|
|
|
commandLine "sh", "./convert_audio.sh", "assets/sounds"
|
|
|
|
}
|
|
|
|
|
|
|
|
exec{
|
|
|
|
commandLine "sh", "./convert_audio.sh", "assets/music"
|
|
|
|
}
|
|
|
|
|
|
|
|
delete{
|
|
|
|
delete fileTree('assets') {
|
|
|
|
include '**/*.ogg'
|
|
|
|
}
|
|
|
|
}
|
2019-08-15 00:53:23 +07:00
|
|
|
}
|
2019-08-15 00:10:29 +07:00
|
|
|
}
|
|
|
|
|
2019-08-15 00:47:16 +07:00
|
|
|
createIPA.dependsOn copyAssets
|
|
|
|
launchIPhoneSimulator.dependsOn copyAssets
|
|
|
|
launchIOSDevice.dependsOn copyAssets
|
|
|
|
launchIPadSimulator.dependsOn copyAssets
|
2019-08-15 00:10:29 +07:00
|
|
|
|
2018-04-28 03:01:37 +07:00
|
|
|
launchIPhoneSimulator.dependsOn build
|
|
|
|
launchIPadSimulator.dependsOn build
|
|
|
|
launchIOSDevice.dependsOn build
|
|
|
|
createIPA.dependsOn build
|
|
|
|
|
2019-04-08 20:03:18 +07:00
|
|
|
robovm{
|
|
|
|
archs = "thumbv7:arm64"
|
2019-08-15 00:53:23 +07:00
|
|
|
}
|