@nativescript/ios 8.7.0-next.2023-11-01-6726030743 → 9.0.0-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,9 +2,11 @@
2
2
  <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
3
  <plist version="1.0">
4
4
  <dict>
5
+ <key>com.apple.security.app-sandbox</key>
6
+ <true/>
5
7
  <key>com.apple.security.cs.allow-unsigned-executable-memory</key>
6
8
  <true/>
7
9
  <key>com.apple.security.network.client</key>
8
10
  <true/>
9
11
  </dict>
10
- </plist>
12
+ </plist>
@@ -10,6 +10,8 @@
10
10
  39940D9122C4EF600050DDE1 /* NativeScript.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 39940D8C22C4EAAA0050DDE1 /* NativeScript.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
11
11
  39940E1C22C5DFFF0050DDE1 /* TKLiveSync.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 39940E1B22C5DFFF0050DDE1 /* TKLiveSync.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
12
12
  858B842D18CA22B800AB12DE /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 858B833A18CA111C00AB12DE /* InfoPlist.strings */; };
13
+ AA667DD02B5B305900F836A0 /* NativeScriptEmbedder.m in Sources */ = {isa = PBXBuildFile; fileRef = AA667DCE2B5B305900F836A0 /* NativeScriptEmbedder.m */; };
14
+ AAA0AADB2A54B96B00EE55A4 /* NativeScriptStart.m in Sources */ = {isa = PBXBuildFile; fileRef = AAA0AADA2A54B96B00EE55A4 /* NativeScriptStart.m */; };
13
15
  CD45EE7C18DC2D5800FB50C0 /* app in Resources */ = {isa = PBXBuildFile; fileRef = CD45EE7A18DC2D5800FB50C0 /* app */; };
14
16
  CD62955D1BB2678900AE3A93 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = CD62955C1BB2678900AE3A93 /* main.m */; };
15
17
  /* End PBXBuildFile section */
@@ -47,6 +49,11 @@
47
49
  858B833F18CA111C00AB12DE /* __PROJECT_NAME__-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "__PROJECT_NAME__-Prefix.pch"; sourceTree = "<group>"; };
48
50
  858B843318CA22B800AB12DE /* __PROJECT_NAME__.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = __PROJECT_NAME__.app; sourceTree = BUILT_PRODUCTS_DIR; };
49
51
  930F05DB22671AE300D269DC /* Swift-ObjC-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "Swift-ObjC-Bridging-Header.h"; path = "internal/Swift-ObjC-Bridging-Header.h"; sourceTree = SOURCE_ROOT; };
52
+ AA5E89E22B5C318D008AFA28 /* macros.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = macros.h; path = internal/macros.h; sourceTree = SOURCE_ROOT; };
53
+ AA667DCE2B5B305900F836A0 /* NativeScriptEmbedder.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NativeScriptEmbedder.m; path = internal/NativeScriptEmbedder.m; sourceTree = SOURCE_ROOT; };
54
+ AA667DCF2B5B305900F836A0 /* NativeScriptEmbedder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NativeScriptEmbedder.h; path = internal/NativeScriptEmbedder.h; sourceTree = SOURCE_ROOT; };
55
+ AAA0AADA2A54B96B00EE55A4 /* NativeScriptStart.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = NativeScriptStart.m; path = internal/NativeScriptStart.m; sourceTree = SOURCE_ROOT; };
56
+ AAA0AADC2A54B97E00EE55A4 /* NativeScriptStart.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = NativeScriptStart.h; path = internal/NativeScriptStart.h; sourceTree = SOURCE_ROOT; };
50
57
  CD45EE7A18DC2D5800FB50C0 /* app */ = {isa = PBXFileReference; lastKnownFileType = folder; path = app; sourceTree = "<group>"; };
51
58
  CD62955C1BB2678900AE3A93 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = internal/main.m; sourceTree = SOURCE_ROOT; };
