1 Star 0 Fork 1

voilet0604/MvpHiltDemo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 1.27 KB
一键复制 编辑 原始数据 按行查看 历史
voilet0604 提交于 2021-04-20 11:01 . update
// 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.4.31"
ext.hilt_version = "2.33-beta"
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:4.1.3"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
//hilt 依赖注入框架
classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version"
//kotlin data class 默认没有空构造,通过这个插件增加空构造,并且非final类
classpath "org.jetbrains.kotlin:kotlin-noarg:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-allopen:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
mavenCentral()
maven { url "https://jitpack.io" }//必须添加这行
maven {
name "amazonaws"
url "https://s3.amazonaws.com/repo.commonsware.com"
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Android
1
https://gitee.com/violetshalei/mvp-hilt-demo.git
git@gitee.com:violetshalei/mvp-hilt-demo.git
violetshalei
mvp-hilt-demo
MvpHiltDemo
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385