| 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.swiperefreshlayout:swiperefreshlayout:1.0.0") |
| api("androidx.fragment:fragment:1.2.4") |
| api("androidx.recyclerview:recyclerview:1.1.0") |
| api("androidx.core:core:1.5.0-alpha04") |
| api("androidx.versionedparcelable:versionedparcelable:1.1.1") |
| |
| androidTestImplementation(project(":test-screenshot")) |
| androidTestImplementation(KOTLIN_STDLIB) |
| 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 |
| |
| testImplementation(KOTLIN_STDLIB) |
| testImplementation(ANDROIDX_TEST_CORE) |
| testImplementation(ANDROIDX_TEST_RUNNER) |
| testImplementation(ROBOLECTRIC) |
| |
| implementation("androidx.core:core-ktx:1.5.0-alpha04") |
| |
| annotationProcessor(project(":versionedparcelable:versionedparcelable-compiler")) |
| |
| compileOnly(fileTree(dir: "../wear_stubs", include: ["com.google.android.wearable-stubs.jar"])) |
| } |
| |
| android { |
| defaultConfig { |
| minSdkVersion 23 |
| } |
| |
| sourceSets { |
| main.res.srcDirs += "src/main/res-public" |
| androidTest.assets.srcDirs += project.rootDir.absolutePath + "/../../golden/wear/wear" |
| } |
| |
| // Use Robolectric 4.+ |
| testOptions.unitTests.includeAndroidResources = true |
| } |
| |
| androidx { |
| name = "Android Wear Support UI" |
| publish = Publish.SNAPSHOT_AND_RELEASE |
| mavenGroup = LibraryGroups.WEAR |
| mavenVersion = LibraryVersions.WEAR |
| inceptionYear = "2016" |
| description = "Android Wear Support UI" |
| failOnDeprecationWarnings = false |
| } |