Skip to content

feat: Transit Layer Demo & Quality Improvements#1653

Merged
dkhawk merged 8 commits intomainfrom
feat/transit-layer-demo
Feb 11, 2026
Merged

feat: Transit Layer Demo & Quality Improvements#1653
dkhawk merged 8 commits intomainfrom
feat/transit-layer-demo

Conversation

@dkhawk
Copy link
Contributor

@dkhawk dkhawk commented Feb 10, 2026

This PR introduces a new Transit Layer Demo and significantly improves the quality and maintainability of the existing demo app.

Key Changes:

  1. New Feature: Transit Layer Demo

    • Added TransitLayerDemoActivity to showcase the Maps SDK Transit Layer.
    • Implemented toggle functionality to enable/disable the transit layer.
    • Uses Kotlin and modern Android practices (state management, CameraUpdateFactory).
  2. Internationalization & String Extraction

    • Extracted hardcoded strings from 5 Activities (CustomAdvancedMarkerClusteringDemoActivity, DistanceDemoActivity, etc.) and 2 Layouts.
    • Centralized UI text in strings.xml for better localization support.
  3. Resource Cleanup

    • Removed unused resources (raw KML/JSON files, unused dimensions) to reduce APK size.
    • Verified and preserved essential theme colors.

Verification:

  • Unit Tests: Passed (./gradlew test).
  • Build: Successful (./gradlew :demo:assembleDebug).
  • Lint: Resolved HardcodedText and UnusedResources warnings.

- 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
@dkhawk dkhawk requested a review from kikoso February 10, 2026 22:11
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

A newer version of org.jetbrains.kotlin.plugin.compose than 2.2.21 is available: 2.3.10
# --- 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

A newer version of com.android.tools.build:gradle than 8.13.2 is available: 9.0.0
@googlemaps-bot
Copy link
Contributor

Code Coverage

Overall Project 40.1% 🍏

There is no coverage information present for the Files changed

@kikoso kikoso changed the title Feat: Transit Layer Demo & Quality Improvements feat: Transit Layer Demo & Quality Improvements Feb 11, 2026
@kikoso
Copy link
Collaborator

kikoso commented Feb 11, 2026

(changed PR name to make it release-please friendly)

@kikoso
Copy link
Collaborator

kikoso commented Feb 11, 2026

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

A newer version of androidx.activity:activity-compose than 1.12.3 is available: 1.12.4
# 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

A newer version of androidx.compose:compose-bom than 2026.01.01 is available: 2026.02.00
@dkhawk dkhawk merged commit cb074f9 into main Feb 11, 2026
8 checks passed
@dkhawk dkhawk deleted the feat/transit-layer-demo branch February 11, 2026 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants