commit | afe002d1474d7c2ef2ac80de32f21f1949af2a41 | [log] [tgz] |
---|---|---|
author | Dan Bornstein <danfuzz@android.com> | Thu Apr 07 10:41:09 2011 -0700 |
committer | Dan Bornstein <danfuzz@android.com> | Thu Apr 07 10:41:09 2011 -0700 |
tree | 89ffcccb7313c2fb385d418bdb1b14c17a8820b4 | |
parent | a4a19037f75e0e3c85fb5f3c7fa31732f8475719 [diff] |
Update the interpretation of --target-api. Change-Id: I4ab158384d09470d84097d944ae1ddadeb2ad045
diff --git a/dx/src/com/android/dx/command/dexer/Main.java b/dx/src/com/android/dx/command/dexer/Main.java index 16651a6..e810bca 100644 --- a/dx/src/com/android/dx/command/dexer/Main.java +++ b/dx/src/com/android/dx/command/dexer/Main.java
@@ -1098,7 +1098,12 @@ cfOptions.warn = DxConsole.err; dexOptions = new DexOptions(); - dexOptions.enableExtendedOpcodes = targetApiLevel >= 12; + + /* + * The new extended opcodes were introduced to the dex format + * as of API level 13 (aka Ice Cream Sandwich). + */ + dexOptions.enableExtendedOpcodes = targetApiLevel >= 13; } }