Skip to content

Commit 5b6d6ca

Browse files
Create folder for public headers
1 parent 442c8a5 commit 5b6d6ca

18 files changed

Lines changed: 26 additions & 19 deletions

Paystack.podspec

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ Pod::Spec.new do |s|
1515
s.requires_arc = true
1616
s.ios.deployment_target = '11.0'
1717
s.swift_versions = '5.0'
18-
s.source_files = 'Paystack/Classes/**/*'
18+
ss.public_header_files = 'Paystack/Classes/PublicHeaders/*.h', 'Paystack/Classes/RSA/*.h'
19+
s.source_files = 'Paystack/Classes/**/*.{swift,h,m}'
1920
s.resources = 'Paystack/Resources/**/*'
20-
s.public_header_files = 'Paystack/Classes/Paystack.h'
21-
2221

2322
end

Paystack.xcodeproj/project.pbxproj

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,6 @@
522522
0438EF251B74162700D506CC /* UI */ = {
523523
isa = PBXGroup;
524524
children = (
525-
04E32A9C1B7A9490009C9E35 /* PSTCKPaymentCardTextField.h */,
526525
08C260A71E9C214A002AE28C /* PSTCKAuthViewController.h */,
527526
08C260A81E9C214A002AE28C /* PSTCKAuthViewController.m */,
528527
0438EF291B7416BB00D506CC /* PSTCKPaymentCardTextField.m */,
@@ -532,7 +531,6 @@
532531
0438EF271B7416BB00D506CC /* PSTCKFormTextField.m */,
533532
0438EF2A1B7416BB00D506CC /* PSTCKPaymentCardTextFieldViewModel.h */,
534533
0438EF2B1B7416BB00D506CC /* PSTCKPaymentCardTextFieldViewModel.m */,
535-
C1718D541C3B2E5B002A7CB3 /* UIImage+Paystack.h */,
536534
C1718D551C3B2E5B002A7CB3 /* UIImage+Paystack.m */,
537535
91FEDC5A24B6A3DF00A236BA /* ButtonExtension.swift */,
538536
91FEDC6424B72B9800A236BA /* KeyboardHandlingVC.swift */,
@@ -698,10 +696,33 @@
698696
name = Frameworks;
699697
sourceTree = "<group>";
700698
};
701-
91F7793324B774CF0003C7AC /* Classes */ = {
699+
9121E93824B7B5C7007BBE61 /* PublicHeaders */ = {
702700
isa = PBXGroup;
703701
children = (
702+
04F213341BCECB1C001D6F22 /* PSTCKAPIResponseDecodable.h */,
703+
04E32A9C1B7A9490009C9E35 /* PSTCKPaymentCardTextField.h */,
704+
04CDB4CA1A5F30A700B854EE /* PSTCKCard.h */,
705+
04EBC7511B7533C300A0E6AE /* PSTCKCardValidationState.h */,
704706
04CDB4A91A5F30A700B854EE /* Paystack.h */,
707+
04CDB4C41A5F30A700B854EE /* PSTCKFormEncoder.h */,
708+
04EBC7521B7533C300A0E6AE /* PSTCKCardValidator.h */,
709+
04CDB4CC1A5F30A700B854EE /* PSTCKToken.h */,
710+
C1718D541C3B2E5B002A7CB3 /* UIImage+Paystack.h */,
711+
0806F2F21DBB9E7100C2741B /* PSTCKTransaction.h */,
712+
0806F2F31DBB9E7100C2741B /* PSTCKTransactionParams.h */,
713+
0806F2FC1DBBA3F600C2741B /* PSTCKValidationParams.h */,
714+
0438EF461B74183100D506CC /* PSTCKCardBrand.h */,
715+
9121E93324B7A35F007BBE61 /* PaystackError.h */,
716+
04CDE5BB1BC1F21500548833 /* PSTCKCardParams.h */,
717+
04CDB4C21A5F30A700B854EE /* PSTCKAPIClient.h */,
718+
);
719+
path = PublicHeaders;
720+
sourceTree = "<group>";
721+
};
722+
91F7793324B774CF0003C7AC /* Classes */ = {
723+
isa = PBXGroup;
724+
children = (
725+
9121E93824B7B5C7007BBE61 /* PublicHeaders */,
705726
91F7793424B77F4D0003C7AC /* API Client */,
706727
91F7793824B781270003C7AC /* Error Handler */,
707728
91F7793924B781800003C7AC /* Card */,
@@ -721,8 +742,6 @@
721742
children = (
722743
9121E92024B79EAD007BBE61 /* PSTCKAPIPostRequest.h */,
723744
049952CE1BCF13510088C703 /* PSTCKAPIPostRequest.m */,
724-
04F213341BCECB1C001D6F22 /* PSTCKAPIResponseDecodable.h */,
725-
04CDB4C21A5F30A700B854EE /* PSTCKAPIClient.h */,
726745
04CDB4C31A5F30A700B854EE /* PSTCKAPIClient.m */,
727746
919A9FBA249C442300B7A571 /* PSTCKAPIClientExtension.swift */,
728747
049952D11BCF13DD0088C703 /* PSTCKAPIClient+Private.h */,
@@ -733,10 +752,7 @@
733752
91F7793524B77FA20003C7AC /* Card Validator */ = {
734753
isa = PBXGroup;
735754
children = (
736-
04EBC7511B7533C300A0E6AE /* PSTCKCardValidationState.h */,
737-
04EBC7521B7533C300A0E6AE /* PSTCKCardValidator.h */,
738755
0438EF3F1B74170D00D506CC /* PSTCKCardValidator.m */,
739-
0806F2FC1DBBA3F600C2741B /* PSTCKValidationParams.h */,
740756
0806F2FA1DBBA3C500C2741B /* PSTCKValidationParams.m */,
741757
);
742758
path = "Card Validator";
@@ -771,7 +787,6 @@
771787
91F7793824B781270003C7AC /* Error Handler */ = {
772788
isa = PBXGroup;
773789
children = (
774-
9121E93324B7A35F007BBE61 /* PaystackError.h */,
775790
9121E93224B7A35F007BBE61 /* PaystackError.m */,
776791
);
777792
path = "Error Handler";
@@ -780,10 +795,7 @@
780795
91F7793924B781800003C7AC /* Card */ = {
781796
isa = PBXGroup;
782797
children = (
783-
0438EF461B74183100D506CC /* PSTCKCardBrand.h */,
784-
04CDE5BB1BC1F21500548833 /* PSTCKCardParams.h */,
785798
04CDE5B41BC1F1F100548833 /* PSTCKCardParams.m */,
786-
04CDB4CA1A5F30A700B854EE /* PSTCKCard.h */,
787799
04CDB4CB1A5F30A700B854EE /* PSTCKCard.m */,
788800
);
789801
path = Card;
@@ -792,7 +804,6 @@
792804
91F7793A24B7819B0003C7AC /* Form Encoder */ = {
793805
isa = PBXGroup;
794806
children = (
795-
04CDB4C41A5F30A700B854EE /* PSTCKFormEncoder.h */,
796807
04CDB4C51A5F30A700B854EE /* PSTCKFormEncoder.m */,
797808
04F213301BCEAB61001D6F22 /* PSTCKFormEncodable.h */,
798809
);
@@ -803,9 +814,7 @@
803814
isa = PBXGroup;
804815
children = (
805816
0806F2F61DBB9E8200C2741B /* PSTCKTransaction.m */,
806-
0806F2F31DBB9E7100C2741B /* PSTCKTransactionParams.h */,
807817
0806F2F71DBB9E8200C2741B /* PSTCKTransactionParams.m */,
808-
0806F2F21DBB9E7100C2741B /* PSTCKTransaction.h */,
809818
);
810819
path = Transaction;
811820
sourceTree = "<group>";
@@ -814,7 +823,6 @@
814823
isa = PBXGroup;
815824
children = (
816825
04CDB4CD1A5F30A700B854EE /* PSTCKToken.m */,
817-
04CDB4CC1A5F30A700B854EE /* PSTCKToken.h */,
818826
);
819827
path = Token;
820828
sourceTree = "<group>";
File renamed without changes.

Paystack/Classes/API Client/PSTCKAPIResponseDecodable.h renamed to Paystack/Classes/PublicHeaders/PSTCKAPIResponseDecodable.h

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Paystack/Classes/Validator/Card Validator/PSTCKCardValidationState.h renamed to Paystack/Classes/PublicHeaders/PSTCKCardValidationState.h

File renamed without changes.

Paystack/Classes/Validator/Card Validator/PSTCKCardValidator.h renamed to Paystack/Classes/PublicHeaders/PSTCKCardValidator.h

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)