52
59
  CDD59A261BB43B5D00EC2671 /* build-debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "build-debug.xcconfig"; sourceTree = "<group>"; };
@@ -68,7 +75,12 @@
68
75
  39940D8E22C4EBCC0050DDE1 /* Sources */ = {
69
76
  isa = PBXGroup;
70
77
  children = (
78
+ AA5E89E22B5C318D008AFA28 /* macros.h */,
71
79
  CD62955C1BB2678900AE3A93 /* main.m */,
80
+ AA667DCF2B5B305900F836A0 /* NativeScriptEmbedder.h */,
81
+ AA667DCE2B5B305900F836A0 /* NativeScriptEmbedder.m */,
82
+ AAA0AADA2A54B96B00EE55A4 /* NativeScriptStart.m */,
83
+ AAA0AADC2A54B97E00EE55A4 /* NativeScriptStart.h */,
72
84
  858B833F18CA111C00AB12DE /* __PROJECT_NAME__-Prefix.pch */,
73
85
  );
74
86
  name = Sources;
@@ -179,11 +191,13 @@
179
191
  858B832618CA111C00AB12DE /* Project object */ = {
180
192
  isa = PBXProject;
181
193
  attributes = {
194
+ BuildIndependentTargetsInParallel = YES;
182
195
  CLASSPREFIX = NSC;
183
- LastUpgradeCheck = 1330;
196
+ LastUpgradeCheck = 1500;
184
197
  ORGANIZATIONNAME = NativeScript;
185
198
  TargetAttributes = {
186
199
  858B83EF18CA22B800AB12DE = {
200
+ LastSwiftMigration = 1520;
187
201
  ProvisioningStyle = Automatic;
188
202
  };
189
203
  };
@@ -279,6 +293,8 @@
279
293
  buildActionMask = 2147483647;
280
294
  files = (
281
295
  CD62955D1BB2678900AE3A93 /* main.m in Sources */,
296
+ AA667DD02B5B305900F836A0 /* NativeScriptEmbedder.m in Sources */,
297
+ AAA0AADB2A54B96B00EE55A4 /* NativeScriptStart.m in Sources */,
282
298
  );
283
299
  runOnlyForDeploymentPostprocessing = 0;
284
300
  };
@@ -331,6 +347,7 @@
331
347
  DERIVE_UIKITFORMAC_PRODUCT_BUNDLE_IDENTIFIER = YES;
332
348
  ENABLE_STRICT_OBJC_MSGSEND = YES;
333
349
  ENABLE_TESTABILITY = YES;
350
+ ENABLE_USER_SCRIPT_SANDBOXING = NO;
334
351
  GCC_C_LANGUAGE_STANDARD = gnu99;
335
352
  GCC_DYNAMIC_NO_PIC = NO;
336
353
  GCC_NO_COMMON_BLOCKS = YES;
@@ -342,10 +359,9 @@
342
359
  GCC_WARN_UNINITIALIZED_AUTOS = YES;
343
360
  GCC_WARN_UNUSED_FUNCTION = YES;
344
361
  GCC_WARN_UNUSED_VARIABLE = YES;
345
- IPHONEOS_DEPLOYMENT_TARGET = 12.0;
362
+ IPHONEOS_DEPLOYMENT_TARGET = 13.0;
346
363
  ONLY_ACTIVE_ARCH = YES;
347
364
  SDKROOT = iphoneos;
348
- STRIP_SWIFT_SYMBOLS = NO;
349
365
  SUPPORTS_UIKITFORMAC = YES;
350
366
  SWIFT_OBJC_BRIDGING_HEADER = "$SRCROOT/internal/Swift-ObjC-Bridging-Header.h";
351
367
  SWIFT_VERSION = 4.2;
@@ -387,6 +403,7 @@
387
403
  DERIVE_UIKITFORMAC_PRODUCT_BUNDLE_IDENTIFIER = YES;
388
404
  ENABLE_NS_ASSERTIONS = NO;
389
405
  ENABLE_STRICT_OBJC_MSGSEND = YES;
406
+ ENABLE_USER_SCRIPT_SANDBOXING = NO;
390
407
  GCC_C_LANGUAGE_STANDARD = gnu99;
391
408
  GCC_NO_COMMON_BLOCKS = YES;
392
409
  GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
@@ -395,9 +412,8 @@
395
412
  GCC_WARN_UNINITIALIZED_AUTOS = YES;
396
413
  GCC_WARN_UNUSED_FUNCTION = YES;
397
414
  GCC_WARN_UNUSED_VARIABLE = YES;
398
- IPHONEOS_DEPLOYMENT_TARGET = 12.0;
415
+ IPHONEOS_DEPLOYMENT_TARGET = 13.0;
399
416
  SDKROOT = iphoneos;
400
- STRIP_SWIFT_SYMBOLS = NO;
401
417
  SUPPORTS_UIKITFORMAC = YES;
402
418
  SWIFT_OBJC_BRIDGING_HEADER = "$SRCROOT/internal/Swift-ObjC-Bridging-Header.h";
403
419
  SWIFT_VERSION = 4.2;
@@ -410,6 +426,7 @@
410
426
  baseConfigurationReference = CDD59A261BB43B5D00EC2671 /* build-debug.xcconfig */;
411
427
  buildSettings = {
412
428
  ARCHS = "$(ARCHS_STANDARD)";
429
+ CLANG_ENABLE_MODULES = YES;
413
430
  CODE_SIGN_ENTITLEMENTS = __PROJECT_NAME__/__PROJECT_NAME__.entitlements;
414
431
  ENABLE_BITCODE = NO;
415
432
  "ENABLE_HARDENED_RUNTIME[sdk=macosx*]" = YES;
@@ -425,11 +442,19 @@
425
442
  "\"$(SRCROOT)/internal\"",
426
443
  );
427
444
  INFOPLIST_FILE = "$(SRCROOT)/__PROJECT_NAME__/__PROJECT_NAME__-Info.plist";
445
+ IPHONEOS_DEPLOYMENT_TARGET = 13.0;
428
446
  LD_RUNPATH_SEARCH_PATHS = (
429
447
  "$(inherited)",
430
448
  "@executable_path/Frameworks",
431
449
  );
432
450
  PRODUCT_NAME = __PROJECT_NAME__;
451
+ SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
452
+ SUPPORTS_MACCATALYST = YES;
453
+ SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = YES;
454
+ SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = YES;
455
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
456
+ SWIFT_VERSION = 5.0;
457
+ TARGETED_DEVICE_FAMILY = "1,2";
433
458
  WRAPPER_EXTENSION = app;
434
459
  };
435
460
  name = Debug;
@@ -439,6 +464,7 @@
439
464
  baseConfigurationReference = CDD59A271BB43B5D00EC2671 /* build-release.xcconfig */;
440
465
  buildSettings = {
441
466
  ARCHS = "$(ARCHS_STANDARD)";
467
+ CLANG_ENABLE_MODULES = YES;
442
468
  CODE_SIGN_ENTITLEMENTS = __PROJECT_NAME__/__PROJECT_NAME__.entitlements;
443
469
  ENABLE_BITCODE = NO;
444
470
  "ENABLE_HARDENED_RUNTIME[sdk=macosx*]" = YES;
@@ -450,11 +476,18 @@
450
476
  "$(SRCROOT)/internal",
451
477
  );
452
478
  INFOPLIST_FILE = "$(SRCROOT)/__PROJECT_NAME__/__PROJECT_NAME__-Info.plist";
479
+ IPHONEOS_DEPLOYMENT_TARGET = 13.0;
453
480
  LD_RUNPATH_SEARCH_PATHS = (
454
481
  "$(inherited)",
455
482
  "@executable_path/Frameworks",
456
483
  );
457
484
  PRODUCT_NAME = __PROJECT_NAME__;
485
+ SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
486
+ SUPPORTS_MACCATALYST = YES;
487
+ SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = YES;
488
+ SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = YES;
489
+ SWIFT_VERSION = 5.0;
490
+ TARGETED_DEVICE_FAMILY = "1,2";
458
491
  WRAPPER_EXTENSION = app;
459
492
  };
