Skip to content

Commit effb71d

Browse files
author
Edward Smith
committed
Move countryCode forward declaration. Updated the ChangeLog.md file.
1 parent 1b2ba91 commit effb71d

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

Branch-SDK/Branch-SDK/BNCAvailability.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,3 @@ typedef NSString * UIApplicationOpenURLOptionsKey;
2323
#ifndef NS_STRING_ENUM
2424
#define NS_STRING_ENUM
2525
#endif
26-
27-
@interface NSLocale (BranchAvailability)
28-
- (NSString*) countryCode;
29-
- (NSString*) languageCode;
30-
@end

Branch-SDK/Branch-SDK/BNCDeviceInfo.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@
2525
#import <arpa/inet.h>
2626
#import <netinet/in.h>
2727

28+
// Forward declare this for older versions of iOS
29+
@interface NSLocale (BranchAvailability)
30+
- (NSString*) countryCode;
31+
- (NSString*) languageCode;
32+
@end
33+
2834
#pragma mark BRNNetworkInfo
2935

3036
typedef NS_ENUM(NSInteger, BNCNetworkAddressType) {

ChangeLog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Branch iOS SDK Change Log
66
* Fixed update / install tracking when app installed but not run for a while. (#763)
77
* Added some code for Will's AppsFlyer integration in the Swift test bed. (#767)
88
* Added `limit_facebook_tracking` to allow developers to opt-out of Facebook app tracking (AIS-417).
9+
* Moved the forward declaration of `[NSLocal countryCode]` so that it doesn't interfere with
10+
newer Swift compilations.
911

1012
- v0.21.14
1113
* _*Master Release*_ - December 8, 2017

0 commit comments

Comments
 (0)