Permalink
Fetching contributors…
Cannot retrieve contributors at this time
118 lines (105 sloc) 4 KB
// 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.
apply plugin: 'com.android.library'
def androidVersion = 26
tasks.withType(org.gradle.api.tasks.testing.Test) {
testLogging {
exceptionFormat = 'full'
showStandardStreams = true
showCauses = true
showExceptions =true
showStackTraces = true
}
}
android {
adbOptions {
timeOutInMs 60 * 1000
}
compileSdkVersion androidVersion
defaultConfig {
targetSdkVersion androidVersion
multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
lintOptions {
abortOnError false
}
buildTypes {
release {
minifyEnabled false
useProguard true
consumerProguardFiles 'proguard.txt'
}
debug {
}
}
sourceSets {
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'
}
}
dependencies {
implementation project(':firebase-common')
implementation project(':firebase-database-collection')
implementation "com.google.android.gms:play-services-basement:$playServicesVersion"
implementation "com.google.android.gms:play-services-base:$playServicesVersion"
implementation "com.google.android.gms:play-services-tasks:$playServicesVersion"
implementation 'android.arch.lifecycle:runtime:1.1.1'
implementation "android.arch.lifecycle:common:1.1.1"
implementation "android.arch.core:runtime:1.1.1"
implementation "android.arch.core:common:1.1.1"
androidTestImplementation "com.android.support:support-annotations:$supportAnnotationsVersion"
androidTestImplementation 'com.android.support.test:rules:1.0.2'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.google.truth:truth:0.39'
androidTestImplementation 'com.fasterxml.jackson.core:jackson-core:2.9.6'
androidTestImplementation 'com.fasterxml.jackson.core:jackson-databind:2.9.6'
androidTestImplementation 'junit:junit:4.12'
androidTestImplementation 'net.java.quickcheck:quickcheck:0.6'
testImplementation 'junit:junit:4.12'
testImplementation 'org.mockito:mockito-core:2.18.3'
testImplementation 'org.robolectric:robolectric:3.8'
testImplementation 'com.firebase:firebase-token-generator:2.0.0'
testImplementation 'com.fasterxml.jackson.core:jackson-core:2.9.6'
testImplementation 'com.fasterxml.jackson.core:jackson-databind:2.9.6'
testImplementation 'net.java.quickcheck:quickcheck:0.6'
testImplementation 'com.google.truth:truth:0.39'
testImplementation 'com.android.support.test:rules:1.0.2'
}
// ==========================================================================
// 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'