1import static androidx.build.dependencies.DependenciesKt.* 2import androidx.build.LibraryGroups 3import androidx.build.LibraryVersions 4 5plugins { 6 id("SupportAndroidLibraryPlugin") 7} 8 9dependencies { 10 api(project(":appcompat")) 11 api(project(":cardview")) 12 api(project(":annotation")) 13 api(project(":legacy-support-v4")) 14 api(project(":recyclerview")) 15 api(project(":gridlayout")) 16 api(SUPPORT_DESIGN, libs.exclude_for_material) 17 18 androidTestImplementation(TEST_RUNNER_TMP, libs.exclude_for_espresso) 19 androidTestImplementation(ESPRESSO_CORE_TMP, libs.exclude_for_espresso) 20 androidTestImplementation(ESPRESSO_CONTRIB_TMP, libs.exclude_for_espresso) 21 androidTestImplementation(MOCKITO_CORE, libs.exclude_bytebuddy) // DexMaker has it"s own MockMaker 22 androidTestImplementation(DEXMAKER_MOCKITO, libs.exclude_bytebuddy) // DexMaker has it"s own MockMaker 23 24 testImplementation(JUNIT) 25 testImplementation(TEST_RUNNER_TMP, libs.exclude_for_espresso) 26 testImplementation(MOCKITO_CORE) 27 28 compileOnly fileTree(dir: 'car-stubs', include: ['android.car.jar']) 29 // androidTest uses android.car APIs to provide test utility. 30 androidTestCompileOnly fileTree(dir: 'car-stubs', include: ['android.car.jar']) 31} 32 33android { 34 sourceSets { 35 main.res.srcDirs 'res', 'res-public' 36 } 37} 38 39supportLibrary { 40 name = "Android Car Support UI" 41 publish = true 42 mavenVersion = LibraryVersions.SUPPORT_LIBRARY 43 mavenGroup = LibraryGroups.CAR 44 inceptionYear = "2017" 45 description = "Android Car Support UI" 46 java8Library = true 47 minSdkVersion = 24 48 failOnUncheckedWarnings = false 49} 50