@nativescript/ios 6.5.4 → 6.5.6

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.
@@ -207,6 +207,7 @@
207
207
  /* Begin PBXShellScriptBuildPhase section */
208
208
  C97FD7AC1ADE5369004DB2A4 /* NativeScript PreBuild */ = {
209
209
  isa = PBXShellScriptBuildPhase;
210
+ alwaysOutOfDate = 1;
210
211
  buildActionMask = 2147483647;
211
212
  files = (
212
213
  );
@@ -214,6 +215,10 @@
214
215
  );
215
216
  name = "NativeScript PreBuild";
216
217
  outputPaths = (
218
+ "$CONFIGURATION_BUILD_DIR/metadata-arm64.bin",
219
+ "$CONFIGURATION_BUILD_DIR/metadata-arm64e.bin",
220
+ "$CONFIGURATION_BUILD_DIR/metadata-i386.bin",
221
+ "$CONFIGURATION_BUILD_DIR/metadata-x86_64.bin",
217
222
  );
218
223
  runOnlyForDeploymentPostprocessing = 0;
219
224
  shellPath = /bin/sh;
@@ -222,6 +227,7 @@
222
227
  };
223
228
  CD3EAD351B05FF060042DBFC /* NativeScript PostBuild */ = {
224
229
  isa = PBXShellScriptBuildPhase;
230
+ alwaysOutOfDate = 1;
225
231
  buildActionMask = 2147483647;
226
232
  files = (
227
233
  );
@@ -232,11 +238,12 @@
232
238
  );
233
239
  runOnlyForDeploymentPostprocessing = 0;
234
240
  shellPath = /bin/sh;
235
- shellScript = "\"$SRCROOT/internal/nativescript-post-build\"";
241
+ shellScript = "\"$SRCROOT/internal/nativescript-post-build\"\n";
236
242
  showEnvVarsInLog = 0;
237
243
  };
238
244
  CD62955B1BB2651D00AE3A93 /* NativeScript PreLink */ = {
239
245
  isa = PBXShellScriptBuildPhase;
246
+ alwaysOutOfDate = 1;
240
247
  buildActionMask = 2147483647;
241
248
  files = (
242
249
  );
@@ -247,7 +254,7 @@
247
254
  );
248
255
  runOnlyForDeploymentPostprocessing = 0;
249
256
  shellPath = /bin/sh;
250
- shellScript = "\"$SRCROOT/internal/nativescript-pre-link\"";
257
+ shellScript = "\"$SRCROOT/internal/nativescript-pre-link\"\n";
251
258
  showEnvVarsInLog = 0;
252
259
  };
253
260
  /* End PBXShellScriptBuildPhase section */
@@ -35,11 +35,38 @@ def map_and_list(func, iterable):
35
35
 
36
36
 
37
37
  # process environment variables
38
+ effective_platofrm_name = env("EFFECTIVE_PLATFORM_NAME")
39
+ docset_platform = "iOS"
40
+ default_deployment_target_flag_name = "-mios-simulator-version-min"
41
+ default_deployment_target_clang_env_name = "IPHONEOS_DEPLOYMENT_TARGET"
42
+ if effective_platofrm_name is "-macosx":
43
+ docset_platform = "OSX"
44
+ default_deployment_target_flag_name = "-mmacosx-version-min"
45
+ default_deployment_target_clang_env_name = "MACOSX_DEPLOYMENT_TARGET"
46
+ elif effective_platofrm_name is "-watchos":
47
+ docset_platform = "watchOS"
48
+ default_deployment_target_flag_name = "-mwatchos-version-min"
49
+ default_deployment_target_clang_env_name = "WATCHOS_DEPLOYMENT_TARGET"
50
+ elif effective_platofrm_name is "-watchsimulator":
51
+ docset_platform = "watchOS"
52
+ default_deployment_target_flag_name = "-mwatchos-simulator-version-min"
53
+ default_deployment_target_clang_env_name = "WATCHOS_DEPLOYMENT_TARGET"
54
+ elif effective_platofrm_name is "-appletvos":
55
+ docset_platform = "tvOS"
56
+ default_deployment_target_flag_name = "-mappletvos-version-min"
57
+ default_deployment_target_clang_env_name = "APPLETVOS_DEPLOYMENT_TARGET"
58
+ elif effective_platofrm_name is "-appletvsimulator":
59
+ docset_platform = "tvOS"
60
+ default_deployment_target_flag_name = "-mappletvsimulator-version-min"
61
+ default_deployment_target_clang_env_name = "APPLETVOS_DEPLOYMENT_TARGET"
62
+ elif effective_platofrm_name is "-iphoneos":
63
+ default_deployment_target_flag_name = "-miphoneos-version-min"
64
+
38
65
  conf_build_dir = env("CONFIGURATION_BUILD_DIR")
