v2.2.0: attempted to improve some aspects of iOS crash reporting
This commit is contained in:
@@ -38,7 +38,6 @@ import com.watabou.utils.FileUtils;
|
|||||||
import org.robovm.apple.coregraphics.CGRect;
|
import org.robovm.apple.coregraphics.CGRect;
|
||||||
import org.robovm.apple.foundation.NSAutoreleasePool;
|
import org.robovm.apple.foundation.NSAutoreleasePool;
|
||||||
import org.robovm.apple.foundation.NSBundle;
|
import org.robovm.apple.foundation.NSBundle;
|
||||||
import org.robovm.apple.foundation.NSDictionary;
|
|
||||||
import org.robovm.apple.foundation.NSException;
|
import org.robovm.apple.foundation.NSException;
|
||||||
import org.robovm.apple.foundation.NSMutableDictionary;
|
import org.robovm.apple.foundation.NSMutableDictionary;
|
||||||
import org.robovm.apple.foundation.NSObject;
|
import org.robovm.apple.foundation.NSObject;
|
||||||
@@ -57,11 +56,7 @@ public class IOSLauncher extends IOSApplication.Delegate {
|
|||||||
protected IOSApplication createApplication() {
|
protected IOSApplication createApplication() {
|
||||||
|
|
||||||
//ensures the app actually crashes if there's an error in the mobiVM runtime
|
//ensures the app actually crashes if there's an error in the mobiVM runtime
|
||||||
Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
|
NSException.registerDefaultJavaUncaughtExceptionHandler();
|
||||||
public void uncaughtException(Thread thread, Throwable ex) {
|
|
||||||
new NSException(ex.getClass().getName(), ex.getMessage(), new NSDictionary()).raise();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Game.version = NSBundle.getMainBundle().getInfoDictionaryObject("CFBundleVersionString").description();
|
Game.version = NSBundle.getMainBundle().getInfoDictionaryObject("CFBundleVersionString").description();
|
||||||
|
|||||||
Reference in New Issue
Block a user