#if __has_include(<React/RCTConvert.h>)
#import <React/RCTConvert.h>
#import <React/RCTBridge.h>
#import <React/RCTEventDispatcher.h>
#import <React/RCTUtils.h>
#import <React/RCTAnimationType.h>
#else
#import <React/RCTConvert.h>
#import <React/RCTBridge.h>
#import <React/RCTEventDispatcher.h>
#import <React/RCTUtils.h>
#import <React/RCTAnimationType.h>
#endif

#import <UIKit/UIKit.h>
#import "RNInvitereferrals.h"
#import <objc/runtime.h>


@implementation RNInvitereferrals

- (dispatch_queue_t)methodQueue
{
    return dispatch_get_main_queue();
}

//RCT_EXPORT_MODULE();

/* app delegate methods implementation */
+(void)setupWithBrandId:(NSInteger)brandId encryptedKey:(NSString *)encryptedKey {
    NSLog(@"PLUGIN VERSION : 4.3.2 !!");
    NSLog(@"SET UP WITH BRAND ID !!");
    [[InviteReferrals sharedInstance] setupWithBrandId: brandId encryptedKey: encryptedKey];
}

+(void)openUrlWithUrl:(NSURL *)url {
    NSLog(@"OPEN URL WITH APPLICATION");
    [[InviteReferrals sharedInstance] openUrlWithUrl: url];
}

+(void)continueUserActivityWith:(NSUserActivity *)userActivity {
    NSLog(@"COUNTINUE USER ACTIVITY !!");
    [[InviteReferrals sharedInstance] continueUserActivityWith: userActivity];
}
@end
