Skip to content

Commit a998901

Browse files
update to latest release, add settingspage
1 parent 63a5ce2 commit a998901

30 files changed

+1479
-176
lines changed

.idea/compiler.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle

+5-4
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ plugins {
44

55
android {
66
namespace 'de.docutain.sdk.docutain_sdk_example_android_java'
7-
compileSdk 33
7+
compileSdk 34
88

99
defaultConfig {
1010
applicationId "de.docutain.sdk.sample"
1111
minSdk 21
12-
targetSdk 33
12+
targetSdk 34
1313
versionCode 1
1414
versionName "1.0"
1515

@@ -29,15 +29,16 @@ android {
2929
}
3030

3131
dependencies {
32-
//Import the Docutain SDK
33-
def docutainSdkVersion = '1.5.1.8'
32+
//Import the Docutain SDK, always use the latest available version
33+
def docutainSdkVersion = '1.+'
3434
//For Document Scanner components
3535
implementation("de.docutain:Docutain-SDK-UI:$docutainSdkVersion")
3636
//For Data Extraction and OCR (Text Recognition) components
3737
implementation("de.docutain:Docutain-SDK-DataExtraction:$docutainSdkVersion")
3838

3939
implementation 'androidx.appcompat:appcompat:1.6.1'
4040
implementation 'com.google.android.material:material:1.8.0'
41+
implementation 'com.github.Dhaval2404:ColorPicker:2.3'
4142

4243
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
4344
testImplementation 'junit:junit:4.13.2'

app/src/main/AndroidManifest.xml

+12-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,17 @@
44

55
<uses-permission android:name="android.permission.CAMERA" />
66
<uses-feature android:name="android.hardware.camera" />
7+
8+
<queries>
9+
<intent>
10+
<action android:name="android.intent.action.SENDTO" />
11+
12+
<data android:scheme="mailto" />
13+
</intent>
14+
</queries>
15+
716
<application
817
android:largeHeap="true"
9-
android:name=".App"
1018
android:allowBackup="true"
1119
android:dataExtractionRules="@xml/data_extraction_rules"
1220
android:fullBackupContent="@xml/backup_rules"
@@ -27,6 +35,9 @@
2735
android:name="android.app.lib_name"
2836
android:value="" />
2937
</activity>
38+
<activity
39+
android:name=".settings.SettingsActivity"
40+
android:exported="false" />
3041
<activity
3142
android:name=".DataResultActivity"
3243
android:exported="false">

app/src/main/java/de/docutain/sdk/docutain_sdk_example_android_java/App.java

-47
This file was deleted.

app/src/main/java/de/docutain/sdk/docutain_sdk_example_android_java/ListAdapter.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,16 @@ public enum ItemType {
1616
DOCUMENT_SCAN,
1717
DATA_EXTRACTION,
1818
TEXT_RECOGNITION,
19-
PDF_GENERATING
19+
PDF_GENERATING,
20+
SETTINGS
2021
}
2122

2223
private final ListItem[] items = {
2324
new ListItem(R.string.title_document_scan, R.string.subtitle_document_scan, R.drawable.document_scanner, ItemType.DOCUMENT_SCAN),
2425
new ListItem(R.string.title_data_extraction, R.string.subtitle_data_extraction, R.drawable.data_extraction, ItemType.DATA_EXTRACTION),
2526
new ListItem(R.string.title_text_recognition, R.string.subtitle_text_recognition, R.drawable.ocr, ItemType.TEXT_RECOGNITION),
26-
new ListItem(R.string.title_PDF_generating, R.string.subtitle_PDF_generating, R.drawable.pdf, ItemType.PDF_GENERATING)
27+
new ListItem(R.string.title_PDF_generating, R.string.subtitle_PDF_generating, R.drawable.pdf, ItemType.PDF_GENERATING),
28+
new ListItem(R.string.title_settings, R.string.subtitle_settings, R.drawable.settings, ItemType.SETTINGS)
2729
};
2830

2931
private final OnItemClickedListener onItemClickedListener;

0 commit comments

Comments
 (0)