Repository navigation
Expand file tree
/
Copy pathbuild.gradle
More file actions
52 lines (44 loc) · 1.46 KB
/
Copy pathbuild.gradle
File metadata and controls
52 lines (44 loc) · 1.46 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
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
group = 'com.github.CodingCodersCode'
android {
compileSdkVersion 27
buildToolsVersion "27.0.3"
defaultConfig {
minSdkVersion 14
targetSdkVersion 27
versionCode 1
versionName "1.1.0-alpha-6"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
//指定jdk版本
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
//添加RxJava依赖
api 'io.reactivex.rxjava2:rxjava:2.2.5'
//添加RxAndroid依赖
api 'io.reactivex.rxjava2:rxandroid:2.1.0'
//添加RxJava/Android的Retrofit数据解析适配器
api 'com.jakewharton.retrofit:retrofit2-rxjava2-adapter:1.0.0'
//添加Retrofit依赖
api 'com.squareup.retrofit2:retrofit:2.5.0'
//添加Gson依赖
api 'com.google.code.gson:gson:2.8.2'
//添加Retrofit的Gson转换器依赖
api 'com.squareup.retrofit2:converter-gson:2.3.0'
//添加okhttp日志拦截器
api 'com.squareup.okhttp3:logging-interceptor:3.12.1'
//注解
api 'com.android.support:support-annotations:28.0.0'
}