fix dependencies building, looks like i cant use the sim bc libs are compiled for ios

This commit is contained in:
neon443
2025-06-05 11:17:37 +01:00
parent 2a2ed76f58
commit 7d206478ea
92 changed files with 14342 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
#import "ConfigHelper.h"
#import <YAML/YAMLSerialization.h>
@implementation ConfigHelper
+ (id)valueForKey:(NSString *)key {
static id yaml;
if (!yaml) {
NSBundle *bundle = [NSBundle bundleForClass:[self class]];
NSString *path = [bundle pathForResource:@"config" ofType:@"yml"];
NSInputStream *stream = [[NSInputStream alloc] initWithFileAtPath:path];
yaml = [YAMLSerialization YAMLWithStream:stream
options:kYAMLReadOptionStringScalars
error:nil];
}
id data = [yaml objectAtIndex:0];
NSArray *keyList = [key componentsSeparatedByString:@"."];
for (NSString *keyPart in keyList) {
data = [data objectForKey:keyPart];
}
return data;
}
@end