From 19854e229592f7a2a0e72860a45c5b07d386bb14 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Fri, 24 Feb 2023 16:02:54 -0500 Subject: [PATCH] Using language identification model bundled into the app --- app/build.gradle | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index f296a84cf..1690f7f04 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -137,10 +137,12 @@ dependencies { // The idea is to make it work for degoogled phones implementation 'com.google.mlkit:barcode-scanning:17.0.3' - // Use this dependency to use the translate text - implementation 'com.google.mlkit:translate:17.0.1' + // Local model for language identification implementation 'com.google.mlkit:language-id:17.0.4' - implementation 'com.google.android.gms:play-services-mlkit-language-id:17.0.0' + + // Google services model the translate text + implementation 'com.google.mlkit:translate:17.0.1' + // Automatic memory leak detection debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.10'