diff --git a/apps/android/app/build.gradle b/apps/android/app/build.gradle index 95ef6ab67..b58c47d85 100644 --- a/apps/android/app/build.gradle +++ b/apps/android/app/build.gradle @@ -29,8 +29,6 @@ android { manifestPlaceholders.app_name = "@string/app_name" manifestPlaceholders.provider_authorities = "chat.simplex.app.provider" manifestPlaceholders.extract_native_libs = compression_level != "0" - // Comma separated list of languages that will be included in the apk - resConfigs("en", "ru", "de", "fr", "it") } buildTypes { @@ -78,6 +76,11 @@ android { } jniLibs.useLegacyPackaging = compression_level != "0" } + def isRelease = gradle.getStartParameter().taskNames.find({ it.toLowerCase().contains("release") }) != null + if (isRelease) { + // Comma separated list of languages that will be included in the apk + android.defaultConfig.resConfigs("en", "ru", "de", "fr", "it") + } } dependencies {