-
Notifications
You must be signed in to change notification settings - Fork 2
[TASK][YD-6940] Migrate webapp module UI to Jetpack Compose #59
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
Open
mircea-yoti
wants to merge
11
commits into
YD-6939
Choose a base branch
from
YD-6940
base: YD-6939
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 9 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
2e88364
Update webapp compile and target SDK version to 34
mircea-yoti 523a09f
Remove deprecated storage permission requests
mircea-yoti 80437c0
Implement Composables for URL input and WebView screens
mircea-yoti 22cf789
Integrate new Compose UI
mircea-yoti f4c4f26
Migrate permission requests to use ActivityResult API
mircea-yoti fd9d33c
Migrate camera and file picker handling to use ActivityResult APIs
mircea-yoti c0216c1
Delete legacy UI code
mircea-yoti 0f121ce
Enable edge-to-edge
mircea-yoti 00b87cc
Use rememberSaveable for sessionUrl
mircea-yoti 74bddca
Declare compose dependency versions separately
mircea-yoti a78069a
Extract web view composable into separate fun
mircea-yoti File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
apply plugin: 'com.android.application' | ||
apply plugin: 'kotlin-android' | ||
apply plugin: 'org.jetbrains.kotlin.plugin.compose' | ||
|
||
android { | ||
namespace "com.yoti.mobile.android.sdk.yotidocscan.websample" | ||
|
||
compileSdk 33 | ||
compileSdk 34 | ||
|
||
defaultConfig { | ||
applicationId "com.yoti.mobile.android.sdk.yotidocscan.websample" | ||
minSdkVersion 21 | ||
targetSdkVersion 33 | ||
targetSdkVersion 34 | ||
versionCode 1 | ||
versionName "1.0" | ||
|
||
|
@@ -24,6 +25,7 @@ android { | |
buildFeatures { | ||
viewBinding true | ||
buildConfig true | ||
compose true | ||
} | ||
|
||
buildTypes { | ||
|
@@ -38,12 +40,12 @@ android { | |
dependencies { | ||
implementation fileTree(dir: 'libs', include: ['*.jar']) | ||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" | ||
implementation 'androidx.appcompat:appcompat:1.1.0' | ||
implementation 'androidx.core:core-ktx:1.3.0' | ||
implementation 'androidx.constraintlayout:constraintlayout:1.1.3' | ||
implementation 'com.google.android.material:material:1.1.0' | ||
|
||
// Multi-module projects: Add this dependency because of Android Studio Issue | ||
// and androix.navigation dependencies management https://issuetracker.google.com/issues/152245564 | ||
implementation 'androidx.navigation:navigation-ui-ktx:2.2.2' | ||
|
||
def composeBom = platform("androidx.compose:compose-bom:2025.04.00") | ||
implementation composeBom | ||
implementation 'androidx.compose.material3:material3' | ||
implementation 'androidx.activity:activity-compose' | ||
debugImplementation 'androidx.compose.ui:ui-tooling' | ||
|
||
implementation 'androidx.navigation:navigation-compose:2.8.9' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is it ok to have the version hardcoded? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done here: 74bddca 🚀 |
||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 0 additions & 61 deletions
61
.../src/main/java/com/yoti/mobile/android/sdk/yotidocscan/websample/AccelerometerListener.kt
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
webapp/src/main/java/com/yoti/mobile/android/sdk/yotidocscan/websample/AppDestinations.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.yoti.mobile.android.sdk.yotidocscan.websample | ||
|
||
object AppDestinations { | ||
|
||
const val MAIN_SCREEN = "main_screen" | ||
const val WEB_SCREEN = "web_screen" | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we declare the versions in a dedicated file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done here: 74bddca 🚀