1 Star 0 Fork 0

gplove/android-platform-samples

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle.kts 1.89 KB
一键复制 编辑 原始数据 按行查看 历史
Yuichi Araki 提交于 2023-12-06 15:29 . Upgrade to casa v0.5.0
/*
* Copyright 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
@Suppress("DSL_SCOPE_VIOLATION")
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.hilt) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.affectedmoduledetector)
alias(libs.plugins.versionCatalogUpdate)
alias(libs.plugins.benManesVersions)
id("com.example.platform")
}
versionCatalogUpdate {
sortByKey.set(true)
keep {
keepUnusedVersions.set(true)
}
}
affectedModuleDetector {
baseDir = "${project.rootDir}"
pathsAffectingAllModules = setOf(
"gradle/libs.versions.toml",
)
excludedModules = setOf<String>()
logFilename = "output.log"
logFolder = "${rootProject.buildDir}/affectedModuleDetector"
val baseRef = findProperty("affected_base_ref") as? String
// If we have a base ref to diff against, extract the branch name and use it
if (!baseRef.isNullOrEmpty()) {
// Remove the prefix from the head.
// TODO: need to support other types of git refs
specifiedBranch = baseRef.replace("refs/heads/", "")
compareFrom = "SpecifiedBranchCommit"
} else {
// Otherwise we use the previous commit. This is mostly used for commits to main.
compareFrom = "PreviousCommit"
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/gplove1111/platform-samples.git
git@gitee.com:gplove1111/platform-samples.git
gplove1111
platform-samples
android-platform-samples
caren/agp_8.5

搜索帮助

0d507c66 1850385 C8b1a773 1850385