Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-fluwx
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
openSourceLibrary
clx-fluwx
Commits
839b299f
提交
839b299f
authored
9月 27, 2018
作者:
JarvanMo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
swift docs
上级
569a7dc8
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
48 行增加
和
11 行删除
+48
-11
README.md
README.md
+2
-1
README_CN.md
README_CN.md
+2
-0
public_headers_1.png
arts/public_headers_1.png
+0
-0
public_headers_2.png
arts/public_headers_2.png
+0
-0
RESPONSE.md
doc/RESPONSE.md
+7
-5
RESPONSE_CN.md
doc/RESPONSE_CN.md
+7
-5
USING_SWIFT.md
doc/USING_SWIFT.md
+15
-0
USING_SWIFT_CN.md
doc/USING_SWIFT_CN.md
+15
-0
没有找到文件。
README.md
浏览文件 @
839b299f
...
...
@@ -74,7 +74,8 @@ isWeChatRegistered = YES;
*
[
Payment
](
./doc/WXPay.md
)
。
*
[
Response
](
./doc/RESPONSE.md
)
。
### Other
*
[
Using Swift?
](
).
### Waiting
## LICENSE
...
...
README_CN.md
浏览文件 @
839b299f
...
...
@@ -75,6 +75,8 @@ isWeChatRegistered = YES;
*
[
支付
](
./doc/WXPay_CN.md
)
。
*
[
回调
](
./doc/RESPONSE_CN.md
)
。
### 其他
*
[
使用Swift?
](
).
### 更多功能敬请请期待
...
...
arts/public_headers_1.png
0 → 100644
浏览文件 @
839b299f
18.4 KB
arts/public_headers_2.png
0 → 100644
浏览文件 @
839b299f
8.0 KB
doc/RESPONSE.md
浏览文件 @
839b299f
...
...
@@ -45,13 +45,15 @@ For the rule of creating `WXEntryActivity`and`WXPayEntryActivity`,please read[ex
### iOS
override the following function in
`AppDelegate.m`
:
```
objective-c
- (BOOL)application:(UIApplication *)application
handleOpenURL:(NSURL *)url
{
return [WXApi handleOpenURL:url delegate:[FluwxResponseHandler responseHandl
er]];
- (BOOL)application:(UIApplication *)application
openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
{
return [WXApi handleOpenURL:url delegate:[FluwxResponseHandler defaultManag
er]];
}
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString*, id> *)options{
return [WXApi handleOpenURL:url delegate:[FluwxResponseHandler responseHandler]];
// NOTE: 9.0以后使用新API接口
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString*, id> *)options
{
return [WXApi handleOpenURL:url delegate:[FluwxResponseHandler defaultManager]];
}
```
> NOTE:Don't forget to add URL Schema in order to go back to your app.
...
...
doc/RESPONSE_CN.md
浏览文件 @
839b299f
...
...
@@ -45,13 +45,15 @@
### iOS
在你的
`AppDelegate.m`
中重写下面方法:
```
objective-c
- (BOOL)application:(UIApplication *)application
handleOpenURL:(NSURL *)url
{
return [WXApi handleOpenURL:url delegate:[FluwxResponseHandler responseHandl
er]];
- (BOOL)application:(UIApplication *)application
openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
{
return [WXApi handleOpenURL:url delegate:[FluwxResponseHandler defaultManag
er]];
}
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString*, id> *)options{
return [WXApi handleOpenURL:url delegate:[FluwxResponseHandler responseHandler]];
// NOTE: 9.0以后使用新API接口
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString*, id> *)options
{
return [WXApi handleOpenURL:url delegate:[FluwxResponseHandler defaultManager]];
}
```
> 注意:为了能够返回你的app,请不要忘记添加URL Schema。
...
...
doc/USING_SWIFT.md
0 → 100644
浏览文件 @
839b299f
## Using Swift?
`fluwx`
supports
`swift`
since 2.0.0. However,before using swift, there's still a little work to do.
If anyone has better solutions, tell me please or open a PR.
## Make Headers Public
There is an exception called
`include non-modular headers`
if compiling
`fluwx`
directly because
`WeChatOpenSDK`
uses static library.
We have to make the headers in
`WeChatOpenSDK`
public in order to support swift:


##
\ No newline at end of file
doc/USING_SWIFT_CN.md
0 → 100644
浏览文件 @
839b299f
## 使用Swift?
`fluwx`
从
*2.0.0*
开始支持
`swift`
。 但是在使用swift之前, 我们还有一些工作要做。
如果有人知道更好的方式,请告诉我或者提一个PR。
## Make Headers Public
由于
`WeChatOpenSDK`
用到了静态库,所以当我们编译swift的时候会报一个错误:
`include non-modular headers`
。
为了支持swift,我们不得不将
`WeChatOpenSDK`
里的头文件变成public的:


##
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论