diff --git a/apps/android/app/lint.xml b/apps/android/app/lint.xml new file mode 100644 index 0000000..c87fca2 --- /dev/null +++ b/apps/android/app/lint.xml @@ -0,0 +1,8 @@ + + + + + + + diff --git a/apps/android/app/src/main/java/dev/janakhpon/monocr/ui/theme/Theme.kt b/apps/android/app/src/main/java/dev/janakhpon/monocr/ui/theme/Theme.kt index 8b5ab1f..a32ce85 100644 --- a/apps/android/app/src/main/java/dev/janakhpon/monocr/ui/theme/Theme.kt +++ b/apps/android/app/src/main/java/dev/janakhpon/monocr/ui/theme/Theme.kt @@ -1,5 +1,6 @@ package dev.janakhpon.monocr.ui.theme +import android.os.Build import androidx.compose.foundation.isSystemInDarkTheme import androidx.compose.material3.MaterialTheme import androidx.compose.material3.darkColorScheme @@ -65,7 +66,8 @@ fun MonOCRTheme( content: @Composable () -> Unit ) { val colorScheme = when { - dynamicColor -> { + // Dynamic colour needs Android 12 (API 31); the app supports API 24 and up. + dynamicColor && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S -> { val ctx = LocalContext.current if (darkTheme) dynamicDarkColorScheme(ctx) else dynamicLightColorScheme(ctx) } diff --git a/apps/android/app/src/main/res/values-mnw/strings.xml b/apps/android/app/src/main/res/values-mnw/strings.xml index fadf88b..6f1fa95 100644 --- a/apps/android/app/src/main/res/values-mnw/strings.xml +++ b/apps/android/app/src/main/res/values-mnw/strings.xml @@ -31,10 +31,10 @@ ပတိတ်ဖျေံ တင်လိခ် ပံက်ဖိုင် ကၟာတ်ရောၚ်။ - ဖိုင်ဇၞော်လောန်အာ (အောန်အိုတ် {max}MB) + ဖိုင်ဇၞော်လောန်အာ (အောန်အိုတ် %1$dMB) ဖိုင်ဟွံဒး။ စကာ JPG, PNG, WEBP, PDF ညိ။ - OCR ကၠောန်ဟွံဂွံ - {msg} - အေန်ဂျေၚ် OCR စကာဟွံဂွံ - {msg} + OCR ကၠောန်ဟွံဂွံ + အေန်ဂျေၚ် OCR စကာဟွံဂွံ အခိင်လောန်အာယျ။ စကာ ဗီုဍောတ်တ် ညိ။ memory ဟွံရုမ်ဂပ်။ ကၟာတ် app တၞဟ်တအ်ညိ။ ဗှ်ဗီုရုပ်ဖိုၚ်ဟွံဂွံ။ စကာဖိုင်တၞဟ်ညိ။ diff --git a/apps/android/app/src/main/res/values-my/strings.xml b/apps/android/app/src/main/res/values-my/strings.xml index c19b209..9386cd1 100644 --- a/apps/android/app/src/main/res/values-my/strings.xml +++ b/apps/android/app/src/main/res/values-my/strings.xml @@ -32,10 +32,10 @@ စာသား မျှဝေရန် ဖိုင်ဖွင့်ရန် ပိတ််မည်။ - ဖိုင် အရွယ်အစား ကြီးလွန်းသည် (အများဆုံး {max}MB) + ဖိုင် အရွယ်အစား ကြီးလွန်းသည် (အများဆုံး %1$dMB) ဖိုင်အမျိုးအစား မှားယွင်းနေသည်။ JPG, PNG, WEBP, PDF သာ အသုံးပြုပါ။ - OCR လုပ်ဆောင်မှု မအောင်မြင်ပါ - {msg} - OCR အင်ဂျင် အလုပ်မလုပ်ပါ - {msg} + OCR လုပ်ဆောင်မှု မအောင်မြင်ပါ + OCR အင်ဂျင် အလုပ်မလုပ်ပါ အချိန်ကြာမြင့်သွားပြီ။ ပိုမိုသေးငယ်သော သို့မဟုတ် ပိုမိုကြည်လင်သော ပုံကို စမ်းကြည့်ပါ။ မှတ်ဉာဏ် (Memory) မလုံလောက်ပါ။ အခြား App များကို ပိတ်ပြီး ပြန်စမ်းကြည့်ပါ။ ပုံဖိုင်ကို ဖတ်၍မရပါ။ အခြားအမျိုးအစားကို စမ်းကြည့်ပါ။ diff --git a/apps/android/app/src/main/res/values/strings.xml b/apps/android/app/src/main/res/values/strings.xml index eba974a..427c807 100644 --- a/apps/android/app/src/main/res/values/strings.xml +++ b/apps/android/app/src/main/res/values/strings.xml @@ -41,10 +41,10 @@ Share extracted text Open saved file Close - File is too large (max {max}MB) + File is too large (max %1$dMB) Invalid file type. Use JPG, PNG, WEBP, or PDF. - OCR failed - {msg} - OCR Engine failed to load - {msg} + OCR failed + OCR Engine failed to load The request timed out. Try a smaller or clearer image. Not enough memory. Close other apps and try again. Could not read the image file. Try a different format.