Configure diagnostics (and MapLibre) using Pkl. (#3820)

* Bump the version for the next release.

* Ignore all generated sources.

* Use Pkl+XcodeGen to inject secrets instead of the project.

* Inject the PostHog/Sentry/Rageshake configuration from the environment.

* Fix bad unicode.

* Fix unit tests.
This commit is contained in:
Doug
2025-02-24 18:36:08 +00:00
committed by GitHub
parent 99141735c8
commit b249f0449a
18 changed files with 95 additions and 99 deletions

View File

@@ -17,19 +17,20 @@ The location sharing feature on Element X is currently integrated with [MapLibre
The MapLibre SDK requires an API key to work, so you need to get one for yourself.
After you get an API key, you need to configure the project by adding it inside the file `secrets.xconfig` in the project root folder. After you are done, the file should contain a setting like this:
After you get an API key, you need to configure the project by exporting it and regenerating the `Secrets.swift` file:
```
MAPLIBRE_API_KEY = your_map_libre_key
export MAPLIBRE_API_KEY=your_map_libre_key
bundle exec fastlane config_secrets
```
Its not recommended to push your API key in your repository since other people may get it.
One way to avoid pushing the API key by mistake is running on your machine the command:
```
git update-index assume-unchanged secrets.xcconfig
git update-index assume-unchanged Secrets/Secrets.swift
```
this will prevent pushing any update of the file`secrets.xcconfig`.
this will prevent pushing any update of the file `Secrets.swift`.
Finally you need to setup your map styles overriding the values you find in the code: