Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit 256689a

Browse files
committed
[ios, macos] Make Xcode 7.3 the minimum required version
- Removes nullability shims for Xcode 6. - Removes MGLTypes.h from files where it was only being used for nullability support. - Accepts that `NS_SWIFT_NAME` is not fully supported by Xcode 7.2 and lower. - Adds documentation about Xcode 7.3 requirement.
1 parent 7de7f9d commit 256689a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+25
-79
lines changed

platform/darwin/src/MGLAccountManager.h

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#import <Foundation/Foundation.h>
22

3-
#import "MGLTypes.h"
4-
53
NS_ASSUME_NONNULL_BEGIN
64

75
/**

platform/darwin/src/MGLAnnotation.h

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
#import <CoreLocation/CoreLocation.h>
33
#import <TargetConditionals.h>
44

5-
#import "MGLTypes.h"
6-
75
NS_ASSUME_NONNULL_BEGIN
86

97
/**

platform/darwin/src/MGLBackgroundStyleLayer.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// This file is generated.
22
// Edit platform/darwin/scripts/generate-style-code.js, then run `make style-code-darwin`.
33

4-
#import "MGLTypes.h"
54
#import "MGLStyleAttributeValue.h"
65
#import "MGLBaseStyleLayer.h"
76

platform/darwin/src/MGLCircleStyleLayer.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// This file is generated.
22
// Edit platform/darwin/scripts/generate-style-code.js, then run `make style-code-darwin`.
33

4-
#import "MGLTypes.h"
54
#import "MGLStyleAttributeValue.h"
65
#import "MGLBaseStyleLayer.h"
76

platform/darwin/src/MGLClockDirectionFormatter.h

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#import <Foundation/Foundation.h>
22
#import <CoreLocation/CoreLocation.h>
33

4-
#import "MGLTypes.h"
5-
64
NS_ASSUME_NONNULL_BEGIN
75

86
/**

platform/darwin/src/MGLCompassDirectionFormatter.h

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#import <Foundation/Foundation.h>
22
#import <CoreLocation/CoreLocation.h>
33

4-
#import "MGLTypes.h"
5-
64
NS_ASSUME_NONNULL_BEGIN
75

86
/**

platform/darwin/src/MGLCoordinateFormatter.h

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#import <Foundation/Foundation.h>
22
#import <CoreLocation/CoreLocation.h>
33

4-
#import "MGLTypes.h"
5-
64
NS_ASSUME_NONNULL_BEGIN
75

86
/**

platform/darwin/src/MGLFeature.h

-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
#import "MGLPointAnnotation.h"
66
#import "MGLShapeCollection.h"
77

8-
#import "MGLTypes.h"
9-
108
NS_ASSUME_NONNULL_BEGIN
119

1210
/**

platform/darwin/src/MGLFillStyleLayer.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// This file is generated.
22
// Edit platform/darwin/scripts/generate-style-code.js, then run `make style-code-darwin`.
33

4-
#import "MGLTypes.h"
54
#import "MGLStyleAttributeValue.h"
65
#import "MGLBaseStyleLayer.h"
76

platform/darwin/src/MGLGeometry.h

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
#import <CoreLocation/CoreLocation.h>
33
#import <CoreGraphics/CGBase.h>
44

5-
#import "MGLTypes.h"
6-
75
NS_ASSUME_NONNULL_BEGIN
86

97
/** Defines the area spanned by an `MGLCoordinateBounds`. */

platform/darwin/src/MGLLineStyleLayer.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// This file is generated.
22
// Edit platform/darwin/scripts/generate-style-code.js, then run `make style-code-darwin`.
33

4-
#import "MGLTypes.h"
54
#import "MGLStyleAttributeValue.h"
65
#import "MGLBaseStyleLayer.h"
76

platform/darwin/src/MGLMapCamera.h

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
#import <CoreGraphics/CoreGraphics.h>
33
#import <CoreLocation/CoreLocation.h>
44

5-
#import "MGLTypes.h"
6-
75
NS_ASSUME_NONNULL_BEGIN
86

