Skip to content
Open
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
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

def composeBom = platform("androidx.compose:compose-bom:2025.04.00")
def composeBom = platform("androidx.compose:compose-bom:$composeBomVersion")
implementation composeBom
implementation 'androidx.compose.material3:material3'
implementation 'androidx.activity:activity-compose'
Expand Down
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ android.useAndroidX=true
android.enableJetifier=true
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official

composeBomVersion=2025.04.00
navigationComposeVersion=2.8.9
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:$composeBomVersion")
implementation composeBom
implementation 'androidx.compose.material3:material3'
implementation 'androidx.activity:activity-compose'
debugImplementation 'androidx.compose.ui:ui-tooling'

implementation "androidx.navigation:navigation-compose:$navigationComposeVersion"
}
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