diff options
author | Yuichi Araki <yaraki@google.com> | 2017-01-18 20:42:17 +0900 |
---|---|---|
committer | Yuichi Araki <yaraki@google.com> | 2017-01-24 14:59:51 +0900 |
commit | 4d35cca96ce55eb29d1948086214f91ae94e9adb (patch) | |
tree | 2ddb5bd63163bf8806be9dc4773e66630b5c4712 /tools/aapt/Main.cpp | |
parent | 9727f22fc092fe7ccdbf2929d697126f2095d62e (diff) |
AAPT: Add --no-version-transitions flag
Add a new flag to disable versioning of Transition related XMLs.
Transition support library will use this to handle these XMLs on older
API levels.
Test: make libaapt_tests AaptTestAppOne
Bug: 34427868
Change-Id: I66e81cca049e71ef6704177b2ca21c9cdeaff78f
Diffstat (limited to 'tools/aapt/Main.cpp')
-rw-r--r-- | tools/aapt/Main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/aapt/Main.cpp b/tools/aapt/Main.cpp index 984d98e30f29..417b7ae087e1 100644 --- a/tools/aapt/Main.cpp +++ b/tools/aapt/Main.cpp @@ -223,6 +223,8 @@ void usage(void) " localization\n" " --no-version-vectors\n" " Do not automatically generate versioned copies of vector XML resources.\n" + " --no-version-transitions\n" + " Do not automatically generate versioned copies of transition XML resources.\n" " --private-symbols\n" " Java package name to use when generating R.java for private resources.\n", gDefaultIgnoreAssets); @@ -704,6 +706,8 @@ int main(int argc, char* const argv[]) bundle.setPseudolocalize(PSEUDO_ACCENTED | PSEUDO_BIDI); } else if (strcmp(cp, "-no-version-vectors") == 0) { bundle.setNoVersionVectors(true); + } else if (strcmp(cp, "-no-version-transitions") == 0) { + bundle.setNoVersionTransitions(true); } else if (strcmp(cp, "-private-symbols") == 0) { argc--; argv++; |