Skip to content

Commit 5fe5c20

Browse files
committed
Upgrade. Release 8
1 parent 7ff2ec4 commit 5fe5c20

File tree

6 files changed

+21
-19
lines changed

6 files changed

+21
-19
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# OCR
22

3-
This app bundles OCR functionality that can be called from other apps via Intents. Depending on the product flavor, it either uses [Mlkit](https://developers.google.com/ml-kit/vision/text-recognition/android) or [Tesseract](https://tesseract-ocr.github.io/).
3+
This app bundles OCR functionality that can be called from other apps via Intents. Depending on the product flavor, it either uses [Mlkit](https://developers.google.com/ml-kit/vision/text-recognition/android) or [Tesseract](https://tesseract-ocr.github.io/) via [Tesseract4Android](https://github.com/adaptech-cz/Tesseract4Android).
4+
45

56
It listens for Intents with action "org.totschnig.ocr.action.RECOGNIZE" and expects an Uri pointing to a JPEG file as data.
67

app/build.gradle

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ def getPropertyIfDefined(property, defaultValue) {
1212
}
1313

1414
android {
15-
compileSdk 34
15+
compileSdk 35
1616

1717
defaultConfig {
1818
applicationId "org.totschnig.ocr"
19-
minSdkVersion 16
20-
targetSdkVersion 34
21-
versionCode 7
22-
versionName "2.3"
19+
minSdkVersion 21
20+
targetSdkVersion 35
21+
versionCode 8
22+
versionName "2.4"
2323

2424
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2525
}
@@ -30,7 +30,6 @@ android {
3030
mlkit {
3131
dimension "engine"
3232
applicationIdSuffix ".mlkit"
33-
minSdkVersion 19
3433
}
3534
tesseract {
3635
dimension "engine"
@@ -69,18 +68,18 @@ android {
6968

7069
dependencies {
7170
implementation fileTree(dir: "libs", include: ["*.jar"])
72-
implementation 'androidx.core:core-ktx:1.13.1'
71+
implementation 'androidx.core:core-ktx:1.15.0'
7372
implementation 'androidx.preference:preference-ktx:1.2.1'
74-
implementation 'androidx.appcompat:appcompat:1.6.1'
75-
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.8.0'
73+
implementation 'androidx.appcompat:appcompat:1.7.0'
74+
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.8.7'
7675
implementation 'androidx.exifinterface:exifinterface:1.3.7'
7776
testImplementation 'junit:junit:4.13.2'
78-
mlkitImplementation 'com.google.mlkit:text-recognition:16.0.0'
77+
mlkitImplementation 'com.google.mlkit:text-recognition:16.0.1'
7978
tesseractImplementation 'cz.adaptech.tesseract4android:tesseract4android-openmp:4.7.0'
8079
implementation 'com.jakewharton.timber:timber:5.0.1'
81-
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.0"
82-
implementation "androidx.activity:activity-ktx:1.9.0"
83-
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
84-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
80+
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.7"
81+
implementation "androidx.activity:activity-ktx:1.9.3"
82+
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
83+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
8584

8685
}

app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
33

4-
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
4+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"
5+
android:maxSdkVersion="28" />
56

67
<application
78
android:name=".MyApplication"
89
android:allowBackup="false"
910
android:icon="@mipmap/ic_scan"
1011
android:label="@string/app_name"
11-
android:requestLegacyExternalStorage="true"
1212
android:roundIcon="@mipmap/ic_scan_round"
1313
android:supportsRtl="true">
1414
<activity android:name=".SettingsActivity"

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
mavenCentral()
77
}
88
dependencies {
9-
classpath 'com.android.tools.build:gradle:8.4.1'
9+
classpath 'com.android.tools.build:gradle:8.7.2'
1010
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1111

1212
// NOTE: Do not place your application dependencies here; they belong

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip

metadata/en-US/changelogs/8.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Target Android 15 (SDK 35), minimum Android 5 (SDK 21)
2+
Upgrade Tesseract4Android to 4.7.0 (Tesseract 5.3.4)

0 commit comments

Comments
 (0)