File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -42,3 +42,4 @@ node_modules/
4242package-lock.json
4343* .pyc
4444v8
45+ .npmrc
Original file line number Diff line number Diff line change 33@interface Config : NSObject
44
55@property (nonatomic , retain ) NSString * BaseDir;
6+ @property (nonatomic , retain ) NSString * ApplicationPath;
67@property (nonatomic ) void * MetadataPtr;
78@property BOOL IsDebug;
89@property BOOL LogToSystemConsole;
Original file line number Diff line number Diff line change 1212@implementation Config
1313
1414@synthesize BaseDir;
15+ @synthesize ApplicationPath;
1516@synthesize MetadataPtr;
1617@synthesize IsDebug;
1718
@@ -23,7 +24,11 @@ @implementation NativeScript
2324
2425+ (void )start : (Config*)config {
2526 RuntimeConfig.BaseDir = [config.BaseDir UTF8String ];
26- RuntimeConfig.ApplicationPath = [[config.BaseDir stringByAppendingPathComponent: @" app" ] UTF8String ];
27+ if (config.ApplicationPath != nil ) {
28+ RuntimeConfig.ApplicationPath = [[config.BaseDir stringByAppendingPathComponent: config.ApplicationPath] UTF8String ];
29+ } else {
30+ RuntimeConfig.ApplicationPath = [[config.BaseDir stringByAppendingPathComponent: @" app" ] UTF8String ];
31+ }
2732 RuntimeConfig.MetadataPtr = [config MetadataPtr ];
2833 RuntimeConfig.IsDebug = [config IsDebug ];
2934 RuntimeConfig.LogToSystemConsole = [config LogToSystemConsole ];
You can’t perform that action at this time.
0 commit comments