Posted by Nick Butcher, Developer Relations Engineer
Our aim is to make creating stunning and interesting Android apps as quick and simple as attainable. We wish to tackle the advanced components of constructing apps with the intention to focus in your app’s options and ship top quality experiences to your customers.
We name this method Modern Android Development (or MAD for brief!) and ship it by a set of instruments, libraries and steerage. At Google I/O we introduced plenty of updates and additions to our MAD choices; right here’s a recap of the three largest bulletins.
#1 Compose 1.2 Beta
Jetpack Compose 1.2 reaches the primary Beta, which suggests the API is secure. We proceed to construct out our roadmap, bringing the APIs it’s essential help extra superior use circumstances like downloadable fonts, LazyGrids, window insets, nested scrolling interop, and extra tooling help with options like LiveEdit, Recomposition counts within the Structure Inspector and Animation Preview. Study extra about how builders like Airbnb are bettering their productiveness with Jetpack Compose, and take a look at what else is new in Compose.
#2 Baseline Profiles
Baseline profiles can help you embed a profile to information the Android Runtime about which code paths needs to be pre-compiled quite than interpreted, which may dramatically influence essential consumer journeys like app startup. That is particularly vital when utilizing unbundled libraries like Jetpack Compose which don’t profit from optimizations in platform code.
Many Jetpack libraries (together with Jetpack Compose) already ship baseline profiles, however you possibly can discover ways to add them to your individual apps and libraries to spice up their efficiency. We have seen as much as 40% sooner app startup instances because of including baseline profiles alone, no different code modifications required!
#3 Stay Edit
With Stay Edit you possibly can edit composables and consider these modifications in actual time, on the Compose Preview or on bodily units or emulators, enabling fast iteration. Stay Edit is an opt-in experimental function in Android Studio Electrical Eel, with plenty of limitations. Please strive it out and supply your suggestions.
These had been the highest three bulletins about Modern Android Development at Google I/O. To be taught extra, try the complete playlist of talks and workshops.