gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-ios] 10/30: Remove PendingOps


From: gnunet
Subject: [taler-taler-ios] 10/30: Remove PendingOps
Date: Sun, 19 Nov 2023 23:53:34 +0100

This is an automated email from the git hooks/post-receive script.

marc-stibane pushed a commit to branch master
in repository taler-ios.

commit cbcdd342d29536fb38e81563896428bc567d953b
Author: Marc Stibane <marc@taler.net>
AuthorDate: Sat Nov 18 16:50:56 2023 +0100

    Remove PendingOps
---
 TalerWallet.xcodeproj/project.pbxproj              | 12 -----
 .../Views/Settings/Pending/PendingOpView.swift     | 63 ----------------------
 .../Settings/Pending/PendingOpsListView.swift      | 47 ----------------
 TalerWallet1/Views/Settings/SettingsView.swift     |  6 ---
 4 files changed, 128 deletions(-)

diff --git a/TalerWallet.xcodeproj/project.pbxproj 
b/TalerWallet.xcodeproj/project.pbxproj
index 242ba39..4bcc181 100644
--- a/TalerWallet.xcodeproj/project.pbxproj
+++ b/TalerWallet.xcodeproj/project.pbxproj
@@ -95,8 +95,6 @@
                4E3EAE632A990778009F1BE8 /* WalletCore.swift in Sources */ = 
{isa = PBXBuildFile; fileRef = 4EB0951C2989CBCB0043A8A1 /* WalletCore.swift */; 
};
                4E3EAE642A990778009F1BE8 /* LaunchAnimationView.swift in 
Sources */ = {isa = PBXBuildFile; fileRef = 4EB095432989CBFE0043A8A1 /* 
LaunchAnimationView.swift */; };
                4E3EAE652A990778009F1BE8 /* SideBarView.swift in Sources */ = 
{isa = PBXBuildFile; fileRef = 4EB095422989CBFE0043A8A1 /* SideBarView.swift 
*/; };
-               4E3EAE662A990778009F1BE8 /* PendingOpView.swift in Sources */ = 
{isa = PBXBuildFile; fileRef = 4EB0954D2989CBFE0043A8A1 /* PendingOpView.swift 
*/; };
-               4E3EAE672A990778009F1BE8 /* PendingOpsListView.swift in Sources 
*/ = {isa = PBXBuildFile; fileRef = 4EB0954E2989CBFE0043A8A1 /* 
PendingOpsListView.swift */; };
                4E3EAE682A990778009F1BE8 /* WalletModel.swift in Sources */ = 
{isa = PBXBuildFile; fileRef = 4EB095112989CBB00043A8A1 /* WalletModel.swift 
*/; };
                4E3EAE692A990778009F1BE8 /* URLSheet.swift in Sources */ = {isa 
= PBXBuildFile; fileRef = 4EB095332989CBFE0043A8A1 /* URLSheet.swift */; };
                4E3EAE6A2A990778009F1BE8 /* ThreeAmountsV.swift in Sources */ = 
{isa = PBXBuildFile; fileRef = 4ED2F94A2A278F5100453B40 /* ThreeAmountsV.swift 
*/; };
@@ -225,8 +223,6 @@
                4EB0956C2989CBFE0043A8A1 /* AmountView.swift in Sources */ = 
{isa = PBXBuildFile; fileRef = 4EB095492989CBFE0043A8A1 /* AmountView.swift */; 
};
                4EB0956D2989CBFE0043A8A1 /* LoadingView.swift in Sources */ = 
{isa = PBXBuildFile; fileRef = 4EB0954A2989CBFE0043A8A1 /* LoadingView.swift 
*/; };
                4EB0956E2989CBFE0043A8A1 /* Model+Pending.swift in Sources */ = 
{isa = PBXBuildFile; fileRef = 4EB0954C2989CBFE0043A8A1 /* Model+Pending.swift 
*/; };
-               4EB0956F2989CBFE0043A8A1 /* PendingOpView.swift in Sources */ = 
{isa = PBXBuildFile; fileRef = 4EB0954D2989CBFE0043A8A1 /* PendingOpView.swift 
*/; };
-               4EB095702989CBFE0043A8A1 /* PendingOpsListView.swift in Sources 
*/ = {isa = PBXBuildFile; fileRef = 4EB0954E2989CBFE0043A8A1 /* 
PendingOpsListView.swift */; };
                4EB3136129FEE79B007D68BC /* SendDoneV.swift in Sources */ = 
{isa = PBXBuildFile; fileRef = 4EB3136029FEE79B007D68BC /* SendDoneV.swift */; 
};
                4EB431672A1E55C700C5690E /* ManualWithdrawDone.swift in Sources 
*/ = {isa = PBXBuildFile; fileRef = 4EB431662A1E55C700C5690E /* 
ManualWithdrawDone.swift */; };
                4EBA563F2A7FD9390084948B /* SuperScriptDigits.swift in Sources 
*/ = {isa = PBXBuildFile; fileRef = 4EBA563E2A7FD9390084948B /* 
SuperScriptDigits.swift */; };
@@ -400,8 +396,6 @@
                4EB095492989CBFE0043A8A1 /* AmountView.swift */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path 
