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
Depend on Polyline.framework #53
Conversation
@@ -370,7 +370,7 @@ class MapboxStaticTests: XCTestCase { | |||
let fillColor = Color.red | |||
let fillColorRaw = "ff0000" | |||
let fillOpacity = 0.25 | |||
let encodedPolyline = "(upztG%60jxkVn@al@bo@nFWzuAaTcAyZen@)" | |||
let encodedPolyline = "(upztG%60jxkVn@al@bo@pFWzuAaTcAyZgn@)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tmcw, should we be concerned that there were differences in how Polyline encoded the polyline versus our homegrown encoder’s version? In this case at least, there didn’t appear to be any visual difference.
Polyline.framework encodes the polyline slightly differently, but there doesn’t appear to be any discernible difference in the output image.
082cd86
to
d280f4f
Compare
@bsudekum, this PR will make it much easier to upgrade to Swift 4. |
@@ -0,0 +1,2 @@ | |||
github "raphaelmor/Polyline" ~> 4.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This version is explicitly for swift 4. I'm not sure this will pass unless this changed to v4.1.1.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just upgraded the Bitrise apps to use Xcode 9 instead of Xcode 8.3. The builds should pass now.
This test currently fails:
|
Upgrading to Xcode 9 means the macOS 10.13 SDK uses different RGB component values for all the NSColor constants than UIColor does. 🙄 |
In the iOS 11 and macOS 10.13 SDKs, JSONSerialization adds an extra digit of precision. Also, in the macOS 10.13 SDK, the RGB components of NSColor’s class properties differ from those of UIColor’s similarly named class properties.
Fixed the tests in 179016c. In the iOS 11 and macOS 10.13 SDKs, JSONSerialization adds an extra digit of precision. Also, in the macOS 10.13 SDK, the RGB components of NSColor’s class properties differ from those of UIColor’s similarly named class properties. |
@bsudekum @frederoni @friedbunny, this PR is ready for review. |
@@ -1071,6 +1125,10 @@ | |||
DYLIB_COMPATIBILITY_VERSION = 1; | |||
DYLIB_CURRENT_VERSION = 7; | |||
DYLIB_INSTALL_NAME_BASE = "@rpath"; | |||
FRAMEWORK_SEARCH_PATHS = ( | |||
"$(inherited)", | |||
"$(PROJECT_DIR)/Carthage/Build/iOS", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works but I think the recommended way is https://github.com/Carthage/Carthage#if-youre-building-for-ios-tvos-or-watchos
Nvm, I thought this was the example target.
Added a dependency on raphaelmor/Polyline@f86f34d. (We can pin to a newer version or release once raphaelmor/Polyline#40 lands.)
Fixes #11.
/cc @incanus