forked from 00-Evan/shattered-pixel-dungeon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
43 lines (33 loc) · 1.75 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
apply plugin: "java"
apply plugin: "robovm"
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
sourceCompatibility = targetCompatibility = appJavaCompatibility
task updateRoboVMProps(){
def props = new Properties()
props.setProperty ('appName', appName)
//append .apple because com.shatteredpixel.shatteredpixeldungeon was taken =(
props.setProperty ('appPackageName', appPackageName + ".apple")
props.setProperty ('appVersionCode', appVersionCode.toString())
props.setProperty ('appVersionName', appVersionName)
//parse out just #.#.# from version name, this is an apple requirement
props.setProperty ('appShortVersionName', (appVersionName =~ /\d+\.\d+\.\d+/)[0])
props.setProperty ('appMainclass', "com.shatteredpixel.shatteredpixeldungeon.ios.IOSLauncher")
props.setProperty ('appExecutable', "IOSLauncher")
file("robovm.properties").withWriter { props.store(it, "Dynamically generated, do not commit to version control!") }
}
build.dependsOn updateRoboVMProps
launchIPhoneSimulator.dependsOn build
launchIPadSimulator.dependsOn build
launchIOSDevice.dependsOn build
createIPA.dependsOn build
dependencies {
implementation project(':core')
implementation project(':services:updates:debugUpdates')
implementation project(':services:news:shatteredNews')
implementation "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
implementation "com.mobidevelop.robovm:robovm-rt:$robovmVersion"
implementation "com.mobidevelop.robovm:robovm-cocoatouch:$robovmVersion"
implementation "com.badlogicgames.gdx:gdx-backend-robovm:$gdxVersion"
implementation "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-ios"
implementation "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-ios"
}