-
Notifications
You must be signed in to change notification settings - Fork 669
Expand file tree
/
Copy pathfirebase-database.gradle
More file actions
125 lines (111 loc) · 4.36 KB
/
firebase-database.gradle
File metadata and controls
125 lines (111 loc) · 4.36 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
plugins {
id 'firebase-library'
}
firebaseLibrary {
testLab.enabled = true
publishSources = true
}
android {
adbOptions {
timeOutInMs 60 * 1000
}
compileSdkVersion project.targetSdkVersion
defaultConfig {
targetSdkVersion project.targetSdkVersion
minSdkVersion project.minSdkVersion
versionName version
multiDexEnabled true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
}
debug {
}
}
sourceSets {
androidTest {
java {
srcDir 'src/testUtil/java'
}
}
test {
java {
srcDir 'src/testUtil/java'
}
resources {
srcDirs "src/test/resources"
}
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
}
testOptions.unitTests.includeAndroidResources = true
}
dependencies {
implementation project(':firebase-common')
implementation project(':firebase-database-collection')
implementation project(':firebase-components')
implementation project(':appcheck:firebase-appcheck-interop')
implementation 'androidx.annotation:annotation:1.1.0'
implementation 'com.google.android.gms:play-services-basement:18.0.0'
implementation 'com.google.android.gms:play-services-base:18.0.1'
implementation 'com.google.android.gms:play-services-tasks:18.0.1'
implementation('com.google.firebase:firebase-auth-interop:19.0.2') {
exclude group: "com.google.firebase", module: "firebase-common"
}
javadocClasspath 'com.google.code.findbugs:jsr305:3.0.2'
javadocClasspath 'com.google.auto.value:auto-value-annotations:1.6.6'
androidTestImplementation "androidx.annotation:annotation:1.1.0"
androidTestImplementation 'androidx.test:rules:1.2.0'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation "com.google.truth:truth:$googleTruthVersion"
androidTestImplementation 'com.fasterxml.jackson.core:jackson-core:2.9.8'
androidTestImplementation 'com.fasterxml.jackson.core:jackson-databind:2.9.8'
androidTestImplementation 'junit:junit:4.12'
androidTestImplementation 'org.hamcrest:hamcrest:2.2'
androidTestImplementation 'org.hamcrest:hamcrest-library:2.2'
androidTestImplementation 'net.java:quickcheck:0.6'
testImplementation 'junit:junit:4.12'
testImplementation 'org.mockito:mockito-core:2.25.0'
testImplementation "org.robolectric:robolectric:$robolectricVersion"
testImplementation 'com.firebase:firebase-token-generator:2.0.0'
testImplementation 'com.fasterxml.jackson.core:jackson-core:2.9.8'
testImplementation 'com.fasterxml.jackson.core:jackson-databind:2.9.8'
testImplementation 'net.java.quickcheck:quickcheck:0.6'
testImplementation "com.google.truth:truth:$googleTruthVersion"
testImplementation 'androidx.test:core:1.2.0'
testImplementation 'androidx.test:rules:1.2.0'
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
// TODO: Re-enable error on warnings once errorprone issues are fixed.
options.compilerArgs << "-Xlint:deprecation" // << "-Werror"
}
}
// ==========================================================================
// Copy from here down if you want to use the google-services plugin in your
// androidTest integration tests.
// ==========================================================================
ext.packageName = "com.google.firebase.database"
apply from: '../gradle/googleServices.gradle'