Last active
May 27, 2017 23:30
-
-
Save attakei/9c6e887b2662742228c2 to your computer and use it in GitHub Desktop.
To add CrashlyticsKit for Objective-C sources created by Kivy-ios(bulldozer).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// SDLUIKitDelegate+KivyAppDelegate.h | |
// | |
// Created by attakei on 2014/11/05. | |
// | |
// | |
// modify for your SDL header's path. | |
#import "../src/SDL/src/video/uikit/SDL_uikitappdelegate.h" | |
@interface SDLUIKitDelegate (KivyAppDelegate) | |
@end | |
@interface KivyAppDelegate: SDLUIKitDelegate | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// SDLUIKitDelegate+KivyAppDelegate.m | |
// | |
// Created by attakei on 2014/11/05. | |
// | |
// | |
#import "SDLUIKitDelegate+KivyAppDelegate.h" | |
#import <Fabric/Fabric.h> | |
#import <Crashlytics/Crashlytics.h> | |
@implementation SDLUIKitDelegate (KivyAppDelegate) | |
+ (NSString *)getAppDelegateClassName | |
{ | |
return @"KivyAppDelegate"; | |
} | |
@end | |
@implementation KivyAppDelegate | |
// In SDLUIKitDelegate, it is called last at didFinishLaunchingWithOptions. | |
-(void)postFinishLaunch | |
{ | |
[Fabric with:@[CrashlyticsKit]]; | |
// call superclass method.(continue to run as kivy) | |
[super postFinishLaunch]; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm new to Objective-C and in the midst of developing mobile game w/ Kivy. This example helped me out just wanted to say thanks!