diff --git a/secant.xcodeproj/project.pbxproj b/secant.xcodeproj/project.pbxproj index e410cb8..275fc0f 100644 --- a/secant.xcodeproj/project.pbxproj +++ b/secant.xcodeproj/project.pbxproj @@ -3261,6 +3261,7 @@ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; BUNDLE_LOADER = "$(TEST_HOST)"; CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = ""; GCC_PREPROCESSOR_DEFINITIONS = ( "DEBUG=1", "$(inherited)", @@ -3287,6 +3288,7 @@ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; BUNDLE_LOADER = "$(TEST_HOST)"; CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = ""; INFOPLIST_FILE = secantTests/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 15.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -3307,6 +3309,7 @@ buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = ""; INFOPLIST_FILE = secantUITests/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 15.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -3327,6 +3330,7 @@ buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = ""; INFOPLIST_FILE = secantUITests/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 15.0; LD_RUNPATH_SEARCH_PATHS = ( diff --git a/secant/Features/Home/HomeStore.swift b/secant/Features/Home/HomeStore.swift index e18943a..b59e677 100644 --- a/secant/Features/Home/HomeStore.swift +++ b/secant/Features/Home/HomeStore.swift @@ -18,7 +18,6 @@ struct HomeReducer: ReducerProtocol { case request case transactionHistory case send - case scan case balanceBreakdown } @@ -64,7 +63,6 @@ struct HomeReducer: ReducerProtocol { case request(RequestReducer.Action) case rewindDone(Bool, SettingsReducer.Action) case send(SendFlowReducer.Action) - case scan(ScanReducer.Action) case synchronizerStateChanged(SDKSynchronizerState) case walletEvents(WalletEventsFlowReducer.Action) case updateDestination(HomeReducer.State.Destination?) @@ -87,10 +85,6 @@ struct HomeReducer: ReducerProtocol { SendFlowReducer() } - Scope(state: \.scanState, action: /Action.scan) { - ScanReducer() - } - Scope(state: \.profileState, action: /Action.profile) { ProfileReducer() } @@ -184,13 +178,6 @@ struct HomeReducer: ReducerProtocol { case .send: return .none - case .scan(.found): - audioServices.systemSoundVibrate() - return EffectTask(value: .updateDestination(nil)) - - case .scan: - return .none - case .balanceBreakdown(.onDisappear): state.destination = nil return .none @@ -236,13 +223,6 @@ extension HomeStore { ) } - func scanStore() -> ScanStore { - self.scope( - state: \.scanState, - action: HomeReducer.Action.scan - ) - } - func balanceBreakdownStore() -> BalanceBreakdownStore { self.scope( state: \.balanceBreakdownState, diff --git a/secant/Features/Home/HomeView.swift b/secant/Features/Home/HomeView.swift index 6581c9c..35b1945 100644 --- a/secant/Features/Home/HomeView.swift +++ b/secant/Features/Home/HomeView.swift @@ -8,8 +8,6 @@ struct HomeView: View { WithViewStore(store) { viewStore in VStack { ZStack { - scanButton(viewStore) - profileButton(viewStore) circularArea(viewStore) @@ -94,28 +92,6 @@ extension HomeView { Spacer() } } - - func scanButton(_ viewStore: HomeViewStore) -> some View { - VStack { - HStack { - Image(Asset.Assets.Icons.qrCode.name) - .resizable() - .frame(width: 40, height: 40) - .padding(.top, 7) - .padding(.leading, 22) - .navigationLink( - isActive: viewStore.bindingForDestination(.scan), - destination: { - ScanView(store: store.scanStore()) - } - ) - - Spacer() - } - - Spacer() - } - } func circularArea(_ viewStore: HomeViewStore) -> some View { VStack {