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