X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/dadd9c1fc18bd05c84a357b56e945b5829b3bd95..2843f9b794ba59875f8810c886081cdd954ca25f:/Bundle.h diff --git a/Bundle.h b/Bundle.h index 1d7b3ad..2d8471b 100644 --- a/Bundle.h +++ b/Bundle.h @@ -31,11 +31,11 @@ class Bundle { public: Bundle(void) : mCmd(kCommandUnknown), mVerbose(false), mAndroidList(false), - mForce(false), mMakePackageDirs(false), + mForce(false), mGrayscaleTolerance(0), mMakePackageDirs(false), mUpdate(false), mExtending(false), mRequireLocalization(false), mPseudolocalize(false), mCompressionMethod(0), mOutputAPKFile(NULL), - mAssetSourceDir(NULL), mResourceSourceDir(NULL), + mAssetSourceDir(NULL), mAndroidManifestFile(NULL), mPublicOutputFile(NULL), mRClassDir(NULL), mResourceIntermediatesDir(NULL), mArgc(0), mArgv(NULL) @@ -58,6 +58,8 @@ public: void setAndroidList(bool val) { mAndroidList = val; } bool getForce(void) const { return mForce; } void setForce(bool val) { mForce = val; } + void setGrayscaleTolerance(int val) { mGrayscaleTolerance = val; } + int getGrayscaleTolerance() { return mGrayscaleTolerance; } bool getMakePackageDirs(void) const { return mMakePackageDirs; } void setMakePackageDirs(bool val) { mMakePackageDirs = val; } bool getUpdate(void) const { return mUpdate; } @@ -78,8 +80,8 @@ public: */ const char* getAssetSourceDir() const { return mAssetSourceDir; } void setAssetSourceDir(const char* dir) { mAssetSourceDir = dir; } - const char* getResourceSourceDir() const { return mResourceSourceDir; } - void setResourceSourceDir(const char* dir) { mResourceSourceDir = dir; } + const android::Vector& getResourceSourceDirs() const { return mResourceSourceDirs; } + void addResourceSourceDir(const char* dir) { mResourceSourceDirs.insertAt(dir,0); } const char* getAndroidManifestFile() const { return mAndroidManifestFile; } void setAndroidManifestFile(const char* file) { mAndroidManifestFile = file; } const char* getPublicOutputFile() const { return mPublicOutputFile; } @@ -94,6 +96,8 @@ public: void addPackageInclude(const char* file) { mPackageIncludes.add(file); } const android::Vector& getJarFiles() const { return mJarFiles; } void addJarFile(const char* file) { mJarFiles.add(file); } + const android::Vector& getNoCompressExtensions() const { return mNoCompressExtensions; } + void addNoCompressExtension(const char* ext) { mNoCompressExtensions.add(ext); } /* * Set and get the file specification. @@ -128,6 +132,7 @@ private: bool mVerbose; bool mAndroidList; bool mForce; + int mGrayscaleTolerance; bool mMakePackageDirs; bool mUpdate; bool mExtending; @@ -136,7 +141,6 @@ private: int mCompressionMethod; const char* mOutputAPKFile; const char* mAssetSourceDir; - const char* mResourceSourceDir; const char* mAndroidManifestFile; const char* mPublicOutputFile; const char* mRClassDir; @@ -144,7 +148,9 @@ private: android::String8 mConfigurations; android::Vector mPackageIncludes; android::Vector mJarFiles; - + android::Vector mNoCompressExtensions; + android::Vector mResourceSourceDirs; + /* file specification */ int mArgc; char* const* mArgv;