forked from baiiu/AndroidModule
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
64 lines (53 loc) · 1.83 KB
/
build.gradle
File metadata and controls
64 lines (53 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
apply plugin: 'com.android.application'
apply plugin: 'me.tatarka.retrolambda'
apply plugin: 'android-apt'
android {
compileSdkVersion rootProject.ext.compileSdkVersion as Integer
buildToolsVersion rootProject.ext.buildToolsVersion as String
defaultConfig {
applicationId "com.example.testing.rxjavalearn"
minSdkVersion rootProject.ext.minSdkVersion as int
targetSdkVersion rootProject.ext.targetSdkVersion as int
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile rootProject.ext.support.appcompat
//butterknife
compile 'com.jakewharton:butterknife:8.0.1'
apt 'com.jakewharton:butterknife-compiler:8.0.1'
//log
compile 'com.github.orhanobut:logger:1.12'
//网络
compile 'com.squareup.okhttp3:okhttp:3.3.1'
compile 'com.squareup.retrofit2:retrofit:2.0.2'
compile 'com.squareup.retrofit2:converter-gson:2.0.2'
compile 'com.squareup.okhttp3:logging-interceptor:3.3.1'
compile 'com.squareup.retrofit2:adapter-rxjava:2.0.2'
def majorFrame = rootProject.ext.majorFrame;
compile majorFrame.okHttp
compile majorFrame.retrofit
compile majorFrame.converterGson
compile majorFrame.adapterRxJava
compile majorFrame.loggingInterceptor
def rx = rootProject.ext.rx;
compile rx.rxJava
compile rx.rxAndroid
compile rx.rxLifecycle
compile rx.rxLlifecycleAndroid
compile rx.rxLlifecycleComponents
compile rx.rxBinding
}