460
493
  name = Release;
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <Scheme
3
- LastUpgradeVersion = "1330"
3
+ LastUpgradeVersion = "1500"
4
4
  version = "1.3">
5
5
  <BuildAction
6
6
  parallelizeBuildables = "YES"
@@ -0,0 +1,29 @@
1
+ // NOTE: move from core to here OR to NativeScript/ios-spm (Swift Package)
2
+ // //
3
+ // // NativeScriptEmbedder.h
4
+ // // NativeScript
5
+ // //
6
+ // // Created by Teodor Dermendzhiev on 6/19/18.
7
+ // //
8
+ // #include <UIKit/UIKit.h>
9
+
10
+ // // When embedding NativeScript application embedder needs to conform to this protocol
11
+ // // in order to have control over the NativeScript UIViewController
12
+ // // otherwise NativeScript application is presented over the topmost UIViewController.
13
+ // @protocol NativeScriptEmbedderDelegate
14
+ // - (id)presentNativeScriptApp:(UIViewController*)vc;
15
+ // @end
16
+
17
+ // @interface NativeScriptEmbedder : NSObject
18
+
19
+ // @property(nonatomic, retain, readonly) id<NativeScriptEmbedderDelegate> delegate;
20
+ // @property(nonatomic, retain, readonly) UIWindowScene* windowScene;
21
+
22
+ // + (NativeScriptEmbedder *)sharedInstance;
23
+
24
+ // - (void)setDelegate:(id <NativeScriptEmbedderDelegate>)aDelegate;
25
+ // - (void)setWindowScene:(UIWindowScene *)windowScene API_AVAILABLE(ios(13.0));
26
+
27
+
28
+ // @end
29
+
@@ -0,0 +1,25 @@
1
+ // NOTE: move from core to here OR to NativeScript/ios-spm (Swift Package)
2
+ // #import "NativeScriptEmbedder.h"
3
+
4
+ // @implementation NativeScriptEmbedder
5
+
6
+ // + (NativeScriptEmbedder *)sharedInstance {
7
+ // static NativeScriptEmbedder *sharedInstance = nil;
8
+ // static dispatch_once_t onceToken;
9
+ // dispatch_once(&onceToken, ^{
10
+ // sharedInstance = [[NativeScriptEmbedder alloc] init];
11
+ // });
12
+
13
+ // return sharedInstance;
14
+ // }
15
+
16
+ // - (void)setDelegate:(id <NativeScriptEmbedderDelegate>)aDelegate {
17
+ // _delegate = aDelegate;
18
+ // }
19
+
20
+ // - (void)setWindowScene:(UIWindowScene *)windowScene API_AVAILABLE(ios(13.0)){
21
+ // NSLog(@"Found Window Scene!");
22
+ // _windowScene = windowScene;
23
+ // }
24
+
25
+ // @end
@@ -0,0 +1,19 @@
1
+ //
2
+ // NativeScriptStart.h
3
+ //
4
+ // Created by Team nStudio on 7/5/23.
5
+ // Copyright © 2023 NativeScript. All rights reserved.
6
+ //
7
+
8
+ #ifndef NativeScriptStart_h
9
+ #define NativeScriptStart_h
10
+
11
+
12
+ #endif /* NativeScriptStart_h */
13
+
14
+ @interface NativeScriptStart : NSObject
15
+
16
+ + (void)setup;
17
+ + (void)boot;
18
+
19
+ @end
@@ -0,0 +1,73 @@
1
+ //
2
+ // NativeScriptStart.m
3
+ //
4
+ // Created by Team nStudio on 7/5/23.
5
+ // Copyright © 2023 NativeScript. All rights reserved.
6
+ //
7
+
8
+ #import <Foundation/Foundation.h>
9
+ #import <NativeScript/NativeScript.h>
10
+ #import <NativeScriptStart.h>
11
+
12
+ #ifdef DEBUG
13
+ #include <notify.h>
14
+ #include <TKLiveSync/TKLiveSync.h>
15
+ #include "macros.h"
16
+ #endif
17
+
18
+ extern char startOfMetadataSection __asm("section$start$__DATA$__TNSMetadata");
19
+ NativeScript* nativescriptStart;
20
+
21
+ @implementation NativeScriptStart
22
+
23
+ +(void)setup{
24
+ @autoreleasepool {
25
+ NSString* baseDir = [[NSBundle mainBundle] resourcePath];
26
+
27
+ #ifdef DEBUG
28
+ int refreshRequestSubscription;
29
+ notify_register_dispatch(NOTIFICATION("RefreshRequest"), &refreshRequestSubscription, dispatch_get_main_queue(), ^(int token) {
30
+ notify_post(NOTIFICATION("AppRefreshStarted"));
31
+ bool success = [nativescriptStart liveSync];
32
+ if (success) {
33
+ notify_post(NOTIFICATION("AppRefreshSucceeded"));
34
+ } else {
35
+ NSLog(@"__onLiveSync call failed");
36
+ notify_post(NOTIFICATION("AppRefreshFailed"));
37
+ }
38
+ });
39
+
40
+ TNSInitializeLiveSync();
41
+ if (getenv("TNSBaseDir")) {
42
+ baseDir = @(getenv("TNSBaseDir"));
43
+ }
44
+ #endif
45
+
46
+ void* metadataPtr = &startOfMetadataSection;
47
+
48
+ bool isDebug =
49
+ #ifdef DEBUG
50
+ true;
51
+ #else
52
+ false;
53
+ #endif
54
+
55
+ Config* config = [[Config alloc] init];
56
+ config.IsDebug = isDebug;
57
+ config.LogToSystemConsole = isDebug;
58
+ config.MetadataPtr = metadataPtr;
59
+ config.BaseDir = baseDir;
60
+ // config.ArgumentsCount = argc;
61
+ // config.Arguments = argv;
62
+
63
+ nativescriptStart = [[NativeScript alloc] initWithConfig:config];
64
+
65
+ }
66
+
67
+ }
68
+ +(void)boot{
69
+ [nativescriptStart runMainApplication];
70
+ }
71
+ @end
72
+
73
+
@@ -9,3 +9,7 @@
9
9
  // Intentionally left blank. Needed for the generation of all Swift classes in
