Files
peko-android/build.gradle

51 lines
1.6 KiB
Groovy
Raw Permalink 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 {
ext.kotlin_version = '1.8.22'
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 {
2023-08-14 12:27:53 +08:00
mavenCentral()
2024-02-23 15:17:24 +08:00
mavenLocal()
2023-11-29 10:02:54 +08:00
jcenter()
2023-08-14 12:27:53 +08:00
google()
2020-07-07 18:47:11 +08:00
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://jitpack.io' }
2021-06-03 18:36:12 +08:00
maven { url 'https://repo1.maven.org/maven2/' }
2023-11-29 10:02:54 +08:00
maven { url 'https://raw.githubusercontent.com/martinloren/AabResGuard/mvn-repo' }
2020-04-02 10:43:40 +08:00
}
dependencies {
2023-10-07 16:09:55 +08:00
classpath 'com.android.tools.build:gradle:7.4.2'
2023-11-22 21:35:05 +08:00
// aRouter
classpath "com.alibaba:arouter-register:1.0.2"
2020-04-02 10:43:40 +08:00
//realm 数据库插件
2023-10-07 16:09:55 +08:00
classpath "io.realm:realm-gradle-plugin:10.16.1"
2020-04-02 10:43:40 +08:00
// android 资源混淆插件
2020-07-06 18:38:23 +08:00
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
2023-12-13 14:46:46 +08:00
classpath 'com.tencent.vasdolly:plugin:3.0.6'
2023-11-28 16:21:56 +08:00
2023-11-29 10:02:54 +08:00
classpath "com.bytedance.android:aabresguard-plugin:0.1.10"
2023-11-28 16:21:56 +08:00
classpath "com.github.liujingxing:XmlClassGuard:1.2.6"
2020-04-02 10:43:40 +08:00
}
}
allprojects {
repositories {
2020-07-07 18:47:11 +08:00
mavenCentral()
2023-08-14 12:27:53 +08:00
google()
2020-07-07 18:47:11 +08:00
maven { url 'https://maven.aliyun.com/repository/public' }
2020-04-02 10:43:40 +08:00
maven { url 'https://jitpack.io' }
2021-06-03 18:36:12 +08:00
maven { url 'https://repo1.maven.org/maven2/' }
2020-04-02 10:43:40 +08:00
}
//网络慢的话就去 https://maven.aliyun.com/mvn/view 里面找个代理的仓库。
}
task clean(type: Delete) {
delete rootProject.buildDir
}