mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 08:15:24 +00:00
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:
+5
-10
@@ -408,14 +408,9 @@ private_lane :create_simulator_if_necessary do |options|
|
||||
end
|
||||
end
|
||||
|
||||
private_lane :config_secrets do
|
||||
maplibre_api_key = ENV["MAPLIBRE_API_KEY"]
|
||||
UI.user_error!("Invalid Map Libre API key.") unless !maplibre_api_key.to_s.empty?
|
||||
|
||||
set_xcconfig_value(
|
||||
path: './ElementX/SupportingFiles/secrets.xcconfig',
|
||||
name: 'MAPLIBRE_API_KEY',
|
||||
value: maplibre_api_key,
|
||||
mask_value: true
|
||||
)
|
||||
lane :config_secrets do
|
||||
Dir.chdir "../Secrets" do
|
||||
sh("pkl eval -f yaml -o secrets.yml Secrets.pkl")
|
||||
sh("swiftgen run yaml -n inline-swift5 --param enumName=Secrets -o Secrets.swift secrets.yml")
|
||||
end
|
||||
end
|
||||
|
||||
@@ -101,6 +101,14 @@ For _fastlane_ installation instructions, see [Installing _fastlane_](https://do
|
||||
|
||||
|
||||
|
||||
### config_secrets
|
||||
|
||||
```sh
|
||||
[bundle exec] fastlane config_secrets
|
||||
```
|
||||
|
||||
|
||||
|
||||
----
|
||||
|
||||
This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run.
|
||||
|
||||
Reference in New Issue
Block a user