From 1eb53743996ffdabb6372a59f10d608f5830314e Mon Sep 17 00:00:00 2001 From: pacien Date: Mon, 12 Feb 2018 19:25:26 +0100 Subject: Adjust lint options (workaround a Gradle-Kotlin bug) --- app/build.gradle | 12 ++++++++---- app/lint.xml | 15 +++++++++++++++ 2 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 app/lint.xml (limited to 'app') diff --git a/app/build.gradle b/app/build.gradle index ce5cdb0..272d4c9 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -7,12 +7,12 @@ android { buildToolsVersion '26.0.2' defaultConfig { - applicationId "org.pacien.tincapp" + applicationId 'org.pacien.tincapp' minSdkVersion 21 targetSdkVersion 21 multiDexEnabled true versionCode 8 - versionName "0.8" + versionName '0.8' ndk { abiFilters 'x86', 'x86_64', 'armeabi', 'armeabi-v7a', 'arm64-v8a' } @@ -27,12 +27,16 @@ android { externalNativeBuild { cmake { - path "CMakeLists.txt" + path 'CMakeLists.txt' } } lintOptions { - disable 'MissingTranslation' + // 20180212: + // Lint checks on Kotlin files only work from the Android Studio IDE. + // They currently do not run when you run lint directly from Gradle. + // https://developer.android.com/studio/preview/kotlin-issues.html + disable 'OnClick', 'UnusedResources' } } diff --git a/app/lint.xml b/app/lint.xml new file mode 100644 index 0000000..04dadc1 --- /dev/null +++ b/app/lint.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + -- cgit v1.2.3