优化脚本

This commit is contained in:
v7lin
2023-03-20 19:13:54 +08:00
parent d5faae8dd7
commit 041f62dee3
7 changed files with 16 additions and 10 deletions

2
.gitignore vendored
View File

@@ -28,3 +28,5 @@ migrate_working_dir/
.dart_tool/
.packages
build/
*.sh

View File

@@ -1,3 +1,7 @@
## 5.0.3
*
## 5.0.2
* iOS: ruby

View File

@@ -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

View File

@@ -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:

View File

@@ -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|

View File

@@ -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

View File

@@ -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 <v7lin@qq.com>
homepage: https://github.com/RxReader/wechat_kit
repository: https://github.com/RxReader/wechat_kit.git