The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 1 | // |
| 2 | // Copyright 2006 The Android Open Source Project |
| 3 | // |
| 4 | // State bundle. Used to pass around stuff like command-line args. |
| 5 | // |
| 6 | #ifndef __BUNDLE_H |
| 7 | #define __BUNDLE_H |
| 8 | |
| 9 | #include <stdlib.h> |
Mathias Agopian | 3b4062e | 2009-05-31 19:13:00 -0700 | [diff] [blame] | 10 | #include <utils/Log.h> |
| 11 | #include <utils/threads.h> |
| 12 | #include <utils/List.h> |
| 13 | #include <utils/Errors.h> |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 14 | #include <utils/String8.h> |
| 15 | #include <utils/Vector.h> |
| 16 | |
Dianne Hackborn | 6c997a9 | 2012-01-31 11:27:43 -0800 | [diff] [blame] | 17 | enum { |
| 18 | SDK_CUPCAKE = 3, |
| 19 | SDK_DONUT = 4, |
| 20 | SDK_ECLAIR = 5, |
| 21 | SDK_ECLAIR_0_1 = 6, |
| 22 | SDK_MR1 = 7, |
| 23 | SDK_FROYO = 8, |
| 24 | SDK_HONEYCOMB_MR2 = 13, |
| 25 | SDK_ICE_CREAM_SANDWICH = 14, |
| 26 | SDK_ICE_CREAM_SANDWICH_MR1 = 15, |
| 27 | }; |
| 28 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 29 | /* |
| 30 | * Things we can do. |
| 31 | */ |
| 32 | typedef enum Command { |
| 33 | kCommandUnknown = 0, |
| 34 | kCommandVersion, |
| 35 | kCommandList, |
| 36 | kCommandDump, |
| 37 | kCommandAdd, |
| 38 | kCommandRemove, |
| 39 | kCommandPackage, |
Josiah Gaskin | 8a39da8 | 2011-06-06 17:00:35 -0700 | [diff] [blame] | 40 | kCommandCrunch, |
Xavier Ducrohet | b1f6ad8 | 2012-12-21 09:54:02 -0800 | [diff] [blame] | 41 | kCommandSingleCrunch, |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 42 | } Command; |
| 43 | |
| 44 | /* |
| 45 | * Bundle of goodies, including everything specified on the command line. |
| 46 | */ |
| 47 | class Bundle { |
| 48 | public: |
| 49 | Bundle(void) |
| 50 | : mCmd(kCommandUnknown), mVerbose(false), mAndroidList(false), |
| 51 | mForce(false), mGrayscaleTolerance(0), mMakePackageDirs(false), |
| 52 | mUpdate(false), mExtending(false), |
| 53 | mRequireLocalization(false), mPseudolocalize(false), |
Kenny Root | 1741cd4 | 2010-03-18 12:12:11 -0700 | [diff] [blame] | 54 | mWantUTF16(false), mValues(false), |
Haitao Feng | dbcfed9 | 2012-06-22 09:20:26 +0800 | [diff] [blame] | 55 | mCompressionMethod(0), mJunkPath(false), mOutputAPKFile(NULL), |
Dianne Hackborn | ef05e07 | 2010-03-01 17:43:39 -0800 | [diff] [blame] | 56 | mManifestPackageNameOverride(NULL), mInstrumentationPackageNameOverride(NULL), |
Josiah Gaskin | 9bf34ca | 2011-06-14 13:57:09 -0700 | [diff] [blame] | 57 | mAutoAddOverlay(false), mGenDependencies(false), |
Josiah Gaskin | 8a39da8 | 2011-06-06 17:00:35 -0700 | [diff] [blame] | 58 | mAssetSourceDir(NULL), |
| 59 | mCrunchedOutputDir(NULL), mProguardFile(NULL), |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 60 | mAndroidManifestFile(NULL), mPublicOutputFile(NULL), |
Kenny Root | 1741cd4 | 2010-03-18 12:12:11 -0700 | [diff] [blame] | 61 | mRClassDir(NULL), mResourceIntermediatesDir(NULL), mManifestMinSdkVersion(NULL), |
Dianne Hackborn | fa6baa2 | 2009-05-15 18:45:15 -0700 | [diff] [blame] | 62 | mMinSdkVersion(NULL), mTargetSdkVersion(NULL), mMaxSdkVersion(NULL), |
Josiah Gaskin | ce89f15 | 2011-06-08 19:31:40 -0700 | [diff] [blame] | 63 | mVersionCode(NULL), mVersionName(NULL), mCustomPackage(NULL), mExtraPackages(NULL), |
Xavier Ducrohet | d06c1af | 2011-02-14 16:58:00 -0800 | [diff] [blame] | 64 | mMaxResVersion(NULL), mDebugMode(false), mNonConstantId(false), mProduct(NULL), |
Xavier Ducrohet | f5de650 | 2012-09-11 14:45:22 -0700 | [diff] [blame] | 65 | mUseCrunchCache(false), mErrorOnFailedInsert(false), mOutputTextSymbols(NULL), |
Xavier Ducrohet | b1f6ad8 | 2012-12-21 09:54:02 -0800 | [diff] [blame] | 66 | mSingleCrunchInputFile(NULL), mSingleCrunchOutputFile(NULL), |
Xavier Ducrohet | f5de650 | 2012-09-11 14:45:22 -0700 | [diff] [blame] | 67 | mArgc(0), mArgv(NULL) |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 68 | {} |
| 69 | ~Bundle(void) {} |
| 70 | |
| 71 | /* |
| 72 | * Set the command value. Returns "false" if it was previously set. |
| 73 | */ |
| 74 | Command getCommand(void) const { return mCmd; } |
| 75 | void setCommand(Command cmd) { mCmd = cmd; } |
| 76 | |
| 77 | /* |
| 78 | * Command modifiers. Not all modifiers are appropriate for all |
| 79 | * commands. |
| 80 | */ |
| 81 | bool getVerbose(void) const { return mVerbose; } |
| 82 | void setVerbose(bool val) { mVerbose = val; } |
| 83 | bool getAndroidList(void) const { return mAndroidList; } |
| 84 | void setAndroidList(bool val) { mAndroidList = val; } |
| 85 | bool getForce(void) const { return mForce; } |
| 86 | void setForce(bool val) { mForce = val; } |
| 87 | void setGrayscaleTolerance(int val) { mGrayscaleTolerance = val; } |
Jeff Brown | c0f7366 | 2012-03-16 22:17:41 -0700 | [diff] [blame] | 88 | int getGrayscaleTolerance() const { return mGrayscaleTolerance; } |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 89 | bool getMakePackageDirs(void) const { return mMakePackageDirs; } |
| 90 | void setMakePackageDirs(bool val) { mMakePackageDirs = val; } |
| 91 | bool getUpdate(void) const { return mUpdate; } |
| 92 | void setUpdate(bool val) { mUpdate = val; } |
| 93 | bool getExtending(void) const { return mExtending; } |
| 94 | void setExtending(bool val) { mExtending = val; } |
| 95 | bool getRequireLocalization(void) const { return mRequireLocalization; } |
| 96 | void setRequireLocalization(bool val) { mRequireLocalization = val; } |
| 97 | bool getPseudolocalize(void) const { return mPseudolocalize; } |
| 98 | void setPseudolocalize(bool val) { mPseudolocalize = val; } |
Kenny Root | 1741cd4 | 2010-03-18 12:12:11 -0700 | [diff] [blame] | 99 | void setWantUTF16(bool val) { mWantUTF16 = val; } |
Dianne Hackborn | e17086b | 2009-06-19 15:13:28 -0700 | [diff] [blame] | 100 | bool getValues(void) const { return mValues; } |
| 101 | void setValues(bool val) { mValues = val; } |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 102 | int getCompressionMethod(void) const { return mCompressionMethod; } |
| 103 | void setCompressionMethod(int val) { mCompressionMethod = val; } |
Doug Zongker | dbe7a68 | 2009-10-09 11:24:51 -0700 | [diff] [blame] | 104 | bool getJunkPath(void) const { return mJunkPath; } |
| 105 | void setJunkPath(bool val) { mJunkPath = val; } |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 106 | const char* getOutputAPKFile() const { return mOutputAPKFile; } |
| 107 | void setOutputAPKFile(const char* val) { mOutputAPKFile = val; } |
Jeff Hamilton | 2fee0ed | 2010-01-06 15:46:38 -0600 | [diff] [blame] | 108 | const char* getManifestPackageNameOverride() const { return mManifestPackageNameOverride; } |
| 109 | void setManifestPackageNameOverride(const char * val) { mManifestPackageNameOverride = val; } |
Dianne Hackborn | ef05e07 | 2010-03-01 17:43:39 -0800 | [diff] [blame] | 110 | const char* getInstrumentationPackageNameOverride() const { return mInstrumentationPackageNameOverride; } |
| 111 | void setInstrumentationPackageNameOverride(const char * val) { mInstrumentationPackageNameOverride = val; } |
Xavier Ducrohet | 99080c7 | 2010-02-04 18:45:31 -0800 | [diff] [blame] | 112 | bool getAutoAddOverlay() { return mAutoAddOverlay; } |
| 113 | void setAutoAddOverlay(bool val) { mAutoAddOverlay = val; } |
Josiah Gaskin | 9bf34ca | 2011-06-14 13:57:09 -0700 | [diff] [blame] | 114 | bool getGenDependencies() { return mGenDependencies; } |
| 115 | void setGenDependencies(bool val) { mGenDependencies = val; } |
Xavier Ducrohet | 7714a24 | 2012-09-05 17:49:21 -0700 | [diff] [blame] | 116 | bool getErrorOnFailedInsert() { return mErrorOnFailedInsert; } |
| 117 | void setErrorOnFailedInsert(bool val) { mErrorOnFailedInsert = val; } |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 118 | |
Dianne Hackborn | 6c997a9 | 2012-01-31 11:27:43 -0800 | [diff] [blame] | 119 | bool getUTF16StringsOption() { |
| 120 | return mWantUTF16 || !isMinSdkAtLeast(SDK_FROYO); |
| 121 | } |
| 122 | |
Doug Zongker | dbe7a68 | 2009-10-09 11:24:51 -0700 | [diff] [blame] | 123 | /* |
| 124 | * Input options. |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 125 | */ |
| 126 | const char* getAssetSourceDir() const { return mAssetSourceDir; } |
| 127 | void setAssetSourceDir(const char* dir) { mAssetSourceDir = dir; } |
Josiah Gaskin | 8a39da8 | 2011-06-06 17:00:35 -0700 | [diff] [blame] | 128 | const char* getCrunchedOutputDir() const { return mCrunchedOutputDir; } |
| 129 | void setCrunchedOutputDir(const char* dir) { mCrunchedOutputDir = dir; } |
Joe Onorato | 1553c82 | 2009-08-30 13:36:22 -0700 | [diff] [blame] | 130 | const char* getProguardFile() const { return mProguardFile; } |
| 131 | void setProguardFile(const char* file) { mProguardFile = file; } |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 132 | const android::Vector<const char*>& getResourceSourceDirs() const { return mResourceSourceDirs; } |
| 133 | void addResourceSourceDir(const char* dir) { mResourceSourceDirs.insertAt(dir,0); } |
| 134 | const char* getAndroidManifestFile() const { return mAndroidManifestFile; } |
| 135 | void setAndroidManifestFile(const char* file) { mAndroidManifestFile = file; } |
| 136 | const char* getPublicOutputFile() const { return mPublicOutputFile; } |
| 137 | void setPublicOutputFile(const char* file) { mPublicOutputFile = file; } |
| 138 | const char* getRClassDir() const { return mRClassDir; } |
| 139 | void setRClassDir(const char* dir) { mRClassDir = dir; } |
| 140 | const char* getConfigurations() const { return mConfigurations.size() > 0 ? mConfigurations.string() : NULL; } |
| 141 | void addConfigurations(const char* val) { if (mConfigurations.size() > 0) { mConfigurations.append(","); mConfigurations.append(val); } else { mConfigurations = val; } } |
Dianne Hackborn | e6b6803 | 2011-10-13 16:26:02 -0700 | [diff] [blame] | 142 | const char* getPreferredConfigurations() const { return mPreferredConfigurations.size() > 0 ? mPreferredConfigurations.string() : NULL; } |
| 143 | void addPreferredConfigurations(const char* val) { if (mPreferredConfigurations.size() > 0) { mPreferredConfigurations.append(","); mPreferredConfigurations.append(val); } else { mPreferredConfigurations = val; } } |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 144 | const char* getResourceIntermediatesDir() const { return mResourceIntermediatesDir; } |
| 145 | void setResourceIntermediatesDir(const char* dir) { mResourceIntermediatesDir = dir; } |
| 146 | const android::Vector<const char*>& getPackageIncludes() const { return mPackageIncludes; } |
| 147 | void addPackageInclude(const char* file) { mPackageIncludes.add(file); } |
| 148 | const android::Vector<const char*>& getJarFiles() const { return mJarFiles; } |
| 149 | void addJarFile(const char* file) { mJarFiles.add(file); } |
| 150 | const android::Vector<const char*>& getNoCompressExtensions() const { return mNoCompressExtensions; } |
| 151 | void addNoCompressExtension(const char* ext) { mNoCompressExtensions.add(ext); } |
| 152 | |
Kenny Root | 1741cd4 | 2010-03-18 12:12:11 -0700 | [diff] [blame] | 153 | const char* getManifestMinSdkVersion() const { return mManifestMinSdkVersion; } |
| 154 | void setManifestMinSdkVersion(const char* val) { mManifestMinSdkVersion = val; } |
Dianne Hackborn | a96cbb4 | 2009-05-13 15:06:13 -0700 | [diff] [blame] | 155 | const char* getMinSdkVersion() const { return mMinSdkVersion; } |
Kenny Root | 1741cd4 | 2010-03-18 12:12:11 -0700 | [diff] [blame] | 156 | void setMinSdkVersion(const char* val) { mMinSdkVersion = val; } |
Dianne Hackborn | a96cbb4 | 2009-05-13 15:06:13 -0700 | [diff] [blame] | 157 | const char* getTargetSdkVersion() const { return mTargetSdkVersion; } |
| 158 | void setTargetSdkVersion(const char* val) { mTargetSdkVersion = val; } |
| 159 | const char* getMaxSdkVersion() const { return mMaxSdkVersion; } |
| 160 | void setMaxSdkVersion(const char* val) { mMaxSdkVersion = val; } |
| 161 | const char* getVersionCode() const { return mVersionCode; } |
| 162 | void setVersionCode(const char* val) { mVersionCode = val; } |
| 163 | const char* getVersionName() const { return mVersionName; } |
| 164 | void setVersionName(const char* val) { mVersionName = val; } |
Xavier Ducrohet | 63459ad | 2009-11-30 18:05:10 -0800 | [diff] [blame] | 165 | const char* getCustomPackage() const { return mCustomPackage; } |
| 166 | void setCustomPackage(const char* val) { mCustomPackage = val; } |
Josiah Gaskin | ce89f15 | 2011-06-08 19:31:40 -0700 | [diff] [blame] | 167 | const char* getExtraPackages() const { return mExtraPackages; } |
| 168 | void setExtraPackages(const char* val) { mExtraPackages = val; } |
Ficus Kirkpatrick | 588f228 | 2010-08-13 14:13:08 -0700 | [diff] [blame] | 169 | const char* getMaxResVersion() const { return mMaxResVersion; } |
| 170 | void setMaxResVersion(const char * val) { mMaxResVersion = val; } |
Jeff Brown | c0f7366 | 2012-03-16 22:17:41 -0700 | [diff] [blame] | 171 | bool getDebugMode() const { return mDebugMode; } |
Xavier Ducrohet | 6487b09 | 2010-08-31 10:45:31 -0700 | [diff] [blame] | 172 | void setDebugMode(bool val) { mDebugMode = val; } |
Jeff Brown | c0f7366 | 2012-03-16 22:17:41 -0700 | [diff] [blame] | 173 | bool getNonConstantId() const { return mNonConstantId; } |
Xavier Ducrohet | d06c1af | 2011-02-14 16:58:00 -0800 | [diff] [blame] | 174 | void setNonConstantId(bool val) { mNonConstantId = val; } |
Eric Fischer | 9096404 | 2010-09-15 15:59:21 -0700 | [diff] [blame] | 175 | const char* getProduct() const { return mProduct; } |
| 176 | void setProduct(const char * val) { mProduct = val; } |
Josiah Gaskin | 8a39da8 | 2011-06-06 17:00:35 -0700 | [diff] [blame] | 177 | void setUseCrunchCache(bool val) { mUseCrunchCache = val; } |
Jeff Brown | c0f7366 | 2012-03-16 22:17:41 -0700 | [diff] [blame] | 178 | bool getUseCrunchCache() const { return mUseCrunchCache; } |
Xavier Ducrohet | f5de650 | 2012-09-11 14:45:22 -0700 | [diff] [blame] | 179 | const char* getOutputTextSymbols() const { return mOutputTextSymbols; } |
| 180 | void setOutputTextSymbols(const char* val) { mOutputTextSymbols = val; } |
Xavier Ducrohet | b1f6ad8 | 2012-12-21 09:54:02 -0800 | [diff] [blame] | 181 | const char* getSingleCrunchInputFile() const { return mSingleCrunchInputFile; } |
| 182 | void setSingleCrunchInputFile(const char* val) { mSingleCrunchInputFile = val; } |
| 183 | const char* getSingleCrunchOutputFile() const { return mSingleCrunchOutputFile; } |
| 184 | void setSingleCrunchOutputFile(const char* val) { mSingleCrunchOutputFile = val; } |
Doug Zongker | dbe7a68 | 2009-10-09 11:24:51 -0700 | [diff] [blame] | 185 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 186 | /* |
| 187 | * Set and get the file specification. |
| 188 | * |
| 189 | * Note this does NOT make a copy of argv. |
| 190 | */ |
| 191 | void setFileSpec(char* const argv[], int argc) { |
| 192 | mArgc = argc; |
| 193 | mArgv = argv; |
| 194 | } |
| 195 | int getFileSpecCount(void) const { return mArgc; } |
| 196 | const char* getFileSpecEntry(int idx) const { return mArgv[idx]; } |
| 197 | void eatArgs(int n) { |
| 198 | if (n > mArgc) n = mArgc; |
| 199 | mArgv += n; |
| 200 | mArgc -= n; |
| 201 | } |
| 202 | |
| 203 | #if 0 |
| 204 | /* |
| 205 | * Package count. Nothing to do with anything else here; this is |
| 206 | * just a convenient place to stuff it so we don't have to pass it |
| 207 | * around everywhere. |
| 208 | */ |
| 209 | int getPackageCount(void) const { return mPackageCount; } |
| 210 | void setPackageCount(int val) { mPackageCount = val; } |
| 211 | #endif |
| 212 | |
Kenny Root | c9f3088 | 2010-03-24 11:55:16 -0700 | [diff] [blame] | 213 | /* Certain features may only be available on a specific SDK level or |
| 214 | * above. SDK levels that have a non-numeric identifier are assumed |
| 215 | * to be newer than any SDK level that has a number designated. |
Kenny Root | 1741cd4 | 2010-03-18 12:12:11 -0700 | [diff] [blame] | 216 | */ |
Kenny Root | c9f3088 | 2010-03-24 11:55:16 -0700 | [diff] [blame] | 217 | bool isMinSdkAtLeast(int desired) { |
Kenny Root | 1741cd4 | 2010-03-18 12:12:11 -0700 | [diff] [blame] | 218 | /* If the application specifies a minSdkVersion in the manifest |
| 219 | * then use that. Otherwise, check what the user specified on |
| 220 | * the command line. If neither, it's not available since |
| 221 | * the minimum SDK version is assumed to be 1. |
| 222 | */ |
| 223 | const char *minVer; |
| 224 | if (mManifestMinSdkVersion != NULL) { |
| 225 | minVer = mManifestMinSdkVersion; |
| 226 | } else if (mMinSdkVersion != NULL) { |
| 227 | minVer = mMinSdkVersion; |
| 228 | } else { |
| 229 | return false; |
| 230 | } |
| 231 | |
| 232 | char *end; |
| 233 | int minSdkNum = (int)strtol(minVer, &end, 0); |
| 234 | if (*end == '\0') { |
Kenny Root | c9f3088 | 2010-03-24 11:55:16 -0700 | [diff] [blame] | 235 | if (minSdkNum < desired) { |
Kenny Root | 1741cd4 | 2010-03-18 12:12:11 -0700 | [diff] [blame] | 236 | return false; |
| 237 | } |
| 238 | } |
| 239 | return true; |
| 240 | } |
| 241 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 242 | private: |
| 243 | /* commands & modifiers */ |
| 244 | Command mCmd; |
| 245 | bool mVerbose; |
| 246 | bool mAndroidList; |
| 247 | bool mForce; |
| 248 | int mGrayscaleTolerance; |
| 249 | bool mMakePackageDirs; |
| 250 | bool mUpdate; |
| 251 | bool mExtending; |
| 252 | bool mRequireLocalization; |
| 253 | bool mPseudolocalize; |
Kenny Root | 1741cd4 | 2010-03-18 12:12:11 -0700 | [diff] [blame] | 254 | bool mWantUTF16; |
Dianne Hackborn | e17086b | 2009-06-19 15:13:28 -0700 | [diff] [blame] | 255 | bool mValues; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 256 | int mCompressionMethod; |
Doug Zongker | dbe7a68 | 2009-10-09 11:24:51 -0700 | [diff] [blame] | 257 | bool mJunkPath; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 258 | const char* mOutputAPKFile; |
Jeff Hamilton | 2fee0ed | 2010-01-06 15:46:38 -0600 | [diff] [blame] | 259 | const char* mManifestPackageNameOverride; |
Dianne Hackborn | ef05e07 | 2010-03-01 17:43:39 -0800 | [diff] [blame] | 260 | const char* mInstrumentationPackageNameOverride; |
Xavier Ducrohet | 99080c7 | 2010-02-04 18:45:31 -0800 | [diff] [blame] | 261 | bool mAutoAddOverlay; |
Josiah Gaskin | 9bf34ca | 2011-06-14 13:57:09 -0700 | [diff] [blame] | 262 | bool mGenDependencies; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 263 | const char* mAssetSourceDir; |
Josiah Gaskin | 8a39da8 | 2011-06-06 17:00:35 -0700 | [diff] [blame] | 264 | const char* mCrunchedOutputDir; |
Joe Onorato | 1553c82 | 2009-08-30 13:36:22 -0700 | [diff] [blame] | 265 | const char* mProguardFile; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 266 | const char* mAndroidManifestFile; |
| 267 | const char* mPublicOutputFile; |
| 268 | const char* mRClassDir; |
| 269 | const char* mResourceIntermediatesDir; |
| 270 | android::String8 mConfigurations; |
Dianne Hackborn | e6b6803 | 2011-10-13 16:26:02 -0700 | [diff] [blame] | 271 | android::String8 mPreferredConfigurations; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 272 | android::Vector<const char*> mPackageIncludes; |
| 273 | android::Vector<const char*> mJarFiles; |
| 274 | android::Vector<const char*> mNoCompressExtensions; |
| 275 | android::Vector<const char*> mResourceSourceDirs; |
Doug Zongker | dbe7a68 | 2009-10-09 11:24:51 -0700 | [diff] [blame] | 276 | |
Kenny Root | 1741cd4 | 2010-03-18 12:12:11 -0700 | [diff] [blame] | 277 | const char* mManifestMinSdkVersion; |
Dianne Hackborn | a96cbb4 | 2009-05-13 15:06:13 -0700 | [diff] [blame] | 278 | const char* mMinSdkVersion; |
| 279 | const char* mTargetSdkVersion; |
| 280 | const char* mMaxSdkVersion; |
| 281 | const char* mVersionCode; |
| 282 | const char* mVersionName; |
Xavier Ducrohet | 63459ad | 2009-11-30 18:05:10 -0800 | [diff] [blame] | 283 | const char* mCustomPackage; |
Josiah Gaskin | ce89f15 | 2011-06-08 19:31:40 -0700 | [diff] [blame] | 284 | const char* mExtraPackages; |
Ficus Kirkpatrick | 588f228 | 2010-08-13 14:13:08 -0700 | [diff] [blame] | 285 | const char* mMaxResVersion; |
Xavier Ducrohet | 6487b09 | 2010-08-31 10:45:31 -0700 | [diff] [blame] | 286 | bool mDebugMode; |
Xavier Ducrohet | d06c1af | 2011-02-14 16:58:00 -0800 | [diff] [blame] | 287 | bool mNonConstantId; |
Eric Fischer | 9096404 | 2010-09-15 15:59:21 -0700 | [diff] [blame] | 288 | const char* mProduct; |
Josiah Gaskin | 8a39da8 | 2011-06-06 17:00:35 -0700 | [diff] [blame] | 289 | bool mUseCrunchCache; |
Xavier Ducrohet | 7714a24 | 2012-09-05 17:49:21 -0700 | [diff] [blame] | 290 | bool mErrorOnFailedInsert; |
Xavier Ducrohet | f5de650 | 2012-09-11 14:45:22 -0700 | [diff] [blame] | 291 | const char* mOutputTextSymbols; |
Xavier Ducrohet | b1f6ad8 | 2012-12-21 09:54:02 -0800 | [diff] [blame] | 292 | const char* mSingleCrunchInputFile; |
| 293 | const char* mSingleCrunchOutputFile; |
Doug Zongker | dbe7a68 | 2009-10-09 11:24:51 -0700 | [diff] [blame] | 294 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 295 | /* file specification */ |
| 296 | int mArgc; |
| 297 | char* const* mArgv; |
| 298 | |
| 299 | #if 0 |
| 300 | /* misc stuff */ |
| 301 | int mPackageCount; |
| 302 | #endif |
Kenny Root | b5ef7ee | 2009-12-10 13:52:53 -0800 | [diff] [blame] | 303 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 304 | }; |
| 305 | |
| 306 | #endif // __BUNDLE_H |