|
|
@@ -46,8 +46,16 @@
|
|
46
|
46
|
return self;
|
|
47
|
47
|
}
|
|
48
|
48
|
|
|
49
|
|
-- (NSArray *)getInitialProps {
|
|
50
|
|
- return [[NSProcessInfo processInfo] arguments];
|
|
|
49
|
+- (NSDictionary *)getLaunchArgs {
|
|
|
50
|
+ NSMutableDictionary* mutableArguments = [[NSMutableDictionary alloc] init];
|
|
|
51
|
+ NSArray* arguments = [[NSProcessInfo processInfo] arguments];
|
|
|
52
|
+ for (int i = 0; i < [arguments count]; i+=2) {
|
|
|
53
|
+ NSString* key = [arguments objectAtIndex:i];
|
|
|
54
|
+ NSString* value = [arguments objectAtIndex:i+1];
|
|
|
55
|
+ [mutableArguments setObject:value forKey:key];
|
|
|
56
|
+ }
|
|
|
57
|
+
|
|
|
58
|
+ return mutableArguments;
|
|
51
|
59
|
}
|
|
52
|
60
|
|
|
53
|
61
|
-(void)clearModuleRegistry
|