-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
95 lines (72 loc) · 2.32 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
apply plugin: 'com.android.library'
apply plugin: 'io.objectbox'
android {
compileSdkVersion androidVersion.compileSdkVersion
defaultConfig {
minSdkVersion androidVersion.minSdkVersion
targetSdkVersion androidVersion.targetSdkVersion
versionCode libVersionCode
versionName "2.0"
}
buildTypes {
release {
minifyEnabled false
shrinkResources = isMinifyEnabled() // 必须使用混淆的时候才可以开启
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
// 注意 由于是框架底层所有需要业务成引用到的依赖需要使用api,不使用implementation
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
/* android support */
api sdk.appcompat_v7
api sdk.support_design
/*---------------------------------------Frameworks----------------------------------------------*/
// 权限
api(sdk.rxpermissions2) {
exclude module: 'rxjava'
exclude module: 'support-annotations'
}
api sdk.an_permission
// RX JAVA
api sdk.rxjava2
api sdk.rxandroid2
// retrofit
api sdk.retrofit
api sdk.retrofit_adapter_rxjava2
api sdk.retrofit_converter_gson
// RX 生命周期
api sdk.rxlifecycle
api sdk.rxlifecycle_android
api sdk.rxlifecycle_components
// glide
api(sdk.glide) {
exclude group: "com.android.support"
}
api sdk.glide_loader_okhttp3
annotationProcessor sdk.glide_compiler
/*---------------------------------------Frameworks END----------------------------------------------*/
}
buildscript {
apply from: "XinConfig.gradle"
apply from: "utils.gradle"
// apply from: "bintray.gradle"
repositories {
google()
jcenter()
maven { url "http://objectbox.net/beta-repo/" }
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
/* maven{
url 'http://maven.oschina.net/content/groups/public'
}*/
}
dependencies {
classpath sdk.objectbox
}
}
afterEvaluate {
tasks.withType(JavaCompile.class) {
options.compilerArgs << "-Xmaxerrs" << "500"
}
}