From c749bc145574d4bc9e81e5ebbc673938da2a4bfc Mon Sep 17 00:00:00 2001 From: GaidamakUA Date: Fri, 8 Apr 2016 18:48:48 +0300 Subject: [PATCH] Update to gradle plugin v2.0 --- OsmAnd/build.gradle | 24 ++++++++++++------------ build.gradle | 2 +- gradle.properties | 16 +++++++--------- gradle/wrapper/gradle-wrapper.properties | 4 ++-- 4 files changed, 22 insertions(+), 24 deletions(-) diff --git a/OsmAnd/build.gradle b/OsmAnd/build.gradle index 615f4114b0..d8978c550e 100644 --- a/OsmAnd/build.gradle +++ b/OsmAnd/build.gradle @@ -19,7 +19,7 @@ apply plugin: 'com.android.application' android { compileSdkVersion 23 - buildToolsVersion "23.0.1" + buildToolsVersion "23.0.2" signingConfigs { development { @@ -91,58 +91,58 @@ android { productFlavors { // ABI armv7 { - flavorDimension "abi" + dimension "abi" ndk { abiFilter "armeabi-v7a" } } armv5 { - flavorDimension "abi" + dimension "abi" ndk { abiFilter "armeabi" } } x86 { - flavorDimension "abi" + dimension "abi" ndk { abiFilter "x86" } } mips { - flavorDimension "abi" + dimension "abi" ndk { abiFilter "mips" } } fat { - flavorDimension "abi" + dimension "abi" } // Version freedev { - flavorDimension "version" + dimension "version" applicationId "net.osmand.dev" } free { - flavorDimension "version" + dimension "version" applicationId "net.osmand" } full { - flavorDimension "version" + dimension "version" applicationId "net.osmand.plus" } // CoreVersion legacy { - flavorDimension "coreversion" + dimension "coreversion" } qtcore { - flavorDimension "coreversion" + dimension "coreversion" } qtcoredebug { - flavorDimension "coreversion" + dimension "coreversion" } } diff --git a/build.gradle b/build.gradle index 63e64403d1..f88758a94b 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:1.1.3' + classpath 'com.android.tools.build:gradle:2.0.0' } } diff --git a/gradle.properties b/gradle.properties index 5d08ba75bb..dc093fcfdc 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,18 +1,16 @@ -# Project-wide Gradle settings. - -# IDE (e.g. Android Studio) users: -# Settings specified in this file will override any Gradle settings -# configured through the IDE. - +## Project-wide Gradle settings. +# # For more details on how to configure your build environment visit # http://www.gradle.org/docs/current/userguide/build_environment.html - +# # Specifies the JVM arguments used for the daemon process. # The setting is particularly useful for tweaking memory settings. # Default value: -Xmx10248m -XX:MaxPermSize=256m # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 - +# # When configured, Gradle will run in incubating parallel mode. # This option should only be used with decoupled projects. More details, visit # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects -# org.gradle.parallel=true \ No newline at end of file +# org.gradle.parallel=true +#Fri Apr 08 18:47:31 EEST 2016 +android.useDeprecatedNdk=true diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index a3185c1ef8..b5d3423a5e 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Mon Sep 01 10:23:06 EEST 2014 +#Fri Apr 08 17:52:02 EEST 2016 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip