diff --git a/config/lint/lint.xml b/config/lint/lint.xml
new file mode 100644
index 0000000000..ddb2d9d6f4
--- /dev/null
+++ b/config/lint/lint.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/example/build.gradle b/example/build.gradle
index d8f19d5ee6..c57710ae63 100644
--- a/example/build.gradle
+++ b/example/build.gradle
@@ -44,10 +44,6 @@ android {
}
}
- lint {
- warning 'InvalidPackage'
- }
-
testOptions {
// Don't use the test orchestrator yet, some of our connected testsare sharing state to reduce network
// pressure on the API (authentication/fetch profile/fetch sites).
@@ -63,6 +59,11 @@ android {
}
}
+ lint {
+ lintConfig file("${project.rootDir}/config/lint/lint.xml")
+ enable += 'UnknownNullness'
+ }
+
buildFeatures {
buildConfig true
viewBinding true
diff --git a/fluxc/build.gradle b/fluxc/build.gradle
index 456795067a..9c424cc0f4 100644
--- a/fluxc/build.gradle
+++ b/fluxc/build.gradle
@@ -26,6 +26,7 @@ android {
}
consumerProguardFiles 'proguard-rules.pro'
}
+
buildTypes {
release {
minifyEnabled false
@@ -33,6 +34,11 @@ android {
}
}
+ lint {
+ lintConfig file("${project.rootDir}/config/lint/lint.xml")
+ enable += 'UnknownNullness'
+ }
+
testOptions {
unitTests.includeAndroidResources = true
}
diff --git a/fluxc/lint.xml b/fluxc/lint.xml
deleted file mode 100644
index 8977c5c43f..0000000000
--- a/fluxc/lint.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/woocommerce/build.gradle b/plugins/woocommerce/build.gradle
index aeedc4923a..3e243604ff 100644
--- a/plugins/woocommerce/build.gradle
+++ b/plugins/woocommerce/build.gradle
@@ -24,6 +24,7 @@ android {
}
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
+
buildTypes {
release {
minifyEnabled false
@@ -31,6 +32,11 @@ android {
}
}
+ lint {
+ lintConfig file("${project.rootDir}/config/lint/lint.xml")
+ enable += 'UnknownNullness'
+ }
+
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
androidTest.assets.srcDirs += files("$projectDir/schemas".toString())