Skip to content

Commit 992322d

Browse files
authored
Disable PulseUI in the release configuration (#2)
Disable `PulseUI` in the release configuration
2 parents 40cd46c + 2a33323 commit 992322d

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed
Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// HackerNews
3-
// Copyright © 2024 Nikita Vasilev. All rights reserved.
3+
// Copyright © 2023 Nikita Vasilev. All rights reserved.
44
//
55

66
import ComposableArchitecture
@@ -14,23 +14,29 @@ struct HackerNewsApp: App {
1414
// MARK: Properties
1515

1616
@UIApplicationDelegateAdaptor(AppDelegate.self) private var appDelegate
17-
@State private var showConsole = false
17+
#if DEBUG
18+
@State private var showConsole = false
19+
#endif
1820

1921
private let assembly: IApplicationAssembly = ApplicationAssembly(dependencies: DependenciesAssembly())
2022

2123
// MARK: View
2224

2325
var body: some Scene {
2426
WindowGroup {
25-
self.assembly.assemble()
26-
.sheet(isPresented: $showConsole) {
27-
NavigationView {
28-
ConsoleView()
27+
#if DEBUG
28+
assembly.assemble()
29+
.sheet(isPresented: $showConsole) {
30+
NavigationView {
31+
ConsoleView()
32+
}
2933
}
30-
}
31-
.onShake {
32-
showConsole.toggle()
33-
}
34+
.onShake {
35+
showConsole.toggle()
36+
}
37+
#else
38+
assembly.assemble()
39+
#endif
3440
}
3541
}
3642
}

project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ configFiles:
1515
Release: ./HackerNews/Resources/Configurations/Release.xcconfig
1616
settings:
1717
base:
18-
SWIFT_VERSION: "5.7"
18+
SWIFT_VERSION: "5.9"
1919
configs:
2020
Debug:
2121
DEVELOPMENT_TEAM: A8WE5LL2GU

0 commit comments

Comments
 (0)