mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Move Secrets into the Components folder
Continue grouping the standalone modules under Components. Updates the Secrets.swift references in the app, NSE and Share Extension targets along with the SwiftLint, SwiftFormat, gitignore, post-checkout hook and forking documentation paths.
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
//
|
||||
// Copyright 2025 New Vector Ltd.
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
// Please see LICENSE files in the repository root for full details.
|
||||
//
|
||||
|
||||
// Analytics and Diagnostics
|
||||
|
||||
import "package://pkg.pkl-lang.org/github.com/element-hq/pkl-tools/staticcode@1.1.0#/StaticCode.pkl"
|
||||
|
||||
sentryDSN: String? = read?("env:SENTRY_DSN")
|
||||
sentryRustDSN: String? = read?("env:SENTRY_RUST_DSN")
|
||||
postHogHost: String? = read?("env:POSTHOG_HOST")
|
||||
postHogAPIKey: String? = read?("env:POSTHOG_API_KEY")
|
||||
rageshakeURL: String? = read?("env:RAGESHAKE_URL")
|
||||
mapLibreAPIKey: String? = read?("env:MAPLIBRE_API_KEY")
|
||||
|
||||
output {
|
||||
renderer = new StaticCode.Renderer {
|
||||
language = "Swift"
|
||||
objectName = "Secrets"
|
||||
isolation = "nonisolated"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
nonisolated enum Secrets {
|
||||
static let sentryDSN: String? = "https://username@sentry.localhost/project_id"
|
||||
static let sentryRustDSN: String? = "https://username@sentry.localhost/project_id"
|
||||
static let postHogHost: String? = "https://posthog.localhost"
|
||||
static let postHogAPIKey: String? = "your_key"
|
||||
static let rageshakeURL: String? = "https://rageshake.localhost/submit"
|
||||
static let mapLibreAPIKey: String? = "your_key"
|
||||
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "staticcode",
|
||||
"packageUri": "package://pkg.pkl-lang.org/github.com/element-hq/pkl-tools/staticcode@1.1.0",
|
||||
"version": "1.1.0",
|
||||
"packageZipUrl": "https://github.com/element-hq/pkl-tools/releases/download/staticcode@1.1.0/staticcode@1.1.0.zip",
|
||||
"packageZipChecksums": {
|
||||
"sha256": "ae2f3f61deed48e6f5698e5f295c4a4c090d8ac712906f43adf844325a86f887"
|
||||
},
|
||||
"dependencies": {},
|
||||
"authors": []
|
||||
}
|
||||
BIN
Binary file not shown.
Reference in New Issue
Block a user