11import com.android.build.gradle.internal.dsl.TestOptions
22
3+ plugins {
4+ id(" com.android.library" )
5+ id(" com.vanniktech.maven.publish" )
6+ }
7+
38android {
9+ compileSdkVersion(Config .SdkVersions .compile)
10+
11+ defaultConfig {
12+ minSdkVersion(Config .SdkVersions .min)
13+ targetSdkVersion(Config .SdkVersions .target)
14+
15+ versionName = Config .version
16+ versionCode = 1
17+
18+ resourcePrefix(" fui_" )
19+ vectorDrawables.useSupportLibrary = true
20+ }
21+
422 buildTypes {
523 named(" release" ).configure {
624 isMinifyEnabled = false
@@ -9,13 +27,31 @@ android {
927 }
1028
1129 lintOptions {
12- disable(" UnusedQuantity" )
13- disable(" UnknownNullness" ) // TODO fix in future PR
14- disable(" TypographyQuotes" ) // Straight versus directional quotes
15- disable(" DuplicateStrings" )
16- disable(" LocaleFolder" )
17- disable(" IconLocation" )
18- disable(" VectorPath" )
30+ // Common lint options across all modules
31+ disable(
32+ " ObsoleteLintCustomCheck" , // ButterKnife will fix this in v9.0
33+ " IconExpectedSize" ,
34+ " InvalidPackage" , // Firestore uses GRPC which makes lint mad
35+ " NewerVersionAvailable" , " GradleDependency" , // For reproducible builds
36+ " SelectableText" , " SyntheticAccessor" // We almost never care about this
37+ )
38+
39+ // Module specific
40+ disable(
41+ " UnusedQuantity" ,
42+ " UnknownNullness" , // TODO fix in future PR
43+ " TypographyQuotes" , // Straight versus directional quotes
44+ " DuplicateStrings" ,
45+ " LocaleFolder" ,
46+ " IconLocation" ,
47+ " VectorPath"
48+ )
49+
50+ isCheckAllWarnings = true
51+ isWarningsAsErrors = true
52+ isAbortOnError = true
53+
54+ baselineFile = file(" $rootDir /library/quality/lint-baseline.xml" )
1955 }
2056
2157 testOptions {
0 commit comments