mirror of
https://github.com/geode-sdk/android-launcher.git
synced 2026-10-21 16:32:39 +00:00
add method to get version code
This commit is contained in:
1 file changed
+9
@@ -394,6 +394,15 @@ object GeodeUtils {
|
||||
return ""
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
fun getGameVersionCode(): Long {
|
||||
activity.get()?.run {
|
||||
return GamePackageUtils.getGameVersionCode(packageManager)
|
||||
}
|
||||
|
||||
return 0L
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current version code of the launcher.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user