realtimelocation/build.gradle
2024-12-16 19:02:16 +08:00

130 lines
4.2 KiB
Groovy
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
// 阿里云云效仓库https://maven.aliyun.com/mvn/guide
maven { url 'https://maven.aliyun.com/repository/jcenter' }
maven { url 'https://maven.aliyun.com/repository/google' }
// 华为开源镜像https://mirrors.huaweicloud.com
maven { url 'https://repo.huaweicloud.com/repository/maven' }
maven {
url "https://jitpack.io"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.2'
classpath 'com.jakewharton:butterknife-gradle-plugin:9.0.0-rc2'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
subprojects {
// project.configurations.all {
// resolutionStrategy.eachDependency { details ->
// if (details.requested.group == 'com.squareup.okhttp3'
// && !details.requested.name.contains('okhttp3')) {
// details.useVersion '3.12.0'//这个版本号设置为你想要的版本
// }
// }
// }
//TODO 重复依赖问题
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
&& !details.requested.name.contains('multidex')) {
details.useVersion '28.0.0'//这个版本号设置为你想要的版本
}
if (details.requested.group == 'com.squareup.okhttp3'
&& !details.requested.name.contains('okhttp3')) {
details.useVersion '3.12.0'//这个版本号设置为你想要的版本
}
if (details.requested.group == 'com.squareup.okio'
&& !details.requested.name.contains('okio')) {
details.useVersion '1.15.0'//这个版本号设置为你想要的版本
}
}
}
}
}
allprojects {
repositories {
google()
mavenCentral()
// 阿里云云效仓库https://maven.aliyun.com/mvn/guide
maven { url 'https://maven.aliyun.com/repository/jcenter' }
maven { url 'https://maven.aliyun.com/repository/google' }
// 华为开源镜像https://mirrors.huaweicloud.com
maven { url 'https://repo.huaweicloud.com/repository/maven' }
maven {
url "https://jitpack.io"
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
ext {
gCompileSdkVersion = 28
gMinSdkVersion = 16
gTargetSdkVersion = 28
// gVersionCode = 3
// gVersionName = '1.0.3'
gVersionCode = 53
gVersionName = '1.5.3'
//Router编译版本
gRouterApiVersion = '1.4.1'
gRouterCompileVersion = '1.2.2'
//appcompatb
gAppcompatVersion_v7_28 = '28.0.0'
//constraint-layout
gConstraint_layout = '1.1.3'
//butterknife
gButterKnifeVersion = '8.4.0'
//Gson
gGsonVersion = '2.8.5'
//Retrofit
gRetrofitVersion = '2.5.0'
//Rxjava
gRxJavaVersion = '2.2.7'
gRxAndroid = '2.1.1'
//Glide
gGlideVersion = '4.8.0'
//Okhttp
gOkHttp3Version = '3.13.1'
//EventBus
gEventBus = '2.4.0'
//ZXing
gZXingVersion = '3.3.0'
//视频播放g
gPlayerVersion = '6.3.1'
//图片压缩
gLubanVersion = '1.1.8'
//Rcyclerview扩展
gXRecyclerViewVersion = '1.5.9'
//rxview
gRxjavaBindingVersion = '2.1.1'
gPickerViewVersion = '4.1.9'
gBoomMenu = '2.1.1'
gFilePicker = '1.8.0'
pickerViewVersion = '4.1.9'
//bottomNavBar
supportBottomNavBar = '2.0.5'
eventButsVersion = '3.1.1'
bannerVersion = '1.4.10'
plugVersion = '27.1.1'
pickerViewVersion = '4.1.9'
xRecyclerViewVersion = '1.5.9'
lfilepickerlibraryVersion = '1.8.0'
mIndicatorVersion = '1.5.0'
lubanVersio = '1.1.8'
//socket
gSocket = '4.2.2'
//Gson
supportGson = '2.8.5'
//Glide
supportGlide = '4.8.0'
}