97
/**

platform/darwin/src/MGLMultiPoint.h

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
#import "MGLShape.h"
55

6-
#import "MGLTypes.h"
7-
86
NS_ASSUME_NONNULL_BEGIN
97

108
/**

platform/darwin/src/MGLMultiPoint_Private.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#import "MGLMultiPoint.h"
22

33
#import "MGLGeometry.h"
4-
#import "MGLTypes.h"
54

65
#import <mbgl/annotation/annotation.hpp>
76
#import <vector>

platform/darwin/src/MGLOfflineRegion.h

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#import <Foundation/Foundation.h>
22

3-
#import "MGLTypes.h"
4-
53
NS_ASSUME_NONNULL_BEGIN
64

75
/**

platform/darwin/src/MGLOverlay.h

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
#import "MGLAnnotation.h"
55
#import "MGLGeometry.h"
66

7-
#import "MGLTypes.h"
8-
97
NS_ASSUME_NONNULL_BEGIN
108

119
/**

platform/darwin/src/MGLPointAnnotation.h

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
#import "MGLShape.h"
55

6-
#import "MGLTypes.h"
7-
86
NS_ASSUME_NONNULL_BEGIN
97

108
/**

platform/darwin/src/MGLRasterStyleLayer.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// This file is generated.
22
// Edit platform/darwin/scripts/generate-style-code.js, then run `make style-code-darwin`.
33

4-
#import "MGLTypes.h"
54
#import "MGLStyleAttributeValue.h"
65
#import "MGLBaseStyleLayer.h"
76

platform/darwin/src/MGLShape.h

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
#import "MGLAnnotation.h"
44

5-
#import "MGLTypes.h"
6-
75
NS_ASSUME_NONNULL_BEGIN
86

97
/**

platform/darwin/src/MGLStyle.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#import <Foundation/Foundation.h>
22

3-
#import "MGLTypes.h"
4-
53
#import "MGLStyleLayer.h"
64

5+
#import "MGLTypes.h"
6+
77
@class MGLSource;
88

99
NS_ASSUME_NONNULL_BEGIN

platform/darwin/src/MGLStyleAttribute.mm

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
#import "MGLStyleAttributeValue_Private.h"
44
#import "MGLStyleAttributeFunction_Private.h"
55

6+
#import "MGLTypes.h"
7+
68
@interface MGLStyleAttribute()
79
@end
810

Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#import <Foundation/Foundation.h>
22

3-
#import "MGLTypes.h"
4-
53
@protocol MGLStyleAttributeValue <NSObject>
64
@optional
75
@end

platform/darwin/src/MGLStyleAttributeValue_Private.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#import <Foundation/Foundation.h>
22

3-
#import "MGLTypes.h"
43
#import "MGLStyleAttributeFunction_Private.h"
54

65
#include <array>

platform/darwin/src/MGLStyleLayer.h.ejs

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
// This file is generated.
77
// Edit platform/darwin/scripts/generate-style-code.js, then run `make style-code-darwin`.
88

9-
#import "MGLTypes.h"
109
#import "MGLStyleAttributeValue.h"
1110
#import "MGLBaseStyleLayer.h"
1211

platform/darwin/src/MGLStyleLayer.mm

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#import "MGLStyleLayer.h"
22

3-
#import "MGLTypes.h"
43
#import "MGLStyleLayer_Private.h"
54
#import "MGLMapView_Private.h"

platform/darwin/src/MGLSymbolStyleLayer.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// This file is generated.
22
// Edit platform/darwin/scripts/generate-style-code.js, then run `make style-code-darwin`.
33

4-
#import "MGLTypes.h"
54
#import "MGLStyleAttributeValue.h"
65
#import "MGLBaseStyleLayer.h"
76

platform/darwin/src/MGLTypes.h

-10
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,6 @@
22

33
#pragma once
44

5-
#if !__has_feature(nullability)
6-
#define NS_ASSUME_NONNULL_BEGIN
7-
#define NS_ASSUME_NONNULL_END
8-
#define nullable
9-
#define nonnull
10-
#define null_resettable
11-
#define _Nullable
12-
#define _Nonnull
13-
#endif
14-
155
#if TARGET_OS_IPHONE
166
@class UIColor;
177
#define MGLColor UIColor

platform/darwin/src/NSData+MGLAdditions.h

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#import <Foundation/Foundation.h>
22

3-
#import "MGLTypes.h"
4-
53
NS_ASSUME_NONNULL_BEGIN
64

75
@interface NSData (MGLAdditions)

platform/darwin/src/NSString+MGLAdditions.h

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#import <Foundation/Foundation.h>
22

3-
#import "MGLTypes.h"
4-
53
NS_ASSUME_NONNULL_BEGIN
64

75
@interface NSString (MGLAdditions)

platform/darwin/src/NSURL+MGLAdditions.h

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#import <Foundation/Foundation.h>
22

3-
#import "MGLTypes.h"
4-
53
NS_ASSUME_NONNULL_BEGIN
64

75
@interface NSURL (MGLAdditions)

platform/ios/CHANGELOG.md

+1

platform/ios/DEVELOPING.md

+3

platform/ios/INSTALL.md

+3-1

platform/ios/docs/pod-README.md

+2

platform/ios/src/MGLAPIClient.h

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@
33
#import "MGLMapboxEvents.h"
44
#import "MGLTypes.h"
55

6+
NS_ASSUME_NONNULL_BEGIN
7+
68
@interface MGLAPIClient : NSObject <NSURLSessionDelegate>
79

8-
- (void)postEvents:(nonnull NS_ARRAY_OF(MGLMapboxEventAttributes *) *)events completionHandler:(nullable void (^)(NSError * _Nullable error))completionHandler;
9-
- (void)postEvent:(nonnull MGLMapboxEventAttributes *)event completionHandler:(nullable void (^)(NSError * _Nullable error))completionHandler;
10+
- (void)postEvents:(NS_ARRAY_OF(MGLMapboxEventAttributes *) *)events completionHandler:(nullable void (^)(NSError * _Nullable error))completionHandler;
11+
- (void)postEvent:(MGLMapboxEventAttributes *)event completionHandler:(nullable void (^)(NSError * _Nullable error))completionHandler;
1012
- (void)cancelAll;
1113

1214
@end
15+
16+
NS_ASSUME_NONNULL_END

platform/ios/src/MGLAnnotationImage.h

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#import <UIKit/UIKit.h>
22

3-
#import "MGLTypes.h"
4-
53
NS_ASSUME_NONNULL_BEGIN
64

75
/**

platform/ios/src/MGLAnnotationView.h

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#import <UIKit/UIKit.h>
22

3-
#import "MGLTypes.h"
4-
53
NS_ASSUME_NONNULL_BEGIN
64

75
@protocol MGLAnnotation;

platform/ios/src/MGLCalloutView.h

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#import <Foundation/Foundation.h>
22

3-
#import "MGLTypes.h"
4-
53
NS_ASSUME_NONNULL_BEGIN
64

75
@protocol MGLCalloutViewDelegate;

platform/ios/src/MGLMapView+IBAdditions.h

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#import <Foundation/Foundation.h>
22

3-
#import "MGLTypes.h"
4-
53
@class MGLMapView;
64

75
NS_ASSUME_NONNULL_BEGIN

platform/ios/src/MGLUserLocation.h

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
#import "MGLAnnotation.h"
55

6-
#import "MGLTypes.h"
7-
86
NS_ASSUME_NONNULL_BEGIN
97

108
/**

platform/ios/src/MGLUserLocationAnnotationView.h

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
#import <CoreLocation/CoreLocation.h>
33
#import <Mapbox/Mapbox.h>
44

5-
#import "MGLTypes.h"
6-
75
NS_ASSUME_NONNULL_BEGIN
86

97
@class MGLMapView;

platform/macos/DEVELOPING.md

+4-1

0 commit comments

Comments
 (0)