Skip to content

Instantly share code, notes, and snippets.

Created Sep 9, 2021
What would you like to do?
SDL2 RevenueCat integration
// You can use this in your
#import "../SDL/include/SDL_uikitappdelegate.h"
#import <Purchases/Purchases.h>
@interface MyDelegate : SDLUIKitDelegate
@implementation MyDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
BOOL ret = [super application:application didFinishLaunchingWithOptions:launchOptions];
// RevenueCat
RCPurchases.logLevel = RCLogLevelDebug;
[RCPurchases configureWithAPIKey:@"xxx"];
return ret;
// Add a 'category' to the SDL app delegate class
@interface SDLUIKitDelegate (extra)
@implementation SDLUIKitDelegate (extra)
+ (NSString *)getAppDelegateClassName {
return @"MyDelegate";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment