Skip to content

Commit ba23d08

Browse files
committed
conditionally compile STPCategoryLoader
1 parent 912c8b2 commit ba23d08

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Stripe/STPCategoryLoader.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@
66
// Copyright © 2015 Stripe, Inc. All rights reserved.
77
//
88

9+
#ifdef STP_STATIC_LIBRARY_BUILD
10+
911
#import <Foundation/Foundation.h>
1012

11-
#ifdef STP_STATIC_LIBRARY_BUILD
1213
@interface STPCategoryLoader : NSObject
1314

1415
+ (void)loadCategories;
1516

1617
@end
18+
1719
#endif

Stripe/STPCategoryLoader.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66
// Copyright © 2015 Stripe, Inc. All rights reserved.
77
//
88

9+
#ifdef STP_STATIC_LIBRARY_BUILD
10+
911
#import "STPCategoryLoader.h"
1012
#import "PKPayment+Stripe.h"
1113
#import "NSDictionary+Stripe.h"
1214
#import "Stripe+ApplePay.h"
1315
#import "STPAPIClient+ApplePay.h"
1416

15-
#ifdef STP_STATIC_LIBRARY_BUILD
1617
@implementation STPCategoryLoader
1718

1819
+ (void)loadCategories {
@@ -23,4 +24,5 @@ + (void)loadCategories {
2324
}
2425

2526
@end
27+
2628
#endif

0 commit comments

Comments
 (0)