blob: 4c003da75dc3698274b5f18681cdd04390dbe6aa [file] [log] [blame]
Jason Neufeld5349f0e2017-02-17 11:17:55 -08001/*
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
17apply plugin: 'com.android.library'
18apply plugin: 'maven'
19
Jason Neufeld7f158742017-02-24 12:19:31 -080020sourceCompatibility = '1.7'
21
Jason Neufeld5349f0e2017-02-17 11:17:55 -080022android {
Yigit Boyar450ed382017-03-02 09:48:25 -080023 compileSdkVersion tools.current_sdk
24 buildToolsVersion tools.build_tools_version
Jason Neufeld5349f0e2017-02-17 11:17:55 -080025
26 defaultConfig {
Yigit Boyar450ed382017-03-02 09:48:25 -080027 minSdkVersion flatfoot.min_sdk
28 targetSdkVersion tools.current_sdk
Jason Neufeld5349f0e2017-02-17 11:17:55 -080029 versionCode 1
30 versionName "1.0"
31
32 testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
33 }
34 buildTypes {
35 release {
36 minifyEnabled false
37 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
38 }
39 }
40
41 testOptions {
42 unitTests.returnDefaultValues = true
43 }
44}
45
46allprojects {
47 dependencies {
Yigit Boyar450ed382017-03-02 09:48:25 -080048 compile project(":apptoolkit:core")
Jason Neufeld7f158742017-02-24 12:19:31 -080049 compile project(":lifecycle:common")
Jason Neufeld5349f0e2017-02-17 11:17:55 -080050 compile project(":lifecycle:extensions")
51 compile project(":lifecycle:runtime")
Yigit Boyar450ed382017-03-02 09:48:25 -080052 compile libs.support.annotations
53 compile libs.reactive_streams
Jason Neufeld5349f0e2017-02-17 11:17:55 -080054
Yigit Boyar450ed382017-03-02 09:48:25 -080055 testCompile libs.junit
56 testCompile libs.rx_java
Jason Neufeld5349f0e2017-02-17 11:17:55 -080057
Yigit Boyar450ed382017-03-02 09:48:25 -080058 testCompile(libs.test_runner) {
Jason Neufeld5349f0e2017-02-17 11:17:55 -080059 exclude module: 'support-annotations'
60 }
Yigit Boyar450ed382017-03-02 09:48:25 -080061 androidTestCompile libs.support.app_compat
Jason Neufeld5349f0e2017-02-17 11:17:55 -080062 }
63}
64
65createAndroidCheckstyle(project)
66
Yigit Boyar83ebc492017-03-08 20:43:45 -080067archivesBaseName = "reactivestreams"