
// ContentsquareInterfaceWrapper.m
#import <Foundation/Foundation.h>
#import <React/RCTUIManager.h>
#import <React/RCTBridgeModule.h>

#if __has_include("ContentsquareBridgeModule-Swift.h")
#import "ContentsquareBridgeModule-Swift.h"
#elif __has_include("ContentsquareBridgeModule/ContentsquareBridgeModule-Swift.h")
#import "ContentsquareBridgeModule/ContentsquareBridgeModule-Swift.h"
#endif


@implementation ErrorAnalysisInterfaceWrapper : NSObject {
    __strong ErrorAnalysisSDKInterface *errorAnalaysisSDKInterface;
}

- (instancetype)init {
    self = [super init];
    if (self) {
        errorAnalaysisSDKInterface = [[ErrorAnalysisSDKInterface alloc] init];
    }
    return self;
}

- (void)setURLMaskingPatterns:(NSArray<NSString *> *)patterns {
    [errorAnalaysisSDKInterface setURLMaskingPatterns:patterns];
}

- (void)reportJavascriptError:(NSDictionary *)error
                                resolver:(RCTPromiseResolveBlock)resolve
                                rejecter:(RCTPromiseRejectBlock)reject 
{
    [errorAnalaysisSDKInterface reportJavascriptError:error resolver:resolve rejecter:reject];
}

- (void)triggerNativeCrash {
    [errorAnalaysisSDKInterface triggerNativeCrash];
}

@end
