Migrate your build configuration from Groovy to Kotlin with TOML (English Subtitle)

Опубликовано: 07 Октябрь 2024
на канале: Pi App Studio
350
7

#androidstudio #android #gradle #kts #toml

The reason behind this video is below notes from google document:
"Note: Kotlin is the default language for build configuration starting with Android Studio Giraffe."
Here, I'm discussing the best way to migrate the build.gradle to build.gradle.kts using gift register project


Description with timelines:
00:02:00 Introduction
00:02:23 8 Step Process for Kotlin migration
00:03:20 To configure build variant in koltin DSL
00:04:15 Complexity in migrating Groovy build to kotlin build file
00:04:15 Problem in accessing top-level gradle's constant in submodule gradle
00:05:21 ChatGPT is failed to resolve the constant issue
00:05:46 Introducing TOML file
00:06:19 Adding TOML file in project
00:06:51 TOML's Versions config
00:07:07 TOML's Libraries config
00:08:14 TOML's Bundle config
00:10:00 TOML's Plugins config
00:12:15 Struggles during migration
00:13:00 To access version from TOML in submodule
00:13:26 Summary of accessing value from TOML
00:14:02 Live Migration working demo

Reference:
https://developer.android.com/build/m...
https://github.com/piappstudio/GiftRe...
https://github.com/android/nowinandroid