mirror of
https://github.com/adaptech-cz/Tesseract4Android.git
synced 2026-01-09 06:12:45 +08:00
70 lines
2.7 KiB
Groovy
70 lines
2.7 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
}
|
|
|
|
android {
|
|
namespace 'cz.adaptech.tesseract4android.sample'
|
|
compileSdk 35
|
|
|
|
defaultConfig {
|
|
applicationId "cz.adaptech.tesseract4android.sample"
|
|
minSdk 21
|
|
targetSdk 35
|
|
versionCode 1
|
|
versionName "1.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
targetCompatibility JavaVersion.VERSION_17
|
|
}
|
|
buildFeatures {
|
|
viewBinding true
|
|
}
|
|
}
|
|
|
|
// In case you are using dependency on local library (the project(':tesseract4android') below),
|
|
// uncomment this to specify which flavor you want to build.
|
|
// Or you can specify *same* flavors also for the app - then they will be matched automatically.
|
|
// See more: https://developer.android.com/studio/build/build-variants#variant_aware
|
|
/*android {
|
|
defaultConfig {
|
|
// Choose 'standard' or 'openmp' flavor of the library
|
|
missingDimensionStrategy 'parallelization', 'standard'
|
|
}
|
|
flavorDimensions = ['parallelization']
|
|
}*/
|
|
|
|
dependencies {
|
|
// To use library from JitPack
|
|
// Note that since we have 2 artifacts, we must use cz.adaptech.tesseract4android groupId,
|
|
// instead of just cz.adaptech groupId we use when using local maven repository.
|
|
implementation "cz.adaptech.tesseract4android:tesseract4android:$tesseract4AndroidVersion" // standard flavor
|
|
// implementation "cz.adaptech.tesseract4android:tesseract4android-openmp:$tesseract4AndroidVersion" // openmp flavor
|
|
|
|
// To use library from local maven repository
|
|
// Don't forget to specify mavenLocal() in repositories block in project's build.gradle file
|
|
// implementation "cz.adaptech:tesseract4android:$tesseract4AndroidVersion" // standard flavor
|
|
// implementation "cz.adaptech:tesseract4android-openmp:$tesseract4AndroidVersion" // openmp flavor
|
|
|
|
// To use library compiled locally
|
|
// Which flavor to use is determined by missingDimensionStrategy parameter above.
|
|
// implementation project(':tesseract4android')
|
|
|
|
implementation 'androidx.appcompat:appcompat:1.7.1'
|
|
implementation 'com.google.android.material:material:1.12.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.2.1'
|
|
implementation 'androidx.lifecycle:lifecycle-livedata:2.9.1'
|
|
implementation 'androidx.lifecycle:lifecycle-viewmodel:2.9.1'
|
|
testImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
|
|
} |