From d8a624b397c1755bc8e65b7a823ef434e8c372f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Thu, 8 Oct 2015 17:11:22 +0200 Subject: [PATCH] End AS formatting madness in build.gradle This was changed to obey Android Studio's formatting of gradle files. Some of what it did was fine, but removing all line spacing is bonkers. --- F-Droid/build.gradle | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/F-Droid/build.gradle b/F-Droid/build.gradle index 4916f4c71..765b8d7e8 100644 --- a/F-Droid/build.gradle +++ b/F-Droid/build.gradle @@ -1,6 +1,7 @@ apply plugin: 'com.android.application' apply plugin: 'witness' apply plugin: 'checkstyle' + if (!hasProperty('sourceDeps')) { repositories { @@ -82,6 +83,7 @@ if (!hasProperty('sourceDeps')) { } } + // Only do the libraries imported from maven repositories. Our own libraries // (like privileged-api-lib) and the prebuilt jars already checked into the // source code don't need to be here. @@ -103,6 +105,7 @@ dependencyVerification { 'org.openhab.jmdns:jmdns:7a4b34b5606bbd2aff7fdfe629edcb0416fccd367fb59a099f210b9aba4f0bce', ] } + task binaryDeps(type: Copy, dependsOn: ':F-Droid:prepareReleaseDependencies') { enabled = project.hasProperty('sourceDeps') @@ -124,6 +127,7 @@ task binaryDeps(type: Copy, dependsOn: ':F-Droid:prepareReleaseDependencies') { } } + android { compileSdkVersion 22 buildToolsVersion '23.0.1' @@ -183,6 +187,7 @@ android { } } + task checkstyle(type: Checkstyle) { configFile file("${project.rootDir}/config/checkstyle/checkstyle.xml") source 'src' @@ -191,6 +196,7 @@ task checkstyle(type: Checkstyle) { classpath = files() } + // This person took the example code below from another blogpost online, however // I lost the reference to it: // http://stackoverflow.com/questions/23297562/gradle-javadoc-and-android-documentation