pindo 5.10.8 → 5.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/lib/pindo/command/android/autobuild.rb +38 -22
  3. data/lib/pindo/command/android/autoresign.rb +332 -0
  4. data/lib/pindo/command/android/build.rb +19 -12
  5. data/lib/pindo/command/android/{debug.rb → keystore.rb} +20 -25
  6. data/lib/pindo/command/android.rb +4 -3
  7. data/lib/pindo/command/{ipa/output.rb → appstore/adhocbuild.rb} +17 -17
  8. data/lib/pindo/command/{ipa → appstore}/autoresign.rb +11 -11
  9. data/lib/pindo/command/appstore/iap.rb +8 -8
  10. data/lib/pindo/command/{ipa → appstore}/import.rb +18 -18
  11. data/lib/pindo/command/appstore/itcapp.rb +8 -8
  12. data/lib/pindo/command/appstore/metadata.rb +8 -8
  13. data/lib/pindo/command/appstore/screenshots.rb +8 -8
  14. data/lib/pindo/command/appstore/upload.rb +8 -8
  15. data/lib/pindo/command/appstore.rb +6 -2
  16. data/lib/pindo/command/deploy/bundleid.rb +8 -8
  17. data/lib/pindo/command/deploy/cert.rb +10 -10
  18. data/lib/pindo/command/deploy/check.rb +8 -8
  19. data/lib/pindo/command/deploy.rb +1 -3
  20. data/lib/pindo/command/env/dreamstudio.rb +14 -12
  21. data/lib/pindo/command/env/quarkenv.rb +13 -11
  22. data/lib/pindo/command/env/swarkenv.rb +13 -11
  23. data/lib/pindo/command/env/workhard.rb +14 -12
  24. data/lib/pindo/command/env.rb +1 -1
  25. data/lib/pindo/command/gplay.rb +1 -1
  26. data/lib/pindo/command/ios/autobuild.rb +23 -15
  27. data/lib/pindo/command/ios/autoresign.rb +16 -16
  28. data/lib/pindo/command/ios/build.rb +12 -10
  29. data/lib/pindo/command/ios/{debug.rb → cert.rb} +26 -27
  30. data/lib/pindo/command/{lib/lint.rb → ios/podlint.rb} +6 -6
  31. data/lib/pindo/command/{lib/forcepush.rb → ios/podpush.rb} +123 -23
  32. data/lib/pindo/command/{lib/update.rb → ios/podupdate.rb} +5 -5
  33. data/lib/pindo/command/ios.rb +6 -2
  34. data/lib/pindo/command/jps/upload.rb +1 -1
  35. data/lib/pindo/command/jps.rb +1 -1
  36. data/lib/pindo/command/repo.rb +1 -1
  37. data/lib/pindo/command/unity/apk.rb +20 -15
  38. data/lib/pindo/command/unity/autobuild.rb +15 -21
  39. data/lib/pindo/command/unity/ipa.rb +21 -17
  40. data/lib/pindo/command/unity/{pack.rb → packbuild.rb} +17 -10
  41. data/lib/pindo/command/unity/{initpack.rb → packinit.rb} +10 -16
  42. data/lib/pindo/command/unity/{upload.rb → packpush.rb} +13 -19
  43. data/lib/pindo/command/unity/web.rb +19 -13
  44. data/lib/pindo/command/unity.rb +4 -4
  45. data/lib/pindo/command/{dev → utils}/feishu.rb +14 -14
  46. data/lib/pindo/command/{dev → utils}/repoinit.rb +8 -8
  47. data/lib/pindo/command/{dev → utils}/tag.rb +19 -19
  48. data/lib/pindo/command/utils.rb +9 -6
  49. data/lib/pindo/command/web/autobuild.rb +1 -1
  50. data/lib/pindo/command/web.rb +1 -1
  51. data/lib/pindo/command.rb +1 -4
  52. data/lib/pindo/module/android/android_build_config_helper.rb +83 -10
  53. data/lib/pindo/module/pgyer/pgyerhelper.rb +21 -1
  54. data/lib/pindo/version.rb +1 -1
  55. metadata +16 -22
  56. data/lib/pindo/command/dev.rb +0 -21
  57. data/lib/pindo/command/feishu/send_message.rb +0 -103
  58. data/lib/pindo/command/feishu.rb +0 -50
  59. data/lib/pindo/command/ios/adhoc.rb +0 -245
  60. data/lib/pindo/command/ipa.rb +0 -16
  61. data/lib/pindo/command/lib/push.rb +0 -157
  62. data/lib/pindo/command/lib.rb +0 -16