10
10
  // the *-Swift.h*.
11
11
  // https://developer.apple.com/documentation/swift/imported_c_and_objective-c_apis/importing_objective-c_into_swift
12
+
13
+ #import "NativeScript/NativeScript.h"
14
+ #import "NativeScriptStart.h"
15
+ #import "NativeScriptEmbedder.h"
Binary file
@@ -0,0 +1,17 @@
1
+ //
2
+ // macros.h
3
+ // sampleng
4
+ //
5
+ // Created by Team nStudio on 1/19/24.
6
+ // Copyright © 2024 NativeScript. All rights reserved.
7
+ //
8
+
9
+ #ifndef macros_h
10
+ #define macros_h
11
+
12
+ #define NOTIFICATION(name) \
13
+ [[NSString stringWithFormat:@"%@:NativeScript.Debug.%s", \
14
+ [[NSBundle mainBundle] bundleIdentifier], name] UTF8String]
15
+
16
+
17
+ #endif /* macros_h */
@@ -7,58 +7,56 @@
7
7
  #ifdef DEBUG
8
8
  #include <notify.h>
9
9
  #include <TKLiveSync/TKLiveSync.h>
10
-
11
- #define NOTIFICATION(name) \
12
- [[NSString stringWithFormat:@"%@:NativeScript.Debug.%s", \
13
- [[NSBundle mainBundle] bundleIdentifier], name] UTF8String]
10
+ #include "macros.h"
14
11
  #endif
