代码拉取完成,页面将自动刷新
同步操作将从 qpython-android/qpython 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
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"
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。