forked from maxchuquimia/Auth0.swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchanges.diff
1714 lines (1651 loc) · 62.2 KB
/
changes.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
diff --git a/tmp/auth0_diff_original/A0RSA.m b/tmp/auth0_diff_spm/A0RSA.m
index ad83944..d334b18 100644
--- a/tmp/auth0_diff_original/A0RSA.m
+++ b/tmp/auth0_diff_spm/A0RSA.m
@@ -20,7 +20,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#import <A0RSA.h>
+#import "A0RSA.h" // Added by Auth0toSPM(original value '#import <A0RSA.h>')
#import <CommonCrypto/CommonCrypto.h>
@interface A0RSA ()
diff --git a/tmp/auth0_diff_original/A0SHA.m b/tmp/auth0_diff_spm/A0SHA.m
index ff1c8ff..ff34f36 100644
--- a/tmp/auth0_diff_original/A0SHA.m
+++ b/tmp/auth0_diff_spm/A0SHA.m
@@ -20,7 +20,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#import <A0SHA.h>
+#import "A0SHA.h" // Added by Auth0toSPM(original value '#import <A0SHA.h>')
#import <CommonCrypto/CommonHMAC.h>
static NSString * const kDefaultSHAAlgorithm = @"sha256";
diff --git a/tmp/auth0_diff_original/A0SimpleKeychain+RSAPublicKey.swift b/tmp/auth0_diff_spm/A0SimpleKeychain+RSAPublicKey.swift
index e23130e..a4ac3ab 100644
--- a/tmp/auth0_diff_original/A0SimpleKeychain+RSAPublicKey.swift
+++ b/tmp/auth0_diff_spm/A0SimpleKeychain+RSAPublicKey.swift
@@ -1,3 +1,5 @@
+#if os(iOS) || os(macOS) // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// A0SimpleKeychain+RSAPublicKey.swift
//
// Copyright (c) 2020 Auth0 (http://auth0.com)
@@ -38,3 +40,5 @@ extension A0SimpleKeychain {
return result == errSecSuccess
}
}
+
+#endif // Added by Auth0toSPM
diff --git a/tmp/auth0_diff_original/Array+Encode.swift b/tmp/auth0_diff_spm/Array+Encode.swift
index 6dda54f..3f524a9 100644
--- a/tmp/auth0_diff_original/Array+Encode.swift
+++ b/tmp/auth0_diff_spm/Array+Encode.swift
@@ -1,3 +1,5 @@
+#if os(iOS) || os(macOS) // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// Array+Encode.swift
//
// Copyright (c) 2019 Auth0 (http://auth0.com)
@@ -38,3 +40,5 @@ extension Array where Element == UInt8 {
return encodedBytes
}
}
+
+#endif // Added by Auth0toSPM
diff --git a/tmp/auth0_diff_original/Auth0.h b/tmp/auth0_diff_original/Auth0.h
deleted file mode 100644
index 5c1ceca..0000000
--- a/tmp/auth0_diff_original/Auth0.h
+++ /dev/null
@@ -1,37 +0,0 @@
-// Auth0.h
-//
-// Copyright (c) 2016 Auth0 (http://auth0.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-#import <Foundation/Foundation.h>
-
-//! Project version number for Auth0.
-FOUNDATION_EXPORT double Auth0VersionNumber;
-
-//! Project version string for Auth0.
-FOUNDATION_EXPORT const unsigned char Auth0VersionString[];
-
-// In this header, you should import all the public headers of your framework using statements like #import <Auth0/PublicHeader.h>
-
-#if TARGET_OS_IOS || TARGET_OS_OSX
-#import <Auth0/A0ChallengeGenerator.h>
-#import <Auth0/A0SHA.h>
-#import <Auth0/A0RSA.h>
-#endif
diff --git a/tmp/auth0_diff_original/Auth0.swift b/tmp/auth0_diff_spm/Auth0.swift
index 485690d..6e29b29 100644
--- a/tmp/auth0_diff_original/Auth0.swift
+++ b/tmp/auth0_diff_spm/Auth0.swift
@@ -1,3 +1,5 @@
+#if os(tvOS) || os(iOS) || os(macOS) || os(watchOS) // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// Auth0.swift
//
// Copyright (c) 2016 Auth0 (http://auth0.com)
@@ -156,3 +158,5 @@ func plistValues(bundle: Bundle) -> (clientId: String, domain: String)? {
}
return (clientId: clientId, domain: domain)
}
+
+#endif // Added by Auth0toSPM
diff --git a/tmp/auth0_diff_original/Auth0Authentication.swift b/tmp/auth0_diff_spm/Auth0Authentication.swift
index 66463c2..df75113 100644
--- a/tmp/auth0_diff_original/Auth0Authentication.swift
+++ b/tmp/auth0_diff_spm/Auth0Authentication.swift
@@ -1,3 +1,5 @@
+#if os(tvOS) || os(iOS) || os(macOS) || os(watchOS) // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// Auth0Authentication.swift
//
// Copyright (c) 2016 Auth0 (http://auth0.com)
@@ -432,3 +434,5 @@ private extension Auth0Authentication {
return self.tokenExchange(withParameters: parameters)
}
}
+
+#endif // Added by Auth0toSPM
diff --git a/tmp/auth0_diff_original/Auth0Error.swift b/tmp/auth0_diff_spm/Auth0Error.swift
index b640d98..4d22d52 100644
--- a/tmp/auth0_diff_original/Auth0Error.swift
+++ b/tmp/auth0_diff_spm/Auth0Error.swift
@@ -1,3 +1,5 @@
+#if os(tvOS) || os(iOS) || os(macOS) || os(watchOS) // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// Auth0Error.swift
//
// Copyright (c) 2016 Auth0 (http://auth0.com)
@@ -38,3 +40,5 @@ public protocol Auth0Error: Error {
/// The code of the error as a String
var code: String { get }
}
+
+#endif // Added by Auth0toSPM
diff --git a/tmp/auth0_diff_original/Auth0Spec.swift b/tmp/auth0_diff_spm/Auth0Spec.swift
index 43c8095..948dbba 100644
--- a/tmp/auth0_diff_original/Auth0Spec.swift
+++ b/tmp/auth0_diff_spm/Auth0Spec.swift
@@ -1,3 +1,5 @@
+import Foundation // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// Auth0Spec.swift
//
// Copyright (c) 2016 Auth0 (http://auth0.com)
@@ -23,6 +25,7 @@
import Quick
import Nimble
import OHHTTPStubs
+import OHHTTPStubsSwift // Added by Auth0toSPM(original value 'import OHHTTPStubs')
@testable import Auth0
diff --git a/tmp/auth0_diff_original/AuthCancelable.swift b/tmp/auth0_diff_spm/AuthCancelable.swift
index 196eca4..603443a 100644
--- a/tmp/auth0_diff_original/AuthCancelable.swift
+++ b/tmp/auth0_diff_spm/AuthCancelable.swift
@@ -1,3 +1,6 @@
+#if os(iOS) || os(macOS) // Added by Auth0toSPM
+import Foundation // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// AuthCancelable.swift
//
// Copyright (c) 2020 Auth0 (http://auth0.com)
@@ -31,3 +34,5 @@ public protocol AuthCancelable {
func cancel()
}
+
+#endif // Added by Auth0toSPM
diff --git a/tmp/auth0_diff_original/AuthProvider.swift b/tmp/auth0_diff_spm/AuthProvider.swift
index 625e4f0..5c99104 100644
--- a/tmp/auth0_diff_original/AuthProvider.swift
+++ b/tmp/auth0_diff_spm/AuthProvider.swift
@@ -1,3 +1,6 @@
+#if os(iOS) || os(macOS) // Added by Auth0toSPM
+import Foundation // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// AuthProvider.swift
//
// Copyright (c) 2017 Auth0 (http://auth0.com)
@@ -53,3 +56,5 @@ public protocol AuthProvider {
*/
static func isAvailable() -> Bool
}
+
+#endif // Added by Auth0toSPM
diff --git a/tmp/auth0_diff_original/AuthSession.swift b/tmp/auth0_diff_spm/AuthSession.swift
index 95d04f0..04a1cac 100644
--- a/tmp/auth0_diff_original/AuthSession.swift
+++ b/tmp/auth0_diff_spm/AuthSession.swift
@@ -1,3 +1,6 @@
+#if os(iOS) || os(macOS) // Added by Auth0toSPM
+import Foundation // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// AuthSession.swift
//
// Copyright (c) 2020 Auth0 (http://auth0.com)
@@ -26,3 +29,5 @@ protocol AuthSession {
func cancel()
}
+
+#endif // Added by Auth0toSPM
diff --git a/tmp/auth0_diff_original/AuthTransaction.swift b/tmp/auth0_diff_spm/AuthTransaction.swift
index 8ede609..ee5e471 100644
--- a/tmp/auth0_diff_original/AuthTransaction.swift
+++ b/tmp/auth0_diff_spm/AuthTransaction.swift
@@ -1,3 +1,6 @@
+#if os(iOS) || os(macOS) // Added by Auth0toSPM
+import Foundation // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// AuthTransaction.swift
//
// Copyright (c) 2016 Auth0 (http://auth0.com)
@@ -35,3 +38,5 @@ public protocol AuthTransaction: AuthResumable, AuthCancelable {
var state: String? { get }
}
+
+#endif // Added by Auth0toSPM
diff --git a/tmp/auth0_diff_original/Authentication.swift b/tmp/auth0_diff_spm/Authentication.swift
index a5f2f00..dc965d6 100644
--- a/tmp/auth0_diff_original/Authentication.swift
+++ b/tmp/auth0_diff_spm/Authentication.swift
@@ -1,3 +1,5 @@
+#if os(tvOS) || os(iOS) || os(macOS) || os(watchOS) // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// Authentication.swift
//
// Copyright (c) 2016 Auth0 (http://auth0.com)
@@ -695,7 +697,7 @@ public protocol Authentication: Trackable, Loggable {
*/
func jwks() -> Request<JWKS, AuthenticationError>
-#if WEB_AUTH_PLATFORM
+#if os(iOS) || os(macOS) // Added by Auth0toSPM(original value '#if WEB_AUTH_PLATFORM')
/**
Creates a new WebAuth request to authenticate using Safari browser and OAuth authorize flow.
@@ -1285,3 +1287,5 @@ public extension Authentication {
}
}
+
+#endif // Added by Auth0toSPM
diff --git a/tmp/auth0_diff_original/AuthenticationError.swift b/tmp/auth0_diff_spm/AuthenticationError.swift
index 165ba67..0a54db2 100644
--- a/tmp/auth0_diff_original/AuthenticationError.swift
+++ b/tmp/auth0_diff_spm/AuthenticationError.swift
@@ -1,3 +1,5 @@
+#if os(tvOS) || os(iOS) || os(macOS) || os(watchOS) // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// AuthenticationError.swift
//
// Copyright (c) 2016 Auth0 (http://auth0.com)
@@ -161,3 +163,5 @@ extension AuthenticationError: CustomNSError {
]
}
}
+
+#endif // Added by Auth0toSPM
diff --git a/tmp/auth0_diff_original/AuthenticationErrorSpec.swift b/tmp/auth0_diff_spm/AuthenticationErrorSpec.swift
index e01e632..d691aba 100644
--- a/tmp/auth0_diff_original/AuthenticationErrorSpec.swift
+++ b/tmp/auth0_diff_spm/AuthenticationErrorSpec.swift
@@ -1,3 +1,5 @@
+import Foundation // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// AuthenticationErrorSpec.swift
//
// Copyright (c) 2016 Auth0 (http://auth0.com)
diff --git a/tmp/auth0_diff_original/AuthenticationServicesSession.swift b/tmp/auth0_diff_spm/AuthenticationServicesSession.swift
index 6e88b0c..33083fa 100644
--- a/tmp/auth0_diff_original/AuthenticationServicesSession.swift
+++ b/tmp/auth0_diff_spm/AuthenticationServicesSession.swift
@@ -1,3 +1,6 @@
+#if os(iOS) || os(macOS) // Added by Auth0toSPM
+import Foundation // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// AuthenticationServicesSession.swift
//
// Copyright (c) 2020 Auth0 (http://auth0.com)
@@ -69,3 +72,5 @@ final class AuthenticationServicesSession: SessionTransaction {
@available(iOS 12.0, macOS 10.15, *)
extension ASWebAuthenticationSession: AuthSession {}
#endif
+
+#endif // Added by Auth0toSPM
diff --git a/tmp/auth0_diff_original/AuthenticationServicesSessionCallback.swift b/tmp/auth0_diff_spm/AuthenticationServicesSessionCallback.swift
index 0ba325c..6d7f72b 100644
--- a/tmp/auth0_diff_original/AuthenticationServicesSessionCallback.swift
+++ b/tmp/auth0_diff_spm/AuthenticationServicesSessionCallback.swift
@@ -1,3 +1,6 @@
+#if os(iOS) || os(macOS) // Added by Auth0toSPM
+import Foundation // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// AuthenticationServicesSessionCallback.swift
//
// Copyright (c) 2020 Auth0 (http://auth0.com)
@@ -47,3 +50,5 @@ final class AuthenticationServicesSessionCallback: SessionCallbackTransaction {
}
#endif
+
+#endif // Added by Auth0toSPM
diff --git a/tmp/auth0_diff_original/AuthenticationSpec.swift b/tmp/auth0_diff_spm/AuthenticationSpec.swift
index 5c0b47d..79a2d55 100644
--- a/tmp/auth0_diff_original/AuthenticationSpec.swift
+++ b/tmp/auth0_diff_spm/AuthenticationSpec.swift
@@ -1,3 +1,5 @@
+import Foundation // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// AuthenticationSpec.swift
//
// Copyright (c) 2016 Auth0 (http://auth0.com)
@@ -23,6 +25,7 @@
import Quick
import Nimble
import OHHTTPStubs
+import OHHTTPStubsSwift // Added by Auth0toSPM(original value 'import OHHTTPStubs')
@testable import Auth0
@@ -1510,7 +1513,7 @@ class AuthenticationSpec: QuickSpec {
}
}
-#if WEB_AUTH_PLATFORM
+#if os(iOS) || os(macOS) // Added by Auth0toSPM(original value '#if WEB_AUTH_PLATFORM')
describe("spawn WebAuth instance") {
it("should return a WebAuth instance with matching credentials") {
diff --git a/tmp/auth0_diff_original/BaseAuthTransaction.swift b/tmp/auth0_diff_spm/BaseAuthTransaction.swift
index d0afa66..32cd564 100644
--- a/tmp/auth0_diff_original/BaseAuthTransaction.swift
+++ b/tmp/auth0_diff_spm/BaseAuthTransaction.swift
@@ -1,3 +1,6 @@
+#if os(iOS) || os(macOS) // Added by Auth0toSPM
+import Foundation // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// BaseAuthTransaction.swift
//
// Copyright (c) 2020 Auth0 (http://auth0.com)
@@ -69,3 +72,5 @@ class BaseAuthTransaction: NSObject, AuthTransaction {
}
}
+
+#endif // Added by Auth0toSPM
diff --git a/tmp/auth0_diff_original/BaseAuthTransactionSpec.swift b/tmp/auth0_diff_spm/BaseAuthTransactionSpec.swift
index e259e28..50bc499 100644
--- a/tmp/auth0_diff_original/BaseAuthTransactionSpec.swift
+++ b/tmp/auth0_diff_spm/BaseAuthTransactionSpec.swift
@@ -1,3 +1,5 @@
+import Foundation // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// BaseAuthTransactionSpec.swift
//
// Copyright (c) 2020 Auth0 (http://auth0.com)
@@ -23,6 +25,7 @@
import Quick
import Nimble
import OHHTTPStubs
+import OHHTTPStubsSwift // Added by Auth0toSPM(original value 'import OHHTTPStubs')
@testable import Auth0
diff --git a/tmp/auth0_diff_original/BaseWebAuth.swift b/tmp/auth0_diff_spm/BaseWebAuth.swift
index d0e2d37..7447236 100644
--- a/tmp/auth0_diff_original/BaseWebAuth.swift
+++ b/tmp/auth0_diff_spm/BaseWebAuth.swift
@@ -1,3 +1,6 @@
+#if os(iOS) || os(macOS) // Added by Auth0toSPM
+import Foundation // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// BaseWebAuth.swift
//
// Copyright (c) 2016 Auth0 (http://auth0.com)
@@ -281,3 +284,5 @@ extension Auth0Authentication {
}
}
+
+#endif // Added by Auth0toSPM
diff --git a/tmp/auth0_diff_original/BioAuthentication.swift b/tmp/auth0_diff_spm/BioAuthentication.swift
index 00868ea..e5ca584 100644
--- a/tmp/auth0_diff_original/BioAuthentication.swift
+++ b/tmp/auth0_diff_spm/BioAuthentication.swift
@@ -1,3 +1,5 @@
+#if os(iOS) || os(macOS) // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// BioAuthentication.swift
//
// Copyright (c) 2017 Auth0 (http://auth0.com)
@@ -60,3 +62,5 @@ struct BioAuthentication {
}
}
+
+#endif // Added by Auth0toSPM
diff --git a/tmp/auth0_diff_original/BioAuthenticationSpec.swift b/tmp/auth0_diff_spm/BioAuthenticationSpec.swift
index 90dc489..8d9d7f4 100644
--- a/tmp/auth0_diff_original/BioAuthenticationSpec.swift
+++ b/tmp/auth0_diff_spm/BioAuthenticationSpec.swift
@@ -1,3 +1,5 @@
+import Foundation // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// BioAuthenticationSpec.swift
//
// Copyright (c) 2016 Auth0 (http://auth0.com)
@@ -23,6 +25,7 @@
import Quick
import Nimble
import OHHTTPStubs
+import OHHTTPStubsSwift // Added by Auth0toSPM(original value 'import OHHTTPStubs')
import LocalAuthentication
@testable import Auth0
diff --git a/tmp/auth0_diff_original/ChallengeGeneratorSpec.swift b/tmp/auth0_diff_spm/ChallengeGeneratorSpec.swift
index 2521ddd..17bc88d 100644
--- a/tmp/auth0_diff_original/ChallengeGeneratorSpec.swift
+++ b/tmp/auth0_diff_spm/ChallengeGeneratorSpec.swift
@@ -1,3 +1,5 @@
+import Foundation // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// ChallengeGeneratorSpec.swift
//
// Copyright (c) 2016 Auth0 (http://auth0.com)
diff --git a/tmp/auth0_diff_original/ClaimValidators.swift b/tmp/auth0_diff_spm/ClaimValidators.swift
index 40d3759..0088a81 100644
--- a/tmp/auth0_diff_original/ClaimValidators.swift
+++ b/tmp/auth0_diff_spm/ClaimValidators.swift
@@ -1,3 +1,5 @@
+#if os(iOS) || os(macOS) // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// ClaimValidators.swift
//
// Copyright (c) 2020 Auth0 (http://auth0.com)
@@ -268,3 +270,5 @@ struct IDTokenAuthTimeValidator: JWTValidator {
return nil
}
}
+
+#endif // Added by Auth0toSPM
diff --git a/tmp/auth0_diff_original/ClaimValidatorsSpec.swift b/tmp/auth0_diff_spm/ClaimValidatorsSpec.swift
index bc15436..8fc63dc 100644
--- a/tmp/auth0_diff_original/ClaimValidatorsSpec.swift
+++ b/tmp/auth0_diff_spm/ClaimValidatorsSpec.swift
@@ -1,3 +1,4 @@
+import Auth0ObjC // Added by Auth0toSPM
// ClaimValidatorsSpec.swift
//
// Copyright (c) 2020 Auth0 (http://auth0.com)
@@ -24,6 +25,7 @@ import Foundation
import Quick
import Nimble
import OHHTTPStubs
+import OHHTTPStubsSwift // Added by Auth0toSPM(original value 'import OHHTTPStubs')
@testable import Auth0
diff --git a/tmp/auth0_diff_original/ControllerModalPresenter.swift b/tmp/auth0_diff_spm/ControllerModalPresenter.swift
index 862f9cc..8684969 100644
--- a/tmp/auth0_diff_original/ControllerModalPresenter.swift
+++ b/tmp/auth0_diff_spm/ControllerModalPresenter.swift
@@ -1,3 +1,6 @@
+#if os(iOS) // Added by Auth0toSPM
+import Foundation // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// ControllerModalPresenter.swift
//
// Copyright (c) 2016 Auth0 (http://auth0.com)
@@ -55,3 +58,5 @@ struct ControllerModalPresenter {
}
}
+
+#endif // Added by Auth0toSPM
diff --git a/tmp/auth0_diff_original/ControllerModalPresenterSpec.swift b/tmp/auth0_diff_spm/ControllerModalPresenterSpec.swift
index 5e9471f..c38bbee 100644
--- a/tmp/auth0_diff_original/ControllerModalPresenterSpec.swift
+++ b/tmp/auth0_diff_spm/ControllerModalPresenterSpec.swift
@@ -1,3 +1,6 @@
+import Foundation // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
+import UIKit // Added by Auth0toSPM
// ControllerModalPresenterSpec.swift
//
// Copyright (c) 2016 Auth0 (http://auth0.com)
diff --git a/tmp/auth0_diff_original/Credentials.swift b/tmp/auth0_diff_spm/Credentials.swift
index f4d9bd4..8164adf 100644
--- a/tmp/auth0_diff_original/Credentials.swift
+++ b/tmp/auth0_diff_spm/Credentials.swift
@@ -1,3 +1,5 @@
+#if os(tvOS) || os(iOS) || os(macOS) || os(watchOS) // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// Credentials.swift
//
// Copyright (c) 2016 Auth0 (http://auth0.com)
@@ -92,3 +94,5 @@ public class Credentials: NSObject, JSONObjectPayload, NSSecureCoding {
public static var supportsSecureCoding: Bool = true
}
+
+#endif // Added by Auth0toSPM
diff --git a/tmp/auth0_diff_original/CredentialsManager.swift b/tmp/auth0_diff_spm/CredentialsManager.swift
index 99c6994..1ca9fed 100644
--- a/tmp/auth0_diff_original/CredentialsManager.swift
+++ b/tmp/auth0_diff_spm/CredentialsManager.swift
@@ -1,3 +1,5 @@
+#if os(tvOS) || os(iOS) || os(macOS) // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// CredentialsManager.swift
//
// Copyright (c) 2017 Auth0 (http://auth0.com)
@@ -23,7 +25,7 @@
import Foundation
import SimpleKeychain
import JWTDecode
-#if WEB_AUTH_PLATFORM
+#if os(iOS) || os(macOS) // Added by Auth0toSPM(original value '#if WEB_AUTH_PLATFORM')
import LocalAuthentication
#endif
@@ -33,7 +35,7 @@ public struct CredentialsManager {
private let storage: A0SimpleKeychain
private let storeKey: String
private let authentication: Authentication
- #if WEB_AUTH_PLATFORM
+ #if os(iOS) || os(macOS) // Added by Auth0toSPM(original value '#if WEB_AUTH_PLATFORM')
private var bioAuth: BioAuthentication?
#endif
@@ -55,7 +57,7 @@ public struct CredentialsManager {
/// - title: main message to display in TouchID prompt
/// - cancelTitle: cancel message to display in TouchID prompt (iOS 10+)
/// - fallbackTitle: fallback message to display in TouchID prompt after a failed match
- #if WEB_AUTH_PLATFORM
+ #if os(iOS) || os(macOS) // Added by Auth0toSPM(original value '#if WEB_AUTH_PLATFORM')
@available(*, deprecated, message: "see enableBiometrics(withTitle title:, cancelTitle:, fallbackTitle:)")
public mutating func enableTouchAuth(withTitle title: String, cancelTitle: String? = nil, fallbackTitle: String? = nil) {
self.enableBiometrics(withTitle: title, cancelTitle: cancelTitle, fallbackTitle: fallbackTitle)
@@ -68,7 +70,7 @@ public struct CredentialsManager {
/// - title: main message to display when Touch ID is used
/// - cancelTitle: cancel message to display when Touch ID is used (iOS 10+)
/// - fallbackTitle: fallback message to display when Touch ID is used after a failed match
- #if WEB_AUTH_PLATFORM
+ #if os(iOS) || os(macOS) // Added by Auth0toSPM(original value '#if WEB_AUTH_PLATFORM')
public mutating func enableBiometrics(withTitle title: String, cancelTitle: String? = nil, fallbackTitle: String? = nil) {
self.bioAuth = BioAuthentication(authContext: LAContext(), title: title, cancelTitle: cancelTitle, fallbackTitle: fallbackTitle)
}
@@ -145,7 +147,7 @@ public struct CredentialsManager {
/// - callback: callback with the user's credentials or the cause of the error.
/// - Important: This method only works for a refresh token obtained after auth with OAuth 2.0 API Authorization.
/// - Note: [Auth0 Refresh Tokens Docs](https://auth0.com/docs/tokens/concepts/refresh-tokens)
- #if WEB_AUTH_PLATFORM
+ #if os(iOS) || os(macOS) // Added by Auth0toSPM(original value '#if WEB_AUTH_PLATFORM')
public func credentials(withScope scope: String? = nil, minTTL: Int = 0, callback: @escaping (CredentialsManagerError?, Credentials?) -> Void) {
guard self.hasValid() else { return callback(.noCredentials, nil) }
if #available(iOS 9.0, macOS 10.15, *), let bioAuth = self.bioAuth {
@@ -234,3 +236,5 @@ public struct CredentialsManager {
}
}
+
+#endif // Added by Auth0toSPM
diff --git a/tmp/auth0_diff_original/CredentialsManagerError.swift b/tmp/auth0_diff_spm/CredentialsManagerError.swift
index 8a78fc3..d385e8e 100644
--- a/tmp/auth0_diff_original/CredentialsManagerError.swift
+++ b/tmp/auth0_diff_spm/CredentialsManagerError.swift
@@ -1,3 +1,5 @@
+#if os(tvOS) || os(iOS) || os(macOS) // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// CredentialsManagerError.swift
//
// Copyright (c) 2017 Auth0 (http://auth0.com)
@@ -29,3 +31,5 @@ public enum CredentialsManagerError: Error {
case touchFailed(Error)
case revokeFailed(Error)
}
+
+#endif // Added by Auth0toSPM
diff --git a/tmp/auth0_diff_original/CredentialsManagerSpec.swift b/tmp/auth0_diff_spm/CredentialsManagerSpec.swift
index 3a85bc1..1a54623 100644
--- a/tmp/auth0_diff_original/CredentialsManagerSpec.swift
+++ b/tmp/auth0_diff_spm/CredentialsManagerSpec.swift
@@ -1,3 +1,5 @@
+import Foundation // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// CredentialsManagerSpec.swift
//
// Copyright (c) 2016 Auth0 (http://auth0.com)
@@ -23,8 +25,9 @@
import Quick
import Nimble
import OHHTTPStubs
+import OHHTTPStubsSwift // Added by Auth0toSPM(original value 'import OHHTTPStubs')
import SimpleKeychain
-#if WEB_AUTH_PLATFORM
+#if os(iOS) || os(macOS) // Added by Auth0toSPM(original value '#if WEB_AUTH_PLATFORM')
import LocalAuthentication
#endif
diff --git a/tmp/auth0_diff_original/CredentialsSpec.swift b/tmp/auth0_diff_spm/CredentialsSpec.swift
index 97509e3..09f5c71 100644
--- a/tmp/auth0_diff_original/CredentialsSpec.swift
+++ b/tmp/auth0_diff_spm/CredentialsSpec.swift
@@ -1,3 +1,5 @@
+import Foundation // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// CredentialsSpec.swift
//
// Copyright (c) 2016 Auth0 (http://auth0.com)
diff --git a/tmp/auth0_diff_original/CryptoExtensions.swift b/tmp/auth0_diff_spm/CryptoExtensions.swift
index 4dd5549..e915e71 100644
--- a/tmp/auth0_diff_original/CryptoExtensions.swift
+++ b/tmp/auth0_diff_spm/CryptoExtensions.swift
@@ -1,3 +1,4 @@
+import Auth0ObjC // Added by Auth0toSPM
// CryptoExtensions.swift
//
// Copyright (c) 2019 Auth0 (http://auth0.com)
diff --git a/tmp/auth0_diff_original/Date.swift b/tmp/auth0_diff_spm/Date.swift
index c0c7fcd..1abd0cf 100644
--- a/tmp/auth0_diff_original/Date.swift
+++ b/tmp/auth0_diff_spm/Date.swift
@@ -1,3 +1,5 @@
+#if os(tvOS) || os(iOS) || os(macOS) || os(watchOS) // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// Date.swift
//
// Copyright (c) 2017 Auth0 (http://auth0.com)
@@ -32,3 +34,5 @@ func date(from string: String) -> Date? {
}
return Date(timeIntervalSince1970: interval)
}
+
+#endif // Added by Auth0toSPM
diff --git a/tmp/auth0_diff_original/DesktopWebAuth.swift b/tmp/auth0_diff_spm/DesktopWebAuth.swift
index e2016df..79cdc0c 100644
--- a/tmp/auth0_diff_original/DesktopWebAuth.swift
+++ b/tmp/auth0_diff_spm/DesktopWebAuth.swift
@@ -1,3 +1,6 @@
+#if os(macOS) // Added by Auth0toSPM
+import Foundation // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// DesktopWebAuth.swift
//
// Copyright (c) 2020 Auth0 (http://auth0.com)
@@ -115,3 +118,5 @@ extension AuthenticationServicesSessionCallback: ASWebAuthenticationPresentation
}
#endif
+
+#endif // Added by Auth0toSPM
diff --git a/tmp/auth0_diff_original/Generators.swift b/tmp/auth0_diff_spm/Generators.swift
index d9eb7be..c76c8f6 100644
--- a/tmp/auth0_diff_original/Generators.swift
+++ b/tmp/auth0_diff_spm/Generators.swift
@@ -1,3 +1,4 @@
+import Auth0ObjC // Added by Auth0toSPM
// Generators.swift
//
// Copyright (c) 2019 Auth0 (http://auth0.com)
diff --git a/tmp/auth0_diff_original/Handlers.swift b/tmp/auth0_diff_spm/Handlers.swift
index 8833a87..08f1c35 100644
--- a/tmp/auth0_diff_original/Handlers.swift
+++ b/tmp/auth0_diff_spm/Handlers.swift
@@ -1,3 +1,5 @@
+#if os(tvOS) || os(iOS) || os(macOS) || os(watchOS) // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// Handlers.swift
//
// Copyright (c) 2016 Auth0 (http://auth0.com)
@@ -89,3 +91,5 @@ func noBody(from response: Response<AuthenticationError>, callback: Request<Void
callback(.failure(error: error))
}
}
+
+#endif // Added by Auth0toSPM
diff --git a/tmp/auth0_diff_original/IDTokenSignatureValidator.swift b/tmp/auth0_diff_spm/IDTokenSignatureValidator.swift
index dbeb206..11824b6 100644
--- a/tmp/auth0_diff_original/IDTokenSignatureValidator.swift
+++ b/tmp/auth0_diff_spm/IDTokenSignatureValidator.swift
@@ -1,3 +1,5 @@
+#if os(iOS) || os(macOS) // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// IDTokenSignatureValidator.swift
//
// Copyright (c) 2020 Auth0 (http://auth0.com)
@@ -85,3 +87,5 @@ struct IDTokenSignatureValidator: JWTAsyncValidator {
return nil
}
}
+
+#endif // Added by Auth0toSPM
diff --git a/tmp/auth0_diff_original/IDTokenSignatureValidatorSpec.swift b/tmp/auth0_diff_spm/IDTokenSignatureValidatorSpec.swift
index 86da496..e631dc4 100644
--- a/tmp/auth0_diff_original/IDTokenSignatureValidatorSpec.swift
+++ b/tmp/auth0_diff_spm/IDTokenSignatureValidatorSpec.swift
@@ -1,3 +1,4 @@
+import Auth0ObjC // Added by Auth0toSPM
// IDTokenSignatureValidatorSpec.swift
//
// Copyright (c) 2019 Auth0 (http://auth0.com)
@@ -24,6 +25,7 @@ import Foundation
import Quick
import Nimble
import OHHTTPStubs
+import OHHTTPStubsSwift // Added by Auth0toSPM(original value 'import OHHTTPStubs')
@testable import Auth0
diff --git a/tmp/auth0_diff_original/IDTokenValidator.swift b/tmp/auth0_diff_spm/IDTokenValidator.swift
index 86793cf..6007ec9 100644
--- a/tmp/auth0_diff_original/IDTokenValidator.swift
+++ b/tmp/auth0_diff_spm/IDTokenValidator.swift
@@ -1,3 +1,5 @@
+#if os(iOS) || os(macOS) // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// IDTokenValidator.swift
//
// Copyright (c) 2019 Auth0 (http://auth0.com)
@@ -95,3 +97,5 @@ func validate(idToken: String?,
context: context)
validator.validate(jwt, callback: callback)
}
+
+#endif // Added by Auth0toSPM
diff --git a/tmp/auth0_diff_original/IDTokenValidatorBaseSpec.swift b/tmp/auth0_diff_spm/IDTokenValidatorBaseSpec.swift
index 85885c7..04fddc7 100644
--- a/tmp/auth0_diff_original/IDTokenValidatorBaseSpec.swift
+++ b/tmp/auth0_diff_spm/IDTokenValidatorBaseSpec.swift
@@ -1,3 +1,4 @@
+import Auth0ObjC // Added by Auth0toSPM
// IDTokenValidatorBaseSpec.swift
//
// Copyright (c) 2020 Auth0 (http://auth0.com)
diff --git a/tmp/auth0_diff_original/IDTokenValidatorContext.swift b/tmp/auth0_diff_spm/IDTokenValidatorContext.swift
index d9ad664..dfd9e3a 100644
--- a/tmp/auth0_diff_original/IDTokenValidatorContext.swift
+++ b/tmp/auth0_diff_spm/IDTokenValidatorContext.swift
@@ -1,3 +1,5 @@
+#if os(iOS) || os(macOS) // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// IDTokenValidatorContext.swift
//
// Copyright (c) 2020 Auth0 (http://auth0.com)
@@ -53,3 +55,5 @@ struct IDTokenValidatorContext: IDTokenSignatureValidatorContext, IDTokenClaimsV
nonce: nonce)
}
}
+
+#endif // Added by Auth0toSPM
diff --git a/tmp/auth0_diff_original/IDTokenValidatorMocks.swift b/tmp/auth0_diff_spm/IDTokenValidatorMocks.swift
index 4b33f1c..afb0254 100644
--- a/tmp/auth0_diff_original/IDTokenValidatorMocks.swift
+++ b/tmp/auth0_diff_spm/IDTokenValidatorMocks.swift
@@ -1,3 +1,4 @@
+import Auth0ObjC // Added by Auth0toSPM
// IDTokenValidatorMocks.swift
//
// Copyright (c) 2019 Auth0 (http://auth0.com)
diff --git a/tmp/auth0_diff_original/IDTokenValidatorSpec.swift b/tmp/auth0_diff_spm/IDTokenValidatorSpec.swift
index 2d00652..e7557d3 100644
--- a/tmp/auth0_diff_original/IDTokenValidatorSpec.swift
+++ b/tmp/auth0_diff_spm/IDTokenValidatorSpec.swift
@@ -1,3 +1,4 @@
+import Auth0ObjC // Added by Auth0toSPM
// IDTokenValidatorSpec.swift
//
// Copyright (c) 2019 Auth0 (http://auth0.com)
@@ -24,6 +25,7 @@ import Foundation
import Quick
import Nimble
import OHHTTPStubs
+import OHHTTPStubsSwift // Added by Auth0toSPM(original value 'import OHHTTPStubs')
@testable import Auth0
diff --git a/tmp/auth0_diff_original/Identity.swift b/tmp/auth0_diff_spm/Identity.swift
index 3eec7c3..5fd8878 100644
--- a/tmp/auth0_diff_original/Identity.swift
+++ b/tmp/auth0_diff_spm/Identity.swift
@@ -1,3 +1,5 @@
+#if os(tvOS) || os(iOS) || os(macOS) || os(watchOS) // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// Identity.swift
//
// Copyright (c) 2016 Auth0 (http://auth0.com)
@@ -76,3 +78,5 @@ public class Identity: NSObject, JSONObjectPayload {
self.init(identifier: identifier, provider: provider, connection: connection, social: social, profileData: profileData, accessToken: accessToken, expiresIn: expiresIn, accessTokenSecret: accessTokenSecret)
}
}
+
+#endif // Added by Auth0toSPM
diff --git a/tmp/auth0_diff_original/IdentitySpec.swift b/tmp/auth0_diff_spm/IdentitySpec.swift
index 58c59ab..bb39aee 100644
--- a/tmp/auth0_diff_original/IdentitySpec.swift
+++ b/tmp/auth0_diff_spm/IdentitySpec.swift
@@ -1,3 +1,5 @@
+import Foundation // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// IdentitySpec.swift
//
// Copyright (c) 2016 Auth0 (http://auth0.com)
diff --git a/tmp/auth0_diff_original/JSONObjectPayload.swift b/tmp/auth0_diff_spm/JSONObjectPayload.swift
index a9058e5..058cd30 100644
--- a/tmp/auth0_diff_original/JSONObjectPayload.swift
+++ b/tmp/auth0_diff_spm/JSONObjectPayload.swift
@@ -1,3 +1,5 @@
+#if os(tvOS) || os(iOS) || os(macOS) || os(watchOS) // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// JSONObjectPayload.swift
//
// Copyright (c) 2016 Auth0 (http://auth0.com)
@@ -27,3 +29,5 @@ protocol JSONObjectPayload {
init?(json: [String: Any])
}
+
+#endif // Added by Auth0toSPM
diff --git a/tmp/auth0_diff_original/JWK+RSA.swift b/tmp/auth0_diff_spm/JWK+RSA.swift
index f699135..dd84d2c 100644
--- a/tmp/auth0_diff_original/JWK+RSA.swift
+++ b/tmp/auth0_diff_spm/JWK+RSA.swift
@@ -1,3 +1,5 @@
+#if os(iOS) || os(macOS) // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// JWK+RSA.swift
//
// Copyright (c) 2020 Auth0 (http://auth0.com)
@@ -58,3 +60,5 @@ extension JWK {
return SecKeyCreateWithData(derEncodedData as CFData, attributes as CFDictionary, nil)
}
}
+
+#endif // Added by Auth0toSPM
diff --git a/tmp/auth0_diff_original/JWKS.swift b/tmp/auth0_diff_spm/JWKS.swift
index 370319e..4917dcf 100644
--- a/tmp/auth0_diff_original/JWKS.swift
+++ b/tmp/auth0_diff_spm/JWKS.swift
@@ -1,3 +1,5 @@
+#if os(tvOS) || os(iOS) || os(macOS) || os(watchOS) // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// JWKS.swift
//
// Copyright (c) 2019 Auth0 (http://auth0.com)
@@ -55,3 +57,5 @@ public struct JWK: Codable {
case rsaExponent = "e"
}
}
+
+#endif // Added by Auth0toSPM
diff --git a/tmp/auth0_diff_original/JWKSpec.swift b/tmp/auth0_diff_spm/JWKSpec.swift
index 25173e8..4dd28d8 100644
--- a/tmp/auth0_diff_original/JWKSpec.swift
+++ b/tmp/auth0_diff_spm/JWKSpec.swift
@@ -1,3 +1,4 @@
+import Auth0ObjC // Added by Auth0toSPM
// JWKSpec.swift
//
// Copyright (c) 2020 Auth0 (http://auth0.com)
@@ -24,6 +25,7 @@ import Foundation
import Quick
import Nimble
import OHHTTPStubs
+import OHHTTPStubsSwift // Added by Auth0toSPM(original value 'import OHHTTPStubs')
@testable import Auth0
diff --git a/tmp/auth0_diff_original/JWT+Header.swift b/tmp/auth0_diff_spm/JWT+Header.swift
index 34acf68..e8954da 100644
--- a/tmp/auth0_diff_original/JWT+Header.swift
+++ b/tmp/auth0_diff_spm/JWT+Header.swift
@@ -1,3 +1,5 @@
+#if os(iOS) || os(macOS) // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// JWT+Header.swift
//
// Copyright (c) 2020 Auth0 (http://auth0.com)
@@ -33,3 +35,5 @@ extension JWT {
return header["kid"] as? String
}
}
+
+#endif // Added by Auth0toSPM
diff --git a/tmp/auth0_diff_original/JWTAlgorithm.swift b/tmp/auth0_diff_spm/JWTAlgorithm.swift
index 361afcd..48c6199 100644
--- a/tmp/auth0_diff_original/JWTAlgorithm.swift
+++ b/tmp/auth0_diff_spm/JWTAlgorithm.swift
@@ -1,3 +1,5 @@
+#if os(iOS) || os(macOS) // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// JWTAlgorithm.swift
//
// Copyright (c) 2020 Auth0 (http://auth0.com)
@@ -42,3 +44,5 @@ enum JWTAlgorithm: String {
}
}
}
+
+#endif // Added by Auth0toSPM
diff --git a/tmp/auth0_diff_original/JWTAlgorithmSpec.swift b/tmp/auth0_diff_spm/JWTAlgorithmSpec.swift
index a99f6d3..89b4b9a 100644
--- a/tmp/auth0_diff_original/JWTAlgorithmSpec.swift
+++ b/tmp/auth0_diff_spm/JWTAlgorithmSpec.swift
@@ -1,3 +1,4 @@
+import Auth0ObjC // Added by Auth0toSPM
// JWTAlgorithmSpec.swift
//
// Copyright (c) 2019 Auth0 (http://auth0.com)
diff --git a/tmp/auth0_diff_original/Loggable.swift b/tmp/auth0_diff_spm/Loggable.swift
index 3a620d5..a827f6d 100644
--- a/tmp/auth0_diff_original/Loggable.swift
+++ b/tmp/auth0_diff_spm/Loggable.swift
@@ -1,3 +1,5 @@
+#if os(tvOS) || os(iOS) || os(macOS) || os(watchOS) // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// Loggable.swift
//
// Copyright (c) 2016 Auth0 (http://auth0.com)
@@ -60,3 +62,5 @@ public extension Loggable {
return loggable
}
}
+
+#endif // Added by Auth0toSPM
diff --git a/tmp/auth0_diff_original/Logger.swift b/tmp/auth0_diff_spm/Logger.swift
index 310725b..0fcaef0 100644
--- a/tmp/auth0_diff_original/Logger.swift
+++ b/tmp/auth0_diff_spm/Logger.swift
@@ -1,3 +1,5 @@
+#if os(tvOS) || os(iOS) || os(macOS) || os(watchOS) // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// Logger.swift
//
// Copyright (c) 2016 Auth0 (http://auth0.com)
@@ -77,3 +79,5 @@ struct DefaultLogger: Logger {
output.log(message: "\(source ?? "URL"): \(url.absoluteString)")
}
}
+
+#endif // Added by Auth0toSPM
diff --git a/tmp/auth0_diff_original/LoggerSpec.swift b/tmp/auth0_diff_spm/LoggerSpec.swift
index 8fc8172..4ea0d83 100644
--- a/tmp/auth0_diff_original/LoggerSpec.swift
+++ b/tmp/auth0_diff_spm/LoggerSpec.swift
@@ -1,3 +1,5 @@
+import Foundation // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// LoggerSpec.swift
//
// Copyright (c) 2016 Auth0 (http://auth0.com)
diff --git a/tmp/auth0_diff_original/Management.swift b/tmp/auth0_diff_spm/Management.swift
index 839bfad..5ddc764 100644
--- a/tmp/auth0_diff_original/Management.swift
+++ b/tmp/auth0_diff_spm/Management.swift
@@ -1,3 +1,5 @@
+#if os(tvOS) || os(iOS) || os(macOS) || os(watchOS) // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// Management.swift
//
// Copyright (c) 2016 Auth0 (http://auth0.com)
@@ -72,3 +74,5 @@ struct Management: Trackable, Loggable {
]
}
}
+
+#endif // Added by Auth0toSPM
diff --git a/tmp/auth0_diff_original/ManagementError.swift b/tmp/auth0_diff_spm/ManagementError.swift
index ae54f08..e54c3a7 100644
--- a/tmp/auth0_diff_original/ManagementError.swift
+++ b/tmp/auth0_diff_spm/ManagementError.swift
@@ -1,3 +1,5 @@
+#if os(tvOS) || os(iOS) || os(macOS) || os(watchOS) // Added by Auth0toSPM
+import Auth0ObjC // Added by Auth0toSPM
// ManagementError.swift
//
// Copyright (c) 2016 Auth0 (http://auth0.com)
@@ -93,3 +95,5 @@ extension ManagementError: CustomNSError {
]
}
}
+