mirror of
https://github.com/geode-sdk/android-launcher.git
synced 2026-10-22 08:42:38 +00:00
add getLauncherVersion method
This commit is contained in:
1 file changed
+5
-5
@@ -376,11 +376,6 @@ object GeodeUtils {
|
||||
return activity.filesDir.canonicalPath
|
||||
}
|
||||
|
||||
private val gameVersionMap = mapOf(
|
||||
37L to "2.200",
|
||||
38L to "2.205"
|
||||
)
|
||||
|
||||
@JvmStatic
|
||||
fun getGameVersion(): String {
|
||||
// these versions should be aligned to windows releases, not what android says
|
||||
@@ -391,6 +386,11 @@ object GeodeUtils {
|
||||
return ""
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
fun getLauncherVersion(): Int {
|
||||
return BuildConfig.VERSION_CODE
|
||||
}
|
||||
|
||||
fun isGeodeUri(uri: Uri): Boolean {
|
||||
return "com.geode.launcher.user" == uri.authority
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user