File tree Expand file tree Collapse file tree 5 files changed +55
-0
lines changed Expand file tree Collapse file tree 5 files changed +55
-0
lines changed Original file line number Diff line number Diff line change
1
+ .DS_Store
2
+ /.build
3
+ /Packages
4
+ /* .xcodeproj
5
+ xcuserdata /
6
+ DerivedData /
7
+ .swiftpm /xcode /package.xcworkspace /contents.xcworkspacedata
Original file line number Diff line number Diff line change
1
+ // swift-tools-version:5.5
2
+ // The swift-tools-version declares the minimum version of Swift required to build this package.
3
+
4
+ import PackageDescription
5
+
6
+ let package = Package (
7
+ name: " nodejs-ios " ,
8
+ products: [
9
+ // Products define the executables and libraries a package produces, and make them visible to other packages.
10
+ . library(
11
+ name: " nodejs-ios " ,
12
+ targets: [ " nodejs-ios " ] ) ,
13
+ ] ,
14
+ dependencies: [
15
+ // Dependencies declare other packages that this package depends on.
16
+ // .package(url: /* package url */, from: "1.0.0"),
17
+ ] ,
18
+ 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.
21
+ . target(
22
+ name: " nodejs-ios " ,
23
+ dependencies: [ ] ) ,
24
+ . testTarget(
25
+ name: " nodejs-iosTests " ,
26
+ dependencies: [ " nodejs-ios " ] ) ,
27
+ ]
28
+ )
Original file line number Diff line number Diff line change
1
+ # nodejs-ios
2
+
3
+ A description of this package.
Original file line number Diff line number Diff line change
1
+ public struct nodejs_ios {
2
+ public private( set) var text = " Hello, World! "
3
+
4
+ public init ( ) {
5
+ }
6
+ }
Original file line number Diff line number Diff line change
1
+ import XCTest
2
+ @testable import nodejs_ios
3
+
4
+ final class nodejs_iosTests : XCTestCase {
5
+ func testExample( ) throws {
6
+ // This is an example of a functional test case.
7
+ // Use XCTAssert and related functions to verify your tests produce the correct
8
+ // results.
9
+ XCTAssertEqual ( nodejs_ios ( ) . text, " Hello, World! " )
10
+ }
11
+ }
You can’t perform that action at this time.
0 commit comments