Skip to content

Commit c4ba104

Browse files
committed
add XCFramework and headers
1 parent 5e26b8f commit c4ba104

File tree

503 files changed

+110575
-7
lines changed

Some content is hidden

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

503 files changed

+110575
-7
lines changed

NodeMobile.xcframework/Info.plist

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>AvailableLibraries</key>
6+
<array>
7+
<dict>
8+
<key>LibraryIdentifier</key>
9+
<string>ios-x86_64-simulator</string>
10+
<key>LibraryPath</key>
11+
<string>NodeMobile.framework</string>
12+
<key>SupportedArchitectures</key>
13+
<array>
14+
<string>x86_64</string>
15+
</array>
16+
<key>SupportedPlatform</key>
17+
<string>ios</string>
18+
<key>SupportedPlatformVariant</key>
19+
<string>simulator</string>
20+
</dict>
21+
<dict>
22+
<key>LibraryIdentifier</key>
23+
<string>ios-arm64</string>
24+
<key>LibraryPath</key>
25+
<string>NodeMobile.framework</string>
26+
<key>SupportedArchitectures</key>
27+
<array>
28+
<string>arm64</string>
29+
</array>
30+
<key>SupportedPlatform</key>
31+
<string>ios</string>
32+
</dict>
33+
</array>
34+
<key>CFBundlePackageType</key>
35+
<string>XFWK</string>
36+
<key>XCFrameworkFormatVersion</key>
37+
<string>1.0</string>
38+
</dict>
39+
</plist>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
#ifdef __cplusplus
3+
extern "C" {
4+
#endif
5+
6+
int node_start(int argc, char *argv[]);
7+
8+
#ifdef __cplusplus
9+
}
10+
#endif
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
framework module NodeMobile {
2+
umbrella header "NodeMobile.h"
3+
4+
export *
5+
module * { export * }
6+
}
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
#ifdef __cplusplus
3+
extern "C" {
4+
#endif
5+
6+
int node_start(int argc, char *argv[]);
7+
8+
#ifdef __cplusplus
9+
}
10+
#endif
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
framework module NodeMobile {
2+
umbrella header "NodeMobile.h"
3+
4+
export *
5+
module * { export * }
6+
}
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>files</key>
6+
<dict>
7+
<key>Headers/NodeMobile.h</key>
8+
<data>
9+
mF47sN2uVEfcc44M+Ts30qyt+sA=
10+
</data>
11+
<key>Info.plist</key>
12+
<data>
13+
8q+7zSqegECN5oy/KM0uTzvgbRw=
14+
</data>
15+
<key>Modules/module.modulemap</key>
16+
<data>
17+
LlklFmK+9CCXWP6ea9o221xO94Q=
18+
</data>
19+
</dict>
20+
<key>files2</key>
21+
<dict>
22+
<key>Headers/NodeMobile.h</key>
23+
<dict>
24+
<key>hash</key>
25+
<data>
26+
mF47sN2uVEfcc44M+Ts30qyt+sA=
27+
</data>
28+
<key>hash2</key>
29+
<data>
30+
BLGBl3j2fTKtCcd+bJRpaMNIx7lO8YRfl3x+rVGo2W4=
31+
</data>
32+
</dict>
33+
<key>Modules/module.modulemap</key>
34+
<dict>
35+
<key>hash</key>
36+
<data>
37+
LlklFmK+9CCXWP6ea9o221xO94Q=
38+
</data>
39+
<key>hash2</key>
40+
<data>
41+
3spVroB0IAFkCKGNs2U/lCeTGsB1jOpnMEnEVjV52Os=
42+
</data>
43+
</dict>
44+
</dict>
45+
<key>rules</key>
46+
<dict>
47+
<key>^.*</key>
48+
<true/>
49+
<key>^.*\.lproj/</key>
50+
<dict>
51+
<key>optional</key>
52+
<true/>
53+
<key>weight</key>
54+
<real>1000</real>
55+
</dict>
56+
<key>^.*\.lproj/locversion.plist$</key>
57+
<dict>
58+
<key>omit</key>
59+
<true/>
60+
<key>weight</key>
61+
<real>1100</real>
62+
</dict>
63+
<key>^Base\.lproj/</key>
64+
<dict>
65+
<key>weight</key>
66+
<real>1010</real>
67+
</dict>
68+
<key>^version.plist$</key>
69+
<true/>
70+
</dict>
71+
<key>rules2</key>
72+
<dict>
73+
<key>.*\.dSYM($|/)</key>
74+
<dict>
75+
<key>weight</key>
76+
<real>11</real>
77+
</dict>
78+
<key>^(.*/)?\.DS_Store$</key>
79+
<dict>
80+
<key>omit</key>
81+
<true/>
82+
<key>weight</key>
83+
<real>2000</real>
84+
</dict>
85+
<key>^.*</key>
86+
<true/>
87+
<key>^.*\.lproj/</key>
88+
<dict>
89+
<key>optional</key>
90+
<true/>
91+
<key>weight</key>
92+
<real>1000</real>
93+
</dict>
94+
<key>^.*\.lproj/locversion.plist$</key>
95+
<dict>
96+
<key>omit</key>
97+
<true/>
98+
<key>weight</key>
99+
<real>1100</real>
100+
</dict>
101+
<key>^Base\.lproj/</key>
102+
<dict>
103+
<key>weight</key>
104+
<real>1010</real>
105+
</dict>
106+
<key>^Info\.plist$</key>
107+
<dict>
108+
<key>omit</key>
109+
<true/>
110+
<key>weight</key>
111+
<real>20</real>
112+
</dict>
113+
<key>^PkgInfo$</key>
114+
<dict>
115+
<key>omit</key>
116+
<true/>
117+
<key>weight</key>
118+
<real>20</real>
119+
</dict>
120+
<key>^embedded\.provisionprofile$</key>
121+
<dict>
122+
<key>weight</key>
123+
<real>20</real>
124+
</dict>
125+
<key>^version\.plist$</key>
126+
<dict>
127+
<key>weight</key>
128+
<real>20</real>
129+
</dict>
130+
</dict>
131+
</dict>
132+
</plist>

Package.swift

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
// swift-tools-version:5.5
2-
// The swift-tools-version declares the minimum version of Swift required to build this package.
32

43
import PackageDescription
54

65
let package = Package(
76
name: "nodejs-ios",
87
products: [
9-
// Products define the executables and libraries a package produces, and make them visible to other packages.
108
.library(
119
name: "nodejs-ios",
12-
targets: ["nodejs-ios"]),
10+
targets: [
11+
"NodeMobile",
12+
"node_api",
13+
"nodejs-ios",
14+
]),
1315
],
1416
dependencies: [
15-
// Dependencies declare other packages that this package depends on.
16-
// .package(url: /* package url */, from: "1.0.0"),
1717
],
1818
targets: [
19-
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
20-
// Targets can depend on other targets in this package, and on products in packages this package depends on.
19+
.binaryTarget(name: "NodeMobile", path: "NodeMobile.xcframework"),
20+
.target(name: "node_api"),
2121
.target(
2222
name: "nodejs-ios",
2323
dependencies: []),

0 commit comments

Comments
 (0)