mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-30 04:22:18 -05:00
Speed up build: Upgrade to Gradle Android Plugin 0.10.0, Disable Lint
This commit is contained in:
parent
4b9607eda0
commit
8e645453b1
@ -5,7 +5,7 @@ buildscript {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:0.9.0'
|
||||
classpath 'com.android.tools.build:gradle:0.10.0'
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,7 +5,7 @@ buildscript {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:0.9.0'
|
||||
classpath 'com.android.tools.build:gradle:0.10.0'
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,7 +5,7 @@ buildscript {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:0.9.0'
|
||||
classpath 'com.android.tools.build:gradle:0.10.0'
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -80,9 +80,12 @@ android {
|
||||
buildTypes.release.signingConfig = null
|
||||
}
|
||||
|
||||
// Do not abort build if lint finds errors
|
||||
// NOTE: Lint is disabled because it slows down builds,
|
||||
// to enable it comment out the code at the bottom of this build.gradle
|
||||
lintOptions {
|
||||
// Do not abort build if lint finds errors
|
||||
abortOnError false
|
||||
|
||||
checkAllWarnings true
|
||||
htmlReport true
|
||||
htmlOutput file("lint-report.html")
|
||||
@ -103,4 +106,12 @@ task localTest(type: Test, dependsOn: assemble) {
|
||||
classpath = sourceSets.testLocal.runtimeClasspath
|
||||
}
|
||||
|
||||
// NOTE: This disables Lint!
|
||||
tasks.whenTaskAdded { task ->
|
||||
if (task.name.equals("lint")) {
|
||||
task.enabled = false
|
||||
}
|
||||
}
|
||||
|
||||
// NOTE: tests disabled!
|
||||
//check.dependsOn localTest
|
||||
|
@ -125,6 +125,11 @@ When changing build files or dependencies, respect the following requirements:
|
||||
* run ./gradlew wrapper twice to update gradle and download the new gradle jar file
|
||||
* commit the new gradle jar and property files
|
||||
|
||||
### Slow Gradle?
|
||||
|
||||
* https://www.timroes.de/2013/09/12/speed-up-gradle/
|
||||
* Disable Lint checking if it is enabled in build.gradle
|
||||
|
||||
### Translations
|
||||
|
||||
Translations are hosted on Transifex, which is configured by ".tx/config".
|
||||
|
@ -4,7 +4,7 @@ buildscript {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:0.9.0'
|
||||
classpath 'com.android.tools.build:gradle:0.10.0'
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user