Xavier Ducrohet | c688b4e | 2010-01-25 18:19:11 -0800 | [diff] [blame] | 1 | Change log for Android SDK Tools. |
| 2 | |
Xavier Ducrohet | 1daa8f9 | 2012-03-29 19:28:25 -0700 | [diff] [blame] | 3 | Revision 20: |
| 4 | - Ant build system: |
| 5 | * the location of the SDK can now be set through the ANDROID_HOME |
| 6 | environment variable (requires updating the project's build.xml file) |
| 7 | * Fixed issues with compilation, deployment of test projects and running tests. |
| 8 | Both separate test projects and self-contained app+test projects now work. |
Xavier Ducrohet | 665f681 | 2012-06-01 18:28:08 -0700 | [diff] [blame] | 9 | * Aidl files from library projects are now in the import list. |
Xavier Ducrohet | 1daa8f9 | 2012-03-29 19:28:25 -0700 | [diff] [blame] | 10 | |
Xavier Ducrohet | 0dd4051 | 2012-03-29 12:11:54 -0700 | [diff] [blame] | 11 | Revision 19: |
Xavier Ducrohet | 1daa8f9 | 2012-03-29 19:28:25 -0700 | [diff] [blame] | 12 | - Fix GPU rendering |
Xavier Ducrohet | 0dd4051 | 2012-03-29 12:11:54 -0700 | [diff] [blame] | 13 | |
| 14 | Revision 18: |
| 15 | * Fix Ant issues where some jar libraries in libs/ are not picked in some |
| 16 | cases |
| 17 | * New version of SdkController |
| 18 | |
Tor Norbye | faab591 | 2011-12-03 13:41:39 -0800 | [diff] [blame] | 19 | Revision 17: |
Tor Norbye | 310538c | 2012-01-13 08:56:18 -0800 | [diff] [blame] | 20 | * Bug fixes. |
| 21 | * ProGuard updated to version 4.7. In addition to many new features, |
| 22 | this will fix the "Conversion to Dalvik format failed with error 1" |
| 23 | error some users have experienced. |
| 24 | * The default proguard.cfg file has been updated with better |
| 25 | flags. |
| 26 | * Lint now checks Java code, and checks which previously performed |
| 27 | pattern based searches in the Java code (such as the unused resource |
| 28 | check) have been rewritten to use the more accurate Java parse |
| 29 | trees. |
| 30 | * Lint supports library projects, so for example the unused resource |
| 31 | check will properly handle resources declared in a library project |
| 32 | and referenced in a downstream project. |
Tor Norbye | 5ae5ceb | 2012-02-15 12:39:14 -0800 | [diff] [blame] | 33 | * Lint warnings can be suppressed in Java code with the new |
| 34 | @SuppressLint annotation, and in XML files with the new tools: |
| 35 | namespace and ignore-attribute. |
Tor Norbye | 310538c | 2012-01-13 08:56:18 -0800 | [diff] [blame] | 36 | * New lint checks: |
Tor Norbye | 5ae5ceb | 2012-02-15 12:39:14 -0800 | [diff] [blame] | 37 | * Find Android API calls that require a version of Android higher |
| 38 | than the minimum supported version. You can use the new @TargetApi |
| 39 | annotation to specify local overrides for conditionally loaded |
| 40 | code. |
| 41 | * Find object allocations within onDraw, onMeasure and onLayout |
| 42 | calls |
| 43 | * Find usages of HashMap<Integer,X> which can be replaced by the |
| 44 | more efficient SparseArray, SparseIntArray or SparseBooleanArray |
| 45 | * Find typos in XML namespace declarations, as well as unused custom |
| 46 | namespace declarations and usages of custom namespaces in library |
| 47 | projects which do not yet work |
| 48 | * Find manifest files which declare more than one <uses-sdk> |
| 49 | elements, or which fail to declare minSdkVersion or |
| 50 | targetSdkVersion |
| 51 | * Check dialog button order such that OK/Cancel are in the right |
| 52 | order (depending on the target version of Android), that they are |
| 53 | using the standard case ("OK", not "Ok" or "ok" etc), and that |
| 54 | there aren't any Back buttons. |
| 55 | * Check menus to ensure that they are using "ifRoom" instead of |
| 56 | "always" for the showAsAction attribute (unless it's used |
| 57 | sparingly) |
Tor Norbye | 310538c | 2012-01-13 08:56:18 -0800 | [diff] [blame] | 58 | * Find hardcoded android:debuggable attributes on <application> |
| 59 | elements. This can lead to accidentally leaving debug information |
| 60 | in published applications. |
| 61 | * Find errors in format strings. This includes inconsistencies |
| 62 | between translated versions, as well as incompatible types |
| 63 | declared in XML and supplied in the String.format call in Java. |
| 64 | * Find incorrect casts in Java code where the cast is incompatible |
| 65 | with the view type declared in XML layouts. |
| 66 | * Find hardcoded references to "/sdcard" in Java code; these should |
| 67 | be using Environment.getExternalStorageDirectory().getPath() |
| 68 | instead |
| 69 | * Find "import android.R" statements in Java code, which can lead to |
| 70 | confusing compilation error messages |
| 71 | * Find Java code which creates world-writeable files (which can lead |
| 72 | to security problems) |
| 73 | * Find references to private resources (which can lead to runtime |
| 74 | errors on devices that do not provide the resource, since private |
| 75 | resources may disappear any time, and may not be present on all |
| 76 | platforms.) |
| 77 | * Find invalid @id references (where for example a RelativeLayout |
| 78 | references an id that does not exist anywhere). If no match is |
| 79 | found, it looks for spelling mistakes and suggests other similar |
| 80 | ids in the error message. |
| 81 | * Finds method calls to java.lang.Math where a float variable is |
| 82 | cast to a double and/or the return value is cast to a float, and |
| 83 | suggests replacing it with the equivalent android.util.FloatMath |
| 84 | method. |
| 85 | * Finds calls to a getter on the same class where a field could be |
| 86 | accessed instead. |
| 87 | * Find XML files using a different encoding format than UTF-8, since |
| 88 | this can lead to subtle bugs (and lint was fixed to properly use |
| 89 | the specified encoding) |
| 90 | * Find XML resource files that contain text which should not be |
| 91 | there (such as in layouts). This can identify accidentally |
| 92 | malformed documents which happen to be valid XML, such as a |
| 93 | missing "<" tag opening character. |
| 94 | * Find style references which lead to cycles, such as extending |
| 95 | self. |
Tor Norbye | faab591 | 2011-12-03 13:41:39 -0800 | [diff] [blame] | 96 | |
Tor Norbye | a79073e | 2011-10-20 18:33:24 -0700 | [diff] [blame] | 97 | Revision 16: |
| 98 | * New "lint" tool which scans Android project trees for potential |
| 99 | problems such as missing translations, duplicate ids between layouts |
| 100 | that include each other, using px instead of dp units, hardcoded |
| 101 | strings, missing contentDescriptions, obsolete Proguard |
| 102 | configuration files, etc. For a full list of available issues run |
| 103 | "lint --show" (and see eclipse/changes.txt for further details). |
| 104 | * layoutopt was removed; its functionality is replaced by the new lint |
| 105 | tool |
| 106 | |
Xavier Ducrohet | babf25c | 2011-02-14 15:52:12 -0800 | [diff] [blame] | 107 | Revision 14: |
| 108 | |
| 109 | - Build performance improvements: |
| 110 | * resource compilation and packaging now properly use dependency to only |
| 111 | be executed if a resource changed. |
| 112 | * Optimized resource compilation for projects with libraries. This should |
| 113 | speed up this phase significantly for large projects with libraries. |
| 114 | * PNG files that are optimized during resource packaging are now cached |
| 115 | and only re-optimized if they changed instead of doing at every build. |
| 116 | - New library project mechanism: |
| 117 | * |
| 118 | |
| 119 | Revision 13: |
| 120 | |
| 121 | Revision 12: (07/2011): |
| 122 | - The AVD manager and emulator can now use system images compiled for ARM v7 and |
| 123 | x86 CPUs. |
| 124 | |
| 125 | Revision 11 (05/2011): |
Tor Norbye | 3dcfd76 | 2011-04-28 18:41:09 -0700 | [diff] [blame] | 126 | - See eclipse/changes.txt for ADT related changes. |
| 127 | |
Xavier Ducrohet | babf25c | 2011-02-14 15:52:12 -0800 | [diff] [blame] | 128 | Revision 10 (02/2011): |
Tor Norbye | 3301b68 | 2011-04-05 08:59:12 -0700 | [diff] [blame] | 129 | - The tools now automatically generate Java Programming Language |
| 130 | source files (in the gen directory) and bytecode (in the res/raw |
| 131 | directory) from your native .rs files |
| 132 | |
Xavier Ducrohet | babf25c | 2011-02-14 15:52:12 -0800 | [diff] [blame] | 133 | Revision 9 (01/2011): |
Xavier Ducrohet | 593453d | 2011-01-16 15:32:41 -0800 | [diff] [blame] | 134 | - Fix packaging issue that broke draw9patch |
| 135 | - Ant build rules will now check the Ant version and fail if it's older than 1.8 |
| 136 | - Fix "folder locked" errors when installing packages in SDK Manager on Windows. |
| 137 | - Support https proxy when installing from SDK Manager. |
| 138 | - SDK Manager now suggests to install missing base platform for add-ons. |
Xavier Ducrohet | 88dcd9a | 2010-11-15 14:14:55 -0800 | [diff] [blame] | 139 | - Default proguard config file changes: |
| 140 | * ignore classes extending android.preference.Preference |
| 141 | * ignore classes extending android.app.backup.BackupAgentHelper |
Xavier Ducrohet | 8152395 | 2010-12-10 14:02:31 -0800 | [diff] [blame] | 142 | - Ant lib rules now allow for overriding java.encoding, java.source, and java.target |
| 143 | - Default encoding for Ant javac is now UTF-8 |
Xavier Ducrohet | 5e9522e | 2011-01-06 18:02:13 -0800 | [diff] [blame] | 144 | - Logcat view in DDMS now properly displays UTF-8 characters. |
Xavier Ducrohet | 8152395 | 2010-12-10 14:02:31 -0800 | [diff] [blame] | 145 | |
Xavier Ducrohet | 88dcd9a | 2010-11-15 14:14:55 -0800 | [diff] [blame] | 146 | |
Xavier Ducrohet | babf25c | 2011-02-14 15:52:12 -0800 | [diff] [blame] | 147 | Revision 8 (12/2010): |
Xavier Ducrohet | a89eaf9 | 2010-10-06 15:06:53 -0700 | [diff] [blame] | 148 | - New SDK component: platform-tools. This makes all platforms use the same |
Xavier Ducrohet | fb8fb87 | 2010-09-07 13:18:31 -0700 | [diff] [blame] | 149 | latest version of aapt/aidl/dx. |
| 150 | - Support for true debug build. No need to change the value of debuggable in |
| 151 | the Android Manifest. |
| 152 | "ant debug" will automatically insert debuggable==true, while "ant release" |
| 153 | will not. |
Xavier Ducrohet | a89eaf9 | 2010-10-06 15:06:53 -0700 | [diff] [blame] | 154 | If debuggable=true is set, then "ant release" will actually do a debug build. |
| 155 | - Automatic Proguard support in release builds. Only need to have a proguard.config |
| 156 | property in default.properties that points to a proguard config file. |
Xavier Ducrohet | ddfe279 | 2010-09-24 08:11:12 -0700 | [diff] [blame] | 157 | - new overridable Ant javac properties: java.encoding, java.source, and java.target |
| 158 | (default to "ascii", "1.5" and "1.5") |
Xavier Ducrohet | fb8fb87 | 2010-09-07 13:18:31 -0700 | [diff] [blame] | 159 | |
| 160 | |
Xavier Ducrohet | babf25c | 2011-02-14 15:52:12 -0800 | [diff] [blame] | 161 | Revision 7 (09/2010): |
Xavier Ducrohet | 1ae6d59 | 2010-05-18 12:23:39 -0700 | [diff] [blame] | 162 | - Support for Ant rules provided by the Tools components (override the one in |
| 163 | the platform component) |
Xavier Ducrohet | c7e2ff4 | 2010-07-02 10:39:07 -0700 | [diff] [blame] | 164 | - Added support for libraries with library dependencies. |
Xavier Ducrohet | 6fcb974 | 2010-06-28 13:58:11 -0700 | [diff] [blame] | 165 | - Support for aidl files in library projects. |
Xavier Ducrohet | 8de0ba7 | 2010-06-01 17:00:00 -0700 | [diff] [blame] | 166 | - Support for extension targets in Ant build to perform tasks between the |
| 167 | normal tasks: -pre-build, -pre-compile, -post-compile. |
Xavier Ducrohet | 6fcb974 | 2010-06-28 13:58:11 -0700 | [diff] [blame] | 168 | - Headless SDK update. See 'android -h update sdk' for more info. |
Xavier Ducrohet | e3c65f3 | 2010-06-09 01:34:19 +0200 | [diff] [blame] | 169 | - Fixed location control in DDMS to work in any locale not using '.' as a |
| 170 | decimal point. |
Xavier Ducrohet | 1ae6d59 | 2010-05-18 12:23:39 -0700 | [diff] [blame] | 171 | |
Xavier Ducrohet | 8de0ba7 | 2010-06-01 17:00:00 -0700 | [diff] [blame] | 172 | |
| 173 | Revision 6 (05/2010) |
Xavier Ducrohet | eee4bf1 | 2010-03-17 11:47:43 -0700 | [diff] [blame] | 174 | - Support for library project to share code/resources among projects |
| 175 | - Updated Ant rules and custom tasks |
| 176 | - New "android create lib-project", "android update lib-project" actions. |
| 177 | - New parameter for "android update project" |
Xavier Ducrohet | 1ae6d59 | 2010-05-18 12:23:39 -0700 | [diff] [blame] | 178 | |
Xavier Ducrohet | eee4bf1 | 2010-03-17 11:47:43 -0700 | [diff] [blame] | 179 | |
| 180 | Revision 5 (03/2010): |
Xavier Ducrohet | c688b4e | 2010-01-25 18:19:11 -0800 | [diff] [blame] | 181 | - AVD/SDK Manager: |
Xavier Ducrohet | f89bdfe | 2010-01-29 13:53:40 -0800 | [diff] [blame] | 182 | - Fixed SSL download for the standalone version of the SDK Updater. |
Xavier Ducrohet | aac1ef5 | 2010-02-02 13:34:18 -0800 | [diff] [blame] | 183 | - Fixed issue with 64bit JVM on windows. |
Xavier Ducrohet | c688b4e | 2010-01-25 18:19:11 -0800 | [diff] [blame] | 184 | - Add support for samples components. |
| 185 | - improved support for dependency between components. |
| 186 | - AVDs now sorted by API level. |
Xavier Ducrohet | aac1ef5 | 2010-02-02 13:34:18 -0800 | [diff] [blame] | 187 | - Prevent deletion of running AVDs. |
| 188 | - Settings are now automatically saved, no need to click Apply. |
Xavier Ducrohet | c688b4e | 2010-01-25 18:19:11 -0800 | [diff] [blame] | 189 | - Emulator now requires sd card to be 9MB and above. |
| 190 | - Fixed layoutopt.bat to correctly execute on Windows. |
| 191 | |