mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Enable RUST_BACKTRACE by default
This commit is contained in:
committed by
Stefan Ceriu
parent
1eac02f7b0
commit
dedfb9394f
@@ -82,11 +82,6 @@
|
|||||||
<CommandLineArguments>
|
<CommandLineArguments>
|
||||||
</CommandLineArguments>
|
</CommandLineArguments>
|
||||||
<EnvironmentVariables>
|
<EnvironmentVariables>
|
||||||
<EnvironmentVariable
|
|
||||||
key = "RUST_BACKTRACE"
|
|
||||||
value = "full"
|
|
||||||
isEnabled = "NO">
|
|
||||||
</EnvironmentVariable>
|
|
||||||
<EnvironmentVariable
|
<EnvironmentVariable
|
||||||
key = "HTTPS_PROXY"
|
key = "HTTPS_PROXY"
|
||||||
value = "localhost:9090"
|
value = "localhost:9090"
|
||||||
|
|||||||
@@ -58,6 +58,8 @@ class AppCoordinator: AppCoordinatorProtocol, AuthenticationCoordinatorDelegate,
|
|||||||
@Consumable private var storedAppRoute: AppRoute?
|
@Consumable private var storedAppRoute: AppRoute?
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
|
Self.setupEnvironmentVariables()
|
||||||
|
|
||||||
let appSettings = AppSettings()
|
let appSettings = AppSettings()
|
||||||
|
|
||||||
if appSettings.otlpTracingEnabled {
|
if appSettings.otlpTracingEnabled {
|
||||||
@@ -77,7 +79,7 @@ class AppCoordinator: AppCoordinatorProtocol, AuthenticationCoordinatorDelegate,
|
|||||||
navigationRootCoordinator = NavigationRootCoordinator()
|
navigationRootCoordinator = NavigationRootCoordinator()
|
||||||
|
|
||||||
Self.setupServiceLocator(navigationRootCoordinator: navigationRootCoordinator, appSettings: appSettings)
|
Self.setupServiceLocator(navigationRootCoordinator: navigationRootCoordinator, appSettings: appSettings)
|
||||||
|
|
||||||
ServiceLocator.shared.analytics.startIfEnabled()
|
ServiceLocator.shared.analytics.startIfEnabled()
|
||||||
|
|
||||||
stateMachine = AppCoordinatorStateMachine()
|
stateMachine = AppCoordinatorStateMachine()
|
||||||
@@ -230,6 +232,10 @@ class AppCoordinator: AppCoordinatorProtocol, AuthenticationCoordinatorDelegate,
|
|||||||
|
|
||||||
// MARK: - Private
|
// MARK: - Private
|
||||||
|
|
||||||
|
private static func setupEnvironmentVariables() {
|
||||||
|
setenv("RUST_BACKTRACE", "1", 1)
|
||||||
|
}
|
||||||
|
|
||||||
private static func setupServiceLocator(navigationRootCoordinator: NavigationRootCoordinator, appSettings: AppSettings) {
|
private static func setupServiceLocator(navigationRootCoordinator: NavigationRootCoordinator, appSettings: AppSettings) {
|
||||||
ServiceLocator.shared.register(userIndicatorController: UserIndicatorController(rootCoordinator: navigationRootCoordinator))
|
ServiceLocator.shared.register(userIndicatorController: UserIndicatorController(rootCoordinator: navigationRootCoordinator))
|
||||||
ServiceLocator.shared.register(appSettings: appSettings)
|
ServiceLocator.shared.register(appSettings: appSettings)
|
||||||
|
|||||||
@@ -19,9 +19,6 @@ schemes:
|
|||||||
run:
|
run:
|
||||||
config: Debug
|
config: Debug
|
||||||
environmentVariables:
|
environmentVariables:
|
||||||
- variable: RUST_BACKTRACE
|
|
||||||
value: full
|
|
||||||
isEnabled: false
|
|
||||||
- variable: HTTPS_PROXY
|
- variable: HTTPS_PROXY
|
||||||
value: localhost:9090
|
value: localhost:9090
|
||||||
isEnabled: false
|
isEnabled: false
|
||||||
|
|||||||
Reference in New Issue
Block a user