= AmountView.swift; sourceTree = "<group>"; };
                4EB0954A2989CBFE0043A8A1 /* LoadingView.swift */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path 
= LoadingView.swift; sourceTree = "<group>"; };
                4EB0954C2989CBFE0043A8A1 /* Model+Pending.swift */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path 
= "Model+Pending.swift"; sourceTree = "<group>"; };
-               4EB0954D2989CBFE0043A8A1 /* PendingOpView.swift */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path 
= PendingOpView.swift; sourceTree = "<group>"; };
-               4EB0954E2989CBFE0043A8A1 /* PendingOpsListView.swift */ = {isa 
= PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; 
path = PendingOpsListView.swift; sourceTree = "<group>"; };
                4EB3136029FEE79B007D68BC /* SendDoneV.swift */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path 
= SendDoneV.swift; sourceTree = "<group>"; };
                4EB431662A1E55C700C5690E /* ManualWithdrawDone.swift */ = {isa 
= PBXFileReference; lastKnownFileType = sourcecode.swift; path = 
ManualWithdrawDone.swift; sourceTree = "<group>"; };
                4EBA563E2A7FD9390084948B /* SuperScriptDigits.swift */ = {isa = 
PBXFileReference; lastKnownFileType = sourcecode.swift; path = 
SuperScriptDigits.swift; sourceTree = "<group>"; };
@@ -762,8 +756,6 @@
                4EB0954B2989CBFE0043A8A1 /* Pending */ = {
                        isa = PBXGroup;
                        children = (
-                               4EB0954E2989CBFE0043A8A1 /* 
PendingOpsListView.swift */,
-                               4EB0954D2989CBFE0043A8A1 /* PendingOpView.swift 
*/,
                        );
                        path = Pending;
                        sourceTree = "<group>";
@@ -1124,8 +1116,6 @@
                                4E3EAE632A990778009F1BE8 /* WalletCore.swift in 
Sources */,
                                4E3EAE642A990778009F1BE8 /* 
LaunchAnimationView.swift in Sources */,
                                4E3EAE652A990778009F1BE8 /* SideBarView.swift 
in Sources */,
-                               4E3EAE662A990778009F1BE8 /* PendingOpView.swift 
in Sources */,
-                               4E3EAE672A990778009F1BE8 /* 
PendingOpsListView.swift in Sources */,
                                4E3EAE682A990778009F1BE8 /* WalletModel.swift 
in Sources */,
                                4E3EAE692A990778009F1BE8 /* URLSheet.swift in 
Sources */,
                                4E3EAE6A2A990778009F1BE8 /* ThreeAmountsV.swift 
in Sources */,
@@ -1233,8 +1223,6 @@
                                4EB095202989CBCB0043A8A1 /* WalletCore.swift in 
Sources */,
                                4EB095672989CBFE0043A8A1 /* 
LaunchAnimationView.swift in Sources */,
                                4EB095662989CBFE0043A8A1 /* SideBarView.swift 
in Sources */,
-                               4EB0956F2989CBFE0043A8A1 /* PendingOpView.swift 
in Sources */,
-                               4EB095702989CBFE0043A8A1 /* 
PendingOpsListView.swift in Sources */,
                                4EB095162989CBB00043A8A1 /* WalletModel.swift 
in Sources */,
                                4EB0955A2989CBFE0043A8A1 /* URLSheet.swift in 
Sources */,
                                4ED2F94B2A278F5100453B40 /* ThreeAmountsV.swift 
in Sources */,
diff --git a/TalerWallet1/Views/Settings/Pending/PendingOpView.swift 
b/TalerWallet1/Views/Settings/Pending/PendingOpView.swift
deleted file mode 100644
index ddfbfcd..0000000
--- a/TalerWallet1/Views/Settings/Pending/PendingOpView.swift
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * This file is part of GNU Taler, ©2022-23 Taler Systems S.A.
- * See LICENSE.md
- */
-import SwiftUI
-import taler_swift
-
-struct PendingOpView: View {
-    var pendingOp: PendingOperation
-    @State var polling: Bool = false
-    @State var liveliness: Bool = false
-    @State var isDue: Bool = false
-
-    var body: some View {
-        Section {
-            Group {
-                if let baseURL = pendingOp.exchangeBaseUrl {
-                    Text(baseURL)
-                }
-                Text(pendingOp.id)
-                    .accessibilityFont(.caption)
-                let isLongPolling = "isLongPolling"
-                Toggle(isLongPolling, isOn: $polling)
-                    .disabled(true)
-                let givesLifeness = "givesLifeness"
-                Toggle(givesLifeness, isOn: $liveliness)
-                    .disabled(true)
-                let isDue = "isDue"
-                Toggle(isDue, isOn: $isDue)
-                    .disabled(true)
-                let (dateString, date) = TalerDater.dateString(from: 
pendingOp.timestampDue)
-                Text(dateString)
-            }
-            .accessibilityFont(.body)
-        } header: {
-            Text(pendingOp.type)
-                .accessibilityFont(.title2)
-        }
-//        .textCase(nil)    // don't capitalize
-        .onAppear {
-            polling = pendingOp.isLongpolling
-            liveliness = pendingOp.givesLifeness
-            isDue = pendingOp.isDue
-        }
-    }
-}
-// MARK: -
-#if DEBUG
-struct PendingOpView_Previews: PreviewProvider {
-    static var pending1 = PendingOperation(type: "exchange-check-refresh",
-                                exchangeBaseUrl: DEMOEXCHANGE,
-                                             id: "exchange-update:" + 
DEMOEXCHANGE,
-                                  isLongpolling: false,
-                                  givesLifeness: true,
-                                          isDue: false,
-                                   timestampDue: Timestamp(from:1700000000000))
-    static var previews: some View {
-        List {
-            PendingOpView(pendingOp: pending1)
-        }
-    }
-}
-#endif
diff --git a/TalerWallet1/Views/Settings/Pending/PendingOpsListView.swift 
b/TalerWallet1/Views/Settings/Pending/PendingOpsListView.swift
deleted file mode 100644
index f16288a..0000000
--- a/TalerWallet1/Views/Settings/Pending/PendingOpsListView.swift
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * This file is part of GNU Taler, ©2022-23 Taler Systems S.A.
- * See LICENSE.md
- */
-import SwiftUI
-import SymLog
-
-struct PendingOpsListView: View {
-    let navTitle = String(localized: "Pending")
-    let stack: CallStack
-
-    @EnvironmentObject private var model: WalletModel
-
-    @State var pendingOperations: [PendingOperation] = []
-
-    var body: some View {
-        let reloadAction = model.getPendingOperationsM
-        Content(stack: stack.push(), pendingOperations: $pendingOperations, 
reloadAction: reloadAction)
-            .navigationTitle(navTitle)
-            .task {
-                pendingOperations = await reloadAction()
-            }
-    }
-}
-// MARK: -
-extension PendingOpsListView {
-    struct Content: View {
-        let stack: CallStack
-        @Binding var pendingOperations: [PendingOperation]
-        var reloadAction: () async -> [PendingOperation]
-        @AppStorage("myListStyle") var myListStyle: MyListStyle = .automatic
-        var body: some View {
-//            ScrollViewReader { scrollView in
-                List(pendingOperations, id: \.self) { pendingOp in
-                    PendingOpView(pendingOp: pendingOp)
-                }
-                .listStyle(myListStyle.style).anyView
-                .onAppear() {
-                    DebugViewC.shared.setViewID(VIEW_PENDING, stack: 
stack.push())
-                }
-                .refreshable {
-                    pendingOperations = await reloadAction()
-                }
-//            }
-        }
-    }
-}
diff --git a/TalerWallet1/Views/Settings/SettingsView.swift 
b/TalerWallet1/Views/Settings/SettingsView.swift
index ebcd544..f2c92c5 100644
--- a/TalerWallet1/Views/Settings/SettingsView.swift
+++ b/TalerWallet1/Views/Settings/SettingsView.swift
@@ -123,12 +123,6 @@ struct SettingsView: View {
                         withAnimation { showDevelopItems = developerMode }
                     }
                     if showDevelopItems {  // show or hide the following items
-                        NavigationLink {        // whole row like in a 
tableView
-                            LazyView { PendingOpsListView(stack: stack.push()) 
}
-                        } label: {
-                            SettingsItem(name: String("Pending Operations"), 
id1: "pending",
-                                  description: hideDescriptions ? nil : 
String("Transactions not yet done...")) {}
-                        }.id("pending_L")
                         SettingsToggle(name: String("Set 2 seconds delay"),
                                       value: $developDelay.onChange({ delay in
                                         walletCore.developDelay = delay}), 
id1: "delay",

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]