diff --git a/android/build.gradle b/android/build.gradle
index b15a589ba5c401fde5c6f8adbfc97e950146e33c..9ab1ade2fdc0ed7a3ca1d2ee598750bcd707769c 100644 (file)
--- a/android/build.gradle
+++ b/android/build.gradle
assets.srcDirs = ['assets']
jniLibs.srcDirs = ['libs']
}
assets.srcDirs = ['assets']
jniLibs.srcDirs = ['libs']
}
-
+ debug {
+ res.srcDirs = ['debug/res']
+ }
instrumentTest.setRoot('tests')
}
packagingOptions {
exclude 'META-INF/robovm/ios/robovm.xml'
}
defaultConfig {
instrumentTest.setRoot('tests')
}
packagingOptions {
exclude 'META-INF/robovm/ios/robovm.xml'
}
defaultConfig {
- applicationId "ru.deadsoftware.cavecraft"
+ applicationId "ru.deadsoftware.cavedroid"
minSdkVersion 9
targetSdkVersion 20
minSdkVersion 9
targetSdkVersion 20
- versionCode 4
- versionName "alpha0.3-dev"
+ versionCode 5
+ versionName "alpha0.4"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
+ debug {
+ applicationIdSuffix ".debug"
+ }
}
}
// called every time gradle gets executed, takes the native dependencies of
// the natives configuration, and extracts them to the proper libs/ folders
// so they get packed with the APK.
task copyAndroidNatives() {
}
}
// called every time gradle gets executed, takes the native dependencies of
// the natives configuration, and extracts them to the proper libs/ folders
// so they get packed with the APK.
task copyAndroidNatives() {
- file("libs/armeabi/").mkdirs();
- file("libs/armeabi-v7a/").mkdirs();
- file("libs/arm64-v8a/").mkdirs();
- file("libs/x86_64/").mkdirs();
- file("libs/x86/").mkdirs();
+ file("libs/armeabi/").mkdirs()
+ file("libs/armeabi-v7a/").mkdirs()
+ file("libs/arm64-v8a/").mkdirs()
+ file("libs/x86_64/").mkdirs()
+ file("libs/x86/").mkdirs()
configurations.natives.files.each { jar ->
def outputDir = null
configurations.natives.files.each { jar ->
def outputDir = null
}
def adb = path + "/platform-tools/adb"
}
def adb = path + "/platform-tools/adb"
- commandLine "$adb", 'shell', 'am', 'start', '-n', 'ru.deadsoftware.cavecraft/ru.deadsoftware.cavecraft.AndroidLauncher'
+ commandLine "$adb", 'shell', 'am', 'start', '-n', 'ru.deadsoftware.cavedroid/ru.deadsoftware.cavedroid.AndroidLauncher'
}
// sets up the Android Eclipse project, using the old Ant based build.
eclipse {
}
// sets up the Android Eclipse project, using the old Ant based build.
eclipse {
project {
name = appName + "-android"
natures 'com.android.ide.eclipse.adt.AndroidNature'
project {
name = appName + "-android"
natures 'com.android.ide.eclipse.adt.AndroidNature'
- buildCommands.clear();
+ buildCommands.clear()
buildCommand "com.android.ide.eclipse.adt.ResourceManagerBuilder"
buildCommand "com.android.ide.eclipse.adt.PreCompilerBuilder"
buildCommand "org.eclipse.jdt.core.javabuilder"
buildCommand "com.android.ide.eclipse.adt.ResourceManagerBuilder"
buildCommand "com.android.ide.eclipse.adt.PreCompilerBuilder"
buildCommand "org.eclipse.jdt.core.javabuilder"
// sets up the Android Idea project, using the old Ant based build.
idea {
module {
// sets up the Android Idea project, using the old Ant based build.
idea {
module {
- sourceDirs += file("src");
+ sourceDirs += file("src")
scopes = [COMPILE: [plus: [project.configurations.compile]]]
iml {
withXml {
def node = it.asNode()
scopes = [COMPILE: [plus: [project.configurations.compile]]]
iml {
withXml {
def node = it.asNode()
- def builder = NodeBuilder.newInstance();
- builder.current = node;
+ def builder = NodeBuilder.newInstance()
+ builder.current = node
builder.component(name: "FacetManager") {
facet(type: "android", name: "Android") {
configuration {
builder.component(name: "FacetManager") {
facet(type: "android", name: "Android") {
configuration {