forked from miaoMiaoDaShi/YangYanNew
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
108 lines (99 loc) · 4.33 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
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
kapt {
generateStubs = true
}
android {
compileSdkVersion rootProject.ext.android["compileSdkVersion"]
defaultConfig {
applicationId "com.yangyan.xxp.yangyannew"
minSdkVersion rootProject.ext.android["minSdkVersion"]
targetSdkVersion rootProject.ext.android["targetSdkVersion"]
versionCode rootProject.ext.android["versionCode"]
versionName rootProject.ext.android["versionName"]
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
ndk {
// 设置支持的SO库架构
abiFilters 'armeabi' //, 'x86', 'armeabi-v7a', 'x86_64', 'arm64-v8a'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
buildTypes {
debug {
buildConfigField "boolean", "LOG_DEBUG", "true"
buildConfigField "boolean", "LOG_SHOW_IMAGE", "true"
minifyEnabled false
multiDexEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
release {
buildConfigField "boolean", "LOG_DEBUG", "false"
buildConfigField "boolean", "LOG_SHOW_IMAGE", "true"
minifyEnabled false
multiDexEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
buildToolsVersion '28.0.3'
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation rootProject.ext.dependencies["appcompat-v7"]
implementation rootProject.ext.dependencies["circleimageview"]
implementation rootProject.ext.dependencies["shadow"]
// implementation rootProject.ext.dependencies["rxkotlin2"]
implementation rootProject.ext.dependencies["systembar"]
implementation rootProject.ext.dependencies["anko"]
implementation rootProject.ext.dependencies["toast"]
implementation (rootProject.ext.dependencies["retrofit-converter-scalars"]){
exclude group: 'com.squareup.okio'
}
implementation (rootProject.ext.dependencies["ucrop"]){
exclude group: 'com.squareup.okio'
}
implementation rootProject.ext.dependencies["brvah"]
implementation rootProject.ext.dependencies["glide-transformations"]
implementation rootProject.ext.dependencies["glide"]
implementation rootProject.ext.dependencies["multidex"]
implementation rootProject.ext.dependencies["matisse"]
implementation rootProject.ext.dependencies["luban"]
implementation rootProject.ext.dependencies["cardview-v7"]
implementation rootProject.ext.dependencies["lottie"]
implementation (rootProject.ext.dependencies["photoview"]){
exclude group: 'com.android.support'
}
implementation 'com.tencent.bugly:crashreport:2.8.6' //其中latest.release指代最新Bugly SDK版本号,也可以指定明确的版本号,例如2.1.9
implementation 'com.tencent.bugly:nativecrashreport:3.6.0.1' //其中latest.release指代最新Bugly NDK版本号,也可以指定明确的版本号,例如3.0
implementation rootProject.ext.dependencies["bottom-navigation-bar"]
kapt rootProject.ext.dependencies["dagger2-compiler"]
implementation('me.jessyan:arms:2.5.0') {
// exclude module: 'photoView'
exclude group: 'com.google.code.gson'
//exclude group: 'com.squareup.retrofit2'
exclude group: 'com.squareup.okio'
//exclude group: 'com.google.code.gson'
}
implementation ('com.tencent.qcloud:cosxml-lite:5.4.17'){
exclude module: 'okio'
}
implementation ('org.jsoup:jsoup:1.11.3'){
// exclude module: 'okio'
}
// bmob
implementation ('cn.bmob.android:bmob-sdk:3.6.2') {
// exclude group: 'com.squareup.okhttp3'
//exclude module: 'rxjava'
//exclude module: 'okhttp3'
//exclude module: 'okio'
//exclude module: 'rxandroid'
//exclude module: 'gson'
}
//如果你想应用能够兼容Android6.0,请添加此依赖(org.apache.http.legacy.jar)
// implementation 'cn.bmob.android:http-legacy:1.0'
}