Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-fluwx
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
openSourceLibrary
clx-fluwx
Commits
53530a4a
提交
53530a4a
authored
5月 17, 2023
作者:
JarvanMo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix #537
上级
c7d35d76
显示空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
43 行增加
和
16 行删除
+43
-16
FluwxPlugin.kt
android/src/main/kotlin/com/jarvan/fluwx/FluwxPlugin.kt
+1
-0
Podfile.lock
example/ios/Podfile.lock
+1
-1
Info.plist
example/ios/Runner/Info.plist
+14
-3
FluwxPlugin.m
ios/Classes/FluwxPlugin.m
+9
-11
fluwx.dart
lib/src/fluwx.dart
+7
-0
fluwx_method_channel.dart
lib/src/method_channel/fluwx_method_channel.dart
+6
-0
fluwx_platform_interface.dart
lib/src/method_channel/fluwx_platform_interface.dart
+5
-1
没有找到文件。
android/src/main/kotlin/com/jarvan/fluwx/FluwxPlugin.kt
浏览文件 @
53530a4a
...
...
@@ -135,6 +135,7 @@ class FluwxPlugin : FlutterPlugin, MethodCallHandler, ActivityAware,
call
.
method
==
"openUrl"
->
openUrl
(
call
,
result
)
call
.
method
==
"openRankList"
->
openRankList
(
result
)
call
.
method
==
"attemptToResumeMsgFromWx"
->
attemptToResumeMsgFromWx
(
result
)
call
.
method
==
"selfCheck"
->
result
.
success
(
null
)
else
->
result
.
notImplemented
()
}
}
...
...
example/ios/Podfile.lock
浏览文件 @
53530a4a
...
...
@@ -29,7 +29,7 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
fluwx:
3c7b6df42f83d444d4538f3eaeae079f12d30c37
fluwx:
b1dc9ae474e933bef9ff8b82d1452989124c4848
integration_test: 13825b8a9334a850581300559b8839134b124670
WechatOpenSDK-XCFramework: acdeeda129efbef9532bca8a10c24e1b4b8c7d69
...
...
example/ios/Runner/Info.plist
浏览文件 @
53530a4a
...
...
@@ -11,7 +11,7 @@
<
k
e
y
>
CFBundleExecutable
<
/k
e
y
>
<
string
>
$
(
EXECUTABLE_NAME
)<
/string
>
<
k
e
y
>
CFBundleGetInfoString
<
/k
e
y
>
<
string
><
/string
>
<
string
/
>
<
k
e
y
>
CFBundleIdentifier
<
/k
e
y
>
<
string
>
$
(
PRODUCT_BUNDLE_IDENTIFIER
)<
/string
>
<
k
e
y
>
CFBundleInfoDictionaryVersion
<
/k
e
y
>
...
...
@@ -25,11 +25,22 @@
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
string
>
????
<
/string
>
<
k
e
y
>
CFBundleURLTypes
<
/k
e
y
>
<
a
rr
a
y/
>
<
a
rr
a
y
>
<
d
i
c
t
>
<
k
e
y
>
CFBundleTypeRole
<
/k
e
y
>
<
string
>
Editor
<
/string
>
<
k
e
y
>
CFBundleURLName
<
/k
e
y
>
<
string
>
weixin
<
/string
>
<
k
e
y
>
CFBundleURLSchemes
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
123456
<
/string
>
<
/
a
rr
a
y
>
<
/
d
i
c
t
>
<
/
a
rr
a
y
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
>
$
(
FLUTTER_BUILD_NUMBER
)<
/string
>
<
k
e
y
>
LSApplicationCategoryType
<
/k
e
y
>
<
string
><
/string
>
<
string
/
>
<
k
e
y
>
LSApplicationQueriesSchemes
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
weixin
<
/string
>
...
...
ios/Classes/FluwxPlugin.m
浏览文件 @
53530a4a
...
...
@@ -135,7 +135,15 @@ NSObject <FlutterPluginRegistrar> *_fluwxRegistrar;
[
self
handleOpenUrlCall
:
call
result
:
result
];
}
else
if
([
@"openWeChatInvoice"
isEqualToString
:
call
.
method
])
{
[
self
openWeChatInvoice
:
call
result
:
result
];
}
else
if
([
@""
isEqualToString
:
call
.
method
]){
}
else
if
([
@"selfCheck"
isEqualToString
:
call
.
method
])
{
#ifndef __OPTIMIZE__
[
WXApi
checkUniversalLinkReady
:
^
(
WXULCheckStep
step
,
WXCheckULStepResult
*
result
)
{
NSString
*
log
=
[
NSString
stringWithFormat
:
@"%@, %u, %@, %@"
,
@
(
step
),
result
.
success
,
result
.
errorInfo
,
result
.
suggestion
];
[
self
logToFlutterWithDetail
:
log
];
}];
#endif
result
(
nil
);
}
else
if
([
@"attemptToResumeMsgFromWx"
isEqualToString
:
call
.
method
]){
if
(
!
_attemptToResumeMsgFromWxFlag
)
{
_attemptToResumeMsgFromWxFlag
=
YES
;
if
(
_attemptToResumeMsgFromWxRunnable
!=
nil
)
{
...
...
@@ -208,16 +216,6 @@ NSObject <FlutterPluginRegistrar> *_fluwxRegistrar;
BOOL
isWeChatRegistered
=
[
WXApi
registerApp
:
appId
universalLink
:
universalLink
];
#if WECHAT_LOGGING
if
(
isWeChatRegistered
)
{
[
WXApi
checkUniversalLinkReady
:
^
(
WXULCheckStep
step
,
WXCheckULStepResult
*
result
)
{
NSString
*
log
=
[
NSString
stringWithFormat
:
@"%@, %u, %@, %@"
,
@
(
step
),
result
.
success
,
result
.
errorInfo
,
result
.
suggestion
];
[
self
logToFlutterWithDetail
:
log
];
}];
}
#endif
result
(
@
(
isWeChatRegistered
));
}
...
...
lib/src/fluwx.dart
浏览文件 @
53530a4a
...
...
@@ -100,6 +100,13 @@ class Fluwx {
return
FluwxPlatform
.
instance
.
attemptToResumeMsgFromWx
();
}
/// Only works on iOS in debug mode.
/// Check if your app can work with WeChat correctly.
/// Please make sure [registerApi] returns true before self check.
Future
<
void
>
selfCheck
()
async
{
return
FluwxPlatform
.
instance
.
selfCheck
();
}
/// Subscribe responses from WeChat
subscribeResponse
(
Function
(
WeChatResponse
response
)
listener
)
{
_responseListeners
.
add
(
listener
);
...
...
lib/src/method_channel/fluwx_method_channel.dart
浏览文件 @
53530a4a
...
...
@@ -203,6 +203,12 @@ class MethodChannelFluwx extends FluwxPlatform {
return
await
methodChannel
.
invokeMethod
(
'stopAuthByQRCode'
);
}
///Only works on iOS in debug mode.
@override
Future
<
void
>
selfCheck
()
async
{
return
await
methodChannel
.
invokeMethod
(
'selfCheck'
);
}
@override
Future
<
void
>
attemptToResumeMsgFromWx
()
async
{
return
await
methodChannel
.
invokeMethod
(
"attemptToResumeMsgFromWx"
);
...
...
lib/src/method_channel/fluwx_platform_interface.dart
浏览文件 @
53530a4a
...
...
@@ -114,7 +114,11 @@ abstract class FluwxPlatform extends PlatformInterface {
}
Future
<
void
>
attemptToResumeMsgFromWx
()
{
throw
UnimplementedError
(
'authBy() has not been implemented.'
);
throw
UnimplementedError
(
'attemptToResumeMsgFromWx() has not been implemented.'
);
}
Future
<
void
>
selfCheck
(){
throw
UnimplementedError
(
'selfCheck() has not been implemented.'
);
}
Future
<
bool
>
get
isSupportOpenBusinessView
async
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论