15
12
 
13
+
16
14
  extern char startOfMetadataSection __asm("section$start$__DATA$__TNSMetadata");
17
15
  NativeScript* nativescript;
18
16
 
19
17
  int main(int argc, char *argv[]) {
20
- @autoreleasepool {
21
- NSString* baseDir = [[NSBundle mainBundle] resourcePath];
18
+ @autoreleasepool {
19
+ NSString* baseDir = [[NSBundle mainBundle] resourcePath];
22
20
 
23
21
  #ifdef DEBUG
24
- int refreshRequestSubscription;
25
- notify_register_dispatch(NOTIFICATION("RefreshRequest"), &refreshRequestSubscription, dispatch_get_main_queue(), ^(int token) {
26
- notify_post(NOTIFICATION("AppRefreshStarted"));
27
- bool success = [nativescript liveSync];
28
- if (success) {
29
- notify_post(NOTIFICATION("AppRefreshSucceeded"));
30
- } else {
31
- NSLog(@"__onLiveSync call failed");
32
- notify_post(NOTIFICATION("AppRefreshFailed"));
33
- }
34
- });
35
-
36
- TNSInitializeLiveSync();
37
- if (getenv("TNSBaseDir")) {
38
- baseDir = @(getenv("TNSBaseDir"));
39
- }
22
+ int refreshRequestSubscription;
23
+ notify_register_dispatch(NOTIFICATION("RefreshRequest"), &refreshRequestSubscription, dispatch_get_main_queue(), ^(int token) {
24
+ notify_post(NOTIFICATION("AppRefreshStarted"));
25
+ bool success = [nativescript liveSync];
26
+ if (success) {
27
+ notify_post(NOTIFICATION("AppRefreshSucceeded"));
28
+ } else {
29
+ NSLog(@"__onLiveSync call failed");
30
+ notify_post(NOTIFICATION("AppRefreshFailed"));
31
+ }
32
+ });
33
+
34
+ TNSInitializeLiveSync();
35
+ if (getenv("TNSBaseDir")) {
36
+ baseDir = @(getenv("TNSBaseDir"));
37
+ }
40
38
  #endif
41
39
 
42
- void* metadataPtr = &startOfMetadataSection;
40
+ void* metadataPtr = &startOfMetadataSection;
43
41
 
44
- bool isDebug =
42
+ bool isDebug =
45
43
  #ifdef DEBUG
46
- true;
44
+ true;
47
45
  #else
48
- false;
46
+ false;
49
47
  #endif
50
48
 
51
- Config* config = [[Config alloc] init];
52
- config.IsDebug = isDebug;
53
- config.LogToSystemConsole = isDebug;
54
- config.MetadataPtr = metadataPtr;
55
- config.BaseDir = baseDir;
56
- config.ArgumentsCount = argc;
57
- config.Arguments = argv;
49
+ Config* config = [[Config alloc] init];
50
+ config.IsDebug = isDebug;
51
+ config.LogToSystemConsole = isDebug;
52
+ config.MetadataPtr = metadataPtr;
53
+ config.BaseDir = baseDir;
54
+ config.ArgumentsCount = argc;
55
+ config.Arguments = argv;
58
56
 
59
- nativescript = [[NativeScript alloc] initWithConfig:config];
60
- [nativescript runMainApplication];
57
+ nativescript = [[NativeScript alloc] initWithConfig:config];
58
+ [nativescript runMainApplication];
61
59
 
62
- return 0;
63
- }
60
+ return 0;
61
+ }
64
62
  }
