Skip to content

Commit

Permalink
update with version 0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaudM authored and GenChe committed Oct 11, 2023
1 parent a74c9ef commit 9de77d3
Show file tree
Hide file tree
Showing 22 changed files with 732 additions and 323 deletions.
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,36 @@

---

## [0.9.0]

### Added

* MapSDK: add helper method to translate step data into textual instructions
* CoreSDK: add itinerary search options for backend
* MapSDK: add onMapClick event
* MapSDK: create a default GPS (fused) LocationSource

### Changed

* MapSDK: revert back didTouchFeature delegate method

### Fixed

* CoreSDK: fix Coordinate decoding/encoding
* MapSDK: onMapClick called twice
* MapSDK: outdoors, the user's location annotation is displayed in gray
* MapSDK: user position is not projected on stairs

### Deprecated

* MapSDK: `map(_: MapView, didTouchFeature feature: MGLFeature)` delegate method has been deprecated and will be removed soon. Use `PointOfInterestManagerDelegate.pointOfInterestManager(_: PointOfInterestManager, didSelectPointOfInterest poi: PointOfInterest)` instead.

### Dependencies

* Turf 2.6.1 -> 2.7.0
* Alamofire 5.7.1 -> 5.8.0
* RxSwift 6.5.0 -> 6.6.0

## [0.8.0]

### Breaking changes
Expand Down
32 changes: 24 additions & 8 deletions Examples.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@

