Skip to content

Commit b33c69b

Browse files
authored
Merge pull request #25 from tophatmonocle/distribution/swift_package_manager_support
Swift package manager support
2 parents c53cd57 + 015ce99 commit b33c69b

File tree

4 files changed

+65
-7
lines changed

4 files changed

+65
-7
lines changed

Base64.xcodeproj/project.pbxproj

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
0A883AFC266F663000DAF016 /* MF_Base64Additions.m in Sources */ = {isa = PBXBuildFile; fileRef = 0A883AFB266F663000DAF016 /* MF_Base64Additions.m */; };
1011
0DA2A7C3158CC3EB00A9516B /* MF_AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 0DA2A7C0158CC3EB00A9516B /* MF_AppDelegate.m */; };
11-
0DA2A7C4158CC3EB00A9516B /* MF_Base64Additions.m in Sources */ = {isa = PBXBuildFile; fileRef = 0DA2A7C2158CC3EB00A9516B /* MF_Base64Additions.m */; };
1212
0DA2A7CB158CC40700A9516B /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 0DA2A7C9158CC40700A9516B /* MainMenu.xib */; };
1313
0DA2A7D0158CC41700A9516B /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 0DA2A7CE158CC41700A9516B /* main.m */; };
1414
0DA2A7D6158CC43500A9516B /* Credits.rtf in Resources */ = {isa = PBXBuildFile; fileRef = 0DA2A7D2158CC43500A9516B /* Credits.rtf */; };
@@ -17,10 +17,10 @@
1717
/* End PBXBuildFile section */
1818

1919
/* Begin PBXFileReference section */
20+
0A883AFB266F663000DAF016 /* MF_Base64Additions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MF_Base64Additions.m; sourceTree = "<group>"; };
21+
0A883B00266F669F00DAF016 /* MF_Base64Additions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MF_Base64Additions.h; sourceTree = "<group>"; };
2022
0DA2A7BF158CC3EB00A9516B /* MF_AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MF_AppDelegate.h; path = Base64/MF_AppDelegate.h; sourceTree = SOURCE_ROOT; };
2123
0DA2A7C0158CC3EB00A9516B /* MF_AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = MF_AppDelegate.m; path = Base64/MF_AppDelegate.m; sourceTree = SOURCE_ROOT; };
22-
0DA2A7C1158CC3EB00A9516B /* MF_Base64Additions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MF_Base64Additions.h; path = Base64/MF_Base64Additions.h; sourceTree = SOURCE_ROOT; };
23-
0DA2A7C2158CC3EB00A9516B /* MF_Base64Additions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = MF_Base64Additions.m; path = Base64/MF_Base64Additions.m; sourceTree = SOURCE_ROOT; };
2424
0DA2A7CC158CC41700A9516B /* Base64-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = "Base64-Info.plist"; path = "Base64/Base64-Info.plist"; sourceTree = SOURCE_ROOT; };
2525
0DA2A7CD158CC41700A9516B /* Base64-Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "Base64-Prefix.pch"; path = "Base64/Base64-Prefix.pch"; sourceTree = SOURCE_ROOT; };
2626
0DA2A7CE158CC41700A9516B /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = Base64/main.m; sourceTree = SOURCE_ROOT; };
@@ -46,6 +46,39 @@
4646
/* End PBXFrameworksBuildPhase section */
4747

4848
/* Begin PBXGroup section */
49+
0A883AF8266F663000DAF016 /* Sources */ = {
50+
isa = PBXGroup;
51+
children = (
52+
0A883AF9266F663000DAF016 /* Base64 */,
53+
);
54+
path = Sources;
55+
sourceTree = "<group>";
56+
};
57+
0A883AF9266F663000DAF016 /* Base64 */ = {
58+
isa = PBXGroup;
59+
children = (
60+
0A883AFD266F665100DAF016 /* include */,
61+
0A883AFB266F663000DAF016 /* MF_Base64Additions.m */,
62+
);
63+
path = Base64;
64+
sourceTree = "<group>";
65+
};
66+
0A883AFD266F665100DAF016 /* include */ = {
67+
isa = PBXGroup;
68+
children = (
69+
0A883AFF266F669F00DAF016 /* Base64 */,
70+
);
71+
path = include;
72+
sourceTree = "<group>";
73+
};
74+
0A883AFF266F669F00DAF016 /* Base64 */ = {
75+
isa = PBXGroup;
76+
children = (
77+
0A883B00266F669F00DAF016 /* MF_Base64Additions.h */,
78+
);
79+
path = Base64;
80+
sourceTree = "<group>";
81+
};
4982
0DDF90D7158A1A0F00D44611 = {
5083
isa = PBXGroup;
5184
children = (
@@ -85,10 +118,9 @@
85118
0DDF90EC158A1A0F00D44611 /* Base64 */ = {
86119
isa = PBXGroup;
87120
children = (
121+
0A883AF8266F663000DAF016 /* Sources */,
88122
0DA2A7BF158CC3EB00A9516B /* MF_AppDelegate.h */,
89123
0DA2A7C0158CC3EB00A9516B /* MF_AppDelegate.m */,
90-
0DA2A7C1158CC3EB00A9516B /* MF_Base64Additions.h */,
91-
0DA2A7C2158CC3EB00A9516B /* MF_Base64Additions.m */,
92124
0DA2A7C9158CC40700A9516B /* MainMenu.xib */,
93125
0DDF90ED158A1A0F00D44611 /* Supporting Files */,
94126
);
@@ -174,8 +206,8 @@
174206
buildActionMask = 2147483647;
175207
files = (
176208
0DA2A7C3158CC3EB00A9516B /* MF_AppDelegate.m in Sources */,
177-
0DA2A7C4158CC3EB00A9516B /* MF_Base64Additions.m in Sources */,
178209
0DA2A7D0158CC41700A9516B /* main.m in Sources */,
210+
0A883AFC266F663000DAF016 /* MF_Base64Additions.m in Sources */,
179211
);
180212
runOnlyForDeploymentPostprocessing = 0;
181213
};

Package.swift

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// swift-tools-version:5.3
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
import PackageDescription
4+
5+
let package = Package(
6+
name: "Base64",
7+
platforms: [
8+
.iOS(.v9),
9+
.macOS(.v10_10),
10+
.watchOS(.v3),
11+
.tvOS(.v9),
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: "Base64",
17+
targets: ["Base64"]
18+
)
19+
],
20+
dependencies: [],
21+
targets: [
22+
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
23+
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
24+
.target(name: "Base64")
25+
]
26+
)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// Hosted at https://github.com/ekscrypto/Base64
1111
//
1212

13-
#import "MF_Base64Additions.h"
13+
#import <Base64/MF_Base64Additions.h>
1414

1515
@implementation MF_Base64Codec
1616

Base64/MF_Base64Additions.h renamed to Sources/Base64/include/Base64/MF_Base64Additions.h

File renamed without changes.

0 commit comments

Comments
 (0)