@@ -47,6 +47,10 @@ elif effective_platform_name == "-maccatalyst":
47
47
  docset_platform = "maccatalyst"
48
48
  default_deployment_target_flag_name = "-mmaccatalyst-version-min"
49
49
  default_deployment_target_clang_env_name = "MACCATALYST_DEPLOYMENT_TARGET"
50
+ elif effective_platform_name == "-xrsimulator":
51
+ docset_platform = "xros"
52
+ default_deployment_target_flag_name = "-mxrossimulator-version-min"
53
+ default_deployment_target_clang_env_name = "XROS_DEPLOYMENT_TARGET"
50
54
  elif effective_platform_name == "-watchos":
51
55
  docset_platform = "watchOS"
52
56
  default_deployment_target_flag_name = "-mwatchos-version-min"
@@ -174,5 +178,11 @@ def generate_metadata(arch):
174
178
 
175
179
 
176
180
  for arch in env("ARCHS").split():
181
+ # skip metadata generation for architectures different than the one specified in the command line
182
+ # in case the command line argument is not specified, generate metadata for all architectures
183
+ if len(sys.argv) >= 2 and sys.argv[1].lower() != arch.lower():
184
+ print("Skipping metadata generation for " + arch)
185
+ continue
186
+
177
187
  print("Generating metadata for " + arch)