/* Begin PBXBuildFile section */
41C17AAA0EC7A03E52B58DB0 /* Pods_MapExamples.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3D19C44384A8C95BB304500A /* Pods_MapExamples.framework */; };
BBC336812AD58F9000C9CFB9 /* Config.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBC336802AD58F8F00C9CFB9 /* Config.swift */; };
BBC336832AD58F9D00C9CFB9 /* LocationSourceType.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBC336822AD58F9D00C9CFB9 /* LocationSourceType.swift */; };
BBC336852AD5918E00C9CFB9 /* SettingsBundleHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBC336842AD5918E00C9CFB9 /* SettingsBundleHelper.swift */; };
BBC3368B2AD5938D00C9CFB9 /* PolestarLocationSource.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBC3368A2AD5938D00C9CFB9 /* PolestarLocationSource.swift */; };
D208E10729C312C0007CCC8A /* Constants.swift in Sources */ = {isa = PBXBuildFile; fileRef = D208E10629C312C0007CCC8A /* Constants.swift */; };
D2224FB92A8F5C4A00E0982E /* MapViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D2224FB62A8F5C4A00E0982E /* MapViewController.swift */; };
D2224FBA2A8F5C4A00E0982E /* PolestarLocationSource.swift in Sources */ = {isa = PBXBuildFile; fileRef = D2224FB72A8F5C4A00E0982E /* PolestarLocationSource.swift */; };
D2224FBB2A8F5C4A00E0982E /* LocationSources.swift in Sources */ = {isa = PBXBuildFile; fileRef = D2224FB82A8F5C4A00E0982E /* LocationSources.swift */; };
D2224FBD2A8F5D0300E0982E /* consumer_data.json in Resources */ = {isa = PBXBuildFile; fileRef = D2224FBC2A8F5D0300E0982E /* consumer_data.json */; };
D250CA2B28D31E4D00DBFF5D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = D250CA2528D31E4D00DBFF5D /* Assets.xcassets */; };
D250CA2C28D31E4D00DBFF5D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D250CA2628D31E4D00DBFF5D /* LaunchScreen.storyboard */; };
Expand All @@ -32,10 +34,12 @@
1EC7D609D684FC24A57CFD40 /* Pods-MapExamples.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MapExamples.debug.xcconfig"; path = "Target Support Files/Pods-MapExamples/Pods-MapExamples.debug.xcconfig"; sourceTree = "<group>"; };
3D19C44384A8C95BB304500A /* Pods_MapExamples.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_MapExamples.framework; sourceTree = BUILT_PRODUCTS_DIR; };
5A102B57F41605E92501ED77 /* Pods-MapExamples.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MapExamples.release.xcconfig"; path = "Target Support Files/Pods-MapExamples/Pods-MapExamples.release.xcconfig"; sourceTree = "<group>"; };
BBC336802AD58F8F00C9CFB9 /* Config.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Config.swift; sourceTree = "<group>"; };
BBC336822AD58F9D00C9CFB9 /* LocationSourceType.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LocationSourceType.swift; sourceTree = "<group>"; };
BBC336842AD5918E00C9CFB9 /* SettingsBundleHelper.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SettingsBundleHelper.swift; sourceTree = "<group>"; };
BBC3368A2AD5938D00C9CFB9 /* PolestarLocationSource.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PolestarLocationSource.swift; sourceTree = "<group>"; };
D208E10629C312C0007CCC8A /* Constants.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Constants.swift; sourceTree = "<group>"; };
D2224FB62A8F5C4A00E0982E /* MapViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MapViewController.swift; sourceTree = "<group>"; };
D2224FB72A8F5C4A00E0982E /* PolestarLocationSource.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PolestarLocationSource.swift; sourceTree = "<group>"; };
D2224FB82A8F5C4A00E0982E /* LocationSources.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LocationSources.swift; sourceTree = "<group>"; };
D2224FBC2A8F5D0300E0982E /* consumer_data.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = consumer_data.json; sourceTree = "<group>"; };
D250C9D728D3176F00DBFF5D /* MapExamples.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MapExamples.app; sourceTree = BUILT_PRODUCTS_DIR; };
D250CA2528D31E4D00DBFF5D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
Expand Down Expand Up @@ -75,6 +79,14 @@
path = Pods;
sourceTree = "<group>";
};
BBC336892AD5936F00C9CFB9 /* LocationSources */ = {
isa = PBXGroup;
children = (
BBC3368A2AD5938D00C9CFB9 /* PolestarLocationSource.swift */,
);
path = LocationSources;
sourceTree = "<group>";
};
D250C9CE28D3176F00DBFF5D = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -145,8 +157,10 @@
D2A55FDD297FE2F100402286 /* Sources */ = {
isa = PBXGroup;
children = (
BBC336802AD58F8F00C9CFB9 /* Config.swift */,
D208E10629C312C0007CCC8A /* Constants.swift */,
D25B9A9429CB4405000F084A /* ConsumerData.swift */,
BBC336822AD58F9D00C9CFB9 /* LocationSourceType.swift */,
D25B9A8A29CB10C4000F084A /* ViewControllers */,
);
path = Sources;
Expand All @@ -166,10 +180,10 @@
D2A6254C28F6AEB900274721 /* Sources */ = {
isa = PBXGroup;
children = (
BBC336892AD5936F00C9CFB9 /* LocationSources */,
D2A6254D28F6AEB900274721 /* AppDelegate.swift */,
D2224FB82A8F5C4A00E0982E /* LocationSources.swift */,
D2224FB62A8F5C4A00E0982E /* MapViewController.swift */,
D2224FB72A8F5C4A00E0982E /* PolestarLocationSource.swift */,
BBC336842AD5918E00C9CFB9 /* SettingsBundleHelper.swift */,
D2A6255328F6C08400274721 /* ToastHelper.swift */,
);
path = Sources;
Expand Down Expand Up @@ -299,12 +313,14 @@
D29592772A05638100C3340A /* InitialViewController.swift in Sources */,
D2224FB92A8F5C4A00E0982E /* MapViewController.swift in Sources */,
D2A6254E28F6AEB900274721 /* AppDelegate.swift in Sources */,
D2224FBB2A8F5C4A00E0982E /* LocationSources.swift in Sources */,
BBC336852AD5918E00C9CFB9 /* SettingsBundleHelper.swift in Sources */,
BBC336832AD58F9D00C9CFB9 /* LocationSourceType.swift in Sources */,
BBC336812AD58F9000C9CFB9 /* Config.swift in Sources */,
D25B9A9929CC5A67000F084A /* SamplesTableViewController.swift in Sources */,
D25B9A9029CB1125000F084A /* POIsViewController.swift in Sources */,
D2A6255428F6C08400274721 /* ToastHelper.swift in Sources */,
BBC3368B2AD5938D00C9CFB9 /* PolestarLocationSource.swift in Sources */,
D25B9A8E29CB1119000F084A /* LevelsViewController.swift in Sources */,
D2224FBA2A8F5C4A00E0982E /* PolestarLocationSource.swift in Sources */,
D208E10729C312C0007CCC8A /* Constants.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 35 additions & 13 deletions Examples/Map/Resources/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@
<rect key="frame" x="0.0" y="0.0" width="390" height="844"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="23254" borderStyle="roundedRect" placeholder="Map ID" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="GdK-E3-PaG">
<rect key="frame" x="158.33333333333334" y="223" width="73.666666666666657" height="34"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" autocorrectionType="no" keyboardType="numberPad" enablesReturnKeyAutomatically="YES"/>
</textField>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="RfC-aW-f5l">
<rect key="frame" x="145.33333333333334" y="775.66666666666663" width="99.333333333333343" height="34.333333333333371"/>
<color key="tintColor" red="0.0" green="0.47843137254901963" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
Expand All @@ -32,20 +27,47 @@
<action selector="showMap" destination="9Br-Si-CgX" eventType="touchUpInside" id="IV1-Bo-3Sm"/>
</connections>
</button>
<pickerView contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="bfH-mK-K5J">
<rect key="frame" x="35" y="433" width="320" height="216"/>
</pickerView>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" alignment="center" spacing="8" translatesAutoresizingMaskIntoConstraints="NO" id="IoM-Le-ifI" userLabel="Map Id Stack View">
<rect key="frame" x="158.33333333333334" y="194" width="73.666666666666657" height="62.333333333333314"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Map Id" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="x0t-p0-MjJ">
<rect key="frame" x="10.666666666666657" y="0.0" width="52" height="20.333333333333332"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="23254" borderStyle="roundedRect" placeholder="Map ID" textAlignment="center" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="GdK-E3-PaG">
<rect key="frame" x="0.0" y="28.333333333333343" width="73.666666666666671" height="34"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" autocorrectionType="no" keyboardType="numberPad" enablesReturnKeyAutomatically="YES"/>
</textField>
</subviews>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" alignment="center" spacing="8" translatesAutoresizingMaskIntoConstraints="NO" id="9FZ-pv-L5Q" userLabel="Location Source Stack View">
<rect key="frame" x="35" y="491.33333333333331" width="320" height="244.33333333333331"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Location Source" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="TDj-o5-D1o">
<rect key="frame" x="98.333333333333343" y="0.0" width="123.33333333333334" height="20.333333333333332"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<pickerView contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="bfH-mK-K5J">
<rect key="frame" x="0.0" y="28.333333333333314" width="320" height="216"/>
</pickerView>
</subviews>
</stackView>
</subviews>
<viewLayoutGuide key="safeArea" id="zce-M4-BEm"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="GdK-E3-PaG" firstAttribute="top" secondItem="zce-M4-BEm" secondAttribute="top" constant="176" id="3my-Tb-FlD"/>
<constraint firstItem="RfC-aW-f5l" firstAttribute="top" relation="greaterThanOrEqual" secondItem="bfH-mK-K5J" secondAttribute="bottom" constant="20" id="G1j-72-ixr"/>
<constraint firstItem="bfH-mK-K5J" firstAttribute="top" secondItem="GdK-E3-PaG" secondAttribute="bottom" constant="176" id="LPY-6Y-a8b"/>
<constraint firstItem="bfH-mK-K5J" firstAttribute="centerX" secondItem="N3a-rT-LhF" secondAttribute="centerX" id="Oxy-bh-PG4"/>
<constraint firstItem="IoM-Le-ifI" firstAttribute="top" secondItem="zce-M4-BEm" secondAttribute="top" constant="147" id="IM5-cQ-cMT"/>
<constraint firstItem="9FZ-pv-L5Q" firstAttribute="centerX" secondItem="zce-M4-BEm" secondAttribute="centerX" id="WaA-gU-8bF"/>
<constraint firstItem="RfC-aW-f5l" firstAttribute="centerX" secondItem="N3a-rT-LhF" secondAttribute="centerX" id="ed5-3h-mhG"/>
<constraint firstItem="GdK-E3-PaG" firstAttribute="centerX" secondItem="N3a-rT-LhF" secondAttribute="centerX" id="iO2-dn-5lv"/>
<constraint firstItem="RfC-aW-f5l" firstAttribute="top" secondItem="9FZ-pv-L5Q" secondAttribute="bottom" constant="40" id="nVN-WZ-MQa"/>
<constraint firstItem="IoM-Le-ifI" firstAttribute="centerX" secondItem="zce-M4-BEm" secondAttribute="centerX" id="rCI-zB-jvN"/>
<constraint firstItem="zce-M4-BEm" firstAttribute="bottom" secondItem="RfC-aW-f5l" secondAttribute="bottom" id="rbo-rz-hhj"/>
<constraint firstItem="9FZ-pv-L5Q" firstAttribute="top" relation="greaterThanOrEqual" secondItem="IoM-Le-ifI" secondAttribute="bottom" constant="20" id="zi1-Q0-tsj"/>
</constraints>
</view>
<connections>
Expand Down
Loading

0 comments on commit 9de77d3

Please sign in to comment.