1 Star 0 Fork 0

jasonkevin88/AndroidTechCenter

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
base.gradle 1.22 KB
一键复制 编辑 原始数据 按行查看 历史
陈宝阳 提交于 2022-05-07 09:26 +08:00 . feat(业务): 增加天气功能
// 基类gradle文件,抽取相同的gradle配置
android {
compileSdk rootProject.ext.version.compileSdk
defaultConfig {
//applicationId "com.cby.android.sample"
minSdk rootProject.ext.version.minSdk
targetSdk rootProject.ext.version.targetSdk
versionCode rootProject.ext.version.versionCode
versionName rootProject.ext.version.versionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
buildFeatures {
viewBinding = true //view的绑定,用来替换findViewById 另外一种开启方式:viewBinding { enabled = true }
}
}
dependencies {
implementation rootProject.ext.customLibs
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jasonkevin88/AndroidTechCenter.git
git@gitee.com:jasonkevin88/AndroidTechCenter.git
jasonkevin88
AndroidTechCenter
AndroidTechCenter
master

搜索帮助