Skip to content

Commit ef3db42

Browse files
committed
优化
1 parent 7f56401 commit ef3db42

File tree

5 files changed

+7
-21
lines changed

5 files changed

+7
-21
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,6 @@
3030
*.exe
3131
*.out
3232
*.app
33+
34+
libs/
35+
obj/

README.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,4 @@ flutter直接和c++通讯插件
1919
2. xxxx
2020
3. xxxx
2121

22-
#### 参与贡献
2322

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/)

android/src/main/java/io/flutter/cpp_plugin/CppBinaryMessageHandler.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@
33

44
class CppBinaryMessageHandler extends BinaryMessenger.BinaryMessageHandler
55
{
6+
static {
7+
System.loadLibrary("flutter_cpp_plugin");
8+
}
9+
610
public CppBinaryMessageHandler(String channel)
711
{
812
mChannel=channel;
913
}
1014

11-
1215
public void onMessage(ByteBuffer message, BinaryReply reply);
1316
{
1417
onMessageJni(message,reply);

android/src/main/java/io/flutter/cpp_plugin/CppPlugin.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,12 @@
1010
public class CppPlugin{
1111
public static BinaryMessenger sMessenger;
1212

13-
static {
14-
System.loadLibrary("flutter_cpp_plugin");
15-
}
16-
1713
/** Plugin registration. */
1814
public static void registerWith(Registrar registrar)
1915
{
2016
sMessenger=registrar.messenger();
2117
}
2218

23-
//
2419
public static void invokeMethodCall(String channel, ByteBuffer message)
2520
{
2621
sMessenger.send(channel,message);
File renamed without changes.

0 commit comments

Comments
 (0)