Skip to content

Commit a3d8d41

Browse files
authored
Merge pull request #2624 from brandonpage/Android-15-Edge-To-Edge
Android 15 support
2 parents 1811fe5 + 56e9884 commit a3d8d41

19 files changed

Lines changed: 87 additions & 14 deletions

File tree

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ buildscript {
99
}
1010

1111
dependencies {
12-
classpath("com.android.tools.build:gradle:8.5.0")
12+
classpath("com.android.tools.build:gradle:8.6.1")
1313
classpath("io.github.gradle-nexus:publish-plugin:1.1.0")
1414
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.24")
1515
classpath("org.jacoco:org.jacoco.core:0.8.12")

buildSrc/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ repositories {
77
}
88

99
dependencies {
10-
implementation("com.android.tools.build:gradle:8.5.0")
10+
implementation("com.android.tools.build:gradle:8.6.1")
1111
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.24")
1212
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.9.24")
1313
}

hybrid/HybridSampleApps/AccountEditor/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ dependencies {
1313
android {
1414
namespace = "com.salesforce.samples.accounteditor"
1515

16-
compileSdk = 34
16+
compileSdk = 35
1717

1818
defaultConfig {
19-
targetSdk = 34
19+
targetSdk = 35
2020
minSdk = 26
2121
}
2222

hybrid/HybridSampleApps/MobileSyncExplorerHybrid/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ dependencies {
1313
android {
1414
namespace = "com.salesforce.samples.mobilesyncexplorerhybrid"
1515

16-
compileSdk = 34
16+
compileSdk = 35
1717

1818
defaultConfig {
19-
targetSdk = 34
19+
targetSdk = 35
2020
minSdk = 26
2121
}
2222

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
3+
<item android:id="@+id/sf__status_bar_background" android:height="100dp" >
4+
<shape android:shape="rectangle">
5+
<size android:height="100dp" android:width="100dp"/>
6+
<solid android:color="@color/sf__primary_color"/>
7+
</shape>
8+
</item>
9+
10+
<item android:id="@+id/sf__nav_bar_background" android:height="100dp">
11+
<shape android:shape="rectangle">
12+
<size android:height="100dp" android:width="100dp"/>
13+
<solid android:color="@android:color/transparent"/>
14+
</shape>
15+
</item>
16+
</layer-list>

libs/SalesforceSDK/res/layout/sf__dev_info.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3-
android:orientation="vertical" android:layout_width="match_parent"
3+
android:id="@+id/sf__dev_menu_layout"
4+
android:orientation="vertical"
5+
android:layout_width="match_parent"
46
android:layout_height="match_parent">
57

68
<ListView android:id="@+id/list" android:layout_width="match_parent"

libs/SalesforceSDK/res/layout/sf__server_picker.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22

33
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
4+
android:id="@+id/sf__server_picker_layout"
45
android:layout_width="match_parent"
56
android:layout_height="match_parent"
67
android:background="?android:colorBackground" >

libs/SalesforceSDK/res/values/sf__styles.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@
112112

113113
<style name="SalesforceSDK_Dark.Login">
114114
<item name="android:navigationBarColor">@color/sf__background</item>
115+
<item name="android:colorBackground">@color/sf__background</item>
115116
</style>
116117

117118
<style name="SalesforceSDKActionBar" parent="@android:style/Widget.Material.ActionBar">
@@ -189,6 +190,7 @@
189190
<item name="android:navigationBarColor">@color/sf__background_dark</item>
190191
<item name="sfNegativeButtonTextColor">@color/sf__secondary_color_dark</item>
191192
<item name="sfNegativeButtonBorderColor">@color/sf__secondary_color_dark</item>
193+
<item name="android:windowLightStatusBar">false</item>
192194
</style>
193195

194196
<style name="SalesforceSDK.ScreenLock.ErrorMessage">

libs/SalesforceSDK/src/com/salesforce/androidsdk/auth/idp/IDPManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ internal class IDPManager(
119119
spConfig,
120120
codeChallenge
121121
) { result ->
122-
authCodeActivity.finish()
123122
onResult(result)
124123
}
125124
}
@@ -214,6 +213,7 @@ internal class IDPManager(
214213
addCategory(Intent.CATEGORY_DEFAULT)
215214
}
216215
startActivity(activeFlow.context, launchIntent)
216+
activeFlow.authCodeActivity?.finish()
217217
} else {
218218
activeFlow.onStatusUpdate(Status.ERROR_RECEIVED_FROM_SP)
219219
}

libs/SalesforceSDK/src/com/salesforce/androidsdk/ui/AccountSwitcherActivity.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
*/
2727
package com.salesforce.androidsdk.ui;
2828

29+
import static com.salesforce.androidsdk.ui.EdgeToEdgeUtilKt.fixEdgeToEdge;
30+
2931
import android.content.pm.ActivityInfo;
3032
import android.os.Bundle;
3133
import android.view.View;
@@ -67,6 +69,8 @@ public void onCreate(Bundle savedInstance) {
6769
} else {
6870
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_FULL_USER);
6971
}
72+
73+
fixEdgeToEdge(this, findViewById(R.id.sf__account_select_layout));
7074
}
7175

7276
@Override

0 commit comments

Comments
 (0)