Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasbzurovski committed Jun 19, 2024
1 parent 67c3c7c commit 7cf7dd2
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 60 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ extension AppsFlyerClient: DependencyKey {
private class Delegate: NSObject, DeepLinkDelegate, @unchecked Sendable {
func didResolveDeepLink(_ result: DeepLinkResult) {
if let deepLink = result.deepLink {
print("M- did resolve deep link. Is deferred: \(deepLink.isDeferred). Click events: \(deepLink.clickEvent)")
loggerGlobal.info("did resolve deep link. Is deferred: \(deepLink.isDeferred). Click events: \(deepLink.clickEvent)")
} else if let error = result.error {
print("M- failed to resolve deep link. Status: \(result.status), Error: \(error)")
loggerGlobal.info("failed to resolve deep link. Status: \(result.status), Error: \(error.localizedDescription)")
}
}
}
Expand Down
1 change: 0 additions & 1 deletion RadixWallet/Features/AppFeature/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import AppsFlyerLib
import ComposableArchitecture
import SwiftUI

Expand Down
7 changes: 0 additions & 7 deletions RadixWallet/Features/AppFeature/SceneDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import AppsFlyerLib
import ComposableArchitecture
import SwiftUI

Expand All @@ -13,12 +12,6 @@ public final class SceneDelegate: NSObject, UIWindowSceneDelegate, ObservableObj
) {
windowScene = scene as? UIWindowScene

if let userActivity = connectionOptions.userActivities.first {
AppsFlyerLib.shared().continue(userActivity, restorationHandler: nil)
} else if let url = connectionOptions.urlContexts.first?.url {
AppsFlyerLib.shared().handleOpen(url, options: nil)
}

if
let windowScene,
// avoids unimplemented("OverlayWindowClient.isUserInteractionEnabled")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ extension Home {
}

VStack(spacing: .medium3) {
Text(DebugInfo.shared.content)
ForEachStore(
store.scope(
state: \.accountRows,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,42 +17,39 @@ extension OnboardingStartup {
extension OnboardingStartup.View {
public var body: some View {
NavigationStack {
WithViewStore(store, observe: { $0 }, send: { .view($0) }) { _ in
ScrollView {
Text(DebugInfo.shared.content)
WithViewStore(store, observe: { $0 }, send: { .view($0) }) { viewStore in
VStack(spacing: 0) {
Text(L10n.Onboarding.Step1.title)
.foregroundColor(.app.gray1)
.textStyle(.sheetTitle)
.padding(.top, .large1)
.padding(.horizontal, .large1)
.padding(.bottom, .medium3)

Text(L10n.Onboarding.Step1.subtitle)
.foregroundColor(.app.gray2)
.textStyle(.secondaryHeader)
.padding(.horizontal, .huge3)

Spacer(minLength: 0)

SplashGraphic()

Spacer(minLength: 0)
}
.multilineTextAlignment(.center)
.footer {
Button(L10n.Onboarding.newUser) {
viewStore.send(.selectedNewWalletUser)
}
.buttonStyle(.primaryRectangular)
.padding(.bottom, .small2)

Button(L10n.Onboarding.restoreFromBackup) {
viewStore.send(.selectedRestoreFromBackup)
}
.buttonStyle(.primaryText())
}
// VStack(spacing: 0) {
// Text(L10n.Onboarding.Step1.title)
// .foregroundColor(.app.gray1)
// .textStyle(.sheetTitle)
// .padding(.top, .large1)
// .padding(.horizontal, .large1)
// .padding(.bottom, .medium3)
//
// Text(L10n.Onboarding.Step1.subtitle)
// .foregroundColor(.app.gray2)
// .textStyle(.secondaryHeader)
// .padding(.horizontal, .huge3)
//
// Spacer(minLength: 0)
//
// SplashGraphic()
//
// Spacer(minLength: 0)
// }
// .multilineTextAlignment(.center)
// .footer {
// Button(L10n.Onboarding.newUser) {
// viewStore.send(.selectedNewWalletUser)
// }
// .buttonStyle(.primaryRectangular)
// .padding(.bottom, .small2)
//
// Button(L10n.Onboarding.restoreFromBackup) {
// viewStore.send(.selectedRestoreFromBackup)
// }
// .buttonStyle(.primaryText())
// }
}
.destinations(with: store)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
import ComposableArchitecture
import SwiftUI

// MARK: - DebugInfo
class DebugInfo {
static let shared = DebugInfo()

private(set) var content = ""
private init() {}

func add(_ msg: String) {
content.append("\n🆕 \(msg)")
loggerGlobal.info("🆕 \(msg)")
}
}

// MARK: - DebugSettingsCoordinator.View
extension DebugSettingsCoordinator {
public struct ViewState: Equatable {}
Expand All @@ -32,7 +19,6 @@ extension DebugSettingsCoordinator.View {
public var body: some View {
ScrollView {
VStack(spacing: .zero) {
Text(DebugInfo.shared.content)
ForEachStatic(rows) { kind in
SettingsRow(kind: kind, store: store)
}
Expand Down

0 comments on commit 7cf7dd2

Please sign in to comment.