Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-fluwx
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
openSourceLibrary
clx-fluwx
Commits
dd167c00
提交
dd167c00
authored
4月 26, 2023
作者:
JarvanMo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update iOS setup
上级
c40981c1
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
26 行增加
和
13 行删除
+26
-13
Podfile.lock
example/ios/Podfile.lock
+1
-1
Info.plist
example/ios/Runner/Info.plist
+5
-0
fluwx.podspec
ios/fluwx.podspec
+19
-11
wechat_setup.rb
ios/wechat_setup.rb
+1
-1
没有找到文件。
example/ios/Podfile.lock
浏览文件 @
dd167c00
...
...
@@ -29,7 +29,7 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
fluwx:
143bf1458e1a46493eb0bc18deb1ee90037f4c30
fluwx:
f608fff0e3a8c30199b626fed590d83cdd820a52
integration_test: 13825b8a9334a850581300559b8839134b124670
OpenWeChatSDKNoPay: 59a9628a746352bb400329cb7f12e6dc7096bf6e
...
...
example/ios/Runner/Info.plist
浏览文件 @
dd167c00
...
...
@@ -10,6 +10,8 @@
<
string
>
Fluwx
<
/string
>
<
k
e
y
>
CFBundleExecutable
<
/k
e
y
>
<
string
>
$
(
EXECUTABLE_NAME
)<
/string
>
<
k
e
y
>
CFBundleGetInfoString
<
/k
e
y
>
<
string/
>
<
k
e
y
>
CFBundleIdentifier
<
/k
e
y
>
<
string
>
$
(
PRODUCT_BUNDLE_IDENTIFIER
)<
/string
>
<
k
e
y
>
CFBundleInfoDictionaryVersion
<
/k
e
y
>
...
...
@@ -38,10 +40,13 @@
<
/
a
rr
a
y
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
>
$
(
FLUTTER_BUILD_NUMBER
)<
/string
>
<
k
e
y
>
LSApplicationCategoryType
<
/k
e
y
>
<
string/
>
<
k
e
y
>
LSApplicationQueriesSchemes
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
weixin
<
/string
>
<
string
>
weixinULAPI
<
/string
>
<
string
>
weixinURLParamsAPI
<
/string
>
<
/
a
rr
a
y
>
<
k
e
y
>
LSRequiresIPhoneOS
<
/k
e
y
>
<
tru
e
/
>
...
...
ios/fluwx.podspec
浏览文件 @
dd167c00
...
...
@@ -16,9 +16,9 @@ calling_dir = File.dirname(__FILE__)
project_dir
=
calling_dir
.
slice
(
0
..
(
calling_dir
.
index
(
'/.symlinks'
)))
flutter_project_dir
=
calling_dir
.
slice
(
0
..
(
calling_dir
.
index
(
'/ios/.symlinks'
)))
cfg
=
YAML
.
load_file
(
File
.
join
(
flutter_project_dir
,
'pubspec.yaml'
))
debug_logging
=
'0'
debug_logging
=
false
if
cfg
[
'fluwx'
]
&&
cfg
[
'fluwx'
][
'debug_logging'
]
==
true
debug_logging
=
'1'
debug_logging
=
true
end
if
cfg
[
'fluwx'
]
&&
cfg
[
'fluwx'
][
'ios'
]
&&
cfg
[
'fluwx'
][
'ios'
][
'no_pay'
]
==
true
...
...
@@ -53,23 +53,31 @@ The capability of implementing WeChat SDKs in Flutter. With Fluwx, developers ca
s
.
default_subspec
=
fluwx_subspec
pod_target_xcconfig
=
{
'OTHER_LDFLAGS'
=>
'$(inherited) -ObjC -all_load'
}
s
.
subspec
'pay'
do
|
sp
|
sp
.
dependency
'WechatOpenSDK-XCFramework'
,
'~> 2.0.2'
sp
.
pod_target_xcconfig
=
{
'OTHER_LDFLAGS'
=>
'$(inherited) -ObjC -all_load'
,
"GCC_PREPROCESSOR_DEFINITIONS_Debug"
=>
"$(inherited) WECHAT_LOGGING=
#{
debug_logging
}
"
}
if
debug_logging
pod_target_xcconfig
[
"GCC_PREPROCESSOR_DEFINITIONS"
]
=
'$(inherited) WECHAT_LOGGING=1'
else
pod_target_xcconfig
[
"GCC_PREPROCESSOR_DEFINITIONS"
]
=
'$(inherited) WECHAT_LOGGING=0'
end
sp
.
pod_target_xcconfig
=
pod_target_xcconfig
end
s
.
subspec
'no_pay'
do
|
sp
|
sp
.
dependency
'OpenWeChatSDKNoPay'
,
'~> 2.0.2+1'
sp
.
frameworks
=
'CoreGraphics'
,
'Security'
,
'WebKit'
sp
.
libraries
=
'c++'
,
'z'
,
'sqlite3.0'
sp
.
pod_target_xcconfig
=
{
'OTHER_LDFLAGS'
=>
'$(inherited) -ObjC -all_load'
,
'GCC_PREPROCESSOR_DEFINITIONS'
=>
'$(inherited) NO_PAY=1'
,
"GCC_PREPROCESSOR_DEFINITIONS_Debug"
=>
"$(inherited) WECHAT_LOGGING=
#{
debug_logging
}
"
}
if
debug_logging
pod_target_xcconfig
[
"GCC_PREPROCESSOR_DEFINITIONS"
]
=
'$(inherited) NO_PAY=1 WECHAT_LOGGING=1'
else
pod_target_xcconfig
[
"GCC_PREPROCESSOR_DEFINITIONS"
]
=
'$(inherited) NO_PAY=1 WECHAT_LOGGING=0'
end
sp
.
pod_target_xcconfig
=
pod_target_xcconfig
end
# Flutter.framework does not contain a i386 slice.
...
...
ios/wechat_setup.rb
浏览文件 @
dd167c00
...
...
@@ -92,7 +92,7 @@ project.targets.each do |target|
queriesSchemes
=
[]
result
[
"LSApplicationQueriesSchemes"
]
=
queriesSchemes
end
wechatQueriesSchemes
=
[
"weixin"
,
"weixinULAPI"
]
wechatQueriesSchemes
=
[
"weixin"
,
"weixinULAPI"
,
"weixinURLParamsAPI"
]
if
wechatQueriesSchemes
.
any?
{
|
queriesScheme
|
!
(
queriesSchemes
.
include?
queriesScheme
)
}
wechatQueriesSchemes
.
each
do
|
queriesScheme
|
if
!
(
queriesSchemes
.
include?
queriesScheme
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论