File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ Android无障碍服务(AccessibilityService)开发框架,快速开发复
1717在这个框架下开发Android无障碍服务业务可以让你的业务开发更加快速、逻辑更加健壮且容易维护。
1818
1919## 快速开始
20- ### 添加依赖
21- 1 . 将JitPack仓库添加到根目录build.gradle文件中
20+ ### 1. 添加依赖
21+ 1.1 将JitPack仓库添加到根目录build.gradle文件中
2222
2323``` groovy
2424allprojects {
@@ -29,14 +29,14 @@ allprojects {
2929}
3030```
3131
32- 2 . 添加依赖到主模块的build.gradle中,
32+ 1.2 添加依赖到主模块的build.gradle中,
3333``` groovy
3434dependencies {
3535 //添加依赖
3636 implementation 'com.github.ven-coder:assists:1.0.1'
3737}
3838```
39- ### 主模块AndroidManifest.xml中注册服务
39+ ### 2. 主模块AndroidManifest.xml中注册服务
4040一定要在主模块中注册服务,不然进程被杀服务也会自动被关闭需要再次开启
4141``` xml
4242<?xml version =" 1.0" encoding =" utf-8" ?>
@@ -71,8 +71,8 @@ dependencies {
7171
7272</manifest >
7373```
74- ### 实现业务逻辑
75- 1 . 继承``` StepImpl ``` 实现` onImpl(collector: StepCollector) ` 接口,通过``` collector.next() ``` 实现步骤逻辑
74+ ### 3. 实现业务逻辑
75+ 3.1 继承``` StepImpl ``` 实现` onImpl(collector: StepCollector) ` 接口,通过``` collector.next() ``` 实现步骤逻辑
7676
7777``` kotlin
7878class OpenWechat :StepImpl {
@@ -98,12 +98,12 @@ class OpenWechat:StepImpl {
9898 }
9999}
100100```
101- 2 . 在执行前注册上面步骤实现类` OpenWechat `
101+ 3.2 在执行前注册上面步骤实现类` OpenWechat `
102102
103103``` kotlin
104104StepManager .register(OpenWechat ::class .java)
105105```
106- 3 . 开始执行(执行前请确保无障碍服务已开启,开始执行请使用` beginExecute() ` ,后续的步骤执行请使用` execute() ` 方法)
106+ 3.3 开始执行(执行前请确保无障碍服务已开启,开始执行请使用` beginExecute() ` ,后续的步骤执行请使用` execute() ` 方法)
107107
108108``` kotlin
109109// 从步骤1开始执行
You can’t perform that action at this time.
0 commit comments