Skip to content

Commit

Permalink
Add version name on android
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandregpereira committed Jul 31, 2024
1 parent cdd2cb4 commit 994bdc8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package br.alexandregpereira.hunter.app.ui

import br.alexandregpereira.hunter.app.BuildConfig

internal actual fun getVersionName(): String = BuildConfig.VERSION_NAME
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ internal fun AppBottomNavigationTransition(
contentPadding = contentPadding,
)
BottomBarItemIcon.SETTINGS -> SettingsFeature(
versionName = "",
versionName = getVersionName(),
contentPadding = contentPadding,
)
}
}
}

internal expect fun getVersionName(): String
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package br.alexandregpereira.hunter.app.ui

internal actual fun getVersionName(): String = "1.0.0-beta"
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package br.alexandregpereira.hunter.app.ui

internal actual fun getVersionName(): String = "1.0.0-beta"

0 comments on commit 994bdc8

Please sign in to comment.