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

Commit

Permalink
Cherry pick 458 into release-z (#460)
Browse files Browse the repository at this point in the history
* Support Xcode 12 by excluding arm64 simulators and bumping Telemetry to 0.10.4 (#458)

* [test] Test build fix with MME 0.10.3 with Xcode 12

* Prep for telemetry 0.10.4 [skip ci]

* Some additional tweaks. [skip ci]

* Add Excluded archs

* Update telemetry to 0.10.4

* Remove change log entries introduced from gl-native 5.0.0

* Bump build number

* Cleaned up change log

* Re-add constrain mode.

Co-authored-by: Julian Rex <[email protected]>

* Trigger build

Co-authored-by: Sudarsana Babu Nagineni <[email protected]>
Co-authored-by: Julian Rex <[email protected]>
  • Loading branch information
3 people authored Sep 17, 2020
1 parent 0d30497 commit 3501f47
Show file tree
Hide file tree
Showing 19 changed files with 46 additions and 55 deletions.
4 changes: 2 additions & 2 deletions Cartfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
binary "https://api.mapbox.com/downloads/v2/carthage/mobile-maps-gl-core/mapbox-ios-sdk-gl-core-static.json" == 5.0.1
github "mapbox/mapbox-events-ios" ~> 0.10.2
binary "https://api.mapbox.com/downloads/v2/carthage/mobile-maps-gl-core/mapbox-ios-sdk-gl-core-static.json" == 4.0.0
github "mapbox/mapbox-events-ios" ~> 0.10.4
4 changes: 2 additions & 2 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
binary "https://api.mapbox.com/downloads/v2/carthage/mobile-maps-gl-core/mapbox-ios-sdk-gl-core-static.json" "5.0.1"
github "mapbox/mapbox-events-ios" "v0.10.3"
binary "https://api.mapbox.com/downloads/v2/carthage/mobile-maps-gl-core/mapbox-ios-sdk-gl-core-static.json" "4.0.0"
github "mapbox/mapbox-events-ios" "v0.10.4"
15 changes: 4 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export TARGET_BRANCH ?= master

CMAKE ?= cmake


ifeq ($(BUILDTYPE), Release)
else ifeq ($(BUILDTYPE), RelWithDebInfo)
else ifeq ($(BUILDTYPE), Sanitize)
Expand Down Expand Up @@ -142,13 +141,9 @@ ifneq ($(SKIP_TESTING),)
IOS_XCODEBUILD_SIM += -skip-testing:$(SKIP_TESTING)
endif

ifeq ($(BETA),true)
IOS_XCODEBUILD_SIM += -xcconfig xcode-beta-3-build-fix.xcconfig
else
ifneq ($(CI),)
IOS_XCODEBUILD_SIM += -xcconfig platform/darwin/ci.xcconfig
endif
endif

$(IOS_OUTPUT_PATH):
mkdir -p $@
Expand All @@ -157,12 +152,7 @@ $(NETRC_FILE):
@echo "$$NETRC" > $(NETRC_FILE)

$(CARTHAGE_DEPS): $(NETRC_FILE) | $(IOS_OUTPUT_PATH)
ifeq ($(BETA),true)
@echo "Beta Xcode - applying Carthage workaround"
XCODE_XCCONFIG_FILE=$(CURDIR)/xcode-beta-3-build-fix.xcconfig carthage bootstrap --platform iOS --use-netrc
else
carthage bootstrap --platform iOS --use-netrc
endif
@echo "Finishing bootstrapping"

$(IOS_USER_DATA_PATH)/WorkspaceSettings.xcsettings: platform/ios/WorkspaceSettings.xcsettings
Expand Down Expand Up @@ -333,5 +323,8 @@ clean:

.PHONY: distclean
distclean: clean
-rm -rf ./mason_packages
-rm Cartfile.resolved
-rm -rf Carthage \
~/Library/Caches/carthage \
~/Library/Caches/org.carthage.kit
-rm -rf ./node_modules
18 changes: 9 additions & 9 deletions platform/ios/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,33 @@

Mapbox welcomes participation and contributions from everyone. Please read [CONTRIBUTING.md](../../CONTRIBUTING.md) to get started.

## 6.2.0
## 6.2.0 - September 17, 2020

**This release supports iOS 14 and Xcode 12**
For building with Xcode 12, please ensure that mapbox-events-ios is at version 0.10.4 or higher. Please see our [dependency instructions](https://docs.mapbox.com/ios/maps/overview/#add-the-dependency) for more details. This version does not support Apple Silicon Macs (arm64).

### ✨ New features

* Added `MGLLocationManager.accuracyAuthorization` to check the level of accuracy the app is allowed to support. ([#361](https://github.com/mapbox/mapbox-gl-native-ios/pull/361))
* Added `[MGLLocationManager requestTemporaryFullAccuracyAuthorizationWithPurposeKeyproperty:]` to allow developers request just-in-time full-accuracy permissions. ([#361](https://github.com/mapbox/mapbox-gl-native-ios/pull/361))
* Added `[MGLLocationManager requestTemporaryFullAccuracyAuthorizationWithPurposeKey:]` to allow developers request just-in-time full-accuracy permissions. ([#361](https://github.com/mapbox/mapbox-gl-native-ios/pull/361))
* Added `[MGLLocationManagerDelegate locationManagerDidChangeAuthorization:]` to let `MGLMapView` know about privacy changes. ([#376](https://github.com/mapbox/mapbox-gl-native-ios/pull/376))
* Added `[MGLMapViewDelegate mapView:didChangeLocationManagerAuthorization:]` to allow developers adjust their apps to privacy settings changes. ([#376](https://github.com/mapbox/mapbox-gl-native-ios/pull/376))
* Added an approximate user location halo when `MGLLocationManager.accuracyAuthorization` is set to `CLAccuracyAuthorizationReducedAccuracy`. ([#381](https://github.com/mapbox/mapbox-gl-native-ios/pull/381))
* The `MGLAccuracyAuthorizationDescription` as element of `NSLocationTemporaryUsageDescriptionDictionary` Info.plist key can now be set to describe why you request accuracy authorization. ([#392](https://github.com/mapbox/mapbox-gl-native-ios/pull/392))
* Added `[MGLMapViewDelegate mapViewStyleForDefaultUserLocationAnnotationView:]` and `MGLUserLocationAnnotationViewStyle` class to allow developers customize the default user location annotation view UI style. ([#403](https://github.com/mapbox/mapbox-gl-native-ios/pull/403))
* Added `MGLNetworkConfiguration.connected` property to enforce `MGLMapView` to use cached tiles. ([#416](https://github.com/mapbox/mapbox-gl-native-ios/pull/416))
* Enabled local glyph rasterization for all writing systems. The new feature uses real glyph metrics and improves rendering quality for mixed (Latin / CJKV) labels. (#561)
* Minimum and Maximum allowed values are now considered for style layer properties, as defined by the specification. Tf a style property is assigned with a value outside the allowed range, the property gets assigned with its default value instead. (#647)
* Fixed an issue that caused ornaments to consider safe areas when `MGLMapView.automaticallyAdjustsContentInset` is set to `NO`. ([#420](https://github.com/mapbox/mapbox-gl-native-ios/pull/420))

### 🐞 Bug fixes

* Fixed an issue where the map would hang periodically (on iOS 14 beta). ([#411](https://github.com/mapbox/mapbox-gl-native-ios/pull/411))
* Fixed a sporadic crash when the application "resigns active", for example, when showing Control Center. ([#412](https://github.com/mapbox/mapbox-gl-native-ios/pull/412))
* Fixed an issue where the map would hang periodically (on iOS 14). ([#411](https://github.com/mapbox/mapbox-gl-native-ios/pull/411))
* Fixed a sporadic crash when the application "resigns active", for example, when showing Control Center. ([#412](https://github.com/mapbox/mapbox-gl-native-ios/pull/412))
* Fixed an issue that caused ornaments to consider safe areas when `MGLMapView.automaticallyAdjustsContentInset` is set to `NO`. ([#420](https://github.com/mapbox/mapbox-gl-native-ios/pull/420))
* Fixed an issue that caused rendering crashes when entering the background. ([#432](https://github.com/mapbox/mapbox-gl-native-ios/pull/432))

### 🔧 Dependencies

* Core library updated to `5.0.1`. ([#438](https://github.com/mapbox/mapbox-gl-native-ios/pull/453))
* `mapbox-events-ios` versioning updated to `~> 0.10.2`.
* Supported Xcode 12 by updating `mapbox-events-ios` to `~> 0.10.4`.([#458](https://github.com/mapbox/mapbox-gl-native-ios/pull/458))
* Core library updated to `4.0.0`. ([#458](https://github.com/mapbox/mapbox-gl-native-ios/pull/458))

## 6.1.0 - August 26, 2020

Expand Down
2 changes: 1 addition & 1 deletion platform/ios/Integration Test Harness/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundleShortVersionString</key>
<string>6.2.0</string>
<key>CFBundleVersion</key>
<string>15269</string>
<string>15270</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
Expand Down
2 changes: 1 addition & 1 deletion platform/ios/Integration Tests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
<key>CFBundleShortVersionString</key>
<string>6.2.0</string>
<key>CFBundleVersion</key>
<string>15269</string>
<string>15270</string>
</dict>
</plist>
2 changes: 1 addition & 1 deletion platform/ios/Mapbox-iOS-SDK-snapshot-dynamic.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ Pod::Spec.new do |m|

m.preserve_path = '**/*.bcsymbolmap'

m.dependency "MapboxMobileEvents", "~> 0.10.2"
m.dependency "MapboxMobileEvents", "~> 0.10.4"

end
2 changes: 1 addition & 1 deletion platform/ios/Mapbox-iOS-SDK-stripped.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ Pod::Spec.new do |m|

m.preserve_path = '**/*.bcsymbolmap'

m.dependency "MapboxMobileEvents", "~> 0.10.2"
m.dependency "MapboxMobileEvents", "~> 0.10.4"

end
2 changes: 1 addition & 1 deletion platform/ios/Mapbox-iOS-SDK.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ Pod::Spec.new do |m|

m.preserve_path = '**/*.bcsymbolmap'

m.dependency "MapboxMobileEvents", "~> 0.10.2"
m.dependency "MapboxMobileEvents", "~> 0.10.4"
end
2 changes: 1 addition & 1 deletion platform/ios/app/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<key>CFBundleSignature</key>
<string>MBGL</string>
<key>CFBundleVersion</key>
<string>15269</string>
<string>15270</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSLocationTemporaryUsageDescriptionDictionary</key>
Expand Down
2 changes: 1 addition & 1 deletion platform/ios/benchmark/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<key>CFBundleSignature</key>
<string>MBGL</string>
<key>CFBundleVersion</key>
<string>15269</string>
<string>15270</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSHumanReadableCopyright</key>
Expand Down
2 changes: 1 addition & 1 deletion platform/ios/framework/Info-static.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>15269</string>
<string>15270</string>
<key>MGLCommitHash</key>
<string>$(CURRENT_COMMIT_HASH)</string>
<key>MGLSemanticVersionString</key>
Expand Down
2 changes: 1 addition & 1 deletion platform/ios/framework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>15269</string>
<string>15270</string>
<key>MGLCommitHash</key>
<string>$(CURRENT_COMMIT_HASH)</string>
<key>MGLSemanticVersionString</key>
Expand Down
3 changes: 3 additions & 0 deletions platform/ios/ios.xcconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#include "../darwin/darwin.xcconfig"

LIBRARY_SEARCH_PATHS = $(LIBRARY_SEARCH_PATHS) $(PROJECT_DIR)/vendor/mapbox-accounts-ios

EXCLUDED_ARCHS = $(inherited) $(EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_$(EFFECTIVE_PLATFORM_SUFFIX)__NATIVE_ARCH_64_BIT_$(NATIVE_ARCH_64_BIT)__XCODE_$(XCODE_VERSION_MAJOR))
EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64__XCODE_1200 = arm64 arm64e armv7 armv7s armv6 armv8
18 changes: 9 additions & 9 deletions platform/ios/ios.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3767,7 +3767,7 @@
CLANG_ENABLE_MODULES = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 15269;
CURRENT_PROJECT_VERSION = 15270;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
GCC_PREPROCESSOR_DEFINITIONS = "";
Expand Down Expand Up @@ -3820,7 +3820,7 @@
CODE_SIGN_STYLE = Automatic;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 15269;
DYLIB_CURRENT_VERSION = 15270;
DYLIB_INSTALL_NAME_BASE = "@rpath";
ENABLE_BITCODE = YES;
GCC_PREPROCESSOR_DEFINITIONS = "NDEBUG=1";
Expand All @@ -3844,7 +3844,7 @@
buildSettings = {
BITCODE_GENERATION_MODE = bitcode;
DEFINES_MODULE = YES;
DYLIB_CURRENT_VERSION = 15269;
DYLIB_CURRENT_VERSION = 15270;
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)",
Expand Down Expand Up @@ -3966,7 +3966,7 @@
CLANG_ENABLE_MODULES = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 15269;
CURRENT_PROJECT_VERSION = 15270;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_TESTABILITY = YES;
GCC_OPTIMIZATION_LEVEL = 0;
Expand All @@ -3990,7 +3990,7 @@
CLANG_ENABLE_MODULES = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 15269;
CURRENT_PROJECT_VERSION = 15270;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
GCC_PREPROCESSOR_DEFINITIONS = "";
Expand Down Expand Up @@ -4108,7 +4108,7 @@
CODE_SIGN_STYLE = Automatic;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 15269;
DYLIB_CURRENT_VERSION = 15270;
DYLIB_INSTALL_NAME_BASE = "@rpath";
ENABLE_BITCODE = YES;
INFOPLIST_FILE = framework/Info.plist;
Expand Down Expand Up @@ -4136,7 +4136,7 @@
DEFINES_MODULE = YES;
DEPLOYMENT_POSTPROCESSING = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 15269;
DYLIB_CURRENT_VERSION = 15270;
DYLIB_INSTALL_NAME_BASE = "@rpath";
ENABLE_BITCODE = YES;
GCC_PREPROCESSOR_DEFINITIONS = "NDEBUG=1";
Expand Down Expand Up @@ -4183,7 +4183,7 @@
buildSettings = {
BITCODE_GENERATION_MODE = bitcode;
DEFINES_MODULE = YES;
DYLIB_CURRENT_VERSION = 15269;
DYLIB_CURRENT_VERSION = 15270;
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)",
Expand All @@ -4208,7 +4208,7 @@
BITCODE_GENERATION_MODE = bitcode;
DEFINES_MODULE = YES;
DEPLOYMENT_POSTPROCESSING = YES;
DYLIB_CURRENT_VERSION = 15269;
DYLIB_CURRENT_VERSION = 15270;
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)",
Expand Down
10 changes: 2 additions & 8 deletions platform/ios/scripts/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,10 @@ if [[ ${BUILD_STATIC} == true ]]; then
fi

XCCONFIG=''
if [[ ! -z "${BETA:=}" ]]; then
xcconfig='xcode-beta-3-build-fix.xcconfig'
if [[ ! -z "${CI:=}" ]]; then
xcconfig='platform/darwin/ci.xcconfig'
echo "CI environment, using ${xcconfig}"
XCCONFIG="-xcconfig ./${xcconfig}"
else
if [[ ! -z "${CI:=}" ]]; then
xcconfig='platform/darwin/ci.xcconfig'
echo "CI environment, using ${xcconfig}"
XCCONFIG="-xcconfig ./${xcconfig}"
fi
fi

mkdir -p build/ios
Expand Down
5 changes: 5 additions & 0 deletions platform/ios/src/MGLMapView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1668,6 +1668,11 @@ - (void)createDisplayLink
[self updateDisplayLinkPreferredFramesPerSecond];

[self.displayLink addToRunLoop:[NSRunLoop currentRunLoop] forMode:NSRunLoopCommonModes];

if (_mbglMap && self.mbglMap.getMapOptions().constrainMode() == mbgl::ConstrainMode::None)
{
self.mbglMap.setConstrainMode(mbgl::ConstrainMode::HeightOnly);
}
}

- (void)destroyDisplayLink
Expand Down
2 changes: 1 addition & 1 deletion platform/ios/test/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>15269</string>
<string>15270</string>
</dict>
</plist>
4 changes: 0 additions & 4 deletions xcode-beta-3-build-fix.xcconfig

This file was deleted.

0 comments on commit 3501f47

Please sign in to comment.