diff --git a/android/build.gradle b/android/build.gradle
index 884e2c04..9821c0c2 100644
--- a/android/build.gradle
+++ b/android/build.gradle
@@ -43,20 +43,17 @@ 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"
+ lintConfig file("lint.xml")
}
+
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..11149ca5
--- /dev/null
+++ b/android/lint-baseline.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
diff --git a/android/lint.xml b/android/lint.xml
new file mode 100644
index 00000000..0e7a8f71
--- /dev/null
+++ b/android/lint.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+