From 7566cbb24a9648d48a7ac01c696331ba32260c91 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Mon, 1 Jun 2020 22:30:16 +0300 Subject: [PATCH] Got the aapt options to ignore the mods! We can now add mod when testing without worrying that they will make their way into the apk =D --- android/build.gradle.kts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/android/build.gradle.kts b/android/build.gradle.kts index 7fba928e2f..3477058799 100644 --- a/android/build.gradle.kts +++ b/android/build.gradle.kts @@ -54,20 +54,14 @@ android { buildTypes { getByName("release") { // Don't add local save files and fonts to release, obviously - aaptOptions { - ignoreAssetsPattern = "!SaveFiles:!fonts:!maps:!music:!mods" - } isMinifyEnabled = false proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro") } - getByName("debug") { - // Don't add local save files and fonts to release, obviously - aaptOptions { - ignoreAssetsPattern = "!SaveFiles:!fonts:!maps:!music" - } - } + } + aaptOptions { + ignoreAssetsPattern = "!SaveFiles:!fonts:!maps:!music:!mods" } lintOptions { disable("MissingTranslation")