From 05cceec8452786f2b70fa807ddccda62f0a373cc Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Date: Wed, 4 Jun 2025 21:51:38 +0200 Subject: [PATCH] [android] Use new resources configuration Signed-off-by: Jean-Baptiste Charron --- android/app/build.gradle | 53 ++++++++++++++++++++++++++++++++++++++- android/gradle.properties | 3 --- 2 files changed, 52 insertions(+), 4 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 7193a1cbd..e39d5c49e 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -88,7 +88,6 @@ android { buildConfigField 'String', 'SUPPORT_MAIL', '"android@comaps.app"' // Should be customized in flavors. buildConfigField 'String', 'REVIEW_URL', '""' - resourceConfigurations += [project.ext.supportedLocalizations] externalNativeBuild { def pchFlag = 'OFF' @@ -336,6 +335,58 @@ android { androidResources { ignoreAssetsPattern '!.svn:!.git:!.DS_Store:!*.scc:.*:_*:!CVS:!thumbs.db:!picasa.ini:!*~' noCompress = ['txt', 'bin', 'html', 'png', 'json', 'mwm', 'ttf', 'sdf', 'ui', 'config', 'csv', 'spv', 'obj'] + localeFilters += [ + "af", + "ar", + "az", + "be", + "bg", + "ca", + "cs", + "da", + "de", + "el", + "en", + "en-rGB", + "es", + "es-rMX", + "et", + "eu", + "fa", + "fi", + "fr", + "fr-rCA", + "iw", + "hi", + "hu", + "in", + "it", + "ja", + "ko", + "lt", + "lv", + "mr", + "mt", + "nb", + "nl", + "pl", + "pt", + "pt-rBR", + "ro", + "ru", + "sk", + "sr", + "sv", + "sw", + "th", + "tr", + "uk", + "vi", + "zh", + "zh-rHK", + "zh-rMO", + "zh-rTW" + ] } compileOptions { diff --git a/android/gradle.properties b/android/gradle.properties index 3ad05ba8e..687669cdf 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -12,6 +12,3 @@ android.nonFinalResIds=false enableVulkanDiagnostics=OFF enableTrace=OFF - -# Autogenerated by tools/unix/generate_localizations.sh -supportedLocalizations=af,ar,az,be,bg,ca,cs,da,de,el,en,en_GB,es,es_MX,et,eu,fa,fi,fr,fr_CA,iw,hi,hu,in,it,ja,ko,lt,lv,mr,mt,nb,nl,pl,pt,pt_BR,ro,ru,sk,sr,sv,sw,th,tr,uk,vi,zh,zh_HK,zh_MO,zh_TW