Use blank string instead of empty string for version name fallback in release variants.

App version name cannot be empty or null in SDK 33 PackageInfo.
fork
mcarare 2 years ago committed by mergify[bot]
parent 03ca41b0a8
commit 415849f09d

@ -30,8 +30,8 @@ object Config {
// Note: release builds must have the `versionName` set. However, the gradle ecosystem makes this hard to
// ergonomically validate (sometimes IDEs default to a release variant and mysteriously fail due to the
// validation, sometimes devs just need a release build and specifying project properties is annoying in IDEs),
// so instead we'll allow the `versionName` to silently default to an empty string.
return if (project.hasProperty("versionName")) project.property("versionName") as String else ""
// so instead we'll allow the `versionName` to silently default to a blank string.
return if (project.hasProperty("versionName")) project.property("versionName") as String else " "
}
@JvmStatic

Loading…
Cancel
Save