From c23d99315acea2f0894e5ff8a08dd42a867b2982 Mon Sep 17 00:00:00 2001 From: Carl Poole Date: Tue, 1 Sep 2020 14:30:30 -0500 Subject: [PATCH] fix(android): allow directories beginning with underscore in assets dir to be packaged --- android-template/app/build.gradle | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/android-template/app/build.gradle b/android-template/app/build.gradle index 641d2a809..d20303d37 100644 --- a/android-template/app/build.gradle +++ b/android-template/app/build.gradle @@ -9,6 +9,11 @@ android { versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + aaptOptions { + // Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps. + // Default: https://android.googlesource.com/platform/frameworks/base/+/282e181b58cf72b6ca770dc7ca5f91f135444502/tools/aapt/AaptAssets.cpp#61 + ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~' + } } buildTypes { release { @@ -43,4 +48,4 @@ try { } } catch(Exception e) { logger.warn("google-services.json not found, google-services plugin not applied. Push Notifications won't work") -} \ No newline at end of file +}