@@ -1,16 +0,0 @@
1
-
2
-
3
- require 'pindo/command/ipa/import'
4
- require 'pindo/command/ipa/output'
5
- require 'pindo/command/ipa/autoresign'
6
-
7
- module Pindo
8
- class Command
9
-
10
- class Ipa < Command
11
- self.abstract_command = true
12
- self.summary = '发布阶段自动化相关命令'
13
- end
14
-
15
- end
16
- end
@@ -1,157 +0,0 @@
1
- require 'highline/import'
2
- require 'fileutils'
3
- require 'json'
4
-
5
- module Pindo
6
- class Command
7
- class Lib < Command
8
- class Push < Lib
9
-
10
- self.summary = '将私有pod库推送到远程仓库中'
11
-
12
- self.description = <<-DESC
13
- 将私有pod库推送到远程仓库并添加到索引库中。
14
-
15
- 支持功能:
16
-
17
- * 验证podspec文件
18
-
19
- * 推送到远程Git仓库
20
-
21
- * 添加到私有索引库
22
-
23
- 使用示例:
24
-
25
- $ pindo lib push MyLib.podspec # 推送指定的podspec
26
-
27
- $ pindo lib push # 自动查找并推送podspec
28
- DESC
29
-
30
- self.arguments = [
31
- CLAide::Argument.new('podspec', true)
32
- ]
33
-
34
- def self.options
35
- [
36
- ['--p', '指定需要lint的pod库所在目录, 例如 --p=~/Users/xxx/MyPod'],
37
- ].concat(super)
38
- end
39
-
40
- def initialize(argv)
41
- @pod_spec_file = argv.shift_argument || nil
42
- @project_dir = argv.option('p')
43
-
44
- super(argv)
45
- @additional_args = argv.remainder!
46
- end
47
-
48
- def validate!
49
- super
50
- @project_dir=Dir.pwd if @project_dir.nil? || @project_dir.empty?
51
- end
52
-
53
- def run
54
-
55
- working_dir = @project_dir
56
- process_need_add_files(project_dir:working_dir)
57
-
58
- podspecs = []
59
- if @pod_spec_file && (@pod_spec_file.to_s.end_with?('.podspec') || @pod_spec_file.to_s.end_with?('.json'))
60
- podspecs = [@pod_spec_file]
61
- else
62
- podspecs = Pathname.glob(File.join(working_dir, '*.podspec{.json,}'))
63
- end
64
- if podspecs.count.zero?
65
- raise Informative, '工作目录下没有任何podspec文件'
66
- end
67
-
68
-
69
-
70
- sources = Pod::Config.instance.sources_manager.all
71
- public_source = sources.select { |s| s.is_a?(Pod::CDNSource) }.first
72
- if public_source.nil?
73
- public_source = sources.select { |s| s.git? && s.url.to_s.include?("CocoaPods/Specs.git") }.first
74
- end
75
- if public_source.nil?
76
- raise Informative, '公有Pod地址未知,请pod install安装pod库'
77
- end
78
-
79
-
80
- pod_array = pindo_single_config.pod_repo_dict
81
- pod_index_url = nil
82
- if !pod_array.nil?
83
- pod_index_url = pod_array['podindex']
84
- else
85
- raise Informative, '私有Pod索引地址未知!!'
86
- end
87
- private_source = sources.select { |s| s.git? && s.url.to_s.eql?(pod_index_url)}.first
88
- if private_source.nil?
89
- raise Informative, "私有Pod索引地址未知!"
90
- end
91
-
92
- pod_index_url_header = pod_index_url.slice(0, pod_index_url.rindex('/'))
93
- pod_index_url_git_org = File.basename(pod_index_url_header)
94
- working_dir_git_url = git!(%W(-C #{working_dir} config --get remote.origin.url)).chomp
95
- working_dir_git_url_header = working_dir_git_url.slice(0, working_dir_git_url.rindex('/'))
96
- working_dir_git_org = File.basename(working_dir_git_url_header)
97
- if working_dir_git_org.include?(":")
98
- working_dir_git_org = working_dir_git_org.slice(working_dir_git_org.rindex(':')+1, working_dir_git_org.size())
99
- end
100
-
101
-
102
- puts "pod本地地址: #{working_dir}"
103
- puts "pod远程地址: #{working_dir_git_url}"
104
- puts "索引本地地址: #{private_source.repo}"
105
- puts "索引远程地址: #{private_source.url}"
106
-
107
- if pod_index_url_git_org != working_dir_git_org
108
- puts
109
- puts "索引库地址:#{pod_index_url_git_org}"
110
- puts "Pod库地址:#{working_dir_git_org}"
111
- answer = agree("私有Pod索引地址与工作目录不一致, 是否继续推送(Y/n):")
112
- unless answer
113
- raise Informative, "私有Pod索引地址与工作目录不一致!!!请使用pindo env 切换环境后再推送"
114
- end
115
- end
116
-
117
-
118
-
119
- puts "即将执行下列命令:"
120
- command_array = []
121
- podspecs.each do |podspec|
122
- command = "pod repo push #{private_source.name} --sources=#{private_source.url},#{public_source.url} --allow-warnings --use-libraries --use-modular-headers --verbose"
123
- puts
124
- puts command
125
- puts
126
- command_array << command
127
- end
128
-
129
- answer = agree("是否运行以上命令(Y/n):")
130
- unless answer
131
- raise Informative, "停止推送!!!"
132
- end
133
-
134
- puts "检查对应的tag 是否添加"
135
- podspecs.each do |podspec|
136
- puts
137
- puts podspec
138
- podspec_obj = Pod::Specification.from_file(podspec)
139
- pod_name = podspec_obj.name
140
- tag_name = podspec_obj.version
141
- add_tag_with_check(local_repo_dir:working_dir, tag_name:tag_name)
142
- end
143
-
144
- command_array.each do |command|
145
- puts "正在运行命令:"
146
- puts
147
- puts command
148
- system command
149
- end
150
-
151
- end
152
-
153
-
154
- end
155
- end
156
- end
157
- end
@@ -1,16 +0,0 @@
1
-
2
- require 'pindo/command/lib/lint'
3
- require 'pindo/command/lib/push'
4
- require 'pindo/command/lib/forcepush'
5
- require 'pindo/command/lib/update'
6
-
7
- module Pindo
8
- class Command
9
-
10
- class Lib < Command
11
- self.abstract_command = true
12
- self.summary = 'pod库的相关命令'
13
- end
14
-
15
- end
16
- end