![]() html image references, and supports the tools:keep and tools:discard attributes used by the Gradle resource shrinker, it considers inactive source sets (e.g. The unused resource detector has been rewritten, and now supports flagging "transitive" unused resources (resources that are referenced, but only from other unused resources), supports detecting resource references in raw files such as.There is a new "Remove Unused Resources" refactoring which finds and removes unused resources in the project.Note that Instant Run now requires a new version of the Gradle plugin: 2.0-alpha5 (also released today) - release notes for the plugin.In that case, we push the changes via adb to an "inbox" directory on the device. In addition to "coldswap", which restarts a running app after applying incompatible changes, we also support "freeze swap" where we support building incrementally even when the app isn't originally running.On Android KitKat and below, we create a single dex file containing the changed classes.On Android Lollipop, we use multidex to split the app code into dex slices, and push those.This means that on M, we don't need to use the class loader tricks that we use on older platforms. On Android Marshmallow, we use "APK splits", dividing the codebase up into slices that are packaged as individual APK slices, and install these via adb install-multiple.We use several different methods for this, depending on the API level of the target device: Among the user visible features, we now support "cold swap": if there is an incompatible change that can't be hot swapped, it now builds and deploys incremental changes and restarts the app. Instant Run: We've made a huge number of changes in this area.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |