v2.4.0: added version compatibility checks to github updates

This commit is contained in:
Evan Debenham
2024-04-16 14:50:28 -04:00
parent fbcfc59006
commit 898f756a07
2 changed files with 33 additions and 4 deletions

View File

@@ -43,6 +43,11 @@ public class DeviceCompat {
}
}
//return APi level on Android, major OS version on iOS, 0 on desktop
public static int getPlatformVersion(){
return Gdx.app.getVersion();
}
public static boolean isAndroid(){
return SharedLibraryLoader.isAndroid;
}