Skip to content

Commit f58aa04

Browse files
committed
Updated README.
1 parent 2f5a0ec commit f58aa04

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

Assets/shortcutItem.gif

4.61 MB
Loading

Features.md

+19
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
- [Crash reports](#crash-reports)
1818
- [Custom variables](#custom-variables)
1919
- [Custom actions](#custom-actions)
20+
- [Shortcut items](#shortcut-items)
2021

2122
### Performance
2223

@@ -401,3 +402,21 @@ To run these actions simply open the menu and go to custom actions section. You
401402
<p align="center">
402403
<img src="Assets/customActions.gif">
403404
</p>
405+
406+
### Shortcut items
407+
408+
What would you do if one of the testers in your team had a crash on the app launch caused by invalid data stored in the keychain? To avoid wiping all content and settings from the device, you would probably have to prepare a special build that removes the keychain data. This can be avoided with DBDebugToolkit, as it comes now with a shortcut item that removes all the data from the keychain, user defaults, documents directory and cookies.
409+
410+
<p align="center">
411+
<img src="Assets/shortcutItem.gif">
412+
</p>
413+
414+
To enable that option, all you have to do is add one line of code after DBDebugToolkit setup:
415+
416+
```swift
417+
DBDebugToolkit.addClearDataShortcutItem()
418+
```
419+
420+
Please note that overriding `UIApplication.shared.shortcutItems` after that line of code will remove this shortcut item.
421+
422+
**Warning!** Shortcut items are available on iOS 9.0 and above. Also, you can only use them on devices that support 3D Touch.

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ DBDebugToolkit is a debugging library written in Objective-C. It is meant to pro
5555
- [x] Modifying custom variable values from the menu
5656
- [x] Adding custom actions to the menu
5757
- [x] Opening application settings
58+
- [x] Application shortcut item for clearing data
5859
- [x] Showing version & build number
5960
- [x] Showing device model & iOS version
6061

0 commit comments

Comments
 (0)