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

Update project for Xcode 7 and Swift 2 #159

Merged
merged 1 commit into from
Oct 9, 2015
Merged

Conversation

jakecraige
Copy link
Contributor

@jakecraige jakecraige force-pushed the jc-swift-upgrade branch 2 times, most recently from 75ba944 to 91e1f28 Compare September 26, 2015 00:13
- Required config updates
- Remove redundant Printable protocol
- Fix custom Temperature compare function args
- Move storyboard from Sources into Resources
  More info: liftoffcli/liftoff#239
- Fix naming conflict of `describe` from Quick and Specta
  in TRTemperatureComparisonFormatterSpec.m by using Quick instead
  of Specta.
- Update Pod dependencies
- Update Carthage dependencies
- Update CircleCI xcode version
- Use `bin/test` in Circle since xctool is not working properly with Xcode 7

Make bin/test work again
@@ -13,7 +13,7 @@ func -(lhs: Temperature, rhs: Temperature) -> Temperature {
return Temperature(fahrenheitValue: lhs.fahrenheitValue - rhs.fahrenheitValue)
}

@objc class Temperature: NSObject, Printable {
@objc class Temperature: NSObject {
Copy link
Contributor

Choose a reason for hiding this comment

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

Couldn't we still declare conformance to CustomStringConvertible? That would let us string-interpolate an instance of Temperature in the future.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If I remember correctly, I think Xcode was now complaining that it was redundant since NSObject already does it. We still have the implementation https://github.com/thoughtbot/Tropos/blob/jc-swift-upgrade/Tropos/Models/Temperature.swift#L42-L45

Copy link
Contributor

Choose a reason for hiding this comment

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

Aha! Didn't know that. Cool. Thanks!

@hyperspacemark
Copy link
Contributor

👍

@jakecraige jakecraige merged commit 97e62c6 into master Oct 9, 2015
@jakecraige jakecraige deleted the jc-swift-upgrade branch October 9, 2015 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants