Skip to content

Commit a38d0d6

Browse files
committed
Merge branch 'dev' of github.com:wmathurin/SalesforceMobileSDK-iOS into consumer_key_in_env
2 parents 6f8331e + ba4c2b3 commit a38d0d6

3 files changed

Lines changed: 13 additions & 5 deletions

File tree

libs/SalesforceSDKCommon/SalesforceSDKCommon/Classes/Util/SFTestContext.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ NS_ASSUME_NONNULL_BEGIN
3232

3333
/**Helps determine whether we're currently running tests or not.
3434
*/
35+
__attribute__((deprecated("Deprecated in Salesforce Mobile SDK 13.2 and will be removed in Salesforce Mobile SDK 14.0.")));
3536
@interface SFTestContext : NSObject {
3637

3738
}

libs/SalesforceSDKCore/SalesforceSDKCore/Classes/Test/SFSDKAsyncProcessListener.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@
2323
*/
2424

2525
#import <Foundation/Foundation.h>
26+
#import <SalesforceSDKCore/SalesforceSDKConstants.h>
2627

2728
NS_ASSUME_NONNULL_BEGIN
2829

30+
SFSDK_DEPRECATED(13.2, 14.0, "No longer used, will be removed")
2931
@interface SFSDKAsyncProcessListener : NSObject
3032

3133
/**

native/SampleApps/RestAPIExplorer/RestAPIExplorer/ViewControllers/RootViewController.swift

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -643,8 +643,11 @@ class RootViewController: UIViewController {
643643
}
644644
alert.addAction(cancel)
645645
alert.addAction(logout)
646-
self.present(alert, animated: true, completion: nil)
647-
self.logoutAlert = alert
646+
647+
dismissPopover() {
648+
self.present(alert, animated: true, completion: nil)
649+
self.logoutAlert = alert
650+
}
648651
}
649652

650653
@objc func clearPopoversForPasscode() {
@@ -657,9 +660,9 @@ class RootViewController: UIViewController {
657660
self.dismissPopover()
658661
}
659662

660-
func dismissPopover() {
663+
func dismissPopover(completion: (() -> ())? = nil) {
661664
if let pAction = self.presentedActions {
662-
pAction.dismiss(animated: true, completion: nil)
665+
pAction.dismiss(animated: true, completion: completion)
663666
}
664667
}
665668

@@ -867,7 +870,9 @@ extension RootViewController: ActionTableViewDelegate {
867870
let umvc = SalesforceUserManagementViewController.init(completionBlock: { _ in
868871
self.dismiss(animated: true, completion: nil)
869872
})
870-
self.present(umvc, animated: true, completion: nil)
873+
dismissPopover {
874+
self.present(umvc, animated: true, completion: nil)
875+
}
871876
return
872877
case .exportCredentials:
873878
self.exportTestingCredentials()

0 commit comments

Comments
 (0)