summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin R. Miller <incanus@codesorcery.net>2015-06-19 15:56:53 -0700
committerJustin R. Miller <incanus@codesorcery.net>2015-06-19 15:56:53 -0700
commit0955dfc19f30aedcc95e7e3c03c73d3dcc149c44 (patch)
treedb0bc4095d2381d1a1bf3ae5a07bd8c30d455714
parent898f4d3f084fc9553b92956da04019af90a4f872 (diff)
parentcfa0890d821b1d60b32f957931ffde2abc25c664 (diff)
downloadqtlocation-mapboxgl-0955dfc19f30aedcc95e7e3c03c73d3dcc149c44.tar.gz
Merge branch 'release-v0.4.0'
-rw-r--r--CHANGELOG.md24
-rw-r--r--include/mbgl/ios/MGLAccountManager.h2
-rw-r--r--include/mbgl/ios/MGLMapView.h1
-rw-r--r--ios/MapboxGL.podspec2
-rw-r--r--ios/README.md2
-rwxr-xr-xios/docs/install_docs.sh2
-rw-r--r--ios/screenshot.pngbin248491 -> 454539 bytes
-rwxr-xr-xscripts/ios/package.sh2
-rwxr-xr-xscripts/ios/run.sh2
9 files changed, 29 insertions, 8 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a417af376c..07f6672aac 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,29 @@
# Changelog
+## 0.4.0
+
+### Core
+
+- Support for polyline and polygon shape annotations. ([#1655](https://github.com/mapbox/mapbox-gl-native/issues/1655))
+- Improved placement and density of labels. ([#1666](https://github.com/mapbox/mapbox-gl-native/issues/1666), [blog](https://www.mapbox.com/blog/better-label-placement-mapbox-mobile/))
+- Improved z-ordering appearance of point markers. ([#988](https://github.com/mapbox/mapbox-gl-native/issues/988))
+- Fixed an issue in which certain features, such as roundabouts, were not rendered completely. ([#1725](https://github.com/mapbox/mapbox-gl-native/issues/1725))
+- Many bug fixes and performance and stability improvements.
+- Improved tests.
+
+### iOS
+
+- **Breaking:** `MGLMapView` no longer manages Mapbox access tokens directly; an access token cannot be passed in when initializing the map view. Instead, set `MGLMapboxAccessToken` to your access token in your app’s `Info.plist` file, or call `+[MGLAccountManager setAccessToken:]` before initializing the map view. If you were setting the access token inside an Interface Builder inspectable, also remove it from the User Defined Runtime Attributes section of the Identity inspector. ([#1553](https://github.com/mapbox/mapbox-gl-native/issues/1553))
+- **Breaking:** `MGLAccountManager`'s `-setMapboxMetricsEnabledSettingShownInApp:` has been removed. If you implement a Mapbox Metrics switch inside your app, instead of inside a Settings bundle, set `MGLMapboxMetricsEnabledSettingShownInApp` to `YES` in the `Info.plist` file. ([#1553](https://github.com/mapbox/mapbox-gl-native/issues/1553))
+- **Breaking:** `MGLMapView`'s `-mapID` has been renamed to `-styleID`. ([#1561](https://github.com/mapbox/mapbox-gl-native/issues/1561))
+- Headers have been audited for nullability, improving type safety in both Objective-C and Swift 1.2 when compiling with Xcode 6.3 or above. ([#1578](https://github.com/mapbox/mapbox-gl-native/issues/1578))
+- Fixed an issue in which the map would sometimes spin 180° while rotating the map with two fingers. ([#1453](https://github.com/mapbox/mapbox-gl-native/issues/1453))
+- Added a shortcut to the Mapbox Metrics switch in `MGLMapView`'s action sheet that is attached to the ℹ️ button. ([#1611](https://github.com/mapbox/mapbox-gl-native/issues/1611))
+- `MGLMapView` now supports Interface Builder designables. When you add an `MGLMapView` to a storyboard, it displays instructions for getting set up directly on the storyboard canvas. ([#1573](https://github.com/mapbox/mapbox-gl-native/issues/1573))
+- The default title for the user location annotation is now “You Are Here”. You can customize the title by setting `mapView.userAnnotation.title`. ([#1559](https://github.com/mapbox/mapbox-gl-native/issues/1559))
+- Internal use of the Reachability library has been cleaned up so that your app can include its own copy of Reachability. ([#1718](https://github.com/mapbox/mapbox-gl-native/issues/1718))
+- Now distribute a binary stripped of debugging symbols by default with an optional, secondary symbols build. ([#1650](https://github.com/mapbox/mapbox-gl-native/issues/1650))
+
## 0.3.1
- Temporarily removed `IBDesignable` support on iOS.
diff --git a/include/mbgl/ios/MGLAccountManager.h b/include/mbgl/ios/MGLAccountManager.h
index 2efabf8941..9bfb3b497e 100644
--- a/include/mbgl/ios/MGLAccountManager.h
+++ b/include/mbgl/ios/MGLAccountManager.h
@@ -21,8 +21,6 @@ NS_ASSUME_NONNULL_BEGIN
/** @name Providing User Metrics Opt-Out */
-/** Certain Mapbox plans require the collection of user metrics. If you aren't using a preference switch in an existing or new `Settings.bundle` in your application, set this value to `YES` to indicate that you are providing a metrics opt-out for users within your app's interface directly.
-* @param showsOptOut Whether your application's interface provides a user opt-out preference. The default value is `NO`, meaning a `Settings.bundle` is expected for providing a user opt-out preference. */
+ (void)setMapboxMetricsEnabledSettingShownInApp:(BOOL)showsOptOut __attribute__((unavailable("Set MGLMapboxMetricsEnabledSettingShownInApp in Info.plist.")));
/** Whether in-app user metrics opt-out is configured. If set to the default value of `NO`, a user opt-out preference is expected in a `Settings.bundle` that shows in the application's section within the system Settings app. */
diff --git a/include/mbgl/ios/MGLMapView.h b/include/mbgl/ios/MGLMapView.h
index abe7f851a1..bf258ee82e 100644
--- a/include/mbgl/ios/MGLMapView.h
+++ b/include/mbgl/ios/MGLMapView.h
@@ -42,7 +42,6 @@ IB_DESIGNABLE
/** @name Authorizing Access */
-/** Mapbox API access token for the map view. */
@property (nonatomic, nullable) NSString *accessToken __attribute__((unavailable("Use +[MGLAccountManager accessToken] and +[MGLAccountManager setAccessToken:].")));
#pragma mark - Managing Constraints
diff --git a/ios/MapboxGL.podspec b/ios/MapboxGL.podspec
index 4d853a146d..0eb597c5ec 100644
--- a/ios/MapboxGL.podspec
+++ b/ios/MapboxGL.podspec
@@ -1,7 +1,7 @@
Pod::Spec.new do |m|
m.name = 'MapboxGL'
- m.version = '0.3.5'
+ m.version = '0.4.0'
m.summary = 'Open source vector map solution for iOS with full styling capabilities.'
m.description = 'Open source OpenGL-based vector map solution for iOS with full styling capabilities and Cocoa bindings.'
diff --git a/ios/README.md b/ios/README.md
index 4c387f322f..545cd51080 100644
--- a/ios/README.md
+++ b/ios/README.md
@@ -4,4 +4,4 @@ An open source OpenGL-based vector map solution for iOS with full styling capabi
For more information, check out [our online overview](https://www.mapbox.com/mapbox-gl-ios/).
-![](https://raw.githubusercontent.com/mapbox/mapbox-gl-native/master/ios/screenshot.png)
+[![](https://raw.githubusercontent.com/mapbox/mapbox-gl-native/master/ios/screenshot.png)]()
diff --git a/ios/docs/install_docs.sh b/ios/docs/install_docs.sh
index 8fa768b997..eea974985e 100755
--- a/ios/docs/install_docs.sh
+++ b/ios/docs/install_docs.sh
@@ -7,7 +7,7 @@ fi
OUTPUT="/tmp/`uuidgen`"
-VERSION=$( git tag -l ios\* --sort -v:refname | sed -n '1p' | sed 's/ios-v//' )
+VERSION=$( git tag --sort -v:refname | grep -v '\-rc.' | sed -n '1p' | sed 's/^v//' )
echo "Creating new docs for ${VERSION}..."
echo
diff --git a/ios/screenshot.png b/ios/screenshot.png
index 58db4413db..81243eca75 100644
--- a/ios/screenshot.png
+++ b/ios/screenshot.png
Binary files differ
diff --git a/scripts/ios/package.sh b/scripts/ios/package.sh
index 5d7cbdc32d..25306bb066 100755
--- a/scripts/ios/package.sh
+++ b/scripts/ios/package.sh
@@ -109,7 +109,7 @@ if [ -z `which appledoc` ]; then
exit 1
fi
DOCS_OUTPUT="${OUTPUT}/static/Docs"
-DOCS_VERSION=$( git tag -l ios\* --sort -v:refname | sed -n '1p' | sed 's/^v//' )
+DOCS_VERSION=$( git tag --sort -v:refname | grep -v '\-rc.' | sed -n '1p' | sed 's/^v//' )
rm -rf /tmp/mbgl
mkdir -p /tmp/mbgl/
README=/tmp/mbgl/GL-README.md
diff --git a/scripts/ios/run.sh b/scripts/ios/run.sh
index 6d002d4853..c23b485e26 100755
--- a/scripts/ios/run.sh
+++ b/scripts/ios/run.sh
@@ -8,7 +8,7 @@ source ./scripts/ios/setup.sh
BUILDTYPE=${BUILDTYPE:-Release}
-PUBLISH_TAG=($(git show -s --format=%B | sed -n 's/.*\[publish \([a-z]\{1,\}\)-v\([0-9.]\{1,\}\)\].*/\1 \2/p'))
+PUBLISH_TAG=($(git show -s --format=%B | sed -n 's/.*\[publish \([a-z]\{1,\}\)-v\([0-9a-z.\-]\{1,\}\)\].*/\1 \2/p'))
PUBLISH_PLATFORM=${PUBLISH_TAG[0],-}
PUBLISH_VERSION=${PUBLISH_TAG[1],-}