OSDN Git Service

AAPT2: Update --no-version-vector list
authorAdam Lesinski <adamlesinski@google.com>
Wed, 31 May 2017 17:22:30 +0000 (10:22 -0700)
committerAdam Lesinski <adamlesinski@google.com>
Wed, 31 May 2017 17:23:58 +0000 (10:23 -0700)
Keep in sync with AAPT. Since gradle is moving to use AAPT2
by default, updates to AAPT will no longer be necessary and
this will be the authoritative list until a more programmatic
solution presents itself.

Bug: 62211148
Test: manual
Change-Id: Id9232c9fb730c50e4850887fa0f5da82574ca900

tools/aapt2/cmd/Link.cpp

index 24a687c..ebec81b 100644 (file)
@@ -440,7 +440,8 @@ static bool IsTransitionElement(const std::string& name) {
 }
 
 static bool IsVectorElement(const std::string& name) {
-  return name == "vector" || name == "animated-vector";
+  return name == "vector" || name == "animated-vector" || name == "pathInterpolator" ||
+         name == "objectAnimator";
 }
 
 template <typename T>