build.gradle
3.03 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
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
96
apply plugin: 'com.android.library'
apply from: './maven_push.gradle'
static def stringValue(def value) {
return "\"${value}\""
}
android {
compileSdkVersion 28
defaultConfig {
minSdkVersion 18
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
javaCompileOptions {
annotationProcessorOptions {
arguments = [AROUTER_MODULE_NAME: project.getName()]
}
}
}
dataBinding {
enabled = true
}
buildTypes {
debug {
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
dataBinding {
enabled true
}
dexOptions {
javaMaxHeapSize '4g'
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.legacy:legacy-support-v13:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation "com.cnlive.libs:arch:$rootProject.appArch"
implementation "com.qmuiteam:qmui:$rootProject.qmui"
implementation "com.cnlive.libs:base:$rootProject.libBase"
implementation "com.cnlive.libs:network:$rootProject.libNetwork"
// 蓝牙相关
implementation "com.clj.fastble:FastBleLib:$rootProject.BleLib"
// https://github.com/Blankj/AndroidUtilCode/blob/master/lib/utilcode/README-CN.md
// implementation 'com.blankj:utilcode:1.25.9'
//glide
implementation "com.github.bumptech.glide:glide:$rootProject.glide"
implementation "jp.wasabeef:glide-transformations:$rootProject.glideTransformations"
// loading动画
implementation "com.wang.avi:library:$rootProject.avi"
// implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation "com.scwang.smartrefresh:SmartRefreshLayout:$rootProject.SmartRefreshLayout"
implementation "com.scwang.smartrefresh:SmartRefreshHeader:$rootProject.SmartRefreshHeader"
// implementation 'com.android.support.constraint:constraint-layout:1.1.3'
// 动画库
// implementation 'com.android.support:support-compat:25.1.1'
// 动画大全
implementation "com.daimajia.easing:library:$rootProject.viewAnimationsEasing"
implementation "com.daimajia.androidanimations:library:$rootProject.viewAnimationsAndroid"
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation "com.alibaba:arouter-api:$rootProject.arouterApiVersion"
annotationProcessor "com.alibaba:arouter-compiler:$rootProject.arouterCompilerVersion"
}