From 041f62dee388f5a5e36cbdb3230bd92dfb47b84a Mon Sep 17 00:00:00 2001 From: v7lin Date: Mon, 20 Mar 2023 19:13:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 ++ CHANGELOG.md | 4 ++++ example/ios/Podfile.lock | 8 ++++---- example/pubspec.lock | 2 +- ios/wechat_kit.podspec | 2 ++ ios/wechat_setup.rb | 6 ++---- pubspec.yaml | 2 +- 7 files changed, 16 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 96486fd..6be6319 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,5 @@ migrate_working_dir/ .dart_tool/ .packages build/ + +*.sh diff --git a/CHANGELOG.md b/CHANGELOG.md index aa4456f..6e1f06d 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 5.0.3 + +* 优化 + ## 5.0.2 * iOS: 优化 ruby 脚本 diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index 1c43f5d..edb2712 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -9,10 +9,10 @@ PODS: - sqflite (0.0.2): - Flutter - FMDB (>= 2.7.5) - - wechat_kit (5.0.2): + - wechat_kit (5.0.3): - Flutter - - wechat_kit/pay (= 5.0.2) - - wechat_kit/pay (5.0.2): + - wechat_kit/pay (= 5.0.3) + - wechat_kit/pay (5.0.3): - Flutter DEPENDENCIES: @@ -40,7 +40,7 @@ SPEC CHECKSUMS: FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a path_provider_foundation: c68054786f1b4f3343858c1e1d0caaded73f0be9 sqflite: 6d358c025f5b867b29ed92fc697fd34924e11904 - wechat_kit: 601e7409deee8d362777f41fa36fc1058cb47eec + wechat_kit: 08213ea02e1ff7b59b8b8133c7ec9e42567b33b0 PODFILE CHECKSUM: 8e679eca47255a8ca8067c4c67aab20e64cb974d diff --git a/example/pubspec.lock b/example/pubspec.lock index f39b062..b6e6140 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -414,7 +414,7 @@ packages: path: ".." relative: true source: path - version: "5.0.2" + version: "5.0.3" wechat_kit_extension: dependency: "direct main" description: diff --git a/ios/wechat_kit.podspec b/ios/wechat_kit.podspec index 0cf1f69..aaba3d7 100644 --- a/ios/wechat_kit.podspec +++ b/ios/wechat_kit.podspec @@ -21,6 +21,8 @@ if cfg['wechat_kit'] && (cfg['wechat_kit']['app_id'] && cfg['wechat_kit']['unive app_id = cfg['wechat_kit']['app_id'] universal_link = cfg['wechat_kit']['universal_link'] system("ruby #{current_dir}/wechat_setup.rb -a #{app_id} -u #{universal_link} -p #{project_dir} -n Runner.xcodeproj") +else + abort("wechat app_id/universal_link is null, add code in pubspec.yaml:\nwechat_kit:\n app_id: ${your wechat app id}\n universal_link: https://${your applinks domain}/universal_link/${example_app}/wechat/\n") end Pod::Spec.new do |s| diff --git a/ios/wechat_setup.rb b/ios/wechat_setup.rb index 0d2fe46..dd17ef4 100644 --- a/ios/wechat_setup.rb +++ b/ios/wechat_setup.rb @@ -63,13 +63,11 @@ project.targets.each do |target| sectionObject.build_configurations.each do |config| infoplist = config.build_settings["INFOPLIST_FILE"] if !infoplist - puts("INFOPLIST_FILE is not exist") - exit(0) + abort("INFOPLIST_FILE is not exist\n") end infoplistFile = File.join(options_dict[:project_dir], infoplist) if !File.exist?(infoplistFile) - puts("#{infoplist} is not exist") - exit(0) + abort("#{infoplist} is not exist\n") end result = Plist.parse_xml(infoplistFile, marshal: false) if !result diff --git a/pubspec.yaml b/pubspec.yaml index e94b3b2..777bec4 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: wechat_kit description: A powerful Flutter plugin allowing developers to auth/share/pay with natvie Android & iOS Wechat SDKs. -version: 5.0.2 +version: 5.0.3 # author: v7lin homepage: https://github.com/RxReader/wechat_kit repository: https://github.com/RxReader/wechat_kit.git