Skip to content

Commit

Permalink
Merge pull request #557 from wmathurin/dev
Browse files Browse the repository at this point in the history
Fix for latest cordova android
  • Loading branch information
wmathurin committed Sep 21, 2021
2 parents 3783cad + 3ab16a0 commit a9d02a4
Show file tree
Hide file tree
Showing 47 changed files with 798 additions and 1,874 deletions.
5 changes: 3 additions & 2 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,11 @@

<!-- Fixes the activity tag in the Manifest -->
<edit-config file="app/src/main/AndroidManifest.xml" target="/manifest/application/activity" mode="merge">
<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"
<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
android:label="@string/app_name"
android:name="com.salesforce.androidsdk.phonegap.ui.SalesforceDroidGapActivity"
android:theme="@android:style/Theme.Black.NoTitleBar"
android:theme="@style/Theme.AppCompat.NoActionBar"
android:windowSoftInputMode="adjustResize"
android:launchMode="singleTop"
android:allowBackup="false" />
</edit-config>
Expand Down
2 changes: 2 additions & 0 deletions src/android/libs/SalesforceHybrid/res/xml/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
id = "com.salesforce.androidsdk"
version = "9.2.0">

<content src="index.html" />

<!-- To allow XHR requests with the new Whitelist plugin -->
<allow-navigation href="https://localhost" />
<allow-navigation href="https://*.force.com" />
Expand Down
6 changes: 3 additions & 3 deletions src/android/libs/SalesforceSDK/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@
android:windowSoftInputMode="adjustResize"
android:exported="true" />

<!-- Passcode activity -->
<activity android:name="com.salesforce.androidsdk.ui.PasscodeActivity"
<!-- Screen Lock Activity-->
<activity android:name="com.salesforce.androidsdk.ui.ScreenLockActivity"
android:exported="false"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustResize|stateAlwaysVisible"
android:theme="@style/SalesforceSDK.Passcode" />
android:theme="@style/SalesforceSDK.ScreenLock" />

<!-- Manage space activity -->
<activity android:name="com.salesforce.androidsdk.ui.ManageSpaceActivity"
Expand Down
4 changes: 3 additions & 1 deletion src/android/libs/SalesforceSDK/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@ dependencies {
api project(':libs:SalesforceAnalytics')
api 'com.squareup.okhttp3:okhttp:3.12.12'
api 'com.google.firebase:firebase-messaging:20.1.0'
api 'androidx.core:core:1.3.2'
api 'androidx.core:core:1.6.0'

/*
* Don't upgrade browser library version until minApiVersion >= 24.
* This is because the latest version of this library has minVersion = 24.
*/
api 'androidx.browser:browser:1.0.0'
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.biometric:biometric:1.1.0'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
androidTestImplementation 'androidx.test:runner:1.4.0'
androidTestImplementation 'androidx.test:rules:1.4.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
android:layout_marginEnd="10dp"
android:layout_marginBottom="10dp"
android:layout_weight="1"
android:background="@drawable/sf__passcode_secondary_color_button"
android:background="@drawable/sf__secondary_color_button"
android:text="@string/sf__server_url_default_cancel"
android:textAllCaps="false"
android:textColor="?attr/sfNegativeButtonTextColor"
Expand All @@ -78,7 +78,7 @@
android:layout_marginStart="10dp"
android:layout_marginEnd="20dp"
android:layout_marginBottom="10dp"
android:background="@drawable/sf__passcode_primary_color_button"
android:background="@drawable/sf__primary_color_button"
android:textColor="?attr/sfColorSecondary"
android:textAllCaps="false"
android:textSize="14sp"
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion src/android/libs/SalesforceSDK/res/layout/sf__login.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginBottom="20dp"
android:background="@drawable/sf__passcode_primary_color_button"
android:background="@drawable/sf__primary_color_button"
android:textColor="?attr/sfColorSecondary"
android:textAllCaps="false"
android:textSize="14sp"
Expand Down
Loading

0 comments on commit a9d02a4

Please sign in to comment.