| 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") |
| id("kotlin-android") |
| } |
| |
| dependencies { |
| api("androidx.annotation:annotation:1.1.0") |
| api("androidx.core:core:1.3.2") |
| implementation("androidx.collection:collection:1.0.0") |
| api("androidx.customview:customview:1.0.0") |
| |
| androidTestImplementation(ANDROIDX_TEST_EXT_JUNIT) |
| androidTestImplementation(ANDROIDX_TEST_CORE) |
| androidTestImplementation(ANDROIDX_TEST_RUNNER) |
| androidTestImplementation(ANDROIDX_TEST_RULES) |
| androidTestImplementation(ESPRESSO_CORE, excludes.espresso) |
| androidTestImplementation(MOCKITO_CORE, excludes.bytebuddy) // DexMaker has it"s own MockMaker |
| androidTestImplementation(DEXMAKER_MOCKITO, excludes.bytebuddy) // DexMaker has it"s own MockMaker |
| androidTestImplementation(TRUTH) |
| androidTestImplementation(JUNIT) |
| androidTestImplementation(KOTLIN_STDLIB) |
| androidTestImplementation(project(":internal-testutils-espresso")) |
| androidTestImplementation(project(":internal-testutils-runtime")) |
| androidTestImplementation(project(":internal-testutils-common")) |
| androidTestImplementation(MULTIDEX) |
| |
| testImplementation(JUNIT) |
| testImplementation(MOCKITO_CORE) |
| testImplementation(KOTLIN_STDLIB) |
| lintPublish(project(":recyclerview:recyclerview-lint")) |
| } |
| |
| android { |
| sourceSets { |
| main.res.srcDirs "res", "res-public" |
| } |
| |
| buildTypes.all { |
| consumerProguardFiles("proguard-rules.pro") |
| } |
| |
| defaultConfig { |
| multiDexEnabled = true |
| testInstrumentationRunner "androidx.testutils.ActivityRecyclingAndroidJUnitRunner" |
| } |
| } |
| |
| androidx { |
| name = "Android Support RecyclerView" |
| publish = Publish.SNAPSHOT_AND_RELEASE |
| mavenVersion = LibraryVersions.RECYCLERVIEW |
| mavenGroup = LibraryGroups.RECYCLERVIEW |
| inceptionYear = "2014" |
| description = "Android Support RecyclerView" |
| failOnDeprecationWarnings = false |
| } |