feat: Transit Layer Demo & Quality Improvements#1653
Merged
Conversation
- Replace legacy MainActivity.java/xml with Compose-based MainActivity.kt - Enforce edge-to-edge support with `enableEdgeToEdge()` and Scaffold - Organize libs.versions.toml into categorized sections - Add TransitLayerDemoActivity to demonstrate transit layer usage - Fix spinner text contrast in ClusterAlgorithmsDemoActivity - Add material-icons-core dependency to resolve compilation error
- Replace legacy MainActivity.java/xml with Compose-based MainActivity.kt - Enforce edge-to-edge support with `enableEdgeToEdge()` and Scaffold - Organize libs.versions.toml into categorized sections - Add TransitLayerDemoActivity to demonstrate transit layer usage - Fix spinner text contrast in ClusterAlgorithmsDemoActivity - Add material-icons-core dependency to resolve compilation error
- Updated MainActivity to Compose with Accordion UI - Extracted hardcoded strings to strings.xml - Removed unused resources (colors, dimens, raw files) - Fixed lint warnings for hardcoded text and unused resources - Updated Demo models to use resource IDs
| gradle = "8.13.2" | ||
| jacoco-android = "0.2.1" | ||
| core-ktx = "1.17.0" | ||
| kotlin = "2.2.21" |
Check warning
Code scanning / Android Lint
Newer Library Versions Available Warning
| # --- Gradle Plugins --- | ||
| # Versions for Gradle plugins used in the build process. | ||
| dokka-gradle-plugin = "2.1.0" | ||
| gradle = "8.13.2" |
Check warning
Code scanning / Android Lint
Obsolete Android Gradle Plugin Version Warning
Contributor
Code Coverage
|
Collaborator
|
(changed PR name to make it |
Collaborator
|
LGTM! |
| # --- Jetpack Compose --- | ||
| # Versions for Jetpack Compose, Android's modern UI toolkit. | ||
| # The Compose BOM (Bill of Materials) coordinates versions of all Compose libraries. | ||
| activity-compose = "1.12.3" |
Check warning
Code scanning / Android Lint
Obsolete Gradle Dependency Warning
| # Versions for Jetpack Compose, Android's modern UI toolkit. | ||
| # The Compose BOM (Bill of Materials) coordinates versions of all Compose libraries. | ||
| activity-compose = "1.12.3" | ||
| compose-bom = "2026.01.01" |
Check warning
Code scanning / Android Lint
Obsolete Gradle Dependency 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.
This PR introduces a new Transit Layer Demo and significantly improves the quality and maintainability of the existing demo app.
Key Changes:
New Feature: Transit Layer Demo
TransitLayerDemoActivityto showcase the Maps SDK Transit Layer.CameraUpdateFactory).Internationalization & String Extraction
CustomAdvancedMarkerClusteringDemoActivity,DistanceDemoActivity, etc.) and 2 Layouts.strings.xmlfor better localization support.Resource Cleanup
Verification:
./gradlew test)../gradlew :demo:assembleDebug).HardcodedTextandUnusedResourceswarnings.