From fb680166de1c43242c44a9272a8b84c7cd0760ed Mon Sep 17 00:00:00 2001 From: Dariusz Rybicki <dariusz@elixxir.io> Date: Wed, 1 Jun 2022 15:41:10 +0200 Subject: [PATCH] Update swift settings in example app package --- Example/ExampleApp/Package.swift | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/Example/ExampleApp/Package.swift b/Example/ExampleApp/Package.swift index da060c75..e8881f2e 100644 --- a/Example/ExampleApp/Package.swift +++ b/Example/ExampleApp/Package.swift @@ -2,6 +2,18 @@ import PackageDescription +let swiftSettings: [SwiftSetting] = [ + .unsafeFlags( + [ + "-Xfrontend", + "-debug-time-function-bodies", + "-Xfrontend", + "-debug-time-expression-type-checking", + ], + .when(configuration: .debug) + ), +] + let package = Package( name: "example-app", platforms: [ @@ -58,13 +70,15 @@ let package = Package( name: "KeychainAccess", package: "KeychainAccess" ), - ] + ], + swiftSettings: swiftSettings ), .testTarget( name: "AppFeatureTests", dependencies: [ .target(name: "AppFeature"), - ] + ], + swiftSettings: swiftSettings ), .target( name: "LandingFeature", @@ -77,13 +91,15 @@ let package = Package( name: "ElixxirDAppsSDK", package: "elixxir-dapps-sdk-swift" ), - ] + ], + swiftSettings: swiftSettings ), .testTarget( name: "LandingFeatureTests", dependencies: [ .target(name: "LandingFeature"), - ] + ], + swiftSettings: swiftSettings ), .target( name: "SessionFeature", @@ -92,13 +108,15 @@ let package = Package( name: "ComposableArchitecture", package: "swift-composable-architecture" ), - ] + ], + swiftSettings: swiftSettings ), .testTarget( name: "SessionFeatureTests", dependencies: [ .target(name: "SessionFeature"), - ] + ], + swiftSettings: swiftSettings ), ] ) -- GitLab