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

Removed deprecated methods #1738

Merged
merged 4 commits into from
Sep 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 0 additions & 36 deletions AWSAuthSDK/Sources/AWSMobileClient/AWSMobileClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -573,39 +573,3 @@ extension AWSMobileClient {
}

}

// MARK: Deprecated AWSMobileClient methods

extension AWSMobileClient {

@available(*, deprecated: 2.7, message: "This method will be removed in the next minor version. Please update to use AWSMobileClient using `initialize`. Please visit https://aws-amplify.github.io for the latest iOS documentation.")
override public func interceptApplication(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [AnyHashable : Any]? = nil) -> Bool {
return _AWSMobileClient.sharedInstance().interceptApplication(application, didFinishLaunchingWithOptions: launchOptions)
}

@available(*, deprecated: 2.7, message: "This method will be removed in the next minor version. Please update to use AWSMobileClient using `initialize`. Please visit https://aws-amplify.github.io for the latest iOS documentation.")
@objc override public func interceptApplication(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [AnyHashable : Any]? = nil, resumeSessionWithCompletionHandler completionHandler: @escaping (Any, Error) -> Void) -> Bool {
operateInLegacyMode = true
return _AWSMobileClient.sharedInstance().interceptApplication(application,
didFinishLaunchingWithOptions: launchOptions,
resumeSessionWithCompletionHandler: completionHandler)
}

@available(*, deprecated: 2.7, message: "This method will be removed in the next minor version. Please update to use AWSMobileClient in the updated manner. Please visit https://aws-amplify.github.io for the latest iOS documentation")
@objc override public func setSignInProviders(_ signInProviderConfig: [AWSSignInProviderConfig]?) {
_AWSMobileClient.sharedInstance().setSignInProviders(signInProviderConfig)
}

/// Get the credentials provider object which provides `AWSCredentials`.
///
/// - Returns: An object which implements `AWSCredentialsProvider`.
@available(*, deprecated: 2.7, message: "This method will be removed in the next minor version. AWSMobileClient itself is a credentials provider now and should be passed directly where required. Please visit https://aws-amplify.github.io for the latest iOS documentation.")
@objc override public func getCredentialsProvider() -> AWSCognitoCredentialsProvider {
if (operateInLegacyMode) {
return _AWSMobileClient.sharedInstance().getCredentialsProvider()
} else {
return self
}
}

}
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# AWS Mobile SDK for iOS CHANGELOG

## 2.10.4
## 2.11.0

### Bug Fixes

Expand All @@ -17,6 +17,8 @@
- Model updates for the following services
- Amazon EC2
- Amazon Transcribe
- **AWSMobileClient**
* **Breaking API change** Removed deprecated method inside AWSMobileClient. See PR [#1738](https://github.com/aws-amplify/aws-sdk-ios/pull/1738)

## 2.10.3

Expand Down