Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit d0e54f1

Browse files
fix: stop generating snapshot for ia64 for older runtimes
When the runtime version is below 6.0.2 we should generate snapshot only for armv7, arm64 and ia32 archs. However, as in the validation schema we have default value for the targetArchs, the logic that should determine if ia64 should be removed from the targetArchs decides the archs are passed by the user and does not strip anything from them. Remove the default values from the JSON Schema - they are calculated in the code, so there's no need to have them on two places. As we can not have our conditional logic in the JSON schema, keep calculation of the default values only in the code.
1 parent 628e619 commit d0e54f1

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Diff for: plugins/NativeScriptSnapshotPlugin/options.json

-6
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@
2525
},
2626
"targetArchs": {
2727
"type": "array",
28-
"default": [
29-
"arm",
30-
"arm64",
31-
"ia32",
32-
"ia64"
33-
],
3428
"items": {
3529
"type": "string",
3630
"enum": [

0 commit comments

Comments
 (0)