39
66
  sdk_root = env("SDKROOT")
40
67
  src_root = env("SRCROOT")
41
- deployment_target_flag_name = env("DEPLOYMENT_TARGET_CLANG_FLAG_NAME")
42
- deployment_target = env(env("DEPLOYMENT_TARGET_CLANG_ENV_NAME"))
68
+ deployment_target_flag_name = env_or_empty("DEPLOYMENT_TARGET_CLANG_FLAG_NAME") or default_deployment_target_flag_name
69
+ deployment_target = env(env_or_empty("DEPLOYMENT_TARGET_CLANG_ENV_NAME") or default_deployment_target_clang_env_name)
43
70
  std = env("GCC_C_LANGUAGE_STANDARD")
44
71
  header_search_paths = env_or_empty("HEADER_SEARCH_PATHS")
45
72
  header_search_paths_parsed = map_and_list((lambda s: "-I" + s), shlex.split(header_search_paths))
@@ -51,15 +78,9 @@ enable_modules = env_bool("CLANG_ENABLE_MODULES")
51
78
  preprocessor_defs = env_or_empty("GCC_PREPROCESSOR_DEFINITIONS")
52
79
  preprocessor_defs_parsed = map_and_list((lambda s: "-D" + s), shlex.split(preprocessor_defs, '\''))
53
80
  typescript_output_folder = env_or_none("TNS_TYPESCRIPT_DECLARATIONS_PATH")
54
- docset_platform = "iOS"
55
- effective_platofrm_name = env("EFFECTIVE_PLATFORM_NAME")
56
81
 
57
- if effective_platofrm_name is "-macosx":
58
- docset_platform = "OSX"
59
- elif effective_platofrm_name is "-watchos" or effective_platofrm_name is "-watchsimulator":
60
- docset_platform = "watchOS"
61
- elif effective_platofrm_name is "-appletvos" or effective_platofrm_name is "-appletvsimulator":
62
- docset_platform = "tvOS"
82
+
83
+
63
84
 
64
85
  docset_path = os.path.join(os.path.expanduser("~"),
65
86
  "Library/Developer/Shared/Documentation/DocSets/com.apple.adc.documentation.{}.docset"
@@ -109,10 +130,14 @@ def generate_metadata(arch):
109
130
  # clang arguments
110
131
  generator_call.extend(["Xclang",
111
132
  "-isysroot", sdk_root,
112
- "-arch", arch,
113
133
  "-" + deployment_target_flag_name + "=" + deployment_target,
114
134
  "-std=" + std])
115
135
 
136
+ if env_or_empty("IS_UIKITFORMAC").capitalize() is "YES":
137
+ generator_call.extend(["-arch", arch])
138
+ else:
139
+ generator_call.extend(["-target", "{}-apple-ios13.0-macabi".format(arch)])
140
+
116
141
  generator_call.extend(header_search_paths_parsed) # HEADER_SEARCH_PATHS
117
142
  generator_call.extend(framework_search_paths_parsed) # FRAMEWORK_SEARCH_PATHS
118
143
  generator_call.extend(other_cflags_parsed) # OTHER_CFLAGS
@@ -143,4 +168,4 @@ def generate_metadata(arch):
143
168
 
144
169
  for arch in env("ARCHS").split():
145
170
  print("Generating metadata for " + arch)
146
- generate_metadata(arch)
171
+ generate_metadata(arch)
@@ -1,3 +1,9 @@
1
1
  #!/usr/bin/env bash
2
2
  #Ignore errors while inserting environment variables (some could be readonly)
3
3
  (echo "set +e"; echo "set +o posix"; export; echo "set -o posix"; echo "set -e";) > ./.build_env_vars.sh
4
+
5
+ # create temporary empty metadata files for XCode LD/LDPLUSPLUS flag analysis
6
+ for arch in $VALID_ARCHS
7
+ do :
8
+ touch "$CONFIGURATION_BUILD_DIR/metadata-$arch.bin"
9
+ done
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nativescript/ios",
3
3
  "description": "NativeScript Runtime for iOS",
4
- "version": "6.5.4",
4
+ "version": "6.5.6",
5
5
  "keywords": [
6
6
  "NativeScript",
7
7
  "iOS",