From dbfcff9aece93bd87ea59806e7bb1182b03c4cfb Mon Sep 17 00:00:00 2001 From: Josiah Gaskin Date: Tue, 14 May 2019 12:05:47 -0700 Subject: [PATCH] Allow transition xml resources Summary: https://developer.android.com/reference/android/transition/Transition documents that `transition` is an allowed resource folder. Reviewed By: styurin fbshipit-source-id: 784d7c22a4 --- src/com/facebook/buck/android/ResourceFilters.java | 6 +++++- .../res/com/sample/base/res/transition/some_transition.xml | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 test/com/facebook/buck/android/testdata/android_project/res/com/sample/base/res/transition/some_transition.xml diff --git a/src/com/facebook/buck/android/ResourceFilters.java b/src/com/facebook/buck/android/ResourceFilters.java index 822d558479a..b05ea4abc41 100644 --- a/src/com/facebook/buck/android/ResourceFilters.java +++ b/src/com/facebook/buck/android/ResourceFilters.java @@ -58,7 +58,11 @@ private ResourceFilters() {} "xml", // "interpolator" is not officially documented in the above // link, but several support library aar files use it. - "interpolator"); + "interpolator", + // "transition" is not documented in the above link, + // but the docs below claim it can be used + // https://developer.android.com/reference/android/transition/Transition + "transition"); /** * Represents the names and values of valid densities for resources as defined in diff --git a/test/com/facebook/buck/android/testdata/android_project/res/com/sample/base/res/transition/some_transition.xml b/test/com/facebook/buck/android/testdata/android_project/res/com/sample/base/res/transition/some_transition.xml new file mode 100644 index 00000000000..8e3dbaa9912 --- /dev/null +++ b/test/com/facebook/buck/android/testdata/android_project/res/com/sample/base/res/transition/some_transition.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file