The Gradle build system Version Catalog is a powerful tool that can help you manage dependencies and plugins in your Android projects. Instead of hard-coding dependency names and versions in individual build files and updating each entry whenever you need to upgrade a dependency, you can create a centralized version catalog of dependencies that various modules and even projects can reference in a type-safe way with Android Studio assistance. This makes managing dependencies and plugins easier when you have multiple modules or projects.
In this video, I will show you how to migrate your Android app to version catalogs. I will cover the basic steps of creating a version catalog file, migrating dependencies, and plugins. I will also provide some tips and tricks to help you get started with the Gradle version catalog publication.
Contents of this video:
- 0:00 – Intro
- 0:28 – What is the version catalog?
- 1:04 – Quick examples
- 1:27 – Start a version catalog project in Android Studio
- 2:23 – The version catalog TOML file structure
- 3:35 – Aliases naming conventions
- 4:17 – The version catalog Kotlin DSL
- 4:38 – Pros & Cons of using version catalog
- 6:39 – The version catalog publication
- 8:30 – Using a published version catalog
- 8:45 – Outro
Mobile App Development Best Practices – 21.09
iOS Closures vs. Delegates in Swift iOS How to use the new inspector SwiftUI view modifier How to create an...
2023 App Threat Report
In 2022 alone, the number of mobile app downloads surpassed a staggering 200 billion, emphasizing the pervasive presence of these...
ElectricSQL – Local-first sync layer for web and mobile apps
Local-first sync layer for web and mobile apps. Build reactive, realtime, local-first apps directly on Postgres. What is ElectricSQL? ElectricSQL...
GitHub Copilot Chat opened to individual developers
Like similar chatbots, Copilot Chat sits in the sidebar of the IDE, and developers can use it to have lengthy...
ComposeCard – A beautifully designed payment view library
ComposeCards is a beautifully designed payment view library for Credit and Debit Cards. Made using Jetpack Compose 🎉. It allows...
Mobile App Development Best Practices – 20.09
Airship has released another study of mobile users aka shoppers. A lot of interesting things about habits and tasks in...