Files
peko-android/build.gradle

49 lines
1.6 KiB
Groovy
Raw Normal View History

2020-04-02 10:43:40 +08:00
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
2022-09-14 10:42:43 +08:00
ext.kotlin_version = '1.5.31'
2020-04-02 10:43:40 +08:00
println "\n\n\n"
println '当前选择版本 Version Name'+ version_name
println '当前选择版本 Version Code'+ Integer.valueOf(version_code)
println "\n\n\n"
repositories {
2020-07-07 18:47:11 +08:00
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://jitpack.io' }
2020-04-02 10:43:40 +08:00
google()
2021-05-06 11:58:12 +08:00
mavenCentral()
2021-12-20 10:27:23 +08:00
maven {url 'https://developer.huawei.com/repo/'}
maven { url "https://mvn.mob.com/android" }
2021-06-03 18:36:12 +08:00
maven { url 'https://repo1.maven.org/maven2/' }
2020-04-02 10:43:40 +08:00
}
dependencies {
2021-12-20 10:27:23 +08:00
classpath 'com.android.tools.build:gradle:4.2.2'
2020-04-02 10:43:40 +08:00
//realm 数据库插件
classpath "io.realm:realm-gradle-plugin:5.3.0"
// android 资源混淆插件
2020-07-06 18:38:23 +08:00
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
2021-12-20 10:27:23 +08:00
classpath 'com.huawei.agconnect:agcp:1.6.0.300'
classpath 'com.tencent.vasdolly:plugin:3.0.3'
2022-08-29 11:35:39 +08:00
classpath "com.mob.sdk:MobSDK:2018.0319.1724"
2020-04-02 10:43:40 +08:00
}
}
allprojects {
repositories {
google()
2020-07-07 18:47:11 +08:00
mavenCentral()
maven { url 'https://maven.aliyun.com/repository/public' }
2020-04-02 10:43:40 +08:00
maven { url 'https://jitpack.io' }
2021-12-20 10:27:23 +08:00
maven { url "https://mvn.mob.com/android" }
2021-06-03 18:36:12 +08:00
maven { url 'https://repo1.maven.org/maven2/' }
2021-12-20 10:27:23 +08:00
maven { url 'https://developer.huawei.com/repo/' }
2020-04-02 10:43:40 +08:00
}
//网络慢的话就去 https://maven.aliyun.com/mvn/view 里面找个代理的仓库。
}
task clean(type: Delete) {
delete rootProject.buildDir
}