[go: nahoru, domu]

blob: 6f65819c618c9dc7a540c3fb3c722189542e3840 [file] [log] [blame]
import androidx.build.Publish
plugins {
id("AndroidXPlugin")
id("com.android.library")
id("kotlin-android")
}
dependencies {
api("androidx.annotation:annotation:1.2.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.6.0")
api("androidx.versionedparcelable:versionedparcelable:1.1.1")
androidTestImplementation(project(":test:screenshot:screenshot"))
androidTestImplementation(libs.kotlinStdlib)
androidTestImplementation(libs.testExtJunit)
androidTestImplementation(libs.testCore)
androidTestImplementation(libs.testRunner)
androidTestImplementation(libs.testRules)
androidTestImplementation(libs.espressoCore, excludes.espresso)
androidTestImplementation(libs.mockitoCore, excludes.bytebuddy) // DexMaker has it"s own MockMaker
androidTestImplementation(libs.dexmakerMockito, excludes.bytebuddy) // DexMaker has it"s own MockMaker
testImplementation(libs.kotlinStdlib)
testImplementation(libs.testCore)
testImplementation(libs.testRunner)
testImplementation(libs.robolectric)
testImplementation(libs.testExtJunit)
testImplementation(libs.testRules)
testImplementation(libs.mockitoCore)
testImplementation(libs.mockitoKotlin)
implementation("androidx.core:core-ktx:1.6.0")
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"
}
buildTypes.all {
consumerProguardFiles "proguard-rules.pro"
}
// Use Robolectric 4.+
testOptions.unitTests.includeAndroidResources = true
namespace "androidx.wear"
}
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
}