[fenix] 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.
pull/600/head
mcarare 2 years ago committed by mergify[bot]
parent e06af2be16
commit a23c0d53c2

@ -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