Commit b4811593 authored by Matyáš Latner's avatar Matyáš Latner

#653 Fixed iOS build with iTest

parent 2ba34834
......@@ -15,8 +15,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
sourceSets.main.java.srcDirs = [ "src/" ]
targetCompatibility = '1.8'
sourceCompatibility = '1.8'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
......@@ -114,41 +112,41 @@ task updateRoboVMXML << {
}
tasks.launchIPadSimulator.doFirst {
robovm.iosSignIdentity = TABLEXIA_IOS_SIGNING_IDENTITY
robovm.iosSignIdentity = TABLEXIA_IOS_SIGNING_IDENTITY_DEVEL
updateRoboVMProperties("devel", applicationIdDevel, mainLauncherClassName, 'Icon_devel', sentryDSNFallbackValue)
}
tasks.launchIPhoneSimulator.doFirst {
robovm.iosSignIdentity = TABLEXIA_IOS_SIGNING_IDENTITY
robovm.iosSignIdentity = TABLEXIA_IOS_SIGNING_IDENTITY_DEVEL
updateRoboVMProperties("devel", applicationIdDevel, mainLauncherClassName, 'Icon_devel', sentryDSNFallbackValue)
}
tasks.launchIOSDevice.doFirst {
robovm.iosSignIdentity = TABLEXIA_IOS_SIGNING_IDENTITY
robovm.iosSignIdentity = TABLEXIA_IOS_SIGNING_IDENTITY_DEVEL
updateRoboVMProperties("devel", applicationIdDevel, mainLauncherClassName, 'Icon_devel', sentryDSNFallbackValue)
}
tasks.create(name: "launchITestOnIPadSimulator", type: org.robovm.gradle.tasks.IPadSimulatorTask) {
doFirst {
project.ext.set("output.classesDir", new File("ios/build/classes/iTest"))
robovm.iosSignIdentity = TABLEXIA_IOS_SIGNING_IDENTITY
updateRoboVMProperties("itest", applicationIdDebug, iTestLauncherClassName, 'Icon_itest')
robovm.iosSignIdentity = TABLEXIA_IOS_SIGNING_IDENTITY_DEVEL
updateRoboVMProperties("itest", applicationIdITest, iTestLauncherClassName, 'Icon_itest', sentryDSNFallbackValue)
}
}
tasks.create(name: "launchITestOnIPhoneSimulator", type: org.robovm.gradle.tasks.IPhoneSimulatorTask) {
doFirst {
project.ext.set("output.classesDir", new File("ios/build/classes/iTest"))
robovm.iosSignIdentity = TABLEXIA_IOS_SIGNING_IDENTITY
updateRoboVMProperties("itest", applicationIdDebug, iTestLauncherClassName, 'Icon_itest')
robovm.iosSignIdentity = TABLEXIA_IOS_SIGNING_IDENTITY_DEVEL
updateRoboVMProperties("itest", applicationIdITest, iTestLauncherClassName, 'Icon_itest', sentryDSNFallbackValue)
}
}
tasks.create(name: "launchITestOnIOSDevice", type: org.robovm.gradle.tasks.IOSDeviceTask) {
doFirst {
project.ext.set("output.classesDir", new File("ios/build/classes/iTest"))
robovm.iosSignIdentity = TABLEXIA_IOS_SIGNING_IDENTITY
updateRoboVMProperties("itest", applicationIdDebug, iTestLauncherClassName, 'Icon_itest')
robovm.iosSignIdentity = TABLEXIA_IOS_SIGNING_IDENTITY_DEVEL
updateRoboVMProperties("itest", applicationIdITest, iTestLauncherClassName, 'Icon_itest', sentryDSNFallbackValue)
}
}
......@@ -157,7 +155,7 @@ tasks.create(name: "createITestIPA", type: org.robovm.gradle.tasks.ArchiveTask)
project.ext.set("output.classesDir", new File("ios/build/classes/iTest"))
robovm.iosSignIdentity = TABLEXIA_IOS_SIGNING_IDENTITY
robovm.iosProvisioningProfile = TABLEXIA_IOS_DEBUG_PROVISIONING
updateRoboVMProperties("itest", applicationIdDebug, iTestLauncherClassName, 'Icon_itest')
updateRoboVMProperties("itest", applicationIdITest, iTestLauncherClassName, 'Icon_itest', project.sentryDSN)
}
}
......@@ -187,22 +185,22 @@ task createIPAFiles() {
dependsOn createITestIPA
}
launchIPadSimulator.dependsOn assemble
launchIPadSimulator.dependsOn jar
launchIPadSimulator.dependsOn updateRoboVMXML
launchIPhoneSimulator.dependsOn assemble
launchIPhoneSimulator.dependsOn jar
launchIPhoneSimulator.dependsOn updateRoboVMXML
launchIOSDevice.dependsOn assemble
launchIOSDevice.dependsOn jar
launchIOSDevice.dependsOn updateRoboVMXML
updateRoboVMXML.dependsOn(':util:checksum:runChecksum')
launchITestOnIPadSimulator.dependsOn iTestClasses
launchITestOnIPadSimulator.dependsOn assemble
launchITestOnIPadSimulator.dependsOn jar
launchITestOnIPadSimulator.dependsOn updateRoboVMXML
launchITestOnIPhoneSimulator.dependsOn iTestClasses
launchITestOnIPhoneSimulator.dependsOn assemble
launchITestOnIPhoneSimulator.dependsOn jar
launchITestOnIPhoneSimulator.dependsOn updateRoboVMXML
launchITestOnIOSDevice.dependsOn iTestClasses
launchITestOnIOSDevice.dependsOn assemble
launchITestOnIOSDevice.dependsOn jar
launchITestOnIOSDevice.dependsOn updateRoboVMXML
updateRoboVMXML.dependsOn copyNatives
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment