Skip to content
0:00 / 0:00

#gradle#androidgradleplugin#agp

What’s new in Android Gradle plugin | Session

Android Developers

1.4M subscribers • 20 videos on Hallway

YouTube
  • Recommended by 1 person: 1 on Stack Overflow and its sister sites.
  • Presented by Jerome Dochez, Chris Warrington
  • Made by the vendor. The company whose product it covers made or sponsored it.
  • May be out of date. The tools, versions or practices it shows have likely moved on.

Intermediate. Assumes working knowledge.

10K views5 years ago1 recommendation

Mobile developmentTools and practiceAndroid and Jetpack ComposeBuild systems and packaging

Jerome Dochez and Chris Warrington present the new features in Android Gradle Plugin 7.0, including the new Variants and ASM APIs.

AGP 7.0 and Gradle 7.x bring some new, exciting features to Android development. We share the latest on configuration caching, new digital subscriber line (DSL), Variant and ASM APIs, namespaces in resources, and other useful tools that developers should leverage. Speakers: Jerome Dochez, Chris Warrington Watch more: Android and Play at Google I/O 2021 Playlist → goo.gle/io21-AndroidDevs All Google I/O 2021 Technical Sessions → goo.gle/io21-technicalsessions All Google I/O 2021 Sessions → goo.gle/io21-allsessions Subscribe to Android Developers → goo.gle/AndroidDevs​ #Featured #AndroidGradle #GoogleIO #GoogleIO #Android product: Android - Android Studio; event: Google I/O 2021; fullname: Jerome Dochez, Chris Warrington; re_ty: Premiere;

Why it's here

1 person recommends this

What people say. Recommended for learning how to use the new Android Gradle Plugin Variants API to programmatically alter build configurations like the application ID.

Moments people linked to

Henningon Stack Overflow • Recommends

On “How to set different applicationId for each flavor combination using flavorDimensions when using Gradle Kotlin-DSL?”

Google added the variants API with the Android Gradle Plugin 7.0.0. With it we can alter the applicationId . android { flavorDimensions.addAll(listOf("price", "dataset")) productFlavors { create("free") { dimension = "price" } create("pro") { dimension = "price" } create("dataset1") { dimension = "dataset" } create("dataset2") { dimension = "dataset" } } } androidComponents { onVariants { variant -> val applicationId = when(variant.flavorName) { "freeDataset1" -> "com.beansys.freeappdataset1" "freeDataset2" -> "com.beansys.freedataset2" "proDataset1" -> "com.beansys.dataset1paid" "proDataset2" -> "com.beansys.mypaiddataset2" else -> throw(IllegalStateException("Whats your…
13View the answer