English | 简体中文
A picture takes you through CodeLocator
CodeLocator is a toolset that includes Android SDK and Android Studio plugins. It has the following functions(Support Mac Only):
- Display the current View information
- Display current Activity information
- Display information about all fragments
- Display custom App runtime information
- Display file information about the current application
- Edit the status of the View in real time, such as visibility, text content, etc
- Locate the View that currently responds to the touch event
- Get the data of the current View
- Get the drawing content corresponding to the current View
- Jump to View click event code, findViewById, ViewHolder code location
- Jump to View's XML layout file
- Jump to the code location of Toast & Dialog
- Jump to the location of code which starts the current Activity
- Display all Schema information supported by the application
- Send specified Schema to the application
- Locate the latest Apk file in the project
- Apk files can be installed from the shortcut menu
- Quickly open display layout boundaries, transition drawing, click operations, etc
- Fast connect Charles
抖音 | TikTok | 多闪 | Resso | 西瓜视频 |
Helo | 飞书 | 清北网校 | 番茄小说 | 轻颜相机 |
抖音火山版 | 瓜瓜龙 | 剪映 | 番茄畅听 | 幸福里 |
The followings describe how to use CodeLocator:
- Install CodeLocator in Android Studio (Click here to download plugin)
- Integrate CodeLocator into the application
allprojects {
repositories {
mavenCentral()
}
}
// To integrate the basic capabilities, just add one dependency
dependencies {
implementation "com.bytedance.tools.codelocator:codelocator-core:1.0.0"
}
If you need to integrate code jump capability, you need to integrate Lancet first and add the following dependencies
dependencies {
debugImplementation "com.bytedance.tools.codelocator:codelocator-lancet-xml:1.0.0"
debugImplementation "com.bytedance.tools.codelocator:codelocator-lancet-activity:1.0.0"
debugImplementation "com.bytedance.tools.codelocator:codelocator-lancet-view:1.0.0"
debugImplementation "com.bytedance.tools.codelocator:codelocator-lancet-toast:1.0.0"
debugImplementation "com.bytedance.tools.codelocator:codelocator-lancet-dialog:1.0.0"
debugImplementation "com.bytedance.tools.codelocator:codelocator-lancet-popup:1.0.0"
}
CodeLocator plug-in is a sidebar plug-in that is displayed on the right side of Android Studio after installation and can be expanded by clicking
The initial state is as follows
The green button is clickable, while the gray button is unavailable currently
Click the Grab button to obtain the status information of the current app. Click the image panel on the left to select the corresponding View, and the state of the button will change according to the currently selected View
For more operations, see the CodeLocator instructions
If you have any questions or suggestions about CodeLocator, please join our Wechat group to communicate with us.
Alternatively, you can send an email to [email protected] with a detailed description of your problem.
Applications are also welcome~~
Copyright (c) 2021 ByteDance Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
The following components are provided under an Apache 2.0 license.
-
lancet - For details, https://github.com/eleme/lancet
-
okhttp - For details, https://github.com/square/okhttp
-
gson - For details, https://github.com/google/gson