build.gradle 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. buildscript {
  2. repositories {
  3. mavenCentral()
  4. }
  5. dependencies {
  6. classpath "com.mobidevelop.robovm:robovm-gradle-plugin:$robovmVersion"
  7. }
  8. }
  9. apply plugin: 'robovm'
  10. [compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
  11. ext {
  12. mainClassName = "xyz.prismix.ios.IOSLauncher"
  13. }
  14. launchIPhoneSimulator.dependsOn build
  15. launchIPadSimulator.dependsOn build
  16. launchIOSDevice.dependsOn build
  17. createIPA.dependsOn build
  18. eclipse.project {
  19. name = appName + "-ios"
  20. natures 'org.robovm.eclipse.RoboVMNature'
  21. }
  22. dependencies {
  23. implementation "com.badlogicgames.gdx:gdx-backend-robovm:$gdxVersion"
  24. implementation "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-ios"
  25. implementation "com.badlogicgames.gdx:gdx-bullet-platform:$gdxVersion:natives-ios"
  26. implementation "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-ios"
  27. implementation "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-ios"
  28. implementation "com.github.MrStahlfelge.gdx-websockets:common:$websocketVersion"
  29. implementation "com.mobidevelop.robovm:robovm-cocoatouch:$robovmVersion"
  30. implementation "com.mobidevelop.robovm:robovm-rt:$robovmVersion"
  31. implementation project(':core')
  32. }