MCPcopy
hub / github.com/didi/DoKit

github.com/didi/DoKit @android_dokit_v3.7.1 sqlite

repository ↗ · DeepWiki ↗ · release android_dokit_v3.7.1 ↗
9,539 symbols 27,707 edges 807 files 2,444 documented · 26%
README

DoraemonKit

A full-featured App (iOS & Android) development assistant. You deserve it.

中文文档

community activity

DoKit official community satisfaction survey

link:https://page.juyanwenjuan.com/jy_0CMpJzlu.html

DoKit 首页效果演示

Introduction

In the development stage of the App, in order to improve the efficiency of the developer and tester, we have developed a collection of tools with full-featured functions. I can use it to simulate the positioning of the App; preview the content of the sandbox file; view the information and logs of the App; test the performance of the App and view the detailed information of the view, etc. Each tool solves every problem in our app development. And our UI interface is simple and beautiful, and the user experience is good.

At present, we provide a total of more than 30+ built-in tools, including 2 platform tools; 10 common tools; 12 performance tools; and 5 ui tools. At the same time, you can also add your own tools in our DoKit panel for unified management.

DoKit is rich in functions, easy to access, and easy to expand. Everyone is welcome to try and feedback.

SDK Show

Demonstration

Feature List

Common Tools

  • App Settings: quickly open the setting page of the specific app
  • App Info:view mobile phone information, device information, permission information of the current App
  • Sanbox:support sandbox files for viewing, previewing, deleting, sharing and other operations
  • Mock GPS:You can uniformly modify the latitude and longitude callbacks inside the App
  • Browser:quickly enter the html address to view the effect of the page, and support scan code;
  • Clear Sanbox: delete all data in the sandbox
  • Log:print all logs to the UI interface for easy viewing
  • UserDefaults(iOS): add, delete, and modify the NSUserDefaults file
  • DBView:perform more detailed operations on the DB file on the web

Performance Tools

  • FPS:view the real-time fps of the app through floating window
  • CPU:view the real-time cpu of the app through floating window
  • Memory:view the real-time memory of the app through floating window
  • Network:view the real-time network of the app through floating window,and analysis of all network data
  • Crash:convenient to print out the code stack where Crash appears
  • Sub Thread UI:quickly locate UI operations in some sub-threads
  • ANR:when the app appears anr, print out the corresponding code call stack
  • BigImg:Through network monitoring, find out all the images with oversized size, to avoid the waste of network caused by downloading large images and the CPU consumption caused by rendering large images
  • Weak Network:view the running status of the App when the network is not good
  • Launch Time:show app launch time
  • UI Hierrachy:find the deepest element in each page
  • Time Profiler:analyze app performance bottlenecks at the function level
  • Memory Leak:quickly locate App memory leaks
  • Load(iOS):check out all "+load" functions in iOS, and time-consuming statistics

UI Tools

  • Color Picker:capture the color value of every point in the app in real time
  • View Check:you can touch any view and view their detailed information, including view name, view position, background color, font color, font size
  • Align Ruler:ability to capture screen coordinates in real time and see if views are aligned
  • View Border:draw the border of each view

Platform Tools

  • Mock Data: App network mock solution, provides a set of network mock solutions based on App network interception, and can complete the mock for network data without modifying the code
  • Health Check: integration of multiple DoKit tools, data visualization, quick and accurate positioning of problems, let you know the performance of the app

tip: Platform tools need to be used in conjunction with https://www.dokit.cn/

Installation

iOS

Cocoapods

    pod 'DoraemonKit/Core', '~> 3.0.2', :configurations => ['Debug'] #Required
    pod 'DoraemonKit/WithGPS', '~> 3.0.2', :configurations => ['Debug'] #Optional
    pod 'DoraemonKit/WithLoad', '~> 3.0.2', :configurations => ['Debug'] #Optional

Example Usage

#ifdef DEBUG
#import <DoraemonKit/DoraemonManager.h>
#endif

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    #ifdef DEBUG
    [[DoraemonManager shareInstance] install];
    #endif
}

Android

1、Download

To use DoKit , add the plugin to your buildscript:

buildscript {
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.6.1'
        classpath 'com.didichuxing.doraemonkit:dokitx-plugin:3.3.5'
    }
}

and then apply it in your app module

apply plugin: 'com.didi.dokit'

and then implementation DoKit SDK

debugImplementation "com.didichuxing.doraemonkit:dokitx:3.3.5"
releaseImplementation "com.didichuxing.doraemonkit:dokitx-no-op:3.3.5"

2、SDK Init

public class App extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        DoraemonKit.install(this);
    }
}

Product Manual

If you want to know more details about DoKit, please visit https://www.dokit.cn/.

License

Apache-2.0 license

DoraemonKit is available under the Apache-2.0 license. See the LICENSE file for more info.

Extension points exported contracts — how you extend this code