178
188
  generate_metadata(arch)
@@ -47,6 +47,10 @@ elif effective_platform_name == "-maccatalyst":
47
47
  docset_platform = "maccatalyst"
48
48
  default_deployment_target_flag_name = "-mmaccatalyst-version-min"
49
49
  default_deployment_target_clang_env_name = "MACCATALYST_DEPLOYMENT_TARGET"
50
+ elif effective_platform_name == "-xrsimulator":
51
+ docset_platform = "xros"
52
+ default_deployment_target_flag_name = "-mxrossimulator-version-min"
53
+ default_deployment_target_clang_env_name = "XROS_DEPLOYMENT_TARGET"
50
54
  elif effective_platform_name == "-watchos":
51
55
  docset_platform = "watchOS"
52
56
  default_deployment_target_flag_name = "-mwatchos-version-min"
@@ -174,5 +178,11 @@ def generate_metadata(arch):
174
178
 
175
179
 
176
180
  for arch in env("ARCHS").split():
181
+ # skip metadata generation for architectures different than the one specified in the command line
182
+ # in case the command line argument is not specified, generate metadata for all architectures
183
+ if len(sys.argv) >= 2 and sys.argv[1].lower() != arch.lower():
184
+ print("Skipping metadata generation for " + arch)
185
+ continue
186
+
177
187
  print("Generating metadata for " + arch)
178
188
  generate_metadata(arch)
@@ -44,17 +44,19 @@ function GEN_MODULEMAP() {
44
44
  }
45
45
 
46
46
  function GEN_METADATA() {
47
+ TARGET_ARCH=$1
47
48
  set -e
48
49
  cpu_arch=$(uname -m)
49
50
  pushd "$SRCROOT/internal/metadata-generator-${cpu_arch}/bin"
50
- ./build-step-metadata-generator.py
51
+ ./build-step-metadata-generator.py $TARGET_ARCH
51
52
  popd
52
53
  }
53
54
 
54
55
  # Workaround for ARCH being set to `undefined_arch` here. Extract it from command line arguments.
55
- GEN_MODULEMAP $(getArch "$@")
56
+ TARGET_ARCH=$(getArch "$@")
57
+ GEN_MODULEMAP $TARGET_ARCH
56
58
  printf "Generating metadata..."
57
- GEN_METADATA
59
+ GEN_METADATA $TARGET_ARCH
58
60
  DELETE_SWIFT_MODULES_DIR
59
61
  NS_LD="${NS_LD:-"$TOOLCHAIN_DIR/usr/bin/clang"}"
60
62
  $NS_LD "$@"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nativescript/ios",
3
3
  "description": "NativeScript Runtime for iOS",
4
- "version": "8.7.0-next.2023-11-01-6726030743",
4
+ "version": "9.0.0-dev.1",
5
5
  "keywords": [
6
6
  "NativeScript",
7
7
  "iOS",
@@ -23,7 +23,8 @@
23
23
  "apply-patches": "./apply_patches.sh",
24
24
  "build-v8-source": "./build_v8_source.sh",
25
25
  "build-v8-source-catalyst": "./build_v8_source_catalyst.sh",
26
- "build": "./build_all.sh",
26
+ "build-ios": "node prepare-target ios && ./build_all_ios.sh ios",
27
+ "build-vision": "node prepare-target visionos && ./build_all_vision.sh vision",
27
28
  "setup-ci": "./build_metadata_generator.sh",
28
29
  "update-version": "./update_version.sh",
29
30
  "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
@@ -35,4 +36,4 @@
35
36
  "dayjs": "^1.11.7",
36
37
  "semver": "^7.5.0"
37
38
  }
38
- }
39
+ }