Skip to content

Commit

Permalink
[#4095] Remove UnstableApiUsage
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaozhan committed Nov 30, 2024
1 parent 225264d commit 6063c0a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions buildSrc/src/main/kotlin/ProjectSettings.kt
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,17 @@ object ProjectSettings {
"0.0.1"
}

@Suppress("UnstableApiUsage")
private fun gitCommitCount(project: Project): String = project.providers.exec {
commandLine("git rev-list --first-parent --count HEAD".split(" "))
}.standardOutput.asText.get().trim()

@Suppress("UnstableApiUsage")
private fun isMaster(project: Project): Boolean = project.providers.exec {
commandLine("git rev-parse --abbrev-ref HEAD".split(" "))
}.standardOutput.asText.get().trim() == "master"

private fun isCI() = System.getenv("CI") == "true"

@Suppress("TooGenericExceptionCaught", "UnstableApiUsage")
@Suppress("TooGenericExceptionCaught")
private fun Project.setIOSVersion(versionName: String) {
if (System.getProperty("os.name").contains("Mac")) {
providers.exec {
Expand Down
2 changes: 1 addition & 1 deletion submodule/basemob
2 changes: 1 addition & 1 deletion submodule/logmob
2 changes: 1 addition & 1 deletion submodule/parsermob
2 changes: 1 addition & 1 deletion submodule/scopemob

0 comments on commit 6063c0a

Please sign in to comment.