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

[TIMOB-23614] Adopt Swift 3 syntax changes in Apple Watch template #8120

Merged
merged 1 commit into from Jul 11, 2016

Conversation

janvennemann
Copy link
Contributor

JIRA: https://jira.appcelerator.org/browse/TIMOB-23614

Optional Description:
Renames a few methods to comply with Swift 3 naming changes and adds a delegate method that is required since WatchOS 2.2

public func session(_ session: WCSession, activationDidCompleteWith activationState: WCSessionActivationState, error: NSError?) {
// This will be called when the activation of a session finishes.
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need this compatibility delegate?

@janvennemann
Copy link
Contributor Author

This method is required since iOS 9.3/watchOS 2.2 when using the WCSessionDelegate but somehow it didn't threw an error when building under Xcode 7. Building it now with iOS 10/watchOS 3/Xcode 8 requires you to implement this method and to add the @available attribute.

@hansemannn
Copy link
Collaborator

Approved!

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.

None yet

2 participants