Mindustry/ios/build.gradle

52 lines
990 B
Groovy
Raw Normal View History

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{
2019-12-26 00:06:19 +07:00
mainClassName = "mindustry.ios.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 07:50:26 +07:00
delete{
delete "assets/"
}
2019-08-15 00:10:29 +07:00
2019-08-15 07:50:26 +07:00
copy{
from "../core/assets"
into "assets/"
}
exec{
2019-08-16 09:44:37 +07:00
ignoreExitValue true
2019-08-15 07:50:26 +07:00
commandLine "sh", "./convert_audio.sh", "assets/sounds"
}
exec{
2019-08-16 09:44:37 +07:00
ignoreExitValue true
2019-08-15 07:50:26 +07:00
commandLine "sh", "./convert_audio.sh", "assets/music"
}
delete{
delete fileTree('assets') {
include '**/*.ogg'
}
2019-08-15 00:10:29 +07:00
}
2019-08-15 00:53:23 +07:00
}
2019-08-15 00:10:29 +07:00
}
2019-08-26 23:23:09 +07:00
task deploy{
dependsOn copyAssets
dependsOn createIPA
}
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
}