Skip to content
This repository has been archived by the owner on Jul 7, 2023. It is now read-only.

Commit

Permalink
Mark system providers deprecated for iOS 11
Browse files Browse the repository at this point in the history
  • Loading branch information
Mykola Voronin committed Mar 5, 2018
1 parent 559752e commit 800cd3c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Providers/Facebook/FacebookSystemProvider.swift
Expand Up @@ -10,11 +10,12 @@ import Foundation
import Accounts
import Social

@available(iOS, deprecated: 11.0)
public class FacebookSystemProvider: FacebookProvider {

public required init?() {
super.init()

if #available(iOS 11.0, *) {
DebugService.output(AuthorizeError.deprecateMessage)
return nil
Expand Down
5 changes: 3 additions & 2 deletions Providers/Twitter/TwitterSystemProvider.swift
Expand Up @@ -10,11 +10,12 @@ import Foundation
import Accounts
import Social

@available(iOS, deprecated: 11.0)
public class TwitterSystemProvider: TwitterProvider {

public required init?() {
super.init()

if #available(iOS 11.0, *) {
DebugService.output(AuthorizeError.deprecateMessage)
return nil
Expand Down

0 comments on commit 800cd3c

Please sign in to comment.