Meshtastic-Android/feature/map/build.gradle.kts
James Rich 536b1eba1c feat(map): replace Google Maps + OSMDroid with unified Mapbox SDK in feature:map/androidMain
Replace the dual flavor-specific map implementations (Google Maps in app/src/google,
OSMDroid in app/src/fdroid) with a single Mapbox Maps Compose SDK (v11.21.1)
implementation living in feature:map/androidMain.

- Add Mapbox Maven repo with MAPBOX_DOWNLOADS_TOKEN auth to settings.gradle.kts
- Add mapbox-maps-android, mapbox-maps-compose deps to feature/map/build.gradle.kts
- Remove Google Maps, osmdroid, osmbonuspack deps from app/build.gradle.kts and catalog
- Create unified MapScreen, MapViewModel, MapboxMapContent, GeoJsonConverters,
  EditWaypointDialog, InlineMap, NodeTrackMap, NodeMapScreen, TracerouteMap
- Wire all Local*Provider CompositionLocals in MainActivity to new implementations
- Delete ~8200 lines of flavor-specific map code across google/fdroid source sets
- Delete dead MapViewProvider interface from core:ui
- Keep LocalMapMainScreenProvider for KMP/Desktop compatibility boundary
- Fix FlavorModule.kt, KoinVerificationTest.kt for deleted modules
- Pass spotlessCheck + detekt with zero violations
2026-04-14 16:24:29 -05:00

52 lines
1.9 KiB
Kotlin

/*
* Copyright (c) 2025-2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
plugins {
alias(libs.plugins.meshtastic.kmp.feature)
alias(libs.plugins.meshtastic.kotlinx.serialization)
}
kotlin {
@Suppress("UnstableApiUsage")
android {
namespace = "org.meshtastic.feature.map"
androidResources.enable = false
withHostTest { isIncludeAndroidResources = true }
}
sourceSets {
commonMain.dependencies {
implementation(libs.jetbrains.navigation3.ui)
implementation(libs.kotlinx.collections.immutable)
implementation(projects.core.data)
implementation(projects.core.database)
implementation(projects.core.datastore)
implementation(projects.core.model)
implementation(projects.core.navigation)
implementation(projects.core.prefs)
implementation(projects.core.proto)
implementation(projects.core.service)
implementation(projects.core.resources)
implementation(projects.core.ui)
implementation(projects.core.di)
}
androidMain.dependencies {
implementation(libs.mapbox.maps.android)
implementation(libs.mapbox.maps.compose)
implementation(libs.accompanist.permissions)
}
}
}