Skip to content
Draft
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
161 changes: 161 additions & 0 deletions compose-customisable-ui-example/.idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions compose-customisable-ui-example/Libraries.txt
105 changes: 105 additions & 0 deletions compose-customisable-ui-example/app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
plugins {
id("com.android.application")
id("org.jetbrains.kotlin.android")
id("org.jetbrains.kotlin.kapt")
id("org.jetbrains.kotlin.plugin.compose")
}

android {
namespace = "io.scanbot.example.compose"
compileSdk = 36

defaultConfig {
applicationId = "io.scanbot.example.compose"
targetSdk = 36
minSdk = 21
versionCode = 1
versionName = "1.0"

ndk {
abiFilters "armeabi-v7a", "arm64-v8a"
// Please add "x86" and "x86_64" if you would like to test on an emulator
// or if you need to support some rare devices with the Intel Atom architecture.
}
}

buildTypes {
named("debug") {
// set this to `false` to allow debugging and run a "non-release" build
minifyEnabled = false
debuggable = true
}
named("release") {
// set this to `false` to allow debugging and run a "non-release" build
minifyEnabled = true
debuggable = true
}
}

kotlin {
jvmToolchain(17)
}

buildFeatures {
buildConfig = true
compose = true
}

packagingOptions {
exclude "META-INF/LICENSE.txt"
exclude "META-INF/LICENSE"
exclude "META-INF/NOTICE.txt"
exclude "META-INF/NOTICE"
exclude "META-INF/DEPENDENCIES"
}
}

kapt {
generateStubs = true
}

configurations {
compile.exclude group: "org.jetbrains", module: "annotations"
}

dependencies {
implementation("androidx.appcompat:appcompat:1.7.1")
implementation("com.google.android.material:material:1.13.0")
// we are using compose dependencies that come transitively via Scanbot SDK.
// If you need additional compose dependencies, please make sure to use the same versions as Scanbot SDK to avoid version conflicts.
def coroutines_version = "1.10.2"
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version")

def scanbotSdkVersion = "8.1.0.78-STAGING-SNAPSHOT"

implementation("io.scanbot:sdk-package-4:$scanbotSdkVersion")
implementation("io.scanbot:rtu-ui-v2-bundle:$scanbotSdkVersion")

// This dependency is only needed if you plan to use the Generic Document Recognizer feature
implementation("io.scanbot:sdk-documentdata-assets:$scanbotSdkVersion")

// This dependency is only needed if you plan to use the Document Quality Analyzer feature
implementation("io.scanbot:sdk-multitasktext-assets:$scanbotSdkVersion")

// This dependency is only needed if you plan to use data scanner feature
implementation("io.scanbot:sdk-textpattern-assets:$scanbotSdkVersion")

// This dependency is only needed if you plan to use Medical Certificate scanner feature
implementation("io.scanbot:sdk-mc-assets:$scanbotSdkVersion")

// This dependency is only needed if you plan to use Credit Card Scanner feature
implementation("io.scanbot:sdk-creditcard-assets:$scanbotSdkVersion")

// This dependency is only needed if you plan to use MRZ scanner feature
implementation("io.scanbot:sdk-mrz-assets:$scanbotSdkVersion")

// This dependency is only needed if you plan to use Check recognizer feature
implementation("io.scanbot:sdk-check-assets:$scanbotSdkVersion")

// This dependency is only needed if you plan to use Pdfium processor for import export of pdfs. See comment in Application class.
implementation("io.scanbot:bundle-sdk-pdfium:$scanbotSdkVersion")

// This dependency is only needed if you plan to use the encryption feature
implementation("io.scanbot:bundle-sdk-crypto-persistence:$scanbotSdkVersion")
}
36 changes: 36 additions & 0 deletions compose-customisable-ui-example/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-feature android:name="android.hardware.camera" />

<application
android:name=".Application"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:largeHeap="true"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">

<activity android:name=".MainActivity" android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths"
/>
</provider>
</application>
</manifest>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading