Skip to content
Open
22 changes: 12 additions & 10 deletions webapp/build.gradle
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"

Expand All @@ -24,6 +25,7 @@ android {
buildFeatures {
viewBinding true
buildConfig true
compose true
}

buildTypes {
Expand All @@ -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")

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done here: 74bddca 🚀

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'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it ok to have the version hardcoded?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done here: 74bddca 🚀

}
2 changes: 0 additions & 2 deletions webapp/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.VIDEO_CAPTURE" />
Expand Down

This file was deleted.

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"
}
Loading