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