blob: 111429c9a25fc14011b5525485261013ca7ed7ad [file] [log] [blame]
import android.support.LibraryVersions
import android.support.SupportLibraryExtension
apply plugin: android.support.FlatfootAndroidLibraryPlugin
android {
compileSdkVersion tools.current_sdk
buildToolsVersion tools.build_tools_version
defaultConfig {
minSdkVersion flatfoot.min_sdk
targetSdkVersion tools.current_sdk
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes.all {
consumerProguardFiles 'proguard-rules.pro'
}
testOptions {
unitTests.returnDefaultValues = true
}
}
dependencies {
compile project(":lifecycle:common")
compile project(":arch:common")
// necessary for IJ to resolve dependencies.
compile libs.support.annotations
testCompile libs.junit
testCompile libs.mockito_core
androidTestImplementation libs.junit
androidTestImplementation libs.test_runner, { exclude module: 'support-annotations' }
}
createAndroidCheckstyle(project)
version = LibraryVersions.LIFECYCLES_RUNTIME.toString()
supportLibrary {
name 'Android Lifecycle Runtime'
publish true
inceptionYear '2017'
description "Android Lifecycle Runtime"
url SupportLibraryExtension.ARCHITECTURE_URL
}