-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
52 lines (43 loc) · 1.42 KB
/
build.gradle.kts
File metadata and controls
52 lines (43 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
plugins {
id("com.android.library")
id("com.vanniktech.maven.publish")
}
android {
compileSdk = Config.SdkVersions.compile
namespace = "com.firebase.ui.common"
defaultConfig {
minSdk = Config.SdkVersions.min
targetSdk = Config.SdkVersions.target
resourcePrefix("fui_")
vectorDrawables.useSupportLibrary = true
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
lint {
// Common lint options across all modules
disable += mutableSetOf(
"IconExpectedSize",
"InvalidPackage", // Firestore uses GRPC which makes lint mad
"NewerVersionAvailable", "GradleDependency", // For reproducible builds
"SelectableText", "SyntheticAccessor" // We almost never care about this
)
checkAllWarnings = true
warningsAsErrors = true
abortOnError = true
baseline = file("$rootDir/library/quality/lint-baseline.xml")
}
buildTypes {
named("release").configure {
isMinifyEnabled = false
consumerProguardFiles("proguard-rules.pro")
}
}
}
dependencies {
api(Config.Libs.Androidx.lifecycleRuntime)
api(Config.Libs.Androidx.lifecycleViewModel)
implementation(Config.Libs.Androidx.annotations)
annotationProcessor(Config.Libs.Androidx.lifecycleCompiler)
}