@nstudio/nativescript-compiler 9.2.0-alpha.18 → 9.2.0-alpha.19
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.
- package/config.js +1 -0
- package/dist/kotlin/arguments.js +6 -0
- package/dist/kotlin/overrides.js +1 -1
- package/dist/semantics/conversion.js +9 -1
- package/dist/semantics/runtime.js +1 -0
- package/dist/semantics/signals.js +1 -1
- package/dist/semantics/throws.js +1 -1
- package/dist/swift/arguments.js +14 -9
- package/dist/swift/assignment.js +6 -1
- package/dist/swift/calls.js +7 -2
- package/dist/swift/class-methods.js +2 -1
- package/dist/swift/library.js +2 -2
- package/dist/swift/method-values.js +2 -1
- package/dist/swift/names.js +4 -4
- package/dist/swift/native/calls.js +9 -3
- package/dist/swift/placement.js +18 -3
- package/dist/swift/static-calls.js +1 -1
- package/dist/swift/syntax.js +1 -1
- package/dist/swift/types.js +2 -2
- package/kit-android/src/fromcore/kotlin/org/nativescript/kit/NativeScriptApplication.kt +9 -0
- package/kit-apple/Overlays/xml-free/Core/ui.builder.index.swift +6 -2
- package/kit-apple/Sources/NativeScriptKit/Core/data.observable-array.index.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/file-system.file-system-access.ios.swift +7 -7
- package/kit-apple/Sources/NativeScriptKit/Core/file-system.index.swift +10 -10
- package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.index.ios.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/http.index.swift +3 -3
- package/kit-apple/Sources/NativeScriptKit/Core/image-source.index.ios.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/js-libs.easysax.easysax.swift +4 -22
- package/kit-apple/Sources/NativeScriptKit/Core/kit-index.json +2 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.action-bar.index.ios.swift +33 -21
- package/kit-apple/Sources/NativeScriptKit/Core/ui.activity-indicator.index.ios.swift +12 -6
- package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.keyframe-animation.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.index.swift +6 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.button.index.ios.swift +14 -13
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.properties.index.swift +8 -7
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.index.ios.swift +79 -59
- package/kit-apple/Sources/NativeScriptKit/Core/ui.date-picker.index.ios.swift +17 -16
- package/kit-apple/Sources/NativeScriptKit/Core/ui.dialogs.index.ios.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.editable-text-base.index.ios.swift +27 -18
- package/kit-apple/Sources/NativeScriptKit/Core/ui.html-view.index.ios.swift +9 -9
- package/kit-apple/Sources/NativeScriptKit/Core/ui.image.index.ios.swift +6 -6
- package/kit-apple/Sources/NativeScriptKit/Core/ui.label.index.ios.swift +8 -8
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.layout-base.ios.swift +4 -3
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass-container.index.ios.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass.index.ios.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.index.ios.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.root-layout-common.swift +9 -9
- package/kit-apple/Sources/NativeScriptKit/Core/ui.list-picker.index.ios.swift +9 -6
- package/kit-apple/Sources/NativeScriptKit/Core/ui.list-view.index.ios.swift +38 -20
- package/kit-apple/Sources/NativeScriptKit/Core/ui.page.index.ios.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.progress.index.ios.swift +12 -10
- package/kit-apple/Sources/NativeScriptKit/Core/ui.scroll-view.index.ios.swift +18 -9
- package/kit-apple/Sources/NativeScriptKit/Core/ui.search-bar.index.ios.swift +28 -18
- package/kit-apple/Sources/NativeScriptKit/Core/ui.segmented-bar.index.ios.swift +19 -12
- package/kit-apple/Sources/NativeScriptKit/Core/ui.slider.index.ios.swift +14 -12
- package/kit-apple/Sources/NativeScriptKit/Core/ui.split-view.index.ios.swift +14 -9
- package/kit-apple/Sources/NativeScriptKit/Core/ui.switch.index.ios.swift +12 -10
- package/kit-apple/Sources/NativeScriptKit/Core/ui.tab-view.index.ios.swift +36 -20
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.formatted-string.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.index.ios.swift +25 -22
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.text-base-common.swift +2 -3
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-field.index.ios.swift +21 -14
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-view.index.ios.swift +33 -21
- package/kit-apple/Sources/NativeScriptKit/Core/ui.time-picker.index.ios.swift +22 -18
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.shared-transition-helper.ios.swift +15 -15
- package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.index.ios.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.web-view-common.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/utils.index.ios.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Runtime/Native.swift +2 -1
- package/package.json +5 -3
|
@@ -88,10 +88,10 @@ open class WebViewBase: ContainerView {
|
|
|
88
88
|
}
|
|
89
89
|
#sourceLocation()
|
|
90
90
|
open override func jsSymbolMethod(_ key: String) -> JSMethod? {
|
|
91
|
-
if key == ((Core_ui_web_view_web_view_common.srcProperty?.getDefault)?.key ?? "undefined") {
|
|
91
|
+
if key == (try? ((Core_ui_web_view_web_view_common.srcProperty?.getDefault)?.key ?? "undefined")) {
|
|
92
92
|
return { __this, __a in return try (jsCastPresent(__this) as WebViewBase).symbol_getDefault_src() }
|
|
93
93
|
}
|
|
94
|
-
if key == ((Core_ui_web_view_web_view_common.srcProperty?.setNative)?.key ?? "undefined") {
|
|
94
|
+
if key == (try? ((Core_ui_web_view_web_view_common.srcProperty?.setNative)?.key ?? "undefined")) {
|
|
95
95
|
return { __this, __a in
|
|
96
96
|
try (jsCastPresent(__this) as WebViewBase).symbol_setNative_src((try jsConvertedString(jsArg(__a, 0))))
|
|
97
97
|
return nil
|
|
@@ -152,13 +152,13 @@ public enum Utils {
|
|
|
152
152
|
try
|
|
153
153
|
({ (success: Bool) throws -> Void in
|
|
154
154
|
#sourceLocation(file:"@nativescript/core/utils.index.ios.ts",line:97)
|
|
155
|
-
__resolvers1.resolve(success)
|
|
155
|
+
try __resolvers1.resolve(success)
|
|
156
156
|
})(success)
|
|
157
157
|
}
|
|
158
158
|
})
|
|
159
159
|
} else {
|
|
160
160
|
#sourceLocation(file:"@nativescript/core/utils.index.ios.ts",line:100)
|
|
161
|
-
__resolvers1.resolve(false)
|
|
161
|
+
try __resolvers1.resolve(false)
|
|
162
162
|
}
|
|
163
163
|
} catch {
|
|
164
164
|
#sourceLocation()
|
|
@@ -560,7 +560,8 @@ public func jsNativePropertySet(_ native: Any?, _ setter: String, _ value: Any?)
|
|
|
560
560
|
/// `a || b` on untyped values.
|
|
561
561
|
public func jsOr(_ a: Any?, _ b: Any?) -> Any? { jsTruthy(a) ? a : b }
|
|
562
562
|
|
|
563
|
-
func jsNativeSet(_ object: NSObject
|
|
563
|
+
public func jsNativeSet(_ object: NSObject?, _ key: String, _ value: Any?) {
|
|
564
|
+
guard let object else { return }
|
|
564
565
|
if JSNativeDispatch.set?(object, key, value) == true { return }
|
|
565
566
|
if let own = object as? JSNativeMembers, own.jsSetMember(key, value) { return }
|
|
566
567
|
// A block property the headers declare is set by the dispatch, of its block type; key-value coding
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nstudio/nativescript-compiler",
|
|
3
|
-
"version": "9.2.0-alpha.
|
|
3
|
+
"version": "9.2.0-alpha.19",
|
|
4
4
|
"description": "NativeScript CLI plugin (`ns compile`) and compiler turning a NativeScript app into native Swift (iOS) or Kotlin (Android) with no JavaScript runtime; framework adapters (`@nstudio/nativescript-compiler-<framework>`) compile each framework.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -39,13 +39,15 @@
|
|
|
39
39
|
"default": "./dist/api/binding-api.js"
|
|
40
40
|
},
|
|
41
41
|
"./config": {
|
|
42
|
-
"types": "./config.d.ts"
|
|
42
|
+
"types": "./config.d.ts",
|
|
43
|
+
"default": "./config.js"
|
|
43
44
|
},
|
|
44
45
|
"./package.json": "./package.json"
|
|
45
46
|
},
|
|
46
47
|
"files": [
|
|
47
48
|
"bin/",
|
|
48
49
|
"config.d.ts",
|
|
50
|
+
"config.js",
|
|
49
51
|
"dist/",
|
|
50
52
|
"verify/",
|
|
51
53
|
"kit-apple/Package.swift",
|
|
@@ -71,7 +73,7 @@
|
|
|
71
73
|
},
|
|
72
74
|
"peerDependencies": {
|
|
73
75
|
"@nativescript/core": "9.2.0-next.2",
|
|
74
|
-
"nativescript": "
|
|
76
|
+
"nativescript": "*"
|
|
75
77
|
},
|
|
76
78
|
"peerDependenciesMeta": {
|
|
77
79
|
"@nativescript/core": {
|