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)
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; }
*/
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<const char*>& 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; }
void addPackageInclude(const char* file) { mPackageIncludes.add(file); }
const android::Vector<const char*>& getJarFiles() const { return mJarFiles; }
void addJarFile(const char* file) { mJarFiles.add(file); }
+ const android::Vector<const char*>& getNoCompressExtensions() const { return mNoCompressExtensions; }
+ void addNoCompressExtension(const char* ext) { mNoCompressExtensions.add(ext); }
/*
* Set and get the file specification.
bool mVerbose;
bool mAndroidList;
bool mForce;
+ int mGrayscaleTolerance;
bool mMakePackageDirs;
bool mUpdate;
bool mExtending;
int mCompressionMethod;
const char* mOutputAPKFile;
const char* mAssetSourceDir;
- const char* mResourceSourceDir;
const char* mAndroidManifestFile;
const char* mPublicOutputFile;
const char* mRClassDir;
android::String8 mConfigurations;
android::Vector<const char*> mPackageIncludes;
android::Vector<const char*> mJarFiles;
-
+ android::Vector<const char*> mNoCompressExtensions;
+ android::Vector<const char*> mResourceSourceDirs;
+
/* file specification */
int mArgc;
char* const* mArgv;