-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Swift package manager
- Loading branch information
Showing
18 changed files
with
49 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/*.xcworkspace/ | ||
/.build/ | ||
*.xcworkspace/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// swift-tools-version: 5.7 | ||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "BoardingPassKit", | ||
products: [ | ||
.library( | ||
name: "BoardingPassKit", | ||
targets: ["BoardingPassKit"]), | ||
], | ||
dependencies: [], | ||
targets: [ | ||
.target( | ||
name: "BoardingPassKit", | ||
dependencies: [], | ||
path: "Sources"), | ||
.testTarget( | ||
name: "BoardingPassKitTests", | ||
dependencies: ["BoardingPassKit"], | ||
path: "Tests"), | ||
] | ||
) |
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions
2
Source/Models/BPKBaggageTagRange.swift → Sources/Models/BPKBaggageTagRange.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import Foundation | ||
|
||
public class BPKBaggageTagRange { | ||
public var type: UInt32 | ||
public var airlineNumeric: UInt32 | ||
|
2 changes: 2 additions & 0 deletions
2
Source/Models/BPKBoardingPass.swift → Sources/Models/BPKBoardingPass.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
Source/Models/BPKDocumentNumber.swift → Sources/Models/BPKDocumentNumber.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
Source/Models/BPKFlightSegment.swift → Sources/Models/BPKFlightSegment.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import Foundation | ||
|
||
public class BPKFlightSegment { | ||
public var airlineData: Data? | ||
public var cabinCode: String | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import Foundation | ||
|
||
public enum BPKError: Error { | ||
case cannotParseBool(String) | ||
case cannotParseNumber(String) | ||
|
2 changes: 2 additions & 0 deletions
2
Source/Parser/BPKParser.swift → Sources/Parser/BPKParser.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import Foundation | ||
|
||
class BPKParser { | ||
private var cursor = 0 | ||
private var data: Data | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.