| import static androidx.build.dependencies.DependenciesKt.* |
| import androidx.build.LibraryGroups |
| import androidx.build.LibraryVersions |
| import androidx.build.Publish |
| |
| plugins { |
| id("AndroidXPlugin") |
| id("com.android.library") |
| } |
| |
| dependencies { |
| api("androidx.appcompat:appcompat:1.1.0-rc01") |
| api("androidx.cardview:cardview:1.0.0") |
| api("androidx.annotation:annotation:1.1.0") |
| api(project(":recyclerview:recyclerview")) |
| api(project(":core:core")) |
| api("androidx.gridlayout:gridlayout:1.0.0") |
| api("androidx.preference:preference:1.0.0") |
| api(CONSTRAINT_LAYOUT, { transitive = true }) |
| api(MATERIAL) |
| |
| androidTestImplementation(ANDROIDX_TEST_EXT_JUNIT) |
| androidTestImplementation(ANDROIDX_TEST_CORE) |
| androidTestImplementation(ANDROIDX_TEST_RUNNER) |
| androidTestImplementation(ANDROIDX_TEST_RULES) |
| androidTestImplementation(ESPRESSO_CORE, libs.exclude_for_espresso) |
| androidTestImplementation(ESPRESSO_CONTRIB, libs.exclude_for_espresso) |
| androidTestImplementation(MOCKITO_CORE, libs.exclude_bytebuddy) // DexMaker has it"s own MockMaker |
| androidTestImplementation(DEXMAKER_MOCKITO, libs.exclude_bytebuddy) // DexMaker has it"s own MockMaker |
| |
| testImplementation(JUNIT) |
| testImplementation(MOCKITO_CORE) |
| |
| compileOnly fileTree(dir: '../stubs', include: ['android.car.jar']) |
| // androidTest uses android.car APIs to provide test utility. |
| androidTestCompileOnly fileTree(dir: '../stubs', include: ['android.car.jar']) |
| } |
| |
| android { |
| defaultConfig { |
| minSdkVersion 24 |
| } |
| |
| sourceSets { |
| main.res.srcDirs 'res', 'res-public' |
| } |
| } |
| |
| androidx { |
| name = "Android Car Support UI" |
| publish = Publish.SNAPSHOT_AND_RELEASE |
| mavenVersion = LibraryVersions.CAR |
| mavenGroup = LibraryGroups.CAR |
| inceptionYear = "2017" |
| description = "Android Car Support UI" |
| } |