Files
moliparty-android/build.gradle

51 lines
1.6 KiB
Groovy
Raw Normal View History

2025-07-07 10:26:00 +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'
println "\n\n\n"
println '当前选择版本 Version Name'+ version_name
println '当前选择版本 Version Code'+ Integer.valueOf(version_code)
println "\n\n\n"
repositories {
mavenCentral()
mavenLocal()
jcenter()
google()
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://jitpack.io' }
maven { url 'https://repo1.maven.org/maven2/' }
maven { url 'https://raw.githubusercontent.com/martinloren/AabResGuard/mvn-repo' }
}
dependencies {
classpath 'com.android.tools.build:gradle:7.4.2'
// aRouter
classpath "com.alibaba:arouter-register:1.0.2"
//realm 数据库插件
classpath "io.realm:realm-gradle-plugin:10.16.1"
// android 资源混淆插件
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.tencent.vasdolly:plugin:3.0.6'
classpath "com.bytedance.android:aabresguard-plugin:0.1.10"
classpath "com.github.liujingxing:XmlClassGuard:1.2.6"
}
}
allprojects {
repositories {
mavenCentral()
google()
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://jitpack.io' }
maven { url 'https://repo1.maven.org/maven2/' }
}
//网络慢的话就去 https://maven.aliyun.com/mvn/view 里面找个代理的仓库。
}
task clean(type: Delete) {
delete rootProject.buildDir
}