Skip to content

Commit 71a7eac

Browse files
committed
Merging dev into master
2 parents 7de5ffc + 2421193 commit 71a7eac

File tree

29 files changed

+233
-93
lines changed

29 files changed

+233
-93
lines changed

.circleci/gitChangedLibs.rb

+4-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@
1919

2020
for prfile in prfiles
2121
path = prfile["filename"]
22-
for lib in libsTopoSorted
23-
if path.include? lib
24-
libsModified.add(lib)
22+
libsTopoSorted.each do |lib|
23+
if path.include?(lib)
24+
libsModified.merge(libsTopoSorted[libsTopoSorted.index(lib)..])
25+
break
2526
end
2627
end
2728
end

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This pulls submodule dependencies from github.
2323
Introduction
2424
==
2525

26-
### What's New in 12.0.0
26+
### What's New in 12.1.0
2727
See [release notes](https://github.com/forcedotcom/SalesforceMobileSDK-Android/releases).
2828

2929
### Native Applications

build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ buildscript {
1717

1818
allprojects {
1919
group = "com.salesforce.mobilesdk"
20-
version = "12.0.0"
20+
version = "12.1.0"
2121

2222
// Ensure that we do not use newer language features that would make the SDK incompatible with
2323
// apps that do not target the latest version of Kotlin.

external/shared

Submodule shared updated 34 files

libs/MobileSync/AndroidManifest.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22

33
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
4-
android:versionCode="83"
5-
android:versionName="12.0.0">
4+
android:versionCode="84"
5+
android:versionName="12.1.0.dev">
66

77
<application />
88

libs/MobileSync/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@file:Suppress("UnstableApiUsage")
22

33
rootProject.ext["PUBLISH_GROUP_ID"] = "com.salesforce.mobilesdk"
4-
rootProject.ext["PUBLISH_VERSION"] = "12.0.0"
4+
rootProject.ext["PUBLISH_VERSION"] = "12.1.0"
55
rootProject.ext["PUBLISH_ARTIFACT_ID"] = "MobileSync"
66

77
plugins {

libs/SalesforceAnalytics/AndroidManifest.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22

33
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
4-
android:versionCode="83"
5-
android:versionName="12.0.0">
4+
android:versionCode="84"
5+
android:versionName="12.1.0.dev">
66

77
<uses-permission android:name="android.permission.INTERNET" />
88
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

libs/SalesforceAnalytics/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@file:Suppress("UnstableApiUsage")
22

33
rootProject.ext["PUBLISH_GROUP_ID"] = "com.salesforce.mobilesdk"
4-
rootProject.ext["PUBLISH_VERSION"] = "12.0.0"
4+
rootProject.ext["PUBLISH_VERSION"] = "12.1.0"
55
rootProject.ext["PUBLISH_ARTIFACT_ID"] = "SalesforceAnalytics"
66

77
plugins {

libs/SalesforceHybrid/AndroidManifest.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22

33
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
4-
android:versionCode="83"
5-
android:versionName="12.0.0">
4+
android:versionCode="84"
5+
android:versionName="12.1.0.dev">
66

77
<application>
88
<activity android:name="com.salesforce.androidsdk.phonegap.ui.SalesforceDroidGapActivity"

libs/SalesforceHybrid/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@file:Suppress("UnstableApiUsage")
22

33
rootProject.ext["PUBLISH_GROUP_ID"] = "com.salesforce.mobilesdk"
4-
rootProject.ext["PUBLISH_VERSION"] = "12.0.0"
4+
rootProject.ext["PUBLISH_VERSION"] = "12.1.0"
55
rootProject.ext["PUBLISH_ARTIFACT_ID"] = "SalesforceHybrid"
66

77
plugins {

libs/SalesforceHybrid/res/xml/config.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<widget xmlns = "http://www.w3.org/ns/widgets"
33
id = "com.salesforce.androidsdk"
4-
version = "12.0.0">
4+
version = "12.1.0">
55

66
<content src="index.html" />
77

libs/SalesforceHybrid/src/com/salesforce/androidsdk/phonegap/ui/SalesforceDroidGapActivity.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ open class SalesforceDroidGapActivity : CordovaActivity(), SalesforceActivityInt
306306

307307
/** The unauthenticated start page from the boot configuration */
308308
@Suppress("MemberVisibilityCanBePrivate")
309-
protected val unauthenticatedStartPage
309+
protected open val unauthenticatedStartPage
310310
get() = bootConfig?.unauthenticatedStartPage
311311

312312
fun logout(callbackContext: CallbackContext?) {

libs/SalesforceReact/AndroidManifest.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22

33
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
4-
android:versionCode="83"
5-
android:versionName="12.0.0">
4+
android:versionCode="84"
5+
android:versionName="12.1.0.dev">
66

77
<application>
88
<activity android:name=".ui.SalesforceReactActivity"

libs/SalesforceReact/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import org.apache.tools.ant.taskdefs.condition.Os
1212
val useIntlJsc = false
1313

1414
rootProject.ext["PUBLISH_GROUP_ID"] = "com.salesforce.mobilesdk"
15-
rootProject.ext["PUBLISH_VERSION"] = "12.0.0"
15+
rootProject.ext["PUBLISH_VERSION"] = "12.1.0"
1616
rootProject.ext["PUBLISH_ARTIFACT_ID"] = "SalesforceReact"
1717

1818
plugins {

libs/SalesforceReact/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "SalesforceReact",
3-
"version": "12.0.0",
3+
"version": "12.1.0",
44
"private": true,
55
"scripts": {
66
"start": "node node_modules/react-native/local-cli/cli.js start"
@@ -9,7 +9,7 @@
99
"create-react-class": "^15.7.0",
1010
"react": "18.2.0",
1111
"react-native": "0.73.6",
12-
"react-native-force": "git+https://github.com/forcedotcom/SalesforceMobileSDK-ReactNative.git#v12.0.0"
12+
"react-native-force": "git+https://github.com/forcedotcom/SalesforceMobileSDK-ReactNative.git#dev"
1313
},
1414
"devDependencies": {
1515
"chai": "4.4.1",

libs/SalesforceSDK/AndroidManifest.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
44
xmlns:tools="http://schemas.android.com/tools"
5-
android:versionCode="83"
6-
android:versionName="12.0.0">
5+
android:versionCode="84"
6+
android:versionName="12.1.0.dev">
77

88
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
99
<uses-permission android:name="android.permission.USE_CREDENTIALS" />

libs/SalesforceSDK/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@file:Suppress("UnstableApiUsage")
22

33
rootProject.ext["PUBLISH_GROUP_ID"] = "com.salesforce.mobilesdk"
4-
rootProject.ext["PUBLISH_VERSION"] = "12.0.0"
4+
rootProject.ext["PUBLISH_VERSION"] = "12.1.0"
55
rootProject.ext["PUBLISH_ARTIFACT_ID"] = "SalesforceSDK"
66

77
plugins {

libs/SalesforceSDK/src/com/salesforce/androidsdk/app/SalesforceSDKManager.kt

+26-20
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ open class SalesforceSDKManager protected constructor(
230230
}.also { field = it }
231231

232232
/** The Salesforce SDK manager's login server manager */
233-
val loginServerManager by lazy {
233+
open val loginServerManager by lazy {
234234
LoginServerManager(appContext)
235235
}
236236

@@ -316,8 +316,8 @@ open class SalesforceSDKManager protected constructor(
316316
* based on the value configured on the server
317317
*/
318318
@set:Synchronized
319-
var isBrowserLoginEnabled = false
320-
private set
319+
open var isBrowserLoginEnabled = false
320+
protected set
321321

322322
/** Optionally enables browser session sharing */
323323
var isShareBrowserSessionEnabled = false
@@ -379,8 +379,9 @@ open class SalesforceSDKManager protected constructor(
379379
* By default, the display name under
380380
* [android.content.pm.ApplicationInfo.labelRes] will be used.
381381
*/
382+
@Suppress("INAPPLICABLE_JVM_NAME")
382383
@get:JvmName("provideAppName")
383-
var appName: String? = null
384+
open var appName: String? = null
384385
get() = runCatching {
385386
if (field == null) {
386387
val packageInfo = appContext.packageManager.getPackageInfo(
@@ -437,7 +438,7 @@ open class SalesforceSDKManager protected constructor(
437438
* BuildConfig.DEBUG unless another value is specified.
438439
* @return Boolean true enables developer support features; false otherwise
439440
*/
440-
fun isDevSupportEnabled() = isDevSupportEnabledOverride ?: isDebugBuild
441+
open fun isDevSupportEnabled() = isDevSupportEnabledOverride ?: isDebugBuild
441442

442443
/**
443444
* Sets if developer support features are enabled.
@@ -486,15 +487,15 @@ open class SalesforceSDKManager protected constructor(
486487
}
487488

488489
/** Login options associated with the app */
489-
val loginOptions: LoginOptions get() = getLoginOptions(null, null)
490+
open val loginOptions: LoginOptions get() = getLoginOptions(null, null)
490491

491492
/**
492493
* Sets the login options associated with the app.
493494
*
494495
* @param jwt The `jwt`
495496
* @param url The URL
496497
*/
497-
fun getLoginOptions(
498+
open fun getLoginOptions(
498499
jwt: String?,
499500
url: String?
500501
) = loginOptionsInternal?.apply {
@@ -530,10 +531,10 @@ open class SalesforceSDKManager protected constructor(
530531
* @return True if the Salesforce Mobile SDK should automatically logout when
531532
* the access token is revoked
532533
*/
533-
fun shouldLogoutWhenTokenRevoked() = true
534+
open fun shouldLogoutWhenTokenRevoked() = true
534535

535536
/** The Salesforce SDK manager's user account manager */
536-
val userAccountManager: UserAccountManager by lazy {
537+
open val userAccountManager: UserAccountManager by lazy {
537538
UserAccountManager.getInstance()
538539
}
539540

@@ -546,7 +547,7 @@ open class SalesforceSDKManager protected constructor(
546547
* for this option. This functionality will eventually be provided by the
547548
* backend.
548549
*/
549-
var shouldBlockSalesforceIntegrationUser = false
550+
open var shouldBlockSalesforceIntegrationUser = false
550551

551552
/**
552553
* Creates a NativeLoginManager instance that allows the app to use its
@@ -638,7 +639,7 @@ open class SalesforceSDKManager protected constructor(
638639

639640
/** Returns the app display name used by the passcode dialog */
640641
@Suppress("unused")
641-
val appDisplayString = DEFAULT_APP_DISPLAY_NAME
642+
open val appDisplayString = DEFAULT_APP_DISPLAY_NAME
642643

643644
/** Returns the name of the app as defined in AndroidManifest.xml */
644645
val applicationName
@@ -719,8 +720,7 @@ open class SalesforceSDKManager protected constructor(
719720
/**
720721
* Starts the login flow if user account has been removed.
721722
*/
722-
@Suppress("MemberVisibilityCanBePrivate")
723-
protected fun startLoginPage() {
723+
protected open fun startLoginPage() {
724724

725725
// Clear cookies
726726
CookieManager.getInstance().removeAllCookies(null)
@@ -870,7 +870,7 @@ open class SalesforceSDKManager protected constructor(
870870
* @param showLoginPage If true, displays the login page after removing the
871871
* account
872872
*/
873-
fun logout(
873+
open fun logout(
874874
/* Note: Kotlin's @JvmOverloads annotations does not generate this overload */
875875
frontActivity: Activity?,
876876
showLoginPage: Boolean = true
@@ -889,7 +889,7 @@ open class SalesforceSDKManager protected constructor(
889889
* account
890890
*/
891891
@JvmOverloads
892-
fun logout(
892+
open fun logout(
893893
account: Account? = null,
894894
frontActivity: Activity?,
895895
showLoginPage: Boolean = true
@@ -1386,7 +1386,7 @@ open class SalesforceSDKManager protected constructor(
13861386
*
13871387
* @param activity The activity used to set style attributes
13881388
*/
1389-
fun setViewNavigationVisibility(activity: Activity) {
1389+
open fun setViewNavigationVisibility(activity: Activity) {
13901390
if (!isDarkTheme || activity.javaClass.name == loginActivityClass.name) {
13911391
/*
13921392
* This covers the case where OS dark theme is true, but app has
@@ -1400,7 +1400,7 @@ open class SalesforceSDKManager protected constructor(
14001400
* Determines whether the device has a compact screen.
14011401
* Taken directly from https://developer.android.com/guide/topics/large-screens/large-screen-cookbook#kotlin
14021402
*/
1403-
fun compactScreen(activity: Activity): Boolean {
1403+
open fun compactScreen(activity: Activity): Boolean {
14041404
val metrics = WindowMetricsCalculator.getOrCreate().computeMaximumWindowMetrics(activity)
14051405
val width = metrics.bounds.width()
14061406
val height = metrics.bounds.height()
@@ -1413,7 +1413,7 @@ open class SalesforceSDKManager protected constructor(
14131413

14141414
@Suppress("unused")
14151415
@OnLifecycleEvent(ON_STOP)
1416-
protected fun onAppBackgrounded() {
1416+
protected open fun onAppBackgrounded() {
14171417
screenLockManager?.onAppBackgrounded()
14181418
(biometricAuthenticationManager as? BiometricAuthenticationManager)?.onAppBackgrounded()
14191419

@@ -1425,7 +1425,7 @@ open class SalesforceSDKManager protected constructor(
14251425

14261426
@Suppress("unused")
14271427
@OnLifecycleEvent(ON_START)
1428-
protected fun onAppForegrounded() {
1428+
protected open fun onAppForegrounded() {
14291429
screenLockManager?.onAppForegrounded()
14301430
(biometricAuthenticationManager as? BiometricAuthenticationManager)?.onAppForegrounded()
14311431

@@ -1448,7 +1448,7 @@ open class SalesforceSDKManager protected constructor(
14481448
protected var INSTANCE: SalesforceSDKManager? = null
14491449

14501450
/** The current version of this SDK */
1451-
const val SDK_VERSION = "12.0.0.dev"
1451+
const val SDK_VERSION = "12.1.0.dev"
14521452

14531453
/**
14541454
* An intent action meant for instances of Salesforce SDK manager
@@ -1487,6 +1487,12 @@ open class SalesforceSDKManager protected constructor(
14871487
@Suppress("NON_FINAL_MEMBER_IN_OBJECT") // This allows Java subtypes to override this property without an inspector warning
14881488
open fun getInstance() = INSTANCE ?: throw RuntimeException("Apps must call SalesforceSDKManager.init() first.")
14891489

1490+
/** Allow Kotlin subclasses to set themselves as the instance. */
1491+
@JvmSynthetic
1492+
fun setInstance(subclass: SalesforceSDKManager) {
1493+
INSTANCE = subclass
1494+
}
1495+
14901496
/**
14911497
* Indicates if a Salesforce SDK manager instance is initialized.
14921498
* @return true if SalesforceSDKManager has been initialized already

0 commit comments

Comments
 (0)