From ba16f74a39f55b7633b09e0462998a845f08eff2 Mon Sep 17 00:00:00 2001 From: Wolfgang Mathurin Date: Fri, 31 May 2024 16:44:43 -0700 Subject: [PATCH 01/17] (WIP) login with QR button in login screen For now launches QR code reader and print url to log --- libs/SalesforceSDK/AndroidManifest.xml | 2 ++ libs/SalesforceSDK/build.gradle.kts | 2 ++ libs/SalesforceSDK/res/layout/sf__login.xml | 15 +++++++++++++++ libs/SalesforceSDK/res/values/sf__strings.xml | 1 + 4 files changed, 20 insertions(+) diff --git a/libs/SalesforceSDK/AndroidManifest.xml b/libs/SalesforceSDK/AndroidManifest.xml index 25650f150a..730e2e2631 100644 --- a/libs/SalesforceSDK/AndroidManifest.xml +++ b/libs/SalesforceSDK/AndroidManifest.xml @@ -18,6 +18,8 @@ + + diff --git a/libs/SalesforceSDK/build.gradle.kts b/libs/SalesforceSDK/build.gradle.kts index 02623bd30b..86c8eeebbf 100644 --- a/libs/SalesforceSDK/build.gradle.kts +++ b/libs/SalesforceSDK/build.gradle.kts @@ -25,6 +25,8 @@ dependencies { implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.2") implementation("androidx.window:window:1.3.0") implementation("androidx.window:window-core:1.3.0") + implementation("com.google.zxing:core:3.4.1") + implementation("com.journeyapps:zxing-android-embedded:4.3.0") androidTestImplementation("androidx.test:runner:1.6.0") androidTestImplementation("androidx.test:rules:1.6.0") androidTestImplementation("androidx.test.ext:junit:1.2.0") diff --git a/libs/SalesforceSDK/res/layout/sf__login.xml b/libs/SalesforceSDK/res/layout/sf__login.xml index 9cd8336667..430c226315 100644 --- a/libs/SalesforceSDK/res/layout/sf__login.xml +++ b/libs/SalesforceSDK/res/layout/sf__login.xml @@ -55,5 +55,20 @@ android:textAllCaps="false" android:textSize="14sp" android:textStyle="bold"/> + +