1 Star 0 Fork 99

Diminess/Kotlin-Room

forked from newki/Kotlin-Room 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 2.86 KB
一键复制 编辑 原始数据 按行查看 历史
newki 提交于 2023-05-22 17:52 . 录制视频2
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply from: "dependent.gradle"
buildscript {
ext.kotlin_version = '1.6.10'
ext.booster_version = '4.4.0'
repositories {
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
google()
maven { url 'https://jitpack.io' }
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
//Hilt插件
classpath 'com.google.dagger:hilt-android-gradle-plugin:2.38.1'
// ==================== Booster优化插件 ====================
// 基础框架
classpath "com.didiglobal.booster:booster-gradle-plugin:$booster_version"
// 多线程优化
classpath "com.didiglobal.booster:booster-transform-thread:$booster_version"
// WebView 预加载
classpath "com.didiglobal.booster:booster-transform-webview:$booster_version"
// SharedPreferences 优化
classpath "com.didiglobal.booster:booster-transform-shared-preferences:$booster_version"
// 资源压缩
classpath "com.didiglobal.booster:booster-task-compression-cwebp:$booster_version"
// 文件压缩
// classpath "com.didiglobal.booster:booster-task-compression-processed-res:$booster_version"
// 去冗余资源
classpath "com.didiglobal.booster:booster-task-resource-deredundancy:$booster_version"
// 资源索引内联
classpath "com.didiglobal.booster:booster-transform-r-inline:$booster_version"
// 修复 finalizer 导致的 TimeoutException
classpath "com.didiglobal.booster:booster-transform-finalizer-watchdog-daemon:$booster_version"
// 检查覆盖安装导致的 Resources 和 Assets 未加载的 Bug
classpath "com.didiglobal.booster:booster-transform-res-check:$booster_version"
// 修复 Toast 在 Android 7.1 上的 Bug
classpath "com.didiglobal.booster:booster-transform-toast:$booster_version"
// 处理系统 Crash
classpath "com.didiglobal.booster:booster-transform-activity-thread:$booster_version"
}
}
allprojects {
repositories {
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter' }
maven { url 'https://maven.aliyun.com/nexus/content/repositories/google' }
maven { url 'https://maven.aliyun.com/nexus/content/repositories/gradle-plugin' }
google()
maven { url 'https://jitpack.io' }
jcenter()
maven { url 'https://dl.bintray.com/umsdk/release' }
maven { url "https://androidx.dev/snapshots/builds/6543454/artifacts/repository/" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Kotlin
1
https://gitee.com/Dimiss/Kotlin-Room.git
git@gitee.com:Dimiss/Kotlin-Room.git
Dimiss
Kotlin-Room
Kotlin-Room
master

搜索帮助