blob: 2a38d5228f995d8c44c9040a9bcfd3cf3f421df5 [file] [log] [blame]
import androidx.build.Publish
plugins {
id("AndroidXPlugin")
id("com.android.library")
id("kotlin-android")
id("kotlin-kapt")
}
dependencies {
api("androidx.annotation:annotation:1.3.0")
api(projectOrArtifact(":core:core"))
implementation("androidx.emoji2:emoji2:1.2.0-alpha04")
implementation("androidx.emoji2:emoji2-views-helper:1.2.0-alpha04")
implementation("androidx.collection:collection:1.0.0")
api("androidx.cursoradapter:cursoradapter:1.0.0")
api(projectOrArtifact(":activity:activity"))
api("androidx.fragment:fragment:1.3.6")
api(project(":appcompat:appcompat-resources"))
api("androidx.drawerlayout:drawerlayout:1.0.0")
implementation("androidx.lifecycle:lifecycle-runtime:2.3.1")
implementation("androidx.lifecycle:lifecycle-viewmodel:2.3.1")
implementation("androidx.resourceinspection:resourceinspection-annotation:1.0.1")
api("androidx.savedstate:savedstate:1.1.0")
// Due to experimental annotations used in core.
compileOnly(libs.kotlinStdlib)
kapt(projectOrArtifact(":resourceinspection:resourceinspection-processor"))
androidTestImplementation(libs.kotlinStdlib)
androidTestImplementation(libs.testExtJunit)
androidTestImplementation(libs.testCore)
androidTestImplementation(libs.testRunner)
androidTestImplementation(libs.testRules)
androidTestImplementation(libs.testUiautomator)
androidTestImplementation(libs.truth)
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
androidTestImplementation("androidx.lifecycle:lifecycle-runtime-testing:2.3.1" )
androidTestImplementation(project(":internal-testutils-appcompat"), {
exclude group: "androidx.appcompat", module: "appcompat"
exclude group: "androidx.core", module: "core"
})
androidTestImplementation(libs.multidex)
testImplementation(libs.kotlinStdlib)
testImplementation(libs.testCore)
testImplementation(libs.junit)
testImplementation(libs.robolectric)
lintPublish project(":appcompat:appcompat-lint")
}
android {
defaultConfig {
// This disables the builds tools automatic vector -> PNG generation
generatedDensities = []
multiDexEnabled = true
}
sourceSets {
main.res.srcDirs += "src/main/res-public"
}
aaptOptions {
additionalParameters "--no-version-vectors"
noCompress "ttf"
}
testOptions {
animationsDisabled = true
unitTests {
includeAndroidResources = true
}
}
buildTypes.all {
consumerProguardFiles("proguard-rules.pro")
}
useLibrary "android.test.runner"
useLibrary "android.test.base"
useLibrary "android.test.mock"
namespace "androidx.appcompat"
}
androidx {
name = "Android AppCompat Library"
publish = Publish.SNAPSHOT_AND_RELEASE
mavenVersion = LibraryVersions.APPCOMPAT
mavenGroup = LibraryGroups.APPCOMPAT
inceptionYear = "2011"
description = "The Support Library is a static library that you can add to your Android application in order to use APIs that are either not available for older platform versions or utility APIs that aren\'t a part of the framework APIs. Compatible on devices running API 14 or later."
failOnDeprecationWarnings = false
}