Sfoglia il codice sorgente

comment in DBDebuToolkit

cyberta 5 anni fa
parent
commit
9c7cd453d4

+ 2 - 2
deltachat-ios/AppDelegate.swift

@@ -24,8 +24,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
         // setupCrashReporting() may create an additional handler, but we do not want to rely on that
         signal(SIGPIPE, SIG_IGN)
 
-        //DBDebugToolkit.setup(with: []) // empty array will override default device shake trigger
-        //DBDebugToolkit.setupCrashReporting()
+        DBDebugToolkit.setup(with: []) // empty array will override default device shake trigger
+        DBDebugToolkit.setupCrashReporting()
 
         let console = ConsoleDestination()
         logger.addDestination(console)

+ 4 - 4
deltachat-ios/Controller/SettingsController.swift

@@ -452,11 +452,11 @@ internal final class SettingsViewController: UITableViewController, ProgressAler
     }
 
     private func showDebugToolkit() {
-        /*let info: [DBCustomVariable] = dcContext.getInfo().map { kv in
+        let info: [DBCustomVariable] = dcContext.getInfo().map { kv in
             let value = kv.count > 1 ? kv[1] : ""
             return DBCustomVariable(name: kv[0], value: value)
-        }*/
-        //DBDebugToolkit.add(info)
-        //DBDebugToolkit.showMenu()
+        }
+        DBDebugToolkit.add(info)
+        DBDebugToolkit.showMenu()
     }
 }