diff --git a/README.md b/README.md
index 16de673..45990af 100755
--- a/README.md
+++ b/README.md
@@ -69,13 +69,13 @@ iOS 9系统策略更新,限制了http协议的访问,此外应用需要在
```plist
LSApplicationQueriesSchemes
- weixin
- weixinULAPI
+ weixin
+ weixinULAPI
NSAppTransportSecurity
- NSAllowsArbitraryLoads
-
+ NSAllowsArbitraryLoads
+
```
@@ -94,12 +94,10 @@ dependencies:
wechat_kit: ^${latestTag}
```
-使用包含 iOS 支付:
+若需要不包含支付的 iOS SDK,请修改项目下的 `ios/Podfile`:
-```
-# 参考 https://github.com/RxReader/wechat_kit/blob/master/example/ios/Podfile
-# 默认 no_pay
-$WechatKitSubspec = 'pay'
+```diff
++ $WechatKitSubspec = 'no_pay'
```
* snapshot
diff --git a/example/ios/Podfile b/example/ios/Podfile
index cf0c493..5d04ce4 100644
--- a/example/ios/Podfile
+++ b/example/ios/Podfile
@@ -27,8 +27,8 @@ require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelpe
flutter_ios_podfile_setup
-# 默认 no_pay
-$WechatKitSubspec = 'pay'
+# 默认 pay
+# $WechatKitSubspec = 'no_pay'
target 'Runner' do
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
diff --git a/ios/wechat_kit.podspec b/ios/wechat_kit.podspec
index 9608d54..b06d160 100644
--- a/ios/wechat_kit.podspec
+++ b/ios/wechat_kit.podspec
@@ -6,15 +6,15 @@
if defined?($WechatKitSubspec)
wechat_kit_subspec = $WechatKitSubspec
else
- wechat_kit_subspec = 'no_pay'
+ wechat_kit_subspec = 'pay'
end
Pod::Spec.new do |s|
s.name = 'wechat_kit'
s.version = '3.2.0'
- s.summary = 'WeChat SDKs as Flutter plugin.'
+ s.summary = 'The Flutter plugin for WeChat SDKs.'
s.description = <<-DESC
-A powerful Flutter plugin allowing developers to auth/share/pay with natvie Android & iOS WeChat SDKs.
+A powerful Flutter plugin allowing developers to auth/pay/share with native Android & iOS WeChat SDKs.
DESC
s.homepage = 'https://github.com/RxReader/wechat_kit'
s.license = { :file => '../LICENSE' }
diff --git a/lib/src/wechat.dart b/lib/src/wechat.dart
index 00bd024..756ac7c 100755
--- a/lib/src/wechat.dart
+++ b/lib/src/wechat.dart
@@ -636,11 +636,13 @@ class Wechat {
);
}
- /// 支付 - 不含「iOS 支付」调用会直接抛出异常 No implementation [MissingPluginException]
+ /// 支付
+ ///
/// 参数说明:https://pay.weixin.qq.com/wiki/doc/api/app/app.php?chapter=9_12&index=2
///
- /// # 默认 no_pay,参考 https://github.com/RxReader/wechat_kit/blob/master/example/ios/Podfile
- /// $WechatKitSubspec = 'pay'
+ /// * 默认包含支付,参考 https://github.com/RxReader/wechat_kit/blob/master/example/ios/Podfile
+ /// 修改 `$WechatKitSubspec = 'no_pay'` 可切换为不包含支付。
+ /// * 不含「iOS 支付」调用会抛出 [MissingPluginException]。
Future pay({
required String appId,
required String partnerId,