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/
42
42
package-lock.json
43
43
* .pyc
44
44
v8
45
+ .npmrc
Original file line number Diff line number Diff line change 3
3
@interface Config : NSObject
4
4
5
5
@property (nonatomic , retain ) NSString * BaseDir;
6
+ @property (nonatomic , retain ) NSString * ApplicationPath;
6
7
@property (nonatomic ) void * MetadataPtr;
7
8
@property BOOL IsDebug;
8
9
@property BOOL LogToSystemConsole;
Original file line number Diff line number Diff line change 12
12
@implementation Config
13
13
14
14
@synthesize BaseDir;
15
+ @synthesize ApplicationPath;
15
16
@synthesize MetadataPtr;
16
17
@synthesize IsDebug;
17
18
@@ -23,7 +24,11 @@ @implementation NativeScript
23
24
24
25
+ (void )start : (Config*)config {
25
26
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
+ }
27
32
RuntimeConfig.MetadataPtr = [config MetadataPtr ];
28
33
RuntimeConfig.IsDebug = [config IsDebug ];
29
34
RuntimeConfig.LogToSystemConsole = [config LogToSystemConsole ];
You can’t perform that action at this time.
0 commit comments