add getLauncherVersion method

This commit is contained in:
Chloe committed 2025-01-22 17:07:18 -07:00
1 parent b63073c135
commit 4782431bae
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
}