OnCheckedChangeListener (Interface)
Interface definition for a callback to be invoked when a radio button is checked. [14 implementers]
Android/dokit/src/main/java/com/didichuxing/doraemonkit/widget/MultiLineRadioGroup.java
Retryable (Interface)
A unit of work that can be retried later. [62 implementers]
Android/dokit-leakcanary/src/main/java/com/squareup/leakcanary/Retryable.java
OnSeekBarChangeListener (Interface)
滑动监听,改变输入框的值 [4 implementers]
Android/dokit-gps-mock/src/main/java/com/didichuxing/doraemonkit/gps_mock/widget/SeekRangeBar.java
Closure (Interface)
(no doc) [8 implementers]
Android/dokit-util/src/main/java/com/didichuxing/doraemonkit/util/ArrayUtils.java
OnItemClickListener (Interface)
(no doc) [3 implementers]
Android/dokit-weex/src/main/java/com/didichuxing/doraemonkit/weex/storage/StorageAdapter.java
DokitViewInterface (Interface)
================================================ 作 者:jint(金台) 版 本:1.0 创建日期:2019-10-08-17:11 描 述:空实现 主要是为了跟原生的v [1 implementers]
Android/dokit-no-op/src/main/java/com/didichuxing/doraemonkit/kit/core/DokitViewInterface.java
OnUnlockListener (Interface)
(no doc)
Android/app/src/main/java/com/didichuxing/doraemondemo/mc/SlideBar.java
OnClickListener (Interface)
Interface definition for a callback to be invoked when a radio button is clicked. Clicking a radio button multiple times [58 …
Android/dokit/src/main/java/com/didichuxing/doraemonkit/widget/MultiLineRadioGroup.java

Core symbols most depended-on inside this repo

put
called by 451
Android/dokit-util/src/main/java/com/didichuxing/doraemonkit/util/SPUtils.java
size
called by 363
Android/dokit/src/main/java/com/didichuxing/doraemonkit/picasso/Cache.java
getApp
called by 350
Android/dokit-util/src/main/java/com/didichuxing/doraemonkit/util/Utils.java
get
called by 308
Android/dokit/src/main/java/com/didichuxing/doraemonkit/picasso/Cache.java
get
called by 240
Android/dokit-util/src/main/java/com/didichuxing/doraemonkit/util/Utils.java
add
called by 234
Android/dokit/src/main/java/com/didichuxing/doraemonkit/kit/network/common/CommonHeaders.java
length
called by 234
Android/dokit-util/src/main/java/com/didichuxing/doraemonkit/util/StringUtils.java
createBaseVNode
called by 233
Android/dokit/src/main/assets/h5help/dokit.js

Shape

Method 7,225
Function 1,180
Class 931
Interface 176
Enum 27

Languages

Java85%
TypeScript15%

Modules by API surface

Android/dokit/src/main/assets/h5help/dokit.js979 symbols
Android/dokit/src/main/java/com/didichuxing/doraemonkit/aop/urlconnection/ObsoleteUrlFactory.java146 symbols
Android/dokit/src/main/java/com/didichuxing/doraemonkit/kit/health/model/AppHealthInfo.java130 symbols
Android/dokit-util/src/main/java/com/didichuxing/doraemonkit/util/UtilsBridge.java114 symbols
Android/dokit-util/src/main/java/com/didichuxing/doraemonkit/util/LogUtils.java105 symbols
Android/dokit-util/src/main/java/com/didichuxing/doraemonkit/util/SpanUtils.java85 symbols
Android/dokit/src/main/java/com/didichuxing/doraemonkit/widget/easyrefresh/EasyRefreshLayout.java74 symbols
Android/dokit-util/src/main/java/com/didichuxing/doraemonkit/util/ShadowUtils.java74 symbols
Android/dokit-util/src/main/java/com/didichuxing/doraemonkit/util/ThreadUtils.java73 symbols
Android/dokit/src/main/java/com/didichuxing/doraemonkit/kit/network/bean/MockApiResponseBean.java69 symbols
Android/dokit-util/src/main/java/com/didichuxing/doraemonkit/util/NetworkUtils.java64 symbols
Android/dokit-gps-mock/src/main/java/com/didichuxing/doraemonkit/gps_mock/gpsmock/TencentLocationImp.java64 symbols

Dependencies from manifests, versioned

@babel/core7.5.0 · 1×
@babel/preset-env7.5.0 · 1×
@babel/register7.4.4 · 1×
@dokit/webfile:packages/web · 1×
@dokit/web-corefile:packages/core · 1×
@dokit/web-independentfile:packages/web-in · 1×
@dokit/web-utilsfile:packages/utils · 1×
@medv/finder1.1.3 · 1×
@rollup/plugin-alias3.1.2 · 1×
@vue/compiler-sfc3.0.11 · 1×
cross-env1.0.8 · 1×
cssesc3.0.0 · 1×

For agents

$ claude mcp add DoKit \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact