Skip to content

Instantly share code, notes, and snippets.

@attakei
Last active May 27, 2017 23:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save attakei/9c6e887b2662742228c2 to your computer and use it in GitHub Desktop.
Save attakei/9c6e887b2662742228c2 to your computer and use it in GitHub Desktop.
To add CrashlyticsKit for Objective-C sources created by Kivy-ios(bulldozer).
//
// 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
//
// 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
@AllieCarver
Copy link

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!

@tito
Copy link

tito commented May 27, 2017

Thanks a lot for this example!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment