build.gradle
3.9 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
apply plugin: 'com.android.library'
//greenDao
apply plugin: 'org.greenrobot.greendao'
apply from: './maven_push.gradle'
android {
compileSdkVersion 28
buildToolsVersion "28.0.3"
defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode rootProject.ext.versionCode
versionName rootProject.ext.versionName
multiDexEnabled true
javaCompileOptions {
annotationProcessorOptions {
arguments = [AROUTER_MODULE_NAME: project.getName(), AROUTER_GENERATE_DOC: "enable"]
}
}
}
buildTypes {
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
}
// sourceSets {
// main {
// jniLibs.srcDir 'libs'
// }
// }
dexOptions {
javaMaxHeapSize '4g'
}
//greendao配置
greendao {
schemaVersion 1 //版本号,升级时可配置
daoPackage 'com.cnlive.moudle.pedometer.sql.dao' //包名
targetGenDir 'src/main/java' //生成目录
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation "com.android.support:support-v4:$rootProject.supportV4"
implementation "com.android.support:appcompat-v7:$rootProject.appcompatV7"
implementation "com.android.support:design:$rootProject.design"
implementation "com.android.support:support-v13:$rootProject.supportV13"
implementation "com.android.support:recyclerview-v7:$rootProject.recyclerviewV7"
implementation "com.android.support:cardview-v7:$rootProject.cardviewV7"
implementation "com.cnlive:app_arch:$rootProject.appArch"
implementation "com.qmuiteam:qmui:$rootProject.qmui"
implementation "com.cnlive.libs:base:$rootProject.libBase"
implementation("com.github.SherlockGougou:MagicIndicator:$rootProject.magicindicator") {
exclude group: 'com.android.support'
}
//glide
implementation "com.github.bumptech.glide:glide:$rootProject.glide"
implementation "jp.wasabeef:glide-transformations:$rootProject.glideTransformations"
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
annotationProcessor "com.github.bumptech.glide:compiler:$rootProject.compiler"
//--------------------------------------------------------
implementation "com.cnlive.libs:largeimage:$rootProject.libLargeImage"
implementation "com.cnlive.libs:network:$rootProject.libNetwork"
//杨帅 log日志
implementation 'com.orhanobut:logger:2.2.0'
implementation "com.scwang.smartrefresh:SmartRefreshLayout:$rootProject.SmartRefreshLayout"
implementation "com.scwang.smartrefresh:SmartRefreshHeader:$rootProject.SmartRefreshHeader"
implementation "com.cnlive.libs:emoj:$rootProject.libEmoj"
implementation "com.cnlive:menu:$rootProject.libMenu"
//ARouter
implementation "com.alibaba:arouter-api:$rootProject.arouterApiVersion"
annotationProcessor "com.alibaba:arouter-compiler:$rootProject.arouterCompilerVersion"
//添加greenDao
//GreenDao
implementation "org.greenrobot:greendao:$rootProject.greendao"
//数据库加密
implementation 'net.zetetic:android-database-sqlcipher:3.5.6'
// implementation files('libs/BaiduLBS_Android.jar')
//evenbus
implementation "org.greenrobot:eventbus:$rootProject.eventBus"
//EasyPermission
implementation "pub.devrel:easypermissions:$rootProject.easypermissions"
implementation 'com.sothree.slidinguppanel:library:3.4.0'
implementation project(':library_baidumap')
}