From 82c9fe78a60e0d37e2f31851c1c9fea5f6190cfa Mon Sep 17 00:00:00 2001 From: Philip Gichuhi Date: Tue, 19 Nov 2024 12:34:07 +0300 Subject: [PATCH] Add android lint baseline file --- android/build.gradle | 14 +++++--------- android/lint-baseline.xml | 22 ++++++++++++++++++++++ 2 files changed, 27 insertions(+), 9 deletions(-) create mode 100644 android/lint-baseline.xml diff --git a/android/build.gradle b/android/build.gradle index 884e2c04..0d352d25 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -43,20 +43,16 @@ android { targetCompatibility JavaVersion.VERSION_1_8 } + lint { + baseline = file("lint-baseline.xml") + } + lintOptions { textOutput "stdout" checkAllWarnings true warningsAsErrors true - disable "UnusedResources" // Unused will be removed on release - disable "IconExpectedSize" // Using the material icons provided from Google - disable "GoogleAppIndexingApiWarning" // We might want to index our app later - disable "InvalidPackage" // Butterknife, Okio and Realm - disable "ResourceType" // Annotation binding - disable "GradleDependency" - disable "NewerVersionAvailable" - disable "DuplicatePlatformClasses" // xpp3 added by azure-identity - disable "LambdaLast" } + sourceSets { main { java.srcDirs = ['../src/main/java'] diff --git a/android/lint-baseline.xml b/android/lint-baseline.xml new file mode 100644 index 00000000..be568d61 --- /dev/null +++ b/android/lint-baseline.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + +