14 C
London
Tuesday, October 24, 2023

Now in Android #90. ART updates, Dagger KSP, Jetpack… | by Manuel Vivo | Android Builders | Sep, 2023


Android is updating its visible identification that higher represents our Android group, and displays Android’s core ethos of being open, iterative and inclusive.

The Android robotic grew to become a distinguished fixture of our brand, and now we’re giving Bugdroid a wholly new 3D look. We needed the bugdroid to seem as dynamic as Android itself.

Screenshot of the video introducing the brand new Android model

You’ll begin seeing the brand new points of the model identification, just like the up to date brand and 3D bugdroid, seem on Android units and in additional locations beginning this yr.

Because of ART Google Play system updates, a whole lot of hundreds of thousands of units obtain the most recent efficiency enhancements, safety fixes, & OpenJDK APIs! Find out how we modularized Android to permit ART, the engine powering Android, to replace independently.

Within the coming months, we’ll be releasing ART 14 to all appropriate units. ART 14 consists of OpenJDK 17 help together with new compiler and runtime optimizations that enhance efficiency whereas lowering code dimension.

The newest launch of Dagger and Hilt — v2.48 — consists of the alpha launch of their KSP processors. Directions for utilizing them might be discovered within the Dagger KSP information. This launch contributes to eliminating KAPT in your Gradle builds and making them quicker. There are some breaking modifications you need to be conscious of, try the 2.48 launch notes for extra data.

Ben Trengrove gave an replace on Jetpack Compose Accompanist libraries. Some libraries will probably be deprecated with no alternative, together with Pager Indicators and WebView. Drawable Painter and Permissions are thought of function full. And Adaptive, Check Harness and Navigation Materials proceed to be experimental.

We up to date the modularization steering to incorporate extra widespread patterns reminiscent of take a look at modules and dependency inversion. With dependency inversion, your modules depend upon abstraction modules as a substitute of concrete implementations. Learn the information to study extra about these subjects.

Whether or not your supply code is written in Java, Kotlin, or each, there are a number of locations you will need to select a JDK or Java language model to your construct. The new Java variations in Android builds information assist you determine which JDK is which, how to decide on the appropriate one in numerous eventualities, and which Java language options you should utilize in your mission.

If you wish to get began with animations in Compose, we created a new information with an inventory of widespread animation use instances and the appropriate API to make use of in every state of affairs. Additionally, we improved the earlier animations in Compose diagram with a better API determination tree. Doesn’t it look good?

Flowchart describing the choice tree for selecting the suitable Compose animation API

The Now in Android open supply app is now utilizing screenshot assessments to confirm the visible look of sure Compose screens and elements. Screenshot assessments can robotically confirm combos of attributes that make sense reminiscent of completely different app states, display screen sizes, locales, or themes.

To see that in motion, this PR provides some screenshot assessments to the design system module within the mission, and this different one units up screenshot testing within the app.

That’s it for this time with a brand new Android model, ART updates, the Dagger and Hilt KSP processors alpha launch, Accompanist libraries updates, enhancements to the modularization and Compose animations steering, and screenshot testing within the Now in Android app.

Come again right here quickly for the subsequent replace from the Android developer universe! 💫

Latest news
Related news

LEAVE A REPLY

Please enter your comment!
Please enter your name here