-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathbuild.gradle
More file actions
71 lines (64 loc) · 2.75 KB
/
Copy pathbuild.gradle
File metadata and controls
71 lines (64 loc) · 2.75 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
buildscript {
ext.kotlin_version = '1.3.61'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.0'
classpath 'com.hujiang.aspectjx:gradle-android-plugin-aspectjx:2.0.8'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
}
//全局设置java版本
tasks.withType(JavaCompile) {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
ext {
var = [
android : [
// android
compileSdkVersion: 29,
buildToolsVersion: "29.0.2",
defaultConfig : [
minSdkVersion : 15,
targetSdkVersion : 29,
versionCode : 1,
versionName : "1.0",
],
buildTypes : [
release: [
minifyEnabled : false,
defaultProguardFile: 'proguard-android.txt',
proguardFile : 'proguard-rules.pro'
],
],
],
dependencies: [
design : 'com.google.android.material:material:1.0.0',
constraintlayout : 'androidx.constraintlayout:constraintlayout:1.1.2',
support : 'androidx.appcompat:appcompat:1.1.0',
recyclerview : 'androidx.recyclerview:recyclerview:1.1.0',
cardview : 'androidx.cardview:cardview:1.0.0',
support_annotations : 'androidx.annotation:annotation:1.0.0',
gson : 'com.google.code.gson:gson:2.8.6',
logger : 'com.orhanobut:logger:2.1.1',
utilcode : 'com.blankj:utilcodex:1.26.0',
okhttp : 'com.squareup.okhttp3:okhttp:3.7.0',
okhttp_log : 'com.squareup.okhttp3:logging-interceptor:3.8.0',
BaseRecyclerViewAdapterHelper: 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.45-androidx',
glide : 'com.github.bumptech.glide:glide:3.7.0'
]
]
}