Home | History | Annotate | Download | only in reactivestreams
      1 /*
      2  * Copyright (C) 2017 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 import android.support.LibraryVersions
     18 import android.support.SupportLibraryExtension
     19 
     20 apply plugin: android.support.FlatfootAndroidLibraryPlugin
     21 
     22 android {
     23     compileSdkVersion tools.current_sdk
     24     buildToolsVersion tools.build_tools_version
     25 
     26     defaultConfig {
     27         minSdkVersion flatfoot.min_sdk
     28         targetSdkVersion tools.current_sdk
     29 
     30         testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
     31     }
     32 
     33     testOptions {
     34         unitTests.returnDefaultValues = true
     35     }
     36 }
     37 
     38 allprojects {
     39     dependencies {
     40         compile project(":arch:common")
     41         compile project(":lifecycle:common")
     42         compile project(":lifecycle:extensions")
     43         compile project(":lifecycle:runtime")
     44         compile libs.support.annotations
     45         compile libs.reactive_streams
     46 
     47         testCompile libs.junit
     48         testCompile libs.rx_java
     49 
     50         testCompile(libs.test_runner) {
     51             exclude module: 'support-annotations'
     52         }
     53         androidTestCompile libs.support.app_compat, libs.support_exclude_config
     54     }
     55 }
     56 
     57 createAndroidCheckstyle(project)
     58 
     59 version = LibraryVersions.LIFECYCLES_EXT.toString()
     60 supportLibrary {
     61     name 'Android Lifecycle Reactivestreams'
     62     publish true
     63     inceptionYear '2017'
     64     description "Android Lifecycle Reactivestreams"
     65     url SupportLibraryExtension.ARCHITECTURE_URL
     66 }