Game Development Reference
In-Depth Information
compile "com.badlogicgames.gdx:gdx-
platform:$gdxVersion:natives-desktop"
compile "com.badlogicgames.gdx:gdx-box2d-
platform:$gdxVersion:natives-desktop"
compile "com.badlogicgames.gdx:gdx-tools:$gdxVersion"
}
}
• To add the Android dependency, use this:
project(":android") {
apply plugin: "android"
configurations { natives }
dependencies {
compile project(":core")
compile "com.badlogicgames.gdx:gdx-backend-
android:$gdxVersion"
natives "com.badlogicgames.gdx:gdx-
platform:$gdxVersion:natives-armeabi"
natives "com.badlogicgames.gdx:gdx-
platform:$gdxVersion:natives-armeabi-v7a"
natives "com.badlogicgames.gdx:gdx-
platform:$gdxVersion:natives-x86"
compile "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
natives "com.badlogicgames.gdx:gdx-box2d-
platform:$gdxVersion:natives-armeabi"
natives "com.badlogicgames.gdx:gdx-box2d-
platform:$gdxVersion:natives-armeabi-v7a"
natives "com.badlogicgames.gdx:gdx-box2d-
platform:$gdxVersion:natives-x86"
}
}
• To add the iOS dependency, use this:
project(":ios") {
apply plugin: "java"
apply plugin: "robovm"
configurations { natives }
dependencies {
compile project(":core")
compile "org.robovm:robovm-rt:${roboVMVersion}"
compile "org.robovm:robovm-cocoatouch:${roboVMVersion}"
compile "com.badlogicgames.gdx:gdx-backend-robovm:$gdxVersion"
 
Search WWH ::




Custom Search