AntennaPod/build.gradle
Anderson Mesquita 012ed2e8f2 Re-enable linting
We were currently ignoring both deprecation and serial warnings. This
prevents warnings during the build, but hides useful information about
code that could/should be changed for all sorts of reasons.

In some instances of such warnings, the appropriate action is already
being taken (e.g. StorageUtils), so instead of ignoring all warnings, we
can just add a @SuppressWarnings("deprecation") in the appropriate
methods. Others scenarios will require more effort, like replacing
ProgressDialogs with something else. Let's re-enable the lint warnings
and work our way through them.

Closes: #3273
2019-07-21 23:18:38 -04:00

85 lines
2.2 KiB
Groovy

buildscript {
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.8.5'
}
}
allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint"
}
}
}
// Disable predex if requested (we can"t predex in Circle CI
// See http://tools.android.com/tech-docs/new-build-system/tips#TOC-Improving-Build-Server-performance
// and https://circleci.com/docs/android
project.ext.preDexLibs = !project.hasProperty("disablePreDex")
subprojects {
project.plugins.whenPluginAdded { plugin ->
if ("com.android.build.gradle.AppPlugin" == plugin.class.name) {
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
} else if ("com.android.build.gradle.LibraryPlugin" == plugin.class.name) {
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
}
}
}
project.ext {
compileSdkVersion = 26
minSdkVersion = 14
targetSdkVersion = 26
supportVersion = "27.1.1"
lifecycle_version = "1.1.1"
workManagerVersion = "1.0.1"
awaitilityVersion = "3.1.2"
commonsioVersion = "2.5"
commonslangVersion = "3.6"
commonstextVersion = "1.3"
eventbusVersion = "3.1.1"
glideVersion = "4.8.0"
glideOkhttpIntegrationVersion = "4.8.0"
iconifyVersion = "2.2.2"
jsoupVersion = "1.11.2"
materialDialogsVersion = "0.9.0.2"
okhttpVersion = "3.9.0"
okioVersion = "1.14.0"
recyclerviewFlexibledividerVersion = "1.4.0"
robotiumSoloVersion = "5.6.3"
rxAndroidVersion = "2.1.0"
rxJavaVersion = "2.2.2"
rxJavaRulesVersion = "1.3.3.0"
triangleLabelViewVersion = "1.1.2"
exoPlayerVersion = "2.9.3"
audioPlayerVersion = "v1.0.17"
castCompanionLibVer = "2.9.1"
playServicesVersion = "8.4.0"
wearableSupportVersion = "2.2.0"
}
wrapper {
gradleVersion = "4.10.2"
}
// free build hack: common functions
def doFreeBuild() {
return hasProperty("freeBuild")
}