Skip to content

A collection of ZXKit debugging tools, used for iOS platform development and bug debugging. ZXKit的调试工具集合,用于iOS平台的开发和bug调试

License

Notifications You must be signed in to change notification settings

DamonHu/DDKitSwift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DDKitSwift

Previously developed debugging frameworks were somewhat scattered, so the goal was to create a universal framework that could combine different debugging tools through a plugin structure. This tool is designed for efficient problem solving rather than being comprehensive. Therefore, features that might affect App Store submission, such as private iOS functions and disabled interfaces, are not provided by default.

The previous name was ZXKitSwift, inspired by the novel "Zhu Xian". Due to maintenance costs for the domain and changes in the novel's ending, the name has been changed, dependencies have been removed, and updates have been made. This library is now released as DDKitSwift.

Features List

The following plugins are built-in and ready to use:

  • 🐛 Log logging
  • 📶 Network ping detection
  • 📱 FPS detection
  • 📂 Sandbox file browsing
  • 📋 UserDefault data management
  • 🌐 Network request interception and viewing

Integrating DDKitSwift

  1. Use CocoaPods to select the functionalities you need. You can combine them as needed.
# Required
pod 'DDKitSwift'
# Network monitoring (optional)
pod 'DDKitSwift_Netfox'
# FPS detection (optional)
pod 'DDKitSwift_FPS'
# Ping detection (optional)
pod 'DDKitSwift_Ping'
# File browsing (optional)
pod 'DDKitSwift_FileBrowser'
# UserDefault management (optional)
pod 'DDKitSwift_UserDefaultManager'

Using DDKitSwift

  1. Import the header files
import DDKitSwift
import DDKitSwift_Netfox
import DDKitSwift_FPS
import DDKitSwift_Ping
import DDKitSwift_FileBrowser
import DDKitSwift_UserDefaultManager
  1. Register the necessary components in the AppDelegate startup function
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
	
	DDKitSwift.regist(plugin: DDKitSwift_Netfox())
	DDKitSwift.regist(plugin: DDKitSwift_FPS())
   	DDKitSwift.regist(plugin: DDKitSwift_Ping())
   	DDKitSwift.regist(plugin: DDKitSwift_FileBrowser())
	DDKitSwift.regist(plugin: DDKitSwift_UserDefaultManager())
	
	return true
}
  1. Show the tools list
DDKitSwift.show()
  1. Hide the tools popup
DDKitSwift.hide()
  1. Close the tools popup
DDKitSwift.close()

Advanced Operations

Advanced operations provide a way to integrate personalized plugins. The process remains simple, with the additional step of self-registration compared to direct default integration.

Custom Plugin Integration

DDKitSwift comes with a set of pre-installed default functions and supports custom plugin integration. Simply import the corresponding library and register it in the AppDelegate startup function.

Project Preview

preview.gif

Developing Custom Plugins

If you need to develop custom plugins, implement the DDKitSwiftPluginProtocol. Then call the DDKitSwift.regist(plugin: ) function to automatically load and display the plugin.

About

A collection of ZXKit debugging tools, used for iOS platform development and bug debugging. ZXKit的调试工具集合,用于iOS平台的开发和bug调试

Topics

Resources

License

Stars

Watchers

Forks