Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-fluwx
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
openSourceLibrary
clx-fluwx
Commits
ef6d1cc2
提交
ef6d1cc2
authored
9月 27, 2018
作者:
JarvanMo
浏览文件
操作
浏览文件
下载
差异文件
make some headers public
上级
62e1c914
76441849
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
9 行增加
和
7 行删除
+9
-7
README_CN.md
README_CN.md
+1
-0
Info.plist
example/ios/Runner/Info.plist
+1
-1
main.dart
example/lib/main.dart
+1
-1
FluwxPlugin.m
ios/Classes/FluwxPlugin.m
+6
-5
没有找到文件。
README_CN.md
浏览文件 @
ef6d1cc2


适用于Flutter的微信SDK,方便快捷。
适用于Flutter的微信SDK,方便快捷。
QQ群:892398530。
## 使用需知
## 使用需知
...
...
example/ios/Runner/Info.plist
浏览文件 @
ef6d1cc2
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
<
string
>
weixin
<
/string
>
<
string
>
weixin
<
/string
>
<
k
e
y
>
CFBundleURLSchemes
<
/k
e
y
>
<
k
e
y
>
CFBundleURLSchemes
<
/k
e
y
>
<
a
rr
a
y
>
<
a
rr
a
y
>
<
string
>
wxd
930ea5d5a258f4f
<
/string
>
<
string
>
wxd
5e28ea7718fd8a2
<
/string
>
<
/
a
rr
a
y
>
<
/
a
rr
a
y
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
a
rr
a
y
>
<
/
a
rr
a
y
>
...
...
example/lib/main.dart
浏览文件 @
ef6d1cc2
...
@@ -23,7 +23,7 @@ class _MyAppState extends State<MyApp> {
...
@@ -23,7 +23,7 @@ class _MyAppState extends State<MyApp> {
@override
@override
void
initState
()
{
void
initState
()
{
super
.
initState
();
super
.
initState
();
Fluwx
.
register
(
appId:
"wxd
930ea5d5a258f4f
"
,
doOnAndroid:
true
,
doOnIOS:
true
,
enableMTA:
false
);
Fluwx
.
register
(
appId:
"wxd
5e28ea7718fd8a2
"
,
doOnAndroid:
true
,
doOnIOS:
true
,
enableMTA:
false
);
}
}
// Platform messages are asynchronous, so we initialize in an async method.
// Platform messages are asynchronous, so we initialize in an async method.
...
...
ios/Classes/FluwxPlugin.m
浏览文件 @
ef6d1cc2
...
@@ -13,7 +13,7 @@ BOOL handleOpenURLByFluwx = YES;
...
@@ -13,7 +13,7 @@ BOOL handleOpenURLByFluwx = YES;
-
(
void
)
dealloc
-
(
void
)
dealloc
{
{
[[
NSNotificationCenter
defaultCenter
]
removeObserver
:
self
];
//
[[NSNotificationCenter defaultCenter] removeObserver:self];
}
}
+
(
void
)
registerWithRegistrar
:
(
NSObject
<
FlutterPluginRegistrar
>
*
)
registrar
{
+
(
void
)
registerWithRegistrar
:
(
NSObject
<
FlutterPluginRegistrar
>
*
)
registrar
{
...
@@ -30,10 +30,10 @@ BOOL handleOpenURLByFluwx = YES;
...
@@ -30,10 +30,10 @@ BOOL handleOpenURLByFluwx = YES;
-
(
instancetype
)
initWithRegistrar
:
(
NSObject
<
FlutterPluginRegistrar
>
*
)
registrar
{
-
(
instancetype
)
initWithRegistrar
:
(
NSObject
<
FlutterPluginRegistrar
>
*
)
registrar
{
self
=
[
super
init
];
self
=
[
super
init
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
//
[[NSNotificationCenter defaultCenter] addObserver:self
selector
:
@selector
(
handleOpenURL
:
)
//
selector:@selector(handleOpenURL:)
name
:
@"WeChat"
//
name:@"WeChat"
object
:
nil
];
//
object:nil];
if
(
self
)
{
if
(
self
)
{
_fluwxShareHandler
=
[[
FluwxShareHandler
alloc
]
initWithRegistrar
:
registrar
];
_fluwxShareHandler
=
[[
FluwxShareHandler
alloc
]
initWithRegistrar
:
registrar
];
_fluwxAuthHandler
=
[[
FluwxAuthHandler
alloc
]
initWithRegistrar
:
registrar
];
_fluwxAuthHandler
=
[[
FluwxAuthHandler
alloc
]
initWithRegistrar
:
registrar
];
...
@@ -84,6 +84,7 @@ BOOL handleOpenURLByFluwx = YES;
...
@@ -84,6 +84,7 @@ BOOL handleOpenURLByFluwx = YES;
-
(
BOOL
)
handleOpenURL
:
(
NSNotification
*
)
aNotification
{
-
(
BOOL
)
handleOpenURL
:
(
NSNotification
*
)
aNotification
{
if
(
handleOpenURLByFluwx
){
if
(
handleOpenURLByFluwx
){
NSString
*
aURLString
=
[
aNotification
userInfo
][
@"url"
];
NSString
*
aURLString
=
[
aNotification
userInfo
][
@"url"
];
NSURL
*
aURL
=
[
NSURL
URLWithString
:
aURLString
];
NSURL
*
aURL
=
[
NSURL
URLWithString
:
aURLString
];
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论