forked from dxsdyhm/GwellDemo
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle
153 lines (137 loc) · 5.64 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
apply plugin: 'com.android.application'
apply plugin: 'org.greenrobot.greendao' // apply plugin
apply plugin: 'org.quanqi.pgyer'
//apply plugin: 'im.fir.plugin.gradle'
//apply plugin: 'com.neenbedankt.android-apt'
//apply plugin: 'android-apt'
ext {
surpportlib = '1.0.0'
}
android {
compileSdkVersion 28
buildToolsVersion surpportlib
defaultConfig {
applicationId "com.gwelldemo"
minSdkVersion 16
targetSdkVersion 28
versionCode 1
versionName "00.00.00.01"
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
ndk {
abiFilters "armeabi", "arm64-v8a"
}
multiDexEnabled true
// jackOptions {
// enabled true
// }
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
/*signingConfigs {
release {
// default keystore file, PLZ config file path in local.properties
Properties properties = new Properties()
//加载本地local.properties文件
if (rootProject.file('local.properties').exists()) {
properties.load(rootProject.file("local.properties").newDataInputStream())
if(properties.get("storeFile")!=null){
storeFile file(properties.get("storeFile"))
storePassword properties.get("storePassword")
keyAlias properties.get("keyAlias")
keyPassword properties.get("keyPassword")
}
}else if(System.getenv("FLOW_CERTIFICATE_FILE")!=null){
storeFile file(System.getenv("FLOW_CERTIFICATE_FILE"))
storePassword System.getenv("FLOW_KEYSTORE_PASS")
keyAlias System.getenv("FLOW_ALIAS_NAME")
keyPassword System.getenv("FLOW_ALIAS_PASS")
}
}
}*/
// fir{
// //必填 上传 fir.im apk 字段,否则无法上传 APP 到 fir.im
// apiToken'58e870036c7798894efce2037c563ab6'
// //可选 上传fir.im 中显示的changelog
// changeLog '日志测试'
// }
buildTypes {
release {
minifyEnabled true
zipAlignEnabled true
//signingConfig signingConfigs.release
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
//对齐优化设置为true,否则找不到该task (默认不写也是true)
zipAlignEnabled true
}
}
lintOptions {
checkReleaseBuilds false
abortOnError false
}
greendao {
//数据库版本
schemaVersion 2
}
}
dependencies {
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation fileTree(include: ['*.aar'], dir: 'libs')
androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'androidx.appcompat:appcompat:' + surpportlib
implementation 'androidx.recyclerview:recyclerview:' + surpportlib
//以下都是非SDK必需的依赖
implementation 'me.drakeet.multitype:multitype:3.4.2', {
exclude group: 'com.android.support'
}
implementation 'com.google.android.material:material:1.3.0'
implementation 'com.jakewharton:butterknife:10.2.3'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.3'
implementation 'com.hwangjr.rxbus:rxbus:2.0.0'
implementation 'com.trello.rxlifecycle2:rxlifecycle:2.2.1'
implementation 'com.trello.rxlifecycle2:rxlifecycle-components:2.2.1'
testImplementation 'junit:junit:4.12'
//第三方Toast
implementation 'com.github.GrenderG:Toasty:1.2.8'
//Glide
implementation 'com.github.bumptech.glide:glide:3.7.0'
//cardview
implementation 'androidx.cardview:cardview:' + surpportlib
implementation 'com.github.Hitomis:CrazyShadow:v1.0.1'
//greenDao
implementation 'org.greenrobot:greendao:3.2.2'
// add library
//浏览器中查看sqlite数据库和sp文件内容,用法浏览器输入 http://手机ip地址:8080 即可(注:手机与电脑需在同一个局域网)
debugCompile 'com.amitshekhar.android:debug-db:1.0.2'
implementation 'com.blankj:utilcode:1.4.1'
implementation 'com.tbruyelle.rxpermissions2:rxpermissions:0.9.5@aar'
//基于nio的udp发送-接收器
implementation 'com.github.huangdali:UDPSender:v1.3.9'
//错误级别日志打印,带在logcat中定位到打印处
implementation 'com.github.huangdali:ELog:v1.3.3'
//局域网搜索管理器
implementation 'com.github.jwkj:ShakManger:v1.0.1'
//第三方Dialog
// implementation 'com.afollestad.material-dialogs:commons:0.9.5.0'
implementation 'com.github.jwkj:LibZXing:v1.2.0'
//dex分包
implementation 'androidx.multidex:multidex:2.0.0'
// implementation 'com.libhttp:libhttp:v0.5.5'
implementation project(':smartlink')
//implementation project(':p2p-core')
implementation files('libs/javabase64.jar')
//implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'io.reactivex.rxjava2:rxjava:2.2.12'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
implementation ('com.squareup.retrofit2:retrofit:2.6.2', {
exclude group: 'org.jetbrains.kotlin:kotlin-stdlib-common:1.3.50'
})
implementation 'com.squareup.retrofit2:converter-gson:2.6.2'
implementation 'com.jakewharton.retrofit:retrofit2-rxjava2-adapter:1.0.0'
//日志打印
implementation 'com.squareup.okhttp3:logging-interceptor:4.2.0'
implementation 'com.google.code.gson:gson:2.8.5'
}