MAD Expertise Gradle and AGP construct APIs Wrap Up!

Posted by Murat Yener, Android Developer Advocate

, Reloadman Blog

That’s a wrap! We’ve simply completed a brand new MAD expertise collection on Gradle and Android Gradle plugin construct APIs. On this collection we shifted gears and took a have a look at how one can prolong your construct through the use of Gradle and model new Android Gradle plugin APIs.

We lined how Gradle works, how one can configure the Android Gradle plugin, and discovered which APIs to make use of to assist customise your builds and hold your builds quick and environment friendly. If you happen to missed this collection or among the episodes, here’s a fast recap of what to anticipate.

Episode 1: Configure your construct – Intro to Gradle and AGP

Gradle is a common function construct software which might construct particular mission varieties through the use of plugins. Plugins introduce a solution to configure the construct and determine which duties are wanted to construct that mission. Gradle configures and executes these duties in several phases. Understanding how the construct phases work and how one can configure the Android Gradle plugin may help you customise your construct in keeping with your mission’s wants and hold construct occasions environment friendly.

You’ll be able to take a look at the next video or should you want, learn the article.

Episode 2: Tips on how to write a plugin

Extending your construct by writing your personal plugin provides you a solution to customise your construct even additional! Beginning with model 7.0, Android Gradle Plugin now gives steady extension factors for manipulating variant configuration and the produced construct artifacts. On this episode we began with writing a customized process and used the brand new Variant API to initialize and modify properties of Variants.

You will discover the identical content material in article type.

Episode 3: Taking your plugin to the following step

As we noticed in earlier episodes, protecting your config part quick and resolving values lazily may help hold your builds environment friendly. Suppliers and Properties allow you to go inputs and obtain outputs from Gradle duties lazily. On this episode we additionally check out the brand new Artifacts API to entry and modify the app manifest.

Take a look at the article or the next video.

Episode 4: Gradle and AGP Construct APIs Group Tip

Within the final episode within the collection, we characteristic Alex Saveau, who maintains the Gradle Play Writer and Model Orchestrator plugins. Alex shares a tip on utilizing fashionable AGP and Gradle APIs to control Android construct artifacts.

To be taught extra, take a look at the next video.

Episode 6: Dwell Q&A

Lastly, we wrapped up this collection with a dwell Q&A session the place we answered your questions. If you happen to missed the Q&A, ensure to take a look at the next recording.

In case you are to be taught extra, ensure to take a look at the assets and the Gradle recipes repo linked under! See you within the subsequent MAD Expertise collection.

Recipes repo:

Prolong the Android Gradle plugin:

AGP Roadmap:

Supply hyperlink

Related Articles


Please enter your comment!
Please enter your name here

Stay Connected


Latest Articles