From 9f88018e448284a2a48b3fed1508da104189a6ef Mon Sep 17 00:00:00 2001 From: Alex Soto Date: Wed, 7 Jun 2017 01:44:46 -0500 Subject: [PATCH 1/2] [ClockKit] Update to Xcode 9 Beta 1 --- src/clockkit.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/clockkit.cs b/src/clockkit.cs index b9069d7d76a8..9f8640d8e69b 100644 --- a/src/clockkit.cs +++ b/src/clockkit.cs @@ -53,16 +53,20 @@ interface CLKComplicationDataSource { [Export ("getTimelineEntriesForComplication:afterDate:limit:withHandler:")] void GetTimelineEntriesAfterDate (CLKComplication complication, NSDate afterDate, nuint limit, Action handler); + [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use WKRefreshBackgroundTask instead")] [Export ("getNextRequestedUpdateDateWithHandler:")] void GetNextRequestedUpdateDate (Action handler); + [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use `WKRefreshBackgroundTask` instead")] [Export ("requestedUpdateDidBegin")] void RequestedUpdateDidBegin (); + [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use `WKRefreshBackgroundTask` instead")] [Export ("requestedUpdateBudgetExhausted")] void RequestedUpdateBudgetExhausted (); // this was @required in watchOS 2.x but is now deprecated and downgraded to @optional in watchOS 3 (betas) + [Deprecated (PlatformName.WatchOS, 3, 0, message: "Use `GetLocalizableSampleTemplate` instead")] [Export ("getPlaceholderTemplateForComplication:withHandler:")] void GetPlaceholderTemplate (CLKComplication complication, Action handler); From ba8e1e026d9899170b7f54e980115a85e2402753 Mon Sep 17 00:00:00 2001 From: Alex Soto Date: Mon, 12 Jun 2017 14:53:12 -0500 Subject: [PATCH 2/2] [ClockKit] Fix punctuation and apostrophes. --- src/clockkit.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/clockkit.cs b/src/clockkit.cs index 9f8640d8e69b..eddf43a053fc 100644 --- a/src/clockkit.cs +++ b/src/clockkit.cs @@ -53,20 +53,20 @@ interface CLKComplicationDataSource { [Export ("getTimelineEntriesForComplication:afterDate:limit:withHandler:")] void GetTimelineEntriesAfterDate (CLKComplication complication, NSDate afterDate, nuint limit, Action handler); - [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use WKRefreshBackgroundTask instead")] + [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'WKRefreshBackgroundTask' instead.")] [Export ("getNextRequestedUpdateDateWithHandler:")] void GetNextRequestedUpdateDate (Action handler); - [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use `WKRefreshBackgroundTask` instead")] + [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'WKRefreshBackgroundTask' instead.")] [Export ("requestedUpdateDidBegin")] void RequestedUpdateDidBegin (); - [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use `WKRefreshBackgroundTask` instead")] + [Deprecated (PlatformName.WatchOS, 4, 0, message: "Use 'WKRefreshBackgroundTask' instead.")] [Export ("requestedUpdateBudgetExhausted")] void RequestedUpdateBudgetExhausted (); // this was @required in watchOS 2.x but is now deprecated and downgraded to @optional in watchOS 3 (betas) - [Deprecated (PlatformName.WatchOS, 3, 0, message: "Use `GetLocalizableSampleTemplate` instead")] + [Deprecated (PlatformName.WatchOS, 3, 0, message: "Use 'GetLocalizableSampleTemplate' instead.")] [Export ("getPlaceholderTemplateForComplication:withHandler:")] void GetPlaceholderTemplate (CLKComplication complication, Action handler);