Skip to content

Commit 14d8e5e

Browse files
authored
Merge pull request #11 from plangrid/rbrindle/swiftpm
Support Swift Package manager
2 parents b2345d3 + 8ff9c08 commit 14d8e5e

File tree

21 files changed

+159
-25
lines changed

21 files changed

+159
-25
lines changed

BarcodeScanner.xcodeproj/project.pbxproj

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,12 @@
99
/* Begin PBXBuildFile section */
1010
00B666F5230D390900ABA25C /* FooterViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 00B666F4230D390800ABA25C /* FooterViewController.swift */; };
1111
00B666FF230D44A900ABA25C /* CameraHeaderViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 00B666FE230D44A900ABA25C /* CameraHeaderViewController.swift */; };
12-
00B6670C230DC61200ABA25C /* barcode@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 00B6670B230DC61200ABA25C /* barcode@3x.png */; };
13-
00B66712230E5BDD00ABA25C /* qrcode@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 00B66711230E5BDD00ABA25C /* qrcode@3x.png */; };
1412
0A03879C279A1ED2009AA963 /* AlloyScannerConstants.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0A03879B279A1ED2009AA963 /* AlloyScannerConstants.swift */; };
1513
0A2EEB0227988B270073833E /* BarcodeScannerModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0A2EEB0127988B270073833E /* BarcodeScannerModel.swift */; };
1614
0A2EEB0427988B720073833E /* CameraControllerProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0A2EEB0327988B720073833E /* CameraControllerProtocol.swift */; };
1715
0A2EEB0627988C440073833E /* AlloyScannerViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0A2EEB0527988C440073833E /* AlloyScannerViewController.swift */; };
1816
2DBF9E0E1F169DEF006B5AA8 /* FocusViewType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2DBF9E0D1F169DEF006B5AA8 /* FocusViewType.swift */; };
1917
D504555F1FD8714700E46826 /* UIView+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = D504555E1FD8714700E46826 /* UIView+Extensions.swift */; };
20-
D50BE3E91C9FE7A80000A34C /* flashOff@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = D50BE3E51C9FE7A80000A34C /* flashOff@3x.png */; };
21-
D50BE3EA1C9FE7A80000A34C /* flashOn@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = D50BE3E61C9FE7A80000A34C /* flashOn@3x.png */; };
22-
D50BE3EB1C9FE7A80000A34C /* info@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = D50BE3E71C9FE7A80000A34C /* info@3x.png */; };
23-
D5349DF8201E42D900CD53EA /* cameraRotate@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = D5349DF7201E42D900CD53EA /* cameraRotate@3x.png */; };
2418
D55281BA2016770800FF3CDD /* CameraViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D55281B92016770800FF3CDD /* CameraViewController.swift */; };
2519
D55281BC2016782C00FF3CDD /* BarcodeScannerViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D55281BB2016782C00FF3CDD /* BarcodeScannerViewController.swift */; };
2620
D55281BF20167DB400FF3CDD /* UIViewController+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = D55281BE20167DB400FF3CDD /* UIViewController+Extensions.swift */; };
@@ -30,23 +24,18 @@
3024
D5CB3783201944DE00B9319D /* AVMetadataObject+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5CB3782201944DE00B9319D /* AVMetadataObject+Extensions.swift */; };
3125
D5F1C1C91C9C5113001E17A6 /* Functions.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5F1C1C51C9C5113001E17A6 /* Functions.swift */; };
3226
D5FC8AD71D252A12004BED88 /* State.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5FC8AD61D252A12004BED88 /* State.swift */; };
27+
E7DF89452B619654002335E6 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E7DF89442B619654002335E6 /* Images.xcassets */; };
3328
/* End PBXBuildFile section */
3429

