forked from didi/DoKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
74 lines (66 loc) · 2.57 KB
/
build.gradle
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
65
66
67
68
69
70
71
72
73
74
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply from: '../upload.gradle'
android {
compileSdkVersion rootProject.ext.android["compileSdkVersion"]
defaultConfig {
minSdkVersion rootProject.ext.android["minSdkVersion_21"]
targetSdkVersion rootProject.ext.android["targetSdkVersion"]
versionCode rootProject.ext.android["versionCode"]
versionName rootProject.ext.android["versionName"]
lintOptions {
abortOnError false
}
}
buildTypes {
debug {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
lintOptions {
abortOnError false
}
/**
* 支持ViewBinding
*/
buildFeatures {
//viewBinding = true
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
testImplementation 'junit:junit:4.12'
androidTestImplementation 'junit:junit:4.12'
implementation rootProject.ext.dependencies["kotlin"]
implementation rootProject.ext.dependencies["core-ktx"]
implementation rootProject.ext.dependencies["fragment-ktx"]
implementation rootProject.ext.dependencies["appcompat"]
implementation rootProject.ext.dependencies["cardview"]
implementation rootProject.ext.dependencies["recyclerview"]
implementation rootProject.ext.dependencies["fragment"]
implementation rootProject.ext.dependencies["zxing"]
implementation rootProject.ext.dependencies["kotlin"]
implementation rootProject.ext.dependencies["epic"]
implementation rootProject.ext.dependencies["volley"]
implementation rootProject.ext.dependencies["ktor_server_websockets"]
implementation rootProject.ext.dependencies["ktor_client_websockets"]
implementation rootProject.ext.dependencies["ktor_server_cio"]
//默认客户端websocket引擎
implementation rootProject.ext.dependencies["ktor_client_cio"]
//备用客户端websocket引擎
compileOnly rootProject.ext.dependencies["ktor_client_okhttp"]
compileOnly project(':dokit-util')
compileOnly project(':dokit-okhttp-api')
//此处需要使用api的形式 向上暴露内部api
implementation project(':dokit')
//okhttp wrap
//auto-service
implementation rootProject.ext.dependencies["auto_service"]
kapt rootProject.ext.dependencies["auto_service"]
}