From f025501d371d082c2a549b2b3bd62fd03ddb72ec Mon Sep 17 00:00:00 2001 From: Armin Benz Date: Thu, 13 Apr 2017 22:01:57 +0200 Subject: [PATCH] fuck gradle, stupid fuckin bullshit - shit fuck ~ Mike --- android/AndroidManifest.xml | 2 +- android/build.gradle | 22 ++++++++++++++-------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml index afaf2a4..3cd1afd 100644 --- a/android/AndroidManifest.xml +++ b/android/AndroidManifest.xml @@ -4,7 +4,7 @@ android:versionCode="1" android:versionName="1.0" > - + def outputDir = null - if (jar.name.endsWith("natives-armeabi-v7a.jar")) outputDir = file("libs/armeabi-v7a") - if (jar.name.endsWith("natives-armeabi.jar")) outputDir = file("libs/armeabi") - if (jar.name.endsWith("natives-x86.jar")) outputDir = file("libs/x86") - if (outputDir != null) { + if(jar.name.endsWith("natives-armeabi-v7a.jar")) outputDir = file("libs/armeabi-v7a") + if(jar.name.endsWith("natives-armeabi.jar")) outputDir = file("libs/armeabi") + if(jar.name.endsWith("natives-x86.jar")) outputDir = file("libs/x86") + if(outputDir != null) { copy { from zipTree(jar) into outputDir @@ -36,6 +39,7 @@ task copyAndroidNatives() { } } } + task run(type: Exec) { def path def localProperties = project.file("../local.properties") @@ -57,6 +61,7 @@ task run(type: Exec) { def adb = path + "/platform-tools/adb" commandLine "$adb", 'shell', 'am', 'start', '-n', 'de.samdev.colorrunner.android/de.samdev.colorrunner.android.AndroidLauncher' } + // sets up the Android Eclipse project, using the old Ant based build. eclipse { // need to specify Java source sets explicitely, SpringSource Gradle Eclipse plugin @@ -73,7 +78,7 @@ eclipse { } classpath { - plusConfigurations += project.configurations.compile + plusConfigurations += [ project.configurations.compile ] containers 'com.android.ide.eclipse.adt.ANDROID_FRAMEWORK', 'com.android.ide.eclipse.adt.LIBRARIES' } @@ -87,11 +92,12 @@ eclipse { buildCommand "com.android.ide.eclipse.adt.ApkBuilder" } } + // sets up the Android Idea project, using the old Ant based build. idea { module { sourceDirs += file("src"); - scopes = [COMPILE: [plus: [project.configurations.compile]]] + scopes = [ COMPILE: [plus:[project.configurations.compile]]] iml { withXml { @@ -101,11 +107,11 @@ idea { builder.component(name: "FacetManager") { facet(type: "android", name: "Android") { configuration { - option(name: "UPDATE_PROPERTY_FILES", value: "true") + option(name: "UPDATE_PROPERTY_FILES", value:"true") } } } } } } -} \ No newline at end of file +}