c-brain-glass/build.gradle
徐勤民 807634b4c4 feat(app): 更新应用配置和依赖库
- 修改应用包名为 com.nova.brain.glass
- 升级编译SDK版本至33,最小SDK版本至26
- 添加多个第三方仓库地址包括阿里云、Rokid等
- 集成 Rokid Glass SDK 替代原有的串口和 RabbitMQ 依赖
- 在 Manifest 中添加存储、媒体、网络、蓝牙、位置等权限配置
- 添加系统级权限和功能声明支持
- 配置打包选项处理重复的 so 文件冲突
2026-04-14 10:37:16 +08:00

68 行
2.2 KiB
Groovy

// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply from: "config.gradle"
buildscript {
ext.kotlin_version = "1.6.10"
repositories {
google()
mavenCentral()
maven { url 'https://nexus.xuqinmin.com/repository/android/' }
maven { url 'https://maven.rokid.com/repository/maven-public/' }
maven { url 'https://maven.aliyun.com/nexus/content/repositories/releases/' }
maven { url 'https://maven.aliyun.com/repository/google/' }
maven { url 'https://maven.aliyun.com/repository/public/' }
maven { url 'https://www.jitpack.io' }
// maven {
// allowInsecureProtocol true
// url 'http://xuqinmin.com.cn:8081/repository/android-group/'
// }
}
dependencies {
classpath 'com.android.tools.build:gradle:7.2.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.0"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
mavenCentral()
// maven { url 'http://developer.huawei.com/repo/' }
maven { url 'https://nexus.xuqinmin.com/repository/android/' }
maven { url 'https://maven.rokid.com/repository/maven-public/' }
maven { url 'https://maven.aliyun.com/nexus/content/repositories/releases/' }
maven { url 'https://maven.aliyun.com/repository/google/' }
maven { url 'https://maven.aliyun.com/repository/public/' }
maven { url 'https://www.jitpack.io' }
// maven {
// allowInsecureProtocol true
// url 'http://xuqinmin.com.cn:8081/repository/android-group/'
// }
}
}
//全局配置,所有module都可以用到
subprojects {
afterEvaluate {
android {
buildFeatures.dataBinding = true
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = "11"
}
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}