Browse Source

Merge "Fix and suppress an assortment of ErrorProne warnings." into oc-dev

transition-compose-core
TreeHugger Robot 7 years ago committed by Android (Google) Code Review
parent
commit
2acf5c96f3
  1. 10
      src/main/groovy/android/support/SupportLibraryPlugin.groovy

10
src/main/groovy/android/support/SupportLibraryPlugin.groovy

@ -17,7 +17,6 @@
package android.support
import com.android.build.gradle.LibraryExtension
import com.android.build.gradle.api.AndroidSourceSet
import com.android.build.gradle.api.LibraryVariant
import com.android.builder.core.BuilderConstants
import com.google.common.collect.ImmutableMap
@ -184,12 +183,13 @@ class SupportLibraryPlugin implements Plugin<Project> {
if (libraryVariant.getBuildType().getName().equals("errorProne")) {
libraryVariant.getJavaCompile().setToolChain(toolChain);
// TODO(aurimas): remove this once all these warnings are fixed.
libraryVariant.getJavaCompile().options.compilerArgs += [
'-Xep:ArrayToString:WARN',
// TODO(aurimas): remove this once all these warnings are fixed.
'-Xep:RectIntersectReturnValueIgnored:WARN',
'-Xep:FallThrough:WARN',
'-XDcompilePolicy=simple' // Workaround for b/36098770
'-XDcompilePolicy=simple', // Workaround for b/36098770
// Enforce the following checks.
'-Xep:MissingOverride:ERROR',
]
}
}

Loading…
Cancel
Save