diff --git a/app/build.gradle.kts b/app/build.gradle.kts index e999c61..f0666c7 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -58,7 +58,7 @@ androidComponents { onVariants(selector().all()) { it.outputs.forEach { output -> val currentType = it.buildType - val currentSuffix = property.github.ci.commit.id?.let { suffix -> if (suffix.isNotBlank()) "-$suffix" else "" } ?: "" + val currentSuffix = property.github.ci.commit.id.let { suffix -> if (suffix.isNotBlank()) "-$suffix" else "" } val currentVersion = "${output.versionName.get()}$currentSuffix(${output.versionCode.get()})" if (output is com.android.build.api.variant.impl.VariantOutputImpl) output.outputFileName.set("${property.project.name}-v$currentVersion-$currentType.apk") diff --git a/settings.gradle.kts b/settings.gradle.kts index 6470705..8ed99bf 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -6,8 +6,8 @@ pluginManagement { } } plugins { - id("com.highcapable.sweetdependency") version "1.0.2" - id("com.highcapable.sweetproperty") version "1.0.3" + id("com.highcapable.sweetdependency") version "1.0.3" + id("com.highcapable.sweetproperty") version "1.0.4" } sweetProperty { global {