blob: 84a5b920a28d12ef8d6bd8553dc3532e48195d69 [file] [log] [blame]
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")
}
android {
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
}
buildTypes.all {
consumerProguardFiles("proguard-rules.pro")
}
}
dependencies {
api("androidx.annotation:annotation:1.1.0")
implementation("androidx.arch.core:core-common:2.0.1")
implementation("androidx.lifecycle:lifecycle-common:2.0.0")
androidTestImplementation(KOTLIN_STDLIB)
androidTestImplementation("androidx.lifecycle:lifecycle-runtime:2.0.0")
androidTestImplementation(ANDROIDX_TEST_EXT_JUNIT)
androidTestImplementation(ANDROIDX_TEST_CORE)
androidTestImplementation(ANDROIDX_TEST_RUNNER)
androidTestImplementation(ANDROIDX_TEST_RULES)
androidTestImplementation(TRUTH)
}
androidx {
name = "Activity"
publish = Publish.SNAPSHOT_AND_RELEASE
mavenGroup = LibraryGroups.SAVEDSTATE
inceptionYear = "2018"
description = "Provides the base Activity subclass and the relevant hooks to build a composable structure on top."
}