Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for latest cordova android #557

Merged
merged 2 commits into from
Sep 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
21 changes: 13 additions & 8 deletions src/android/libs/SalesforceSDK/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,31 +31,35 @@
android:theme="@style/SalesforceSDK"
android:launchMode="singleInstance"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustResize" />
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"
android:excludeFromRecents="true"
android:theme="@style/SalesforceSDK" />
android:theme="@style/SalesforceSDK"
android:exported="false" />

<!-- Choose server activity -->
<activity android:name="com.salesforce.androidsdk.ui.ServerPickerActivity"
android:excludeFromRecents="true"
android:theme="@style/SalesforceSDK"
android:screenOrientation="portrait" />
android:screenOrientation="portrait"
android:exported="false" />

<!-- Account switcher activity -->
<activity android:name="com.salesforce.androidsdk.ui.AccountSwitcherActivity"
android:excludeFromRecents="true"
android:theme="@style/SalesforceSDK"
android:screenOrientation="portrait" />
android:screenOrientation="portrait"
android:exported="false" />

<!-- IDP webview activity -->
<activity android:name="com.salesforce.androidsdk.auth.idp.IDPCodeGeneratorActivity"
Expand All @@ -78,7 +82,8 @@
</intent-filter>
</receiver>

<service android:name="com.salesforce.androidsdk.push.SFDCFcmListenerService">
<service android:name="com.salesforce.androidsdk.push.SFDCFcmListenerService"
android:exported="false">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
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