File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
libs/SalesforceSDK/src/com/salesforce/androidsdk/app Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1487,6 +1487,12 @@ open class SalesforceSDKManager protected constructor(
1487
1487
@Suppress(" NON_FINAL_MEMBER_IN_OBJECT" ) // This allows Java subtypes to override this property without an inspector warning
1488
1488
open fun getInstance () = INSTANCE ? : throw RuntimeException (" Apps must call SalesforceSDKManager.init() first." )
1489
1489
1490
+ /* * Allow Kotlin subclasses to set themselves as the instance. */
1491
+ @JvmSynthetic
1492
+ fun setInstance (subclass : SalesforceSDKManager ) {
1493
+ INSTANCE = subclass
1494
+ }
1495
+
1490
1496
/* *
1491
1497
* Indicates if a Salesforce SDK manager instance is initialized.
1492
1498
* @return true if SalesforceSDKManager has been initialized already
You can’t perform that action at this time.
0 commit comments