-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
88 lines (71 loc) · 2.49 KB
/
build.gradle.kts
File metadata and controls
88 lines (71 loc) · 2.49 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
plugins {
id("com.android.application")
}
// This is always set to 'true' on Travis CI
val inCiBuild = System.getenv("CI") == "true"
android {
compileSdk = Config.SdkVersions.compile
namespace = "com.firebase.uidemo"
defaultConfig {
applicationId = "com.firebaseui.android.demo"
minSdk = Config.SdkVersions.min
targetSdk = Config.SdkVersions.target
versionName = Config.version
versionCode = 1
resourcePrefix("fui_")
vectorDrawables.useSupportLibrary = true
multiDexEnabled = true
}
buildTypes {
named("debug").configure {
// This empty config is only here to make Android Studio happy.
// This build type is later ignored in the variantFilter section
}
named("release").configure {
// For the purposes of the sample, allow testing of a proguarded release build
// using the debug key
signingConfig = signingConfigs["debug"]
postprocessing {
isRemoveUnusedCode = true
isRemoveUnusedResources = true
isObfuscate = 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
"MediaCapabilities",
"MissingApplicationIcon"
)
checkAllWarnings = true
warningsAsErrors = true
abortOnError = true
baseline = file("$rootDir/library/quality/lint-baseline.xml")
}
androidComponents {
// Callback before variants are built.
beforeVariants(selector().all()) { variant ->
if (inCiBuild && variant.name == "debug") {
variant.enable = false
}
}
}
}
dependencies {
implementation(project(":auth"))
implementation(project(":firestore"))
implementation(project(":database"))
implementation(project(":storage"))
implementation(platform(Config.Libs.Firebase.bom))
implementation(Config.Libs.Androidx.lifecycleExtensions)
}
apply(plugin = "com.google.gms.google-services")