Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Objective-C compatibility; adopt Swift language features #382

Merged
merged 89 commits into from
Dec 11, 2019
Merged
Changes from 1 commit
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
c1aad9d
Initial work, replacing enums and the like
Sep 27, 2019
a4a78e7
Finishing up. Only remaining thing to do is replace `NSSecureCoding` …
Sep 27, 2019
55c6948
Starting on Coder integration and setting up proper swift error type
Oct 1, 2019
593efd3
Completed MBDirectionsOptions, things are really coming along now.
Oct 4, 2019
a825113
WIP: DirectionsResult and RouteLeg converted.
Oct 8, 2019
74e0838
Moving right along, trying to tackle visual instructions and route st…
Oct 10, 2019
48406ba
Fixing remaining models and `calculate(options:completionHandler:)` (…
Oct 15, 2019
e19066e
Build Success
Oct 16, 2019
e03e295
Both examples working now.
Oct 16, 2019
0d186e0
Continuing to fix tests
Oct 17, 2019
9cffdd3
WIP: Test Fixes
Oct 22, 2019
496c4e6
Fixed all tests but V5 tests, which are the only ones remaining.
Oct 23, 2019
6149c15
Fixing tests. One remains.
Oct 25, 2019
298cd42
Fixing last outstanding test. I hope.
Oct 25, 2019
41e3d64
Fixing CI test failures
Oct 25, 2019
e08c4bc
Fixing CI test failures
Oct 25, 2019
22feb9d
Fixing import issue
Oct 25, 2019
7bb9613
hopefully fixing SPM issue once and for all
Oct 28, 2019
6baadd5
Fixing build error
Oct 28, 2019
eab78de
Clean-up
Oct 29, 2019
f3c7ed5
fixing issues with protection level re: OptionSets
Oct 29, 2019
f916f83
Adding protocol scheme that allows nav to extend DirectionsError
Oct 29, 2019
01fae5e
WIP: Implementing Equatable
Oct 29, 2019
064828c
Hashable types are equatable
1ec5 Oct 30, 2019
ef7dad0
Streamline geometry conversion
1ec5 Oct 30, 2019
d1e6588
Simplified index set creation
1ec5 Oct 30, 2019
9ed0230
Import CoreLocation where used
1ec5 Oct 30, 2019
78b529d
Updated enum references in documentation
1ec5 Oct 30, 2019
2f5f207
These are speeds people walk, not “Mapbox” speeds
1ec5 Oct 30, 2019
abfaed3
Updated references to classes in documentation
1ec5 Oct 30, 2019
0f24570
Renamed lineString to shape
Oct 30, 2019
aaf20a3
Rewrote errors based on LocalizedError
1ec5 Oct 30, 2019
4292391
Reverted to JSON-representable objects; implemented JSON comparison
1ec5 Oct 30, 2019
e660897
Test Fixes
Oct 30, 2019
9a6077e
More test fixes -- instructions
Oct 30, 2019
73d129a
Rewrote visual instruction component
1ec5 Oct 31, 2019
bf2ebb0
Fixed expectation usage
1ec5 Oct 31, 2019
d6dc93a
Fixed intersection test fixture
1ec5 Oct 31, 2019
c385ce7
Fixing RouteStepTest
Oct 31, 2019
f1504a9
testing
Oct 31, 2019
135473a
Fixing all remaining test failures
Oct 31, 2019
facce5b
Test structure of rate limiting error
1ec5 Oct 31, 2019
1c4a044
Removed extraneous whitespace
1ec5 Nov 1, 2019
a310701
Removed extraneous type aliases
1ec5 Nov 1, 2019
21b5d03
Corrected indentation; removed extraneous newlines
1ec5 Nov 2, 2019
a615877
Removed InstructionFormat
1ec5 Nov 2, 2019
d9a1f41
Cleaned up marks; moved Codable, Equatable to extensions
1ec5 Nov 2, 2019
9ac36fd
Corrected coordinate bounds documentation
1ec5 Nov 2, 2019
69e84a4
Flatten Lane into Intersection
1ec5 Nov 2, 2019
1bbecb5
Avoid ExpressibleByStringLiteral for enumeration types
1ec5 Nov 2, 2019
0ffc130
Fixed pronunciation coding
1ec5 Nov 2, 2019
8ace2aa
Rewrote RouteStep coding
1ec5 Nov 2, 2019
486481b
Test round-tripping steps without diffing strings
1ec5 Nov 2, 2019
2ef5df9
Flattened example application group structure
1ec5 Nov 2, 2019
5f318ed
Removed class prefix from file names
1ec5 Nov 2, 2019
9abbc2a
Removed references to CMapboxDirections
1ec5 Nov 2, 2019
16e43ff
Renamed map matching group
1ec5 Nov 2, 2019
6ae9af5
Alphabetized files in project
1ec5 Nov 2, 2019
9542a21
Fixed merge errors with DirectionsPriority
1ec5 Nov 2, 2019
f9b2c90
Restored missing documentation comments
1ec5 Nov 2, 2019
f594b28
Simplified example map usage
1ec5 Nov 2, 2019
8c8c988
Perform bounds checking in release code too
1ec5 Nov 2, 2019
7381655
Obviated an implicitly unwrapped optional
1ec5 Nov 2, 2019
e22d22b
Updated changelog
1ec5 Nov 2, 2019
17c7367
Renamed DirectionsResult shape coding key for consistency
1ec5 Nov 3, 2019
08570ec
Corrected Waypoint documentation
1ec5 Nov 3, 2019
45cd7ee
Updated some test fixtures
1ec5 Nov 5, 2019
a1e3a74
Simplified walking options test
1ec5 Nov 5, 2019
62a3d81
Corrected signature of MatchOptions(waypoints:profileIdentifier:)
1ec5 Nov 23, 2019
81504bb
Fixed Route documentation
1ec5 Nov 23, 2019
9f88ac6
Throw error when decoding without options
1ec5 Nov 23, 2019
a0a01d7
Noted source/destination optionality in changelog
1ec5 Nov 23, 2019
ce9c013
Test waypoint round-tripping without debug dumps
1ec5 Dec 2, 2019
751d7ba
Encode URLs as strings
1ec5 Dec 2, 2019
4e0d845
Unit test instructions more thoroughly
1ec5 Dec 2, 2019
53c7165
Allow image component format to be SVG
1ec5 Dec 3, 2019
c3fa096
Rethrow malformed step coordinate instead of swallowing error
1ec5 Dec 3, 2019
ec3cc58
Factored out default driving side
1ec5 Dec 3, 2019
094f529
Remove default visual instruction final heading
1ec5 Dec 3, 2019
d0f6b7e
Removed dead code
1ec5 Dec 3, 2019
7fbf452
Test visual instructions, waypoints
1ec5 Dec 3, 2019
713fbd5
Rename Tracepoint.alternateCount; test waypoint equality
1ec5 Dec 5, 2019
bc170a0
Removed workarounds for optional enums in Objective-C
1ec5 Dec 7, 2019
aaccfcc
Avoid tracking code coverage within tests themselves
1ec5 Dec 9, 2019
ff7c2f7
Revert "Avoid tracking code coverage within tests themselves"
1ec5 Dec 9, 2019
91fdba3
Test errors
1ec5 Dec 9, 2019
373a6e0
Restored CustomStringConvertible conformance
1ec5 Dec 10, 2019
9600677
Restored custom Quick Look previews
1ec5 Dec 10, 2019
87f6a96
Import Foundation for Linux
1ec5 Dec 10, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ignore:
- "Directions Example"
- "Tests"
- "MapboxDirectionsTests"
Copy link
Contributor

Choose a reason for hiding this comment

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

#360 originally intended to omit MapboxDirectionsTests from code coverage metrics, but when #362 renamed this folder to Tests, test code inflated test coverage by around 11%. We’ll need to adjust reapply this change in a separate commit outside of this PR to avoid getting dinged by the (justifiable) omission of test code from code coverage metrics.


coverage:
status:
Expand Down