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

[ios, macos] Make Xcode 7.3 the minimum required version #6059

Merged
merged 1 commit into from
Aug 18, 2016

Conversation

friedbunny
Copy link
Contributor

@friedbunny friedbunny commented Aug 17, 2016

This commit makes Xcode 7.3 the minimum version requirement to build and integrate the iOS SDK.

This removes #import “MGLTypes.h” from headers where it was only being used to conditionally define NS_ASSUME_NONNULL_* and various nullability traits, which were necessary to support Xcode 6.

Xcode 7.3 becomes the minimum supported version because of NS_SWIFT_NAME, which is not fully supported by lower versions (and we were already using it).

@frederoni I also removed the MGLTypes.h import from the runtime styling generation template and regenerated.

Fixes #5472.

/cc @1ec5 @tmcw

@friedbunny friedbunny added iOS Mapbox Maps SDK for iOS build documentation labels Aug 17, 2016
@friedbunny friedbunny added this to the ios-v3.4.0 milestone Aug 17, 2016
@friedbunny friedbunny self-assigned this Aug 17, 2016
@mention-bot
Copy link

@friedbunny, thanks for your PR! By analyzing this pull request, we identified @1ec5 and @incanus to be potential reviewers.

@friedbunny friedbunny changed the title [ios] Remove nullability shim for versions of Xcode lower than 7.3 [ios] Make Xcode 7.3 the minimum required version Aug 17, 2016
@friedbunny
Copy link
Contributor Author

This PR doesn’t handle macOS yet.

@@ -6,6 +6,7 @@ Mapbox welcomes participation and contributions from everyone. Please read [CONT

* A new runtime styling API allows you to adjust the style and content of the base map dynamically. All the options available in [Mapbox Studio](https://www.mapbox.com/studio/) are now exposed via MGLStyle and subclasses of MGLStyleLayer and MGLSource. ([#5727](https://github.com/mapbox/mapbox-gl-native/pull/5727))
* The user location annotation is now customizable via the newly added `MGLUserLocationAnnotationView` class. ([#5882](https://github.com/mapbox/mapbox-gl-native/pull/5882))
* Xcode 7.3 or higher is now officially required to build and integrate this SDK. ([#6059](https://github.com/mapbox/mapbox-gl-native/issues/6059))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: remove “officially”. Also, “install” or “link against” would be more relevant to most readers than “build and integrate”.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about “use this SDK”?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure.

@1ec5
Copy link
Contributor

1ec5 commented Aug 17, 2016

  • Update the minimum required Xcode version in the build requirements (also for the corresponding macOS document)
  • While you’re at it, mention that headers should be audited for nullability in the new source file guide (also for the corresponding macOS document)

@friedbunny
Copy link
Contributor Author

Update the minimum required Xcode version in the build requirements

This was already done for iOS; now it’s also done for macOS.

@1ec5
Copy link
Contributor

1ec5 commented Aug 18, 2016

👍

@friedbunny friedbunny force-pushed the fb-xcode-7.3 branch 2 times, most recently from f7e53d4 to 25dfa83 Compare August 18, 2016 15:31
@friedbunny friedbunny added the macOS Mapbox Maps SDK for macOS label Aug 18, 2016
@friedbunny friedbunny changed the title [ios] Make Xcode 7.3 the minimum required version [ios, macos] Make Xcode 7.3 the minimum required version Aug 18, 2016
- 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.
@friedbunny friedbunny merged commit 256689a into master Aug 18, 2016
@friedbunny friedbunny deleted the fb-xcode-7.3 branch August 18, 2016 16:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
build documentation iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants