44 lines
888 B
Kotlin
44 lines
888 B
Kotlin
plugins {
|
|
id("com.android.application")
|
|
id("org.jetbrains.kotlin.android")
|
|
}
|
|
|
|
android {
|
|
namespace = "com.guiagent.ocr"
|
|
compileSdk = 31
|
|
|
|
defaultConfig {
|
|
applicationId = "com.guiagent.ocr"
|
|
minSdk = 26
|
|
targetSdk = 31
|
|
versionCode = 1
|
|
versionName = "1.0"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
// ML Kit Text Recognition - bundled model (no GMS needed!)
|
|
implementation("com.google.mlkit:text-recognition-chinese:16.0.0")
|
|
|
|
// HTTP server
|
|
implementation("org.nanohttpd:nanohttpd:2.3.1")
|
|
|
|
// JSON
|
|
implementation("com.google.code.gson:gson:2.10.1")
|
|
}
|