3530
/* Begin PBXFileReference section */
3631
00B666F4230D390800ABA25C /* FooterViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FooterViewController.swift; sourceTree = "<group>"; };
3732
00B666FE230D44A900ABA25C /* CameraHeaderViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CameraHeaderViewController.swift; sourceTree = "<group>"; };
38-
00B6670B230DC61200ABA25C /* barcode@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "barcode@3x.png"; sourceTree = "<group>"; };
39-
00B66711230E5BDD00ABA25C /* qrcode@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "qrcode@3x.png"; sourceTree = "<group>"; };
4033
0A03879B279A1ED2009AA963 /* AlloyScannerConstants.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AlloyScannerConstants.swift; sourceTree = "<group>"; };
4134
0A2EEB0127988B270073833E /* BarcodeScannerModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BarcodeScannerModel.swift; sourceTree = "<group>"; };
4235
0A2EEB0327988B720073833E /* CameraControllerProtocol.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CameraControllerProtocol.swift; sourceTree = "<group>"; };
4336
0A2EEB0527988C440073833E /* AlloyScannerViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AlloyScannerViewController.swift; sourceTree = "<group>"; };
4437
2DBF9E0D1F169DEF006B5AA8 /* FocusViewType.swift */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 2; lastKnownFileType = sourcecode.swift; path = FocusViewType.swift; sourceTree = "<group>"; tabWidth = 2; };
4538
D504555E1FD8714700E46826 /* UIView+Extensions.swift */ = {isa = PBXFileReference; indentWidth = 2; lastKnownFileType = sourcecode.swift; path = "UIView+Extensions.swift"; sourceTree = "<group>"; tabWidth = 2; };
46-
D50BE3E51C9FE7A80000A34C /* flashOff@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "flashOff@3x.png"; sourceTree = "<group>"; };
47-
D50BE3E61C9FE7A80000A34C /* flashOn@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "flashOn@3x.png"; sourceTree = "<group>"; };
48-
D50BE3E71C9FE7A80000A34C /* info@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "info@3x.png"; sourceTree = "<group>"; };
49-
D5349DF7201E42D900CD53EA /* cameraRotate@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "cameraRotate@3x.png"; sourceTree = "<group>"; };
5039
D55281B92016770800FF3CDD /* CameraViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CameraViewController.swift; sourceTree = "<group>"; };
5140
D55281BB2016782C00FF3CDD /* BarcodeScannerViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BarcodeScannerViewController.swift; sourceTree = "<group>"; };
5241
D55281BE20167DB400FF3CDD /* UIViewController+Extensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIViewController+Extensions.swift"; sourceTree = "<group>"; };
@@ -58,6 +47,7 @@
5847
D5CB3782201944DE00B9319D /* AVMetadataObject+Extensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "AVMetadataObject+Extensions.swift"; sourceTree = "<group>"; };
5948
D5F1C1C51C9C5113001E17A6 /* Functions.swift */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 2; lastKnownFileType = sourcecode.swift; path = Functions.swift; sourceTree = "<group>"; tabWidth = 2; };
6049
D5FC8AD61D252A12004BED88 /* State.swift */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 2; lastKnownFileType = sourcecode.swift; path = State.swift; sourceTree = "<group>"; tabWidth = 2; };
50+
E7DF89442B619654002335E6 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
6151
/* End PBXFileReference section */
6252

6353
/* Begin PBXFrameworksBuildPhase section */
@@ -74,12 +64,7 @@
7464
D50BE3E31C9FE7A80000A34C /* Images */ = {
7565
isa = PBXGroup;
7666
children = (
77-
D5349DF7201E42D900CD53EA /* cameraRotate@3x.png */,
78-
D50BE3E51C9FE7A80000A34C /* flashOff@3x.png */,
79-
D50BE3E61C9FE7A80000A34C /* flashOn@3x.png */,
80-
00B6670B230DC61200ABA25C /* barcode@3x.png */,
81-
00B66711230E5BDD00ABA25C /* qrcode@3x.png */,
82-
D50BE3E71C9FE7A80000A34C /* info@3x.png */,
67+
E7DF89442B619654002335E6 /* Images.xcassets */,
8368
);
8469
path = Images;
8570
sourceTree = "<group>";
@@ -110,7 +95,6 @@
11095
D5B2E8951C3A780C00C0327D = {
11196
isa = PBXGroup;
11297
children = (
113-
D50BE3E31C9FE7A80000A34C /* Images */,
11498
D5C629691C3A809D007F7B7C /* Sources */,
11599
D5C6295C1C3A800E007F7B7C /* BarcodeScanner */,
116100
D5B2E8A01C3A780C00C0327D /* Products */,
@@ -136,6 +120,7 @@
136120
D5C629691C3A809D007F7B7C /* Sources */ = {
137121
isa = PBXGroup;
138122
children = (
123+
D50BE3E31C9FE7A80000A34C /* Images */,
139124
D5CB3785201947D000B9319D /* Helpers */,
140125
D5CB37842019477900B9319D /* DataStructures */,
141126
D55281BD20167D9F00FF3CDD /* Extensions */,
@@ -236,12 +221,7 @@
236221
isa = PBXResourcesBuildPhase;
237222
buildActionMask = 2147483647;
238223
files = (
239-
D50BE3E91C9FE7A80000A34C /* flashOff@3x.png in Resources */,
240-
D5349DF8201E42D900CD53EA /* cameraRotate@3x.png in Resources */,
241-
D50BE3EB1C9FE7A80000A34C /* info@3x.png in Resources */,
242-
00B66712230E5BDD00ABA25C /* qrcode@3x.png in Resources */,
243-
00B6670C230DC61200ABA25C /* barcode@3x.png in Resources */,
244-
D50BE3EA1C9FE7A80000A34C /* flashOn@3x.png in Resources */,
224+
E7DF89452B619654002335E6 /* Images.xcassets in Resources */,
245225
);
246226
runOnlyForDeploymentPostprocessing = 0;
247227
};

Package.swift

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// swift-tools-version:5.3
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: "BarcodeScanner",
8+
defaultLocalization: "en",
9+
platforms: [.iOS(.v14)],
10+
products: [
11+
.library(
12+
name: "BarcodeScanner",
13+
targets: ["BarcodeScanner"]),
14+
],
15+
dependencies: [],
16+
targets: [
17+
.target(
18+
name: "BarcodeScanner",
19+
path: "Sources"
20+
),
21+
]
22+
)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"author" : "xcode",
4+
"version" : 1
5+
}
6+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "universal",
5+
"scale" : "1x"
6+
},
7+
{
8+
"idiom" : "universal",
9+
"scale" : "2x"
10+
},
11+
{
12+
"filename" : "barcode@3x.png",
13+
"idiom" : "universal",
14+
"scale" : "3x"
15+
}
16+
],
17+
"info" : {
18+
"author" : "xcode",
19+
"version" : 1
20+
}
21+
}

Images/barcode@3x.png renamed to Sources/Images/Images.xcassets/barcode.imageset/barcode@3x.png

File renamed without changes.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "universal",
5+
"scale" : "1x"
6+
},
7+
{
8+
"idiom" : "universal",
9+
"scale" : "2x"
10+
},
11+
{
12+
"filename" : "cameraRotate@3x.png",
13+
"idiom" : "universal",
14+
"scale" : "3x"
15+
}
16+
],
17+
"info" : {
18+
"author" : "xcode",
19+
"version" : 1
20+
}
21+
}

Images/cameraRotate@3x.png renamed to Sources/Images/Images.xcassets/cameraRotate.imageset/cameraRotate@3x.png

File renamed without changes.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "universal",
5+
"scale" : "1x"
6+
},
7+
{
8+
"idiom" : "universal",
9+
"scale" : "2x"
10+
},
11+
{
12+
"filename" : "flashOff@3x.png",
13+
"idiom" : "universal",
14+
"scale" : "3x"
15+
}
16+
],
17+
"info" : {
18+
"author" : "xcode",
19+
"version" : 1
20+
}
21+
}

Images/flashOff@3x.png renamed to Sources/Images/Images.xcassets/flashOff.imageset/flashOff@3x.png

File renamed without changes.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "universal",
5+
"scale" : "1x"
6+
},
7+
{
8+
"idiom" : "universal",
9+
"scale" : "2x"
10+
},
11+
{
12+
"filename" : "flashOn@3x.png",
13+
"idiom" : "universal",
14+
"scale" : "3x"
15+
}
16+
],
17+
"info" : {
18+
"author" : "xcode",
19+
"version" : 1
20+
}
21+
}

0 commit comments

Comments
 (0)