Skip to content

Commit ac17e03

Browse files
author
lemon
committed
add the dependencies description
1 parent 946f7df commit ac17e03

File tree

1 file changed

+35
-6
lines changed

1 file changed

+35
-6
lines changed

README.md

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
1+
[![](https://jitpack.io/v/easilycoder/EasyBridge.svg)](https://jitpack.io/#easilycoder/EasyBridge)
2+
13
# FEATURE
24

35
#### :heavy_check_mark: 使用apt技术注册handler
46

57
支持使用apt技术,完成注册handler的功能,步骤如下:
68

7-
1. 添加下面的依赖
8-
9-
```Gradle
10-
implementation project(':easybridge-annotation')
11-
kapt project(':easybridge-processor') // in kotlin
12-
```
9+
1. 添加依赖(参考下面的方案使用)
1310

1411
2. 使用注解`@EasyBridgeHandler`
1512

@@ -64,6 +61,38 @@ EasyBridge提供两种安全检查策略。其中全局的安全检查在EasyBri
6461
1. 构造对应的`BridgeHandler`接口对象实例
6562
2. 实现对应的`SecurityPolicyChecker`实例,并提供给步骤1的接口实例
6663

64+
# USAGE
65+
66+
**EasyBridge**已经发布到[Jitpack](https://jitpack.io/#easilycoder/EasyBridge)上,你可以快速将引入EasyBridge库。
67+
68+
1. 在根目录的build.gradle文件中添加jitpack仓库
69+
70+
```Gradle
71+
allprojects {
72+
repositories {
73+
...
74+
maven { url 'https://jitpack.io' }
75+
}
76+
}
77+
```
78+
79+
2. 添加EasyBridge依赖
80+
81+
```gradle
82+
dependencies {
83+
compile 'com.github.easilycoder.EasyBridge:easybridge:0.0.1'// change the version to the newest one
84+
}
85+
```
86+
87+
3. 如果你需要使用提供的注解功能,添加以下的依赖
88+
89+
```gradle
90+
dependencies {
91+
compile 'com.github.easilycoder.EasyBridge:easybridge-annotation:0.0.1' // change the version to the newest one
92+
annotationProcessor 'com.github.easilycoder.EasyBridge:easybridge-processor:0.0.1' // change the version to the newest one
93+
}
94+
```
95+
6796
# EasyBridge
6897

6998
[EasyBridge](https://github.com/easilycoder/EasyBridge)是一个简单易用的js-bridge的工具库,提供了日常开发中,JavaScript与Java之间通讯的能力,与其他常见的js-bridge工具库实现方案不同,**EasyBridge**具备以下几个特点:

0 commit comments

Comments
 (0)