@Archdoog mentioned that maplibre-navigation-android has a pretty good solution on this for Android (see screenshot).
For SPM we can look at having a PLIST file that's gitignored, which would let us have previews using non-trivial commercial or self-hosted maps (ex: Stadia, Mapbox, etc.). In both cases, I think we can store not only the API key but also things like tile URLs to use for previews.
@Archdoog mentioned that maplibre-navigation-android has a pretty good solution on this for Android (see screenshot).
For SPM we can look at having a PLIST file that's gitignored, which would let us have previews using non-trivial commercial or self-hosted maps (ex: Stadia, Mapbox, etc.). In both cases, I think we can store not only the API key but also things like tile URLs to use for previews.