@nativescript/android 8.9.0-napi-hermes.6 → 8.9.0-napi-v8.7
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/framework/app/libs/runtime-libs/nativescript-optimized-with-inspector.aar +0 -0
- package/framework/app/libs/runtime-libs/nativescript-optimized.aar +0 -0
- package/framework/app/libs/runtime-libs/nativescript-regular.aar +0 -0
- package/framework/app/src/main/assets/internal/ts_helpers.js +77 -22
- package/framework/build-tools/android-metadata-generator.jar +0 -0
- package/framework/build-tools/dts-generator.jar +0 -0
- package/framework/build-tools/static-binding-generator.jar +0 -0
- package/framework/gradle.properties +2 -2
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -37,20 +37,20 @@
|
|
|
37
37
|
// this way we now support both implementations in typescript generated constructors:
|
|
38
38
|
// 1: super(); return __native(this);
|
|
39
39
|
// 2: return super() || this;
|
|
40
|
-
// if (thiz.__container__) {
|
|
41
|
-
// if (__useHostObjects) {
|
|
42
|
-
// for (var prop in thiz) {
|
|
43
|
-
// if (thiz.hasOwnProperty(prop)) {
|
|
44
|
-
// thiz.__proto__[prop] = thiz[prop];
|
|
45
|
-
// delete thiz[prop];
|
|
46
|
-
// }
|
|
47
|
-
// }
|
|
48
|
-
// }
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
// } else {
|
|
52
|
-
// return thiz;
|
|
53
|
-
// }
|
|
40
|
+
// if (thiz.__container__) {
|
|
41
|
+
// if (__useHostObjects) {
|
|
42
|
+
// for (var prop in thiz) {
|
|
43
|
+
// if (thiz.hasOwnProperty(prop)) {
|
|
44
|
+
// thiz.__proto__[prop] = thiz[prop];
|
|
45
|
+
// delete thiz[prop];
|
|
46
|
+
// }
|
|
47
|
+
// }
|
|
48
|
+
// }
|
|
49
|
+
|
|
50
|
+
return thiz;
|
|
51
|
+
// } else {
|
|
52
|
+
// return thiz;
|
|
53
|
+
// }
|
|
54
54
|
};
|
|
55
55
|
|
|
56
56
|
var __extends = function (Child, Parent) {
|
|
@@ -261,12 +261,67 @@
|
|
|
261
261
|
}
|
|
262
262
|
return target[prop];
|
|
263
263
|
};
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
264
|
+
|
|
265
|
+
function findInPrototypeChain(obj, prop) {
|
|
266
|
+
while (obj) {
|
|
267
|
+
if (obj.hasOwnProperty(prop)) {
|
|
268
|
+
return Object.getOwnPropertyDescriptor(obj, prop);
|
|
269
|
+
}
|
|
270
|
+
obj = Object.getPrototypeOf(obj);
|
|
271
|
+
}
|
|
272
|
+
return undefined;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
globalThis.__prepareHostObject = function (hostObject, jsThis) {
|
|
276
|
+
// const prototype = Object.getPrototypeOf(jsThis);
|
|
277
|
+
// Object.setPrototypeOf(hostObject, prototype);
|
|
278
|
+
Object.defineProperty(hostObject, "super", {
|
|
279
|
+
get: () => jsThis["super"],
|
|
280
|
+
});
|
|
272
281
|
};
|
|
282
|
+
|
|
283
|
+
const EXTERNAL_PROP = "[[external]]";
|
|
284
|
+
const REFERENCE_PROP_JSC = "[[jsc_reference_info]]";
|
|
285
|
+
|
|
286
|
+
function __createNativeProxy(object, objectId) {
|
|
287
|
+
const proxy = new Proxy(object, {
|
|
288
|
+
get: function (target, prop) {
|
|
289
|
+
if (prop === EXTERNAL_PROP) return this[EXTERNAL_PROP];
|
|
290
|
+
if (prop === REFERENCE_PROP_JSC) return this[REFERENCE_PROP_JSC];
|
|
291
|
+
if (target.__is__javaArray) {
|
|
292
|
+
return global.getNativeArrayProp(target, prop, target);
|
|
293
|
+
}
|
|
294
|
+
return target[prop];
|
|
295
|
+
},
|
|
296
|
+
set: function (target, prop, value) {
|
|
297
|
+
if (prop === EXTERNAL_PROP) {
|
|
298
|
+
this[EXTERNAL_PROP] = value;
|
|
299
|
+
return true;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
if (prop === REFERENCE_PROP_JSC) {
|
|
303
|
+
this[REFERENCE_PROP_JSC] = value;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
if (target.__is__javaArray && !isNaN(prop)) {
|
|
307
|
+
target.setValueAtIndex(parseInt(prop), value);
|
|
308
|
+
return true;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
target[prop] = value;
|
|
312
|
+
return true;
|
|
313
|
+
},
|
|
314
|
+
});
|
|
315
|
+
return proxy;
|
|
316
|
+
}
|
|
317
|
+
globalThis.__createNativeProxy = __createNativeProxy;
|
|
318
|
+
|
|
319
|
+
globalThis.getErrorStack = (err) => {
|
|
320
|
+
if (err) return err.stack;
|
|
321
|
+
const stack = new Error("").stack;
|
|
322
|
+
const lines = stack.split("\n");
|
|
323
|
+
// Line 2 results in invalid stack if not replaced when doing typescript extend.
|
|
324
|
+
lines[2] = " at extend(native)";
|
|
325
|
+
return lines.join("\n");
|
|
326
|
+
};
|
|
327
|
+
})();
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
#Wed, 19 Feb 2025 10:59:51 -0800
|
|
2
2
|
# Project-wide Gradle settings.
|
|
3
3
|
|
|
4
4
|
# IDE (e.g. Android Studio) users:
|
|
@@ -45,4 +45,4 @@ ns_default_kotlinx_metadata_jvm_version=2.0.0
|
|
|
45
45
|
ns_default_mockito_core_version=3.0.0
|
|
46
46
|
ns_default_spotbugs_version=3.1.12
|
|
47
47
|
|
|
48
|
-
ns_engine=
|
|
48
|
+
ns_engine=V8
|
package/package.json
CHANGED