chore: Migrate Build System to Kotlin DSL and Fix Lint Issues#299
Open
chore: Migrate Build System to Kotlin DSL and Fix Lint Issues#299
Conversation
- Added new module demo-app-new-api copied from app. - Updated packages to com.google.places.android.ktx.demo.newapi. - Implemented PlacesSearchViewModel using new async KTX extensions (searchByText, searchNearby). - Configured searchNearby to search in Boulder, CO. - Updated settings.gradle to include the new module.
- Migrated all Groovy build.gradle files to Kotlin DSL (build.gradle.kts). - Annotated libs.versions.toml and grouped dependencies. - Refactored PlaceResultAdapter to ListAdapter with DiffUtil to fix lint warnings. - Cleaned up unused resources and suppressed monochrome icon warnings. - Added KDoc and comments to new API demo code.
- Adopted Version Catalog plugin aliases in all build.gradle.kts files. - Migrated deprecated to DSL. - Replaced deprecated property with .
- Standardized root build.gradle.kts plugins with Version Catalog aliases. - Fixed typo in libs.versions.toml. - Updated README to use Kotlin DSL for dependency example. - Updated walkthrough with modernization details.
| compose-bom = "2025.12.00" | ||
| compose-bom = "2025.12.01" | ||
| coreKtx = "1.17.0" | ||
| dokka = "2.0.0" |
Check warning
Code scanning / Android Lint
Newer Library Versions Available Warning
| secretsGradlePlugin = "2.0.1" | ||
| test-core = "1.7.0" | ||
| truth = "1.4.5" | ||
| vanniktech = "0.34.0" |
Check warning
Code scanning / Android Lint
Newer Library Versions Available Warning
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR migrates the entire build system from Groovy (
build.gradle) to Kotlin DSL (build.gradle.kts) and addresses all identified lint issues to improve code quality and maintainability.Changes
Build System Migration
places-ktx,app,demo-app-new-api) tobuild.gradle.kts.settings.gradletosettings.gradle.kts.alias(libs.plugins.*)in all modules.kotlinOptionswith thecompilerOptionsDSL.buildDirproperty withlayout.buildDirectory.flatDirrepository configuration.Lint & Code Quality
ListAdapterwithDiffUtilto resolveNotifyDataSetChangedwarnings and improve UI performance.south_london_*.json, etc.) and colors (colorGray).drawable-v24resources intodrawableto resolveObsoleteSdkInt.MonochromeLauncherIconwarning (by design).README.mdto reflect Kotlin DSL dependency usage.Verification
./gradlew :demo-app-new-api:assembleDebugpasses successfully../gradlew :demo-app-new-api:lintDebugpasses with 0 errors../gradlew :places-ktx:lintDebugpasses with 0 errors.