blob: 62c4b8d9154823ddc98fa5507ed2a3f6674a8c18 [file] [log] [blame]
Yigit Boyarb96ccea2016-10-31 17:51:15 -07001apply plugin: 'com.android.library'
Sergey Vasilinetsb085e342016-12-05 19:02:59 -08002apply plugin: 'maven'
Yigit Boyarb96ccea2016-10-31 17:51:15 -07003
4android {
Yigit Boyar450ed382017-03-02 09:48:25 -08005 compileSdkVersion tools.current_sdk
6 buildToolsVersion tools.build_tools_version
Yigit Boyarb96ccea2016-10-31 17:51:15 -07007
8 defaultConfig {
Yigit Boyar450ed382017-03-02 09:48:25 -08009 minSdkVersion flatfoot.min_sdk
10 targetSdkVersion tools.current_sdk
Yigit Boyarb96ccea2016-10-31 17:51:15 -070011 versionCode 1
12 versionName "1.0"
13
14 testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
15
16 }
17 buildTypes {
18 release {
19 minifyEnabled false
20 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
21 }
22 }
23
24 testOptions {
25 unitTests.returnDefaultValues = true
26 }
27}
28
29dependencies {
Yigit Boyar2eb51992016-12-13 15:00:07 -080030 compile project(":lifecycle:common")
Yigit Boyar450ed382017-03-02 09:48:25 -080031 compile project(":apptoolkit:core")
32 compile libs.support.core_utils
Yigit Boyarb96ccea2016-10-31 17:51:15 -070033 // using classes like Pair from support core allows Lifecycle to be compatible w/ junit tests
Yigit Boyar450ed382017-03-02 09:48:25 -080034 compile libs.support.fragments
Sergey Vasilinetse69e4702017-02-10 02:26:10 -080035 // necessary for IJ to resolve dependencies.
Yigit Boyar450ed382017-03-02 09:48:25 -080036 compile libs.support.annotations
Yigit Boyar21886b62016-12-12 16:59:30 -080037
Yigit Boyar450ed382017-03-02 09:48:25 -080038 testCompile libs.junit
39 testCompile libs.mockito_core
Yigit Boyar21886b62016-12-12 16:59:30 -080040
Sergey Vasilinetsf3a1ec32017-03-02 15:29:44 -080041 testCompile(libs.test_runner) {
42 exclude module: 'support-annotations'
43 }
44
Yigit Boyar450ed382017-03-02 09:48:25 -080045 androidTestCompile(libs.test_runner) {
Yigit Boyarfe127e52017-01-27 14:30:20 -080046 exclude module: 'support-annotations'
47 }
Yigit Boyar450ed382017-03-02 09:48:25 -080048 androidTestCompile libs.support.app_compat
49 androidTestCompile(libs.espresso_core, {
Yigit Boyar21886b62016-12-12 16:59:30 -080050 exclude group: 'com.android.support', module: 'support-annotations'
51 })
Yigit Boyarb96ccea2016-10-31 17:51:15 -070052}
Yigit Boyar19b41102016-11-20 10:46:32 -080053
Sergey Vasilinetsb085e342016-12-05 19:02:59 -080054createAndroidCheckstyle(project)
55
Yigit Boyar83ebc492017-03-08 20:43:45 -080056archivesBaseName = "runtime"