File tree Expand file tree Collapse file tree 5 files changed +7
-21
lines changed
android/src/main/java/io/flutter/cpp_plugin Expand file tree Collapse file tree 5 files changed +7
-21
lines changed Original file line number Diff line number Diff line change 30
30
* .exe
31
31
* .out
32
32
* .app
33
+
34
+ libs /
35
+ obj /
Original file line number Diff line number Diff line change @@ -19,19 +19,4 @@ flutter直接和c++通讯插件
19
19
2 . xxxx
20
20
3 . xxxx
21
21
22
- #### 参与贡献
23
22
24
- 1 . Fork 本项目
25
- 2 . 新建 Feat_xxx 分支
26
- 3 . 提交代码
27
- 4 . 新建 Pull Request
28
-
29
-
30
- #### 码云特技
31
-
32
- 1 . 使用 Readme\_ XXX.md 来支持不同的语言,例如 Readme\_ en.md, Readme\_ zh.md
33
- 2 . 码云官方博客 [ blog.gitee.com] ( https://blog.gitee.com )
34
- 3 . 你可以 [ https://gitee.com/explore ] ( https://gitee.com/explore ) 这个地址来了解码云上的优秀开源项目
35
- 4 . [ GVP] ( https://gitee.com/gvp ) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
36
- 5 . 码云官方提供的使用手册 [ https://gitee.com/help ] ( https://gitee.com/help )
37
- 6 . 码云封面人物是一档用来展示码云会员风采的栏目 [ https://gitee.com/gitee-stars/ ] ( https://gitee.com/gitee-stars/ )
Original file line number Diff line number Diff line change 3
3
4
4
class CppBinaryMessageHandler extends BinaryMessenger .BinaryMessageHandler
5
5
{
6
+ static {
7
+ System .loadLibrary ("flutter_cpp_plugin" );
8
+ }
9
+
6
10
public CppBinaryMessageHandler (String channel )
7
11
{
8
12
mChannel =channel ;
9
13
}
10
14
11
-
12
15
public void onMessage (ByteBuffer message , BinaryReply reply );
13
16
{
14
17
onMessageJni (message ,reply );
Original file line number Diff line number Diff line change 10
10
public class CppPlugin {
11
11
public static BinaryMessenger sMessenger ;
12
12
13
- static {
14
- System .loadLibrary ("flutter_cpp_plugin" );
15
- }
16
-
17
13
/** Plugin registration. */
18
14
public static void registerWith (Registrar registrar )
19
15
{
20
16
sMessenger =registrar .messenger ();
21
17
}
22
18
23
- //
24
19
public static void invokeMethodCall (String channel , ByteBuffer message )
25
20
{
26
21
sMessenger .send (channel ,message );
File renamed without changes.
You can’t perform that action at this time.
0 commit comments