File tree Expand file tree Collapse file tree 1 file changed +35
-6
lines changed Expand file tree Collapse file tree 1 file changed +35
-6
lines changed Original file line number Diff line number Diff line change
1
+ [ ![ ] ( https://jitpack.io/v/easilycoder/EasyBridge.svg )] ( https://jitpack.io/#easilycoder/EasyBridge )
2
+
1
3
# FEATURE
2
4
3
5
#### :heavy_check_mark : 使用apt技术注册handler
4
6
5
7
支持使用apt技术,完成注册handler的功能,步骤如下:
6
8
7
- 1 . 添加下面的依赖
8
-
9
- ``` Gradle
10
- implementation project(':easybridge-annotation')
11
- kapt project(':easybridge-processor') // in kotlin
12
- ```
9
+ 1 . 添加依赖(参考下面的方案使用)
13
10
14
11
2 . 使用注解` @EasyBridgeHandler `
15
12
@@ -64,6 +61,38 @@ EasyBridge提供两种安全检查策略。其中全局的安全检查在EasyBri
64
61
1 . 构造对应的` BridgeHandler ` 接口对象实例
65
62
2 . 实现对应的` SecurityPolicyChecker ` 实例,并提供给步骤1的接口实例
66
63
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
+
67
96
# EasyBridge
68
97
69
98
[ EasyBridge] ( https://github.com/easilycoder/EasyBridge ) 是一个简单易用的js-bridge的工具库,提供了日常开发中,JavaScript与Java之间通讯的能力,与其他常见的js-bridge工具库实现方案不同,** EasyBridge** 具备以下几个特点:
You can’t perform that action at this time.
0 commit comments