mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
fix: resolve compilation errors
This commit is contained in:
parent
632d8f6804
commit
6fa7928dee
1 changed files with 0 additions and 2 deletions
|
|
@ -13,8 +13,6 @@ object ConfigUtils {
|
|||
|
||||
@JvmStatic
|
||||
private fun Context.getVersionName(): String? =
|
||||
try {
|
||||
private fun Context.getVersionName(): String =
|
||||
try {
|
||||
packageManager.getPackageInfo(packageName, 0).versionName ?: BuildConfig.VERSION_NAME
|
||||
} catch (e: PackageManager.NameNotFoundException) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue