Home | History | Annotate | Download | only in runtime
      1 import android.support.LibraryVersions
      2 
      3 import android.support.SupportLibraryExtension
      4 
      5 apply plugin: android.support.FlatfootAndroidLibraryPlugin
      6 
      7 android {
      8     compileSdkVersion tools.current_sdk
      9     buildToolsVersion tools.build_tools_version
     10 
     11     defaultConfig {
     12         minSdkVersion flatfoot.min_sdk
     13         targetSdkVersion tools.current_sdk
     14 
     15         testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
     16     }
     17 
     18     buildTypes.all {
     19         consumerProguardFiles 'proguard-rules.pro'
     20     }
     21 
     22     testOptions {
     23         unitTests.returnDefaultValues = true
     24     }
     25 }
     26 
     27 dependencies {
     28     compile project(":lifecycle:common")
     29     compile project(":arch:common")
     30     // necessary for IJ to resolve dependencies.
     31     compile libs.support.annotations
     32 
     33     testCompile libs.junit
     34     testCompile libs.mockito_core
     35 }
     36 
     37 createAndroidCheckstyle(project)
     38 
     39 version = LibraryVersions.LIFECYCLES_RUNTIME.toString()
     40 supportLibrary {
     41     name 'Android Lifecycle Runtime'
     42     publish true
     43     inceptionYear '2017'
     44     description "Android Lifecycle Runtime"
     45     url SupportLibraryExtension.ARCHITECTURE_URL
     46 }