This commit is contained in:
2023-12-06 14:51:43 +05:30
parent 133f0413f2
commit 5df6ee8ae5
530 changed files with 26339 additions and 12407 deletions

View File

@@ -0,0 +1,44 @@
#if defined(__has_include) && __has_include("UnityAppController.h")
#import "UnityAppController.h"
#else
#import "EmptyUnityAppController.h"
#endif
#import "ConsentManagerErrorBridge.h"
#import "ConsentManagerBridge.h"
@interface ConsentManagerErrorBridge ()
@property (nonatomic, copy) NSString *reason;
@property (nonatomic, assign) NSInteger code;
@end
@implementation ConsentManagerErrorBridge
- (instancetype)initWithCode:(NSInteger)code
reason:(NSString *)reason {
if (self = [super init]) {
self.reason = reason;
self.code = code;
}
return self;
}
@end
ConsentManagerErrorBridge *GetConsentManagerException(void) {
return GetCurrentErrorBridge();
}
const char *GetReason() {
const char *cString = GetCurrentErrorBridge().reason.UTF8String;
char *cStringCopy = calloc([GetCurrentErrorBridge().reason length]+1, 1);
return strncpy(cStringCopy, cString, [GetCurrentErrorBridge().reason length]);
}
int GetCode() {
return (int)GetCurrentErrorBridge().code;
}