Skip to content

Commit d1ec0b4

Browse files
committed
SPM support
1 parent 97c31cf commit d1ec0b4

21 files changed

+259
-192
lines changed

Ono.xcodeproj/project.pbxproj

+180-161
Large diffs are not rendered by default.

Ono.xcodeproj/xcshareddata/xcschemes/Ono iOS.xcscheme

+9-13
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,15 @@
4141
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
4242
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
4343
shouldUseLaunchSchemeArgsEnv = "YES">
44+
<MacroExpansion>
45+
<BuildableReference
46+
BuildableIdentifier = "primary"
47+
BlueprintIdentifier = "F82D394D1AA6199E00DAC057"
48+
BuildableName = "Ono.framework"
49+
BlueprintName = "Ono iOS"
50+
ReferencedContainer = "container:Ono.xcodeproj">
51+
</BuildableReference>
52+
</MacroExpansion>
4453
<Testables>
4554
<TestableReference
4655
skipped = "NO">
@@ -53,17 +62,6 @@
5362
</BuildableReference>
5463
</TestableReference>
5564
</Testables>
56-
<MacroExpansion>
57-
<BuildableReference
58-
BuildableIdentifier = "primary"
59-
BlueprintIdentifier = "F82D394D1AA6199E00DAC057"
60-
BuildableName = "Ono.framework"
61-
BlueprintName = "Ono iOS"
62-
ReferencedContainer = "container:Ono.xcodeproj">
63-
</BuildableReference>
64-
</MacroExpansion>
65-
<AdditionalOptions>
66-
</AdditionalOptions>
6765
</TestAction>
6866
<LaunchAction
6967
buildConfiguration = "Debug"
@@ -84,8 +82,6 @@
8482
ReferencedContainer = "container:Ono.xcodeproj">
8583
</BuildableReference>
8684
</MacroExpansion>
87-
<AdditionalOptions>
88-
</AdditionalOptions>
8985
</LaunchAction>
9086
<ProfileAction
9187
buildConfiguration = "Release"

Ono.xcworkspace/contents.xcworkspacedata

+30-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// swift-tools-version:5.2
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: "Ono",
8+
platforms: [
9+
.iOS(.v8),
10+
.macOS(.v10_10),
11+
.tvOS(.v12)
12+
],
13+
products: [
14+
// Products define the executables and libraries produced by a package, and make them visible to other packages.
15+
.library(
16+
name: "Ono",
17+
targets: ["Ono"]),
18+
],
19+
dependencies: [
20+
// Dependencies declare other packages that this package depends on.
21+
// .package(url: /* package url */, from: "1.0.0"),
22+
],
23+
targets: [
24+
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
25+
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
26+
.target(
27+
name: "Ono",
28+
dependencies: []),
29+
.testTarget(
30+
name: "OnoTests",
31+
dependencies: ["Ono"]),
32+
]
33+
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Source/Ono.h renamed to Sources/Ono/Ono.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
// THE SOFTWARE.
2222

23-
@import Foundation;
23+
#import <Foundation/Foundation.h>
2424

2525
//! Project version number for Ono iOS.
2626
FOUNDATION_EXPORT double Ono_VersionNumber;
File renamed without changes.

Tests/ONOAtomTests.m renamed to Tests/OnoTests/ONOAtomTests.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
#import <XCTest/XCTest.h>
2424

25-
#import "Ono.h"
25+
@import Ono;
2626

2727
@interface ONOAtomTests : XCTestCase
2828
@property (nonatomic, strong) ONOXMLDocument *document;
File renamed without changes.

Tests/ONODefaultNamespaceXPathTests.m renamed to Tests/OnoTests/ONODefaultNamespaceXPathTests.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
#import <XCTest/XCTest.h>
2424

25-
#import "Ono.h"
25+
@import Ono;
2626

2727
@interface ONODefaultNamespaceXPathTests : XCTestCase
2828
@property (nonatomic, strong) ONOXMLDocument *document;

Tests/ONOHTMLTests.m renamed to Tests/OnoTests/ONOHTMLTests.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
#import <XCTest/XCTest.h>
2424

25-
#import "Ono.h"
25+
@import Ono;
2626

2727
@interface ONOHTMLTests : XCTestCase
2828
@property (nonatomic, strong) ONOXMLDocument *document;

Tests/ONOVMAPTests.m renamed to Tests/OnoTests/ONOVMAPTests.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
#import <XCTest/XCTest.h>
2424

25-
#import "Ono.h"
25+
@import Ono;
2626

2727
@interface ONOVMAPTests : XCTestCase
2828
@property (nonatomic, strong) ONOXMLDocument *document;

Tests/ONOXMLTests.m renamed to Tests/OnoTests/ONOXMLTests.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
#import <XCTest/XCTest.h>
2424

25-
#import <Ono/Ono.h>
25+
@import Ono;
2626

2727
@interface ONOXMLTests : XCTestCase
2828
@property (nonatomic, strong) ONOXMLDocument *document;

Tests/ONOXPathFunctionResultTests.m renamed to Tests/OnoTests/ONOXPathFunctionResultTests.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
#import <XCTest/XCTest.h>
2424

25-
#import "Ono.h"
25+
@import Ono;
2626

2727
@interface ONOXPathFunctionResultTests : XCTestCase
2828
@property (nonatomic, strong) ONOXMLDocument *document;

0 commit comments

Comments
 (0)