Skip to content

Commit 6f31eae

Browse files
authored
fix: generate metadata per arch (#4)
* feat: more work on the runtime * chore: separate metadata archs * fix: metadata generation per arch * cleanup * feat: add App.run
1 parent 4c67feb commit 6f31eae

File tree

97 files changed

+16165
-12285
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+16165
-12285
lines changed

examples/appkit.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
import "@nativescript/macos-node-api";
44

5+
console.log(
6+
"NSTextAlignment.Center:",
7+
NSTextAlignment.Center,
8+
"arch:",
9+
Deno.build.arch,
10+
);
11+
512
/**
613
* @implements {NSApplicationDelegate}
714
*/
@@ -36,6 +43,9 @@ export class Window extends NSWindow {
3643
NativeClass(this);
3744
}
3845

46+
/**
47+
* @override
48+
*/
3949
init() {
4050
const menu = NSMenu.new();
4151
NSApp.mainMenu = menu;

examples/class.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ class MyClass extends NSObject {
77
NativeClass(this);
88
}
99

10+
/**
11+
* @override
12+
*/
1013
init() {
1114
super.init();
1215
console.log("MyClass.init()", this);

examples/gamecontroller.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ class Observer extends NSObject {
1616
NativeClass(this);
1717
}
1818

19+
/**
20+
* @override
21+
*/
1922
init() {
2023
super.init();
2124
NSNotificationCenter.defaultCenter.addObserverSelectorNameObject(

metadata/metadata.ios.arm64.nsmd

1.75 MB
Binary file not shown.

metadata/metadata.ios.nsmd

-1.7 MB
Binary file not shown.

metadata/metadata.ios.x86_64.nsmd

1.75 MB
Binary file not shown.

metadata/metadata.macos.arm64.nsmd

2.17 MB
Binary file not shown.

metadata/metadata.macos.nsmd

-2.17 MB
Binary file not shown.

metadata/metadata.macos.x86_64.nsmd

2.17 MB
Binary file not shown.

metadata/metadata.nsmd

-1.09 MB
Binary file not shown.

0 commit comments

Comments
 (0)