Skip to content

feat: add defaultOnlineStyleUrl Expo plugin prop#141

Merged
gmaclennan merged 1 commit into
mainfrom
feat/default-online-style-url
Jun 23, 2026
Merged

feat: add defaultOnlineStyleUrl Expo plugin prop#141
gmaclennan merged 1 commit into
mainfrom
feat/default-online-style-url

Conversation

@gmaclennan

Copy link
Copy Markdown
Member

Adds a defaultOnlineStyleUrl prop to the Expo config plugin so consuming apps can override the online map style URL. Absent → backend keeps its built-in default (MapLibre demo tiles).

How it works

  • app.plugin.js validates the URL at prebuild (must be a non-empty http(s) URL) and writes it to AndroidManifest meta-data / Info.plist. Removing the prop strips the value on a --no-clean re-prebuild.
  • Native (NodeJSService.{kt,swift}) reads it and forwards it as the 5th argv positional; empty string when unset.
  • backend/index.js parses the positional; create-comapeo.js uses it or falls back to DEFAULT_ONLINE_MAP_STYLE_URL.

Notes

  • Android reuses SentryConfig.readApplicationMetaDataString instead of duplicating the SDK-gated getApplicationInfo read.
  • README documents the prop and the prebuild-baked-in behavior.

🤖 Generated with Claude Code

@github-actions github-actions Bot added the feature New feature (changelog) label Jun 22, 2026
Lets consuming apps override the online map style URL (default:
MapLibre demo tiles). Plumbed through app.plugin.js → AndroidManifest
meta-data / Info.plist → native NodeJSService → backend argv (5th
positional) → createComapeo, with prebuild-time URL validation. Absent
→ backend keeps its built-in default.

Android reuses SentryConfig.readApplicationMetaDataString rather than
duplicating the SDK-gated getApplicationInfo read.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@gmaclennan gmaclennan force-pushed the feat/default-online-style-url branch from 06ed15c to ed7bc72 Compare June 22, 2026 21:14
@gmaclennan gmaclennan enabled auto-merge June 22, 2026 21:15
@gmaclennan gmaclennan added this pull request to the merge queue Jun 22, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Jun 22, 2026
@gmaclennan gmaclennan added this pull request to the merge queue Jun 23, 2026
Merged via the queue into main with commit 95657d7 Jun 23, 2026
20 checks passed
@gmaclennan gmaclennan deleted the feat/default-online-style-url branch June 23, 2026 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature (changelog)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant