build.gradle
3.99 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
buildscript {
ext {
androidId = [
compileSdkVersion: 32,
minSdkVersion : 24,
targetSdkVersion : 32,
versionCode : 1,
versionName : "0.0.1"
]
url = [
server_url: "https://mgr.hjx.com", //http 请求指令
]
dependencies = [
appcompat : 'androidx.appcompat:appcompat:1.0.0',
constraint : 'androidx.constraintlayout:constraintlayout:1.1.3',
cardview : 'androidx.cardview:cardview:1.0.0',
recyclerview : 'androidx.recyclerview:recyclerview:1.0.0',
material : 'com.google.android.material:material:1.0.0',
// 依赖RxAndroid 2X 的依赖库
// 增加RxJava 2X 的依赖库
rxandroid : 'io.reactivex.rxjava2:rxandroid:2.0.1',
rxjava : 'io.reactivex.rxjava2:rxjava:2.0.7',
// 以下需要使用Retrofit
//retrofit
retrofit : 'com.squareup.retrofit2:retrofit:2.1.0',
//Gson converter
converter : 'com.squareup.retrofit2:converter-gson:2.1.0',
//RxJava2 Adapter
retrofit2 : 'com.jakewharton.retrofit:retrofit2-rxjava2-adapter:1.0.0',
//okhttp
okhttp : 'com.squareup.okhttp3:okhttp:3.8.1',
logging : 'com.squareup.okhttp3:logging-interceptor:3.4.1',
utils : 'com.github.wang-developer:AndroidUtilsDemo:1.0.6',
commons_lang : 'org.apache.commons:commons-lang3:3.7',
commons_compress: 'org.apache.commons:commons-compress:1.19',
commons_c_lang : 'commons-lang:commons-lang:2.3',
commons_codec : 'commons-codec:commons-codec:1.7',
eventbus : 'org.greenrobot:eventbus:3.2.0',
eventbus2 : 'org.simple:androideventbus:1.0.5.1',
glide : 'com.github.bumptech.glide:glide:3.7.0',
permissions : 'com.github.getActivity:XXPermissions:11.6',
orcode : 'cn.yipianfengye.android:zxing-library:2.2'
// push : 'com.umeng.sdk:push:4.1.0',
// litepal : 'org.litepal.android:java:3.0.0',
// AlivcFFmpeg : 'com.aliyun.video.android:AlivcFFmpeg:2.0.0',
//
// basequickadapter : 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.34',
// SwipeDelMenuLayout: 'com.github.mcxtzhang:SwipeDelMenuLayout:V1.3.0',
// flycoTabLayout : 'com.flyco.tablayout:FlycoTabLayout_Lib:2.1.2@aar'
]
}
repositories {
google()
jcenter()
maven { url 'https://maven.aliyun.com/repository/jcenter' }
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/central' }
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.2'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath 'com.jakewharton:butterknife-gradle-plugin:10.2.3'
classpath "com.alibaba:arouter-register:1.0.2"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'https://jitpack.io' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}