mirror of
https://github.com/apache/cordova-android.git
synced 2026-05-30 00:00:04 +08:00
feat: AndroidShowDeprecations preference flag (#1822)
This commit is contained in:
@@ -40,6 +40,18 @@ allprojects {
|
||||
}
|
||||
|
||||
repositories repos
|
||||
|
||||
subprojects {
|
||||
afterEvaluate {
|
||||
tasks.withType(JavaCompile).tap {
|
||||
configureEach {
|
||||
if (cordovaConfig.JAVA_SHOW_DEPRECATIONS == true) {
|
||||
options.compilerArgs += "-Xlint:deprecation"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
task clean(type: Delete) {
|
||||
|
||||
Reference in New Issue
Block a user