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/Bundle.h | |
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/Bundle.h')
-rw-r--r-- | tools/aapt/Bundle.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/aapt/Bundle.h b/tools/aapt/Bundle.h index 653c1b4d6f97..a93ee2e2b71d 100644 --- a/tools/aapt/Bundle.h +++ b/tools/aapt/Bundle.h @@ -55,6 +55,7 @@ public: mCompressionMethod(0), mJunkPath(false), mOutputAPKFile(NULL), mManifestPackageNameOverride(NULL), mInstrumentationPackageNameOverride(NULL), mAutoAddOverlay(false), mGenDependencies(false), mNoVersionVectors(false), + mNoVersionTransitions(false), mCrunchedOutputDir(NULL), mProguardFile(NULL), mMainDexProguardFile(NULL), mAndroidManifestFile(NULL), mPublicOutputFile(NULL), mRClassDir(NULL), mResourceIntermediatesDir(NULL), mManifestMinSdkVersion(NULL), @@ -219,6 +220,8 @@ public: void setBuildAppAsSharedLibrary(bool val) { mBuildAppAsSharedLibrary = val; } void setNoVersionVectors(bool val) { mNoVersionVectors = val; } bool getNoVersionVectors() const { return mNoVersionVectors; } + void setNoVersionTransitions(bool val) { mNoVersionTransitions = val; } + bool getNoVersionTransitions() const { return mNoVersionTransitions; } /* * Set and get the file specification. @@ -299,6 +302,7 @@ private: bool mAutoAddOverlay; bool mGenDependencies; bool mNoVersionVectors; + bool mNoVersionTransitions; const char* mCrunchedOutputDir; const char* mProguardFile; const char* mMainDexProguardFile; |