-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
102 lines (92 loc) · 2.91 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
gradlePluginPortal()
maven {url 'https://jitpack.io'}
google()
mavenCentral()
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url "https://s01.oss.sonatype.org/content/groups/public" }
maven { url "https://maven.rongcloud.cn/repository/maven-releases/" }
//极光
// 配置HMS Core SDK的Maven仓地址。
maven {url 'https://developer.huawei.com/repo/'}
maven { url "https://dl.google.com/dl/android/maven2/" }
//noinspection JcenterRepositoryObsolete
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.2'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20'
// 2.注册MobSDK 三方登录
classpath "com.mob.sdk:MobSDK:2018.0319.1724"
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath "com.android.tools.build:gradle:3.5.0"
//极光 fcm
classpath 'com.google.gms:google-services:4.3.8'
//极光 hms
classpath 'com.huawei.agconnect:agcp:1.6.0.300'
}
}
allprojects {
repositories {
gradlePluginPortal()
google()
mavenCentral()
maven { url 'https://maven.aliyun.com/repository/public/' }
maven { url "https://maven.rongcloud.cn/repository/maven-releases/" }
maven { url 'https://jitpack.io' }
//极光
// 配置HMS Core SDK的Maven仓地址。
maven {url 'https://developer.huawei.com/repo/'}
maven { url "https://dl.google.com/dl/android/maven2/" }
//noinspection JcenterRepositoryObsolete
jcenter()
// 1.添加MobSDK Maven地址
maven { url "https://mvn.mob.com/android" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
//统一配置信息
ext {
//开发配置
buildToolsVersion = '30.0.2'
compileSdkVersion = 31
minSdkVersion = 23
targetSdkVersion = 31
// 第三方库
okhttp = "4.9.3"
gson = "2.8.6"
arouter = "1.5.2"
easypermissions = "3.0.0"
glide = "4.13.0"
glideTrans = "4.3.0"
indicatorView = "2.1.3"
rxjava = "3.0.2"
rxandroid = "3.0.0"
rxbinding = "4.0.0"
roundimageview = "2.3.0"
baseAdapter = "3.0.7"
emojiIos = "0.8.0"
emojiJava = "5.1.1"
smartRefresh = "2.0.5"
floatWindow = "1.0.9"
pictureselector = "v3.0.9"
lottieVersion = "5.2.0"
// 融云相关库
musicLib = "1.0.1"
corekitLib = "1.0.0"
tinygameLib = "1.0.2"
//动态配置
versionCode = 1
versionName = "1.0.0"
mode = 0
android_ui = [
appcompat: "androidx.appcompat:appcompat:1.3.1",
material : "com.google.android.material:material:1.4.0",
]
mode_voice = "voice"
rc_busi = [mode_voice]
}