1 /* 2 * Copyright (C) 2017 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 18 import androidx.build.LibraryGroups 19 import androidx.build.LibraryVersions 20 import androidx.build.SupportLibraryExtension 21 22 import static androidx.build.dependencies.DependenciesKt.* 23 24 plugins { 25 id("SupportAndroidLibraryPlugin") 26 } 27 28 android { 29 buildTypes { 30 release { 31 proguardFiles 'proguard-rules.pro' 32 } 33 } 34 35 lintOptions { 36 disable 'GradleCompatible' 37 } 38 39 packagingOptions { 40 // This is needed due to a compatibility issue with espresso_core and play_services_base 41 // Being resolved by GMSCore in b/64815250 42 pickFirst 'protobuf.meta' 43 } 44 } 45 46 dependencies { 47 48 implementation(project(":work:work-runtime")) 49 implementation(PLAY_SERVICES, libs.support_exclude_config) 50 implementation(FIREBASE_JOBDISPATCHER, libs.support_exclude_config) 51 // Temporary workaround to the fact that FIREBASE_JOBDISPATCHER imports v4 of 25.0.0, but we 52 // pull in 26.1.0 on some of the dependencies of v4, but not support-media-compat. 53 implementation("com.android.support:support-v4:26.1.0", libs.support_exclude_config) 54 implementation "android.arch.persistence.room:runtime:1.0.0" 55 annotationProcessor "android.arch.persistence.room:compiler:1.0.0" 56 57 androidTestImplementation(project(":work:work-runtime")) 58 androidTestImplementation(TEST_RUNNER) 59 androidTestImplementation(ESPRESSO_CORE) 60 androidTestImplementation(MOCKITO_CORE, libs.exclude_bytebuddy) // DexMaker has its own MockMaker 61 androidTestImplementation(DEXMAKER_MOCKITO, libs.exclude_bytebuddy) // DexMaker has its own MockMaker 62 } 63 64 supportLibrary { 65 name = "Android WorkManager Firebase" 66 publish = true 67 mavenVersion = LibraryVersions.WORKMANAGER 68 mavenGroup = LibraryGroups.WORKMANAGER 69 inceptionYear = "2018" 70 description = "Android WorkManager Firebase library" 71 url = SupportLibraryExtension.ARCHITECTURE_URL 72 } 73