Skip to content

Commit 46df020

Browse files
authored
Make LegacyAuthenticatorService public to avoid error log lines. Make upgrade step public. (#2840)
1 parent b38f198 commit 46df020

2 files changed

Lines changed: 14 additions & 4 deletions

File tree

libs/SalesforceSDK/src/com/salesforce/androidsdk/app/SalesforceSDKUpgradeManager.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,11 +314,14 @@ private void updateFromBefore13_0_2() {
314314
PushMessaging.setReRegistrationRequested(true);
315315
}
316316

317-
/*
317+
/**
318318
* Migrate any accounts with account_type "com.salesforce.androidsdk" to a unique value.
319-
* TODO: Remove this in Mobile SDK 15.0
319+
*
320+
* @deprecated Will be removed in Mobile SDK 15.0.0.
320321
*/
321-
private void migrateAccountType() {
322+
@Deprecated
323+
@SuppressWarnings("DeprecatedIsStillUsed")
324+
public void migrateAccountType() {
322325
final String LEGACY_ACCOUNT_TYPE = "com.salesforce.androidsdk";
323326
if (SalesforceSDKManager.getInstance().getAccountType().equals(LEGACY_ACCOUNT_TYPE)) {
324327
SalesforceSDKLogger.e(TAG, "No app specific account type found. To ensure users " +

libs/SalesforceSDK/src/com/salesforce/androidsdk/auth/LegacyAuthenticatorService.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,11 @@
2626
*/
2727
package com.salesforce.androidsdk.auth;
2828

29-
class LegacyAuthenticatorService extends AuthenticatorService { }
29+
/**
30+
* Android requires service classes to be public. Do not use.
31+
*
32+
* @deprecated This class is used to migrate legacy accounts and will be removed in Mobile SDK 15.0.0.
33+
*/
34+
@Deprecated
35+
@SuppressWarnings("DeprecatedIsStillUsed")
36+
public final class LegacyAuthenticatorService extends AuthenticatorService { }

0 commit comments

Comments
 (0)