Skip to content

Commit

Permalink
fix(android): allow directories beginning with underscore in assets d…
Browse files Browse the repository at this point in the history
…ir to be packaged
  • Loading branch information
carlpoole committed Sep 1, 2020
1 parent 41e21f2 commit c23d993
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion android-template/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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")
}
}

0 comments on commit c23d993

Please sign in to comment.