Skip to content

Commit 7be4e46

Browse files
committed
refactor: Move JWT sources to JWT module
1 parent b20ecac commit 7be4e46

14 files changed

+25
-15
lines changed

JSONWebToken.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ Pod::Spec.new do |spec|
66
spec.license = { :type => 'BSD', :file => 'LICENSE' }
77
spec.author = { 'Kyle Fuller' => '[email protected]' }
88
spec.source = { :git => 'https://github.com/kylef/JSONWebToken.swift.git', :tag => "#{spec.version}" }
9-
spec.source_files = 'Sources/*.swift'
9+
spec.source_files = 'Sources/JWT/*.swift'
1010
spec.ios.deployment_target = '8.0'
1111
spec.osx.deployment_target = '10.9'
1212
spec.tvos.deployment_target = '9.0'
1313
spec.watchos.deployment_target = '2.0'
1414
spec.requires_arc = true
1515
spec.module_name = 'JWT'
16-
spec.exclude_files = ['Sources/HMACCryptoSwift.swift']
16+
spec.exclude_files = ['Sources/JWT/HMACCryptoSwift.swift']
1717

1818
if ARGV.include?('lint')
1919
spec.pod_target_xcconfig = {

JWT.xcodeproj/project.pbxproj

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,24 @@
133133
/* End PBXFrameworksBuildPhase section */
134134

135135
/* Begin PBXGroup section */
136+
271E10861F902D8900B5033C /* JWT */ = {
137+
isa = PBXGroup;
138+
children = (
139+
277794041DF221F800573F3E /* ClaimSet.swift */,
140+
2777940A1DF22BE400573F3E /* JOSEHeader.swift */,
141+
520A71131C469F010005C709 /* Base64.swift */,
142+
520A71141C469F010005C709 /* Claims.swift */,
143+
520A71151C469F010005C709 /* Decode.swift */,
144+
2777940F1DF22D0D00573F3E /* Encode.swift */,
145+
520A71161C469F010005C709 /* JWT.swift */,
146+
271E107F1F90253300B5033C /* JWA.swift */,
147+
273010FE1F33EABA00219C35 /* HMAC.swift */,
148+
273011041F33FC5F00219C35 /* HMACCommonCrypto.swift */,
149+
273011091F33FC9100219C35 /* HMACCryptoSwift.swift */,
150+
);
151+
path = JWT;
152+
sourceTree = "<group>";
153+
};
136154
279D63921AD07FFF0024E2BC = {
137155
isa = PBXGroup;
138156
children = (
@@ -199,17 +217,7 @@
199217
520A71121C469F010005C709 /* Sources */ = {
200218
isa = PBXGroup;
201219
children = (
202-
277794041DF221F800573F3E /* ClaimSet.swift */,
203-
2777940A1DF22BE400573F3E /* JOSEHeader.swift */,
204-
520A71131C469F010005C709 /* Base64.swift */,
205-
520A71141C469F010005C709 /* Claims.swift */,
206-
520A71151C469F010005C709 /* Decode.swift */,
207-
2777940F1DF22D0D00573F3E /* Encode.swift */,
208-
520A71161C469F010005C709 /* JWT.swift */,
209-
271E107F1F90253300B5033C /* JWA.swift */,
210-
273010FE1F33EABA00219C35 /* HMAC.swift */,
211-
273011041F33FC5F00219C35 /* HMACCommonCrypto.swift */,
212-
273011091F33FC9100219C35 /* HMACCryptoSwift.swift */,
220+
271E10861F902D8900B5033C /* JWT */,
213221
);
214222
path = Sources;
215223
sourceTree = "<group>";

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ let package = Package(
88
.Package(url: "https://github.com/kylef-archive/CommonCrypto.git", majorVersion: 1),
99
],
1010
exclude: [
11-
"Sources/HMACCryptoSwift.swift",
11+
"Sources/JWT/HMACCryptoSwift.swift",
1212
]
1313
)
1414
#else
@@ -18,7 +18,7 @@ let package = Package(
1818
.Package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", majorVersion: 0, minor: 6),
1919
],
2020
exclude: [
21-
"Sources/HMACCommonCrypto.swift",
21+
"Sources/JWT/HMACCommonCrypto.swift",
2222
]
2323
)
2424
#endif
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.

0 commit comments

Comments
 (0)