1 Star 0 Fork 5

sposer/qpython

forked from qpython-android/qpython 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 5.19 KB
一键复制 编辑 原始数据 按行查看 历史
乘着船 提交于 2022-04-22 22:04 . 修改compileSdk到32
def supportVersion = "28.0.0" // equals to line60
def retrofitVersion = "2.1.0"
def rxVersion = "1.2.1"
def okhttpVersion = '3.10.0'
def butterknifeVersion = '9.0.0' //eqals to line 26
buildscript {
repositories {
// 配置HMS Core SDK的Maven仓地址。
maven {url 'https://developer.huawei.com/repo/'}
maven {url 'https://maven.aliyun.com/repository/jcenter'}
maven {url 'https://maven.aliyun.com/repository/google'}
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
maven { url "https://plugins.gradle.org/m2/" }
maven { url "https://maven.google.com" }
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.0'//升级gradle版本,兼容主界面获取资源文件方式
// A gradle plugin for getting java lambda support in java 6, 7 and android
// https://github.com/evant/gradle-retrolambda
classpath 'me.tatarka:gradle-retrolambda:3.7.0'
// Gradle plugin which downloads and manages your Android SDK.
//classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.12.0'
// Field and method binding for Android views which uses annotation processing to generate boilerplate code for you.
// https://github.com/JakeWharton/butterknife
classpath "com.jakewharton:butterknife-gradle-plugin:9.0.0-rc2"
// Realm is a mobile database: a replacement for SQLite & ORMs
// https://github.com/realm/realm-java
classpath "io.realm:realm-gradle-plugin:3.5.0"
classpath 'com.google.gms:google-services:4.0.2'
// 添加agcp插件配置。
classpath 'com.huawei.agconnect:agcp:1.6.0.300'
}
}
allprojects {
repositories {
// 配置HMS Core SDK的Maven仓地址。
maven {url 'https://developer.huawei.com/repo/'}
maven {url 'https://maven.aliyun.com/repository/jcenter'}
maven {url 'https://maven.aliyun.com/repository/google'}
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
maven { url "https://jitpack.io" }
// maven { url 'https://dl.bintray.com/azeesoft/maven' }
//maven { url "http://mvn.leancloud.cn/nexus/content/repositories/public" }
google()
mavenCentral()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
subprojects {
def androidHome
if ((androidHome = System.env.'ANDROID_HOME')
&& (androidHome = androidHome as File).exists()
&& androidHome.canWrite()) {
//apply plugin: 'android-sdk-manager'
}
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
&& !details.requested.name.contains('multidex')) {
details.useVersion "${supportVersion}"
}
}
}
}
ext {
minSdkVersion = 18
targetSdkVersion = 28
compileSdkVersion = 32
buildToolsVersion = '28.0.2'//30.0.2正常
libOkHttp3 = "com.squareup.okhttp3:okhttp:${okhttpVersion}"
libRxJava = "io.reactivex:rxandroid:${rxVersion}"
libRxAndroid = "io.reactivex:rxjava:${rxVersion}"
libFileDownloaderLib = 'com.liulishuo.filedownloader:library:1.7.4'
libSupportV4 = "com.android.support:support-v4:${supportVersion}"
libSupportV4Design = 'com.android.support:design:${supportVersion}'
libSupportV7 = "com.android.support:appcompat-v7:${supportVersion}"
libSupportCardView = "com.android.support:cardview-v7:${supportVersion}"
libSupportPreference = "com.android.support:preference-v14:${supportVersion}"
libSupportAnnotation = "com.android.support:support-annotations:${supportVersion}"
libSupportDesign = "com.android.support:design:${supportVersion}"
libOkHttp3Log = "com.squareup.okhttp3:logging-interceptor:${okhttpVersion}"
// firebase related https://firebase.google.com/docs/android/setup
firebaseCore = "com.google.firebase:firebase-core:16.0.7"
firebaseMsg = "com.google.firebase:firebase-messaging:18.0.0"
firebaseIid = "com.google.firebase:firebase-iid:17.0.4"
firebaseAuth = "com.google.firebase:firebase-auth:16.1.0"
firebaseDatabase = "com.google.firebase:firebase-database:16.0.6"
// https://developers.google.com/android/guides/setup
googlePlayServiceAuth = "com.google.android.gms:play-services-auth:16.0.1"
leakcanaryDebug = 'com.squareup.leakcanary:leakcanary-android:1.5.4'
leakcanaryRelease = 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4'
libGoogleGuava = 'com.google.guava:guava:18.0'
retrofit = "com.squareup.retrofit2:retrofit:${retrofitVersion}"
retrofitCoverterGson = "com.squareup.retrofit2:converter-gson:${retrofitVersion}"
retrofitAdapterRxjava = "com.squareup.retrofit2:adapter-rxjava:${retrofitVersion}"
libButterknife = "com.jakewharton:butterknife:${butterknifeVersion}"
libButterknifeCompiler ="com.jakewharton:butterknife-compiler:${butterknifeVersion}"
//https://developer.huawei.com/consumer/cn/doc/development/HMSCore-Guides/android-app-quickstart-0000001071490422
huaweiPush = "com.huawei.hms:push:6.1.0.300"
huaweiAnlytics = "com.huawei.hms:hianalytics:6.3.2.300"
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/sposer/qpython.git
git@gitee.com:sposer/qpython.git
sposer
qpython
qpython
master

搜索帮助