Files
TTUtils/build.gradle
tongtongstudio dfb81fa39a feat(aoleyuntest): 接入 Allwinner CubeMdm 管理能力
在 AoleyunTestActivity 中集成 AllwinnerCubeMdmManager,为全志平台设备添加 MDM 管控支持,包括 USB 模式、默认桌面、SD 卡、开发者模式、导航栏、状态栏、热点、蓝牙、恢复出厂、默认输入法和浏览器等设置,并新增随机通知与电源键长按管控功能。
2026-08-14 11:36:58 +08:00

59 lines
2.2 KiB
Groovy

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = "1.4.10"
repositories {
google()
// mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://jitpack.io" }
maven { url 'https://developer.huawei.com/repo/' }
maven { url 'https://maven.aliyun.com/repository/central' }
maven { url "https://maven.aliyun.com/repository/jcenter" }
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://maven.aliyun.com/repository/google' }
}
dependencies {
classpath "com.android.tools.build:gradle:3.6.4"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.tencent.android.tpns:tpnsplugin:1.8.0"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
configurations.all {
resolutionStrategy {
force 'androidx.constraintlayout:constraintlayout:2.0.4'
// 统一 androidx.annotation
force 'androidx.annotation:annotation:1.3.0'
// 统一 lifecycle-runtime
force 'androidx.lifecycle:lifecycle-runtime:2.3.1'
// 统一 Kotlin 标准库
force 'org.jetbrains.kotlin:kotlin-stdlib:1.5.10'
}
}
repositories {
google()
// mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://jitpack.io" }
maven { url 'https://developer.huawei.com/repo/' }
maven { url 'https://maven.aliyun.com/repository/central' }
maven { url "https://maven.aliyun.com/repository/jcenter" }
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://maven.aliyun.com/repository/google' }
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
//设置jar相对包路径或绝对路径
options.compilerArgs.add('-Xbootclasspath/p:app/libs/framework.jar')
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}