From 48c7a30eb6ceee59bdde1dd41f58ba8ebcb7bc7b Mon Sep 17 00:00:00 2001 From: Lin Date: Tue, 2 Jan 2024 23:55:24 +0800 Subject: [PATCH] 1 Signed-off-by: Lin --- autojs/build.gradle.kts | 10 +++++----- gradle/libs.versions.toml | 7 +++++++ 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/autojs/build.gradle.kts b/autojs/build.gradle.kts index 0b41e5d7f..a3c40b492 100644 --- a/autojs/build.gradle.kts +++ b/autojs/build.gradle.kts @@ -66,10 +66,10 @@ dependencies { // libs api(fileTree("../app/libs"){include("dx.jar", "rhino-1.7.14-jdk7.jar")}) api("cz.adaptech:tesseract4android:4.1.1") - api("com.google.mlkit:text-recognition:16.0.0-beta5") - api("com.google.mlkit:text-recognition-chinese:16.0.0-beta5") - api("com.google.mlkit:text-recognition-devanagari:16.0.0-beta5") - api("com.google.mlkit:text-recognition-japanese:16.0.0-beta5") - api("com.google.mlkit:text-recognition-korean:16.0.0-beta5") + api(libs.text.recognition) + api(libs.text.recognition.chinese) + api(libs.text.recognition.devanagari) + api(libs.text.recognition.japanese) + api(libs.text.recognition.korean) } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index ba1d96e8b..2d7144940 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -13,6 +13,8 @@ espresso-core = "3.5.1" appcompat = "1.4.2" material = "1.9.0" accompanist-version = "0.24.13-rc" +text-recognition = "16.0.0-beta6" +text-recognition-chinese = "16.0.0" [libraries] @@ -67,6 +69,11 @@ material = { group = "com.google.android.material", name = "material", version.r andserver-processor = { module = "com.yanzhenjie.andserver:processor", version.ref = "andserver" } andserver-api = { module = "com.yanzhenjie.andserver:api", version.ref = "andserver" } androidx-constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version = "2.1.4" } +text-recognition = { module = "com.google.mlkit:text-recognition", version.ref = "text-recognition" } +text-recognition-chinese = { module = "com.google.mlkit:text-recognition-chinese", version.ref = "text-recognition-chinese" } +text-recognition-korean = { module = "com.google.mlkit:text-recognition-korean", version.ref = "text-recognition" } +text-recognition-japanese = { module = "com.google.mlkit:text-recognition-japanese", version.ref = "text-recognition" } +text-recognition-devanagari = { module = "com.google.mlkit:text-recognition-devanagari", version.ref = "text-recognition" } [plugins] [bundles]