pod-pipeline 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6140c3b739ebd8d6b85fe410608dd44f2f48a93801a9fc580a84d8ea9df074e3
4
- data.tar.gz: 0425fadd95bf189281397c6b897046092ca84c64369f64f19a555c2d6f253cbc
3
+ metadata.gz: f26ec379eb648b1c5291f1883d15b500ed5794abb443d709c6c0f96501749c4f
4
+ data.tar.gz: c426b102ac667783c857255adbf9235839bbe074c8aa0ff1445da8b2654287bd
5
5
  SHA512:
6
- metadata.gz: 9b589f5479a468eff707cbe0da4d7f0b2e9131ba17bce3cdfcd9ebed2d32b46709457f3e72419a33fbd1c2199569f5f5178e36a88e9e619101ba790886a12c95
7
- data.tar.gz: d4bf510165a56d4cf5a6e3e7989f51f9e07d0f7d6dabd1850c3c6819234e79f16bbeae837eed079955909fbaa2d0c2b145c5f54e6a5b80aaaae3eaeeccf0f19b
6
+ metadata.gz: ed686660941c086f9622da44f144da24aa7dfee458b9e2b9d51d2aee0c60b9d6453c0b03035f2577b132071a3300caaf4383d5012914944c2cb01b8af1afda49
7
+ data.tar.gz: fac91fc7862ad920a32304a0727cc6c03c5290dbac2f9752e0c4fff2de3c41bb8ac918886fc7cb12c38a32888b557d6980ddacd354350924278a63d456485261
@@ -49,6 +49,11 @@ module PPL
49
49
  puts "Pod: #{@podspec}"
50
50
  puts "Workspace: #{@workspace.path}"
51
51
 
52
+ if ! @configuration || !@archs
53
+ puts "无需构建"
54
+ return
55
+ end
56
+
52
57
  #初始化 构建目录
53
58
  reset_dir
54
59
 
@@ -90,19 +95,30 @@ module PPL
90
95
  Dir.reset(@framework_path)
91
96
  @framework_headers_path = "#{@framework_path}/Headers"
92
97
  Dir.reset(@framework_headers_path)
93
- #初始化 SDK目录
94
- @sdk_path = "#{@output}/#{@podspec.name}/#{@podspec.name}SDK"
95
- Dir.reset(@sdk_path)
96
98
  end
97
99
 
98
100
  def add_headers
99
101
  header_stands = "#{@output}/Example/Pods/Headers/Public/#{@podspec.name}/*.h"
100
102
  Dir[header_stands].each do |header_stand|
101
103
  if File.ftype(header_stand).eql? 'link'
102
- puts File.basename(header_stand)
103
-
104
- header = "#{File.dirname(header_stand)}/#{File.readlink(header_stand)}"
105
- FileUtils.cp(header, @framework_headers_path)
104
+ header_file = "#{File.dirname(header_stand)}/#{File.readlink(header_stand)}"
105
+ if File.ftype(header_file).eql? 'file'
106
+ header_file_basename = File.basename(header_file)
107
+ if !(File.exist? "#{@framework_headers_path}/#{header_file_basename}")
108
+ puts header_file_basename
109
+ FileUtils.cp(header_file, @framework_headers_path)
110
+ end
111
+ end
112
+ end
113
+ end
114
+ header_files = "#{@build_path}/**/#{@podspec.name}.framework/Headers/*.h"
115
+ Dir[header_files].each do |header_file|
116
+ if File.ftype(header_file).eql? 'file'
117
+ header_file_basename = File.basename(header_file)
118
+ if !(File.exist? "#{@framework_headers_path}/#{header_file_basename}")
119
+ puts header_file_basename
120
+ FileUtils.cp(header_file, @framework_headers_path)
121
+ end
106
122
  end
107
123
  end
108
124
  end
@@ -172,15 +188,6 @@ module PPL
172
188
  #将资源文件夹命名为 .bundle 格式
173
189
  `mv "#{bundle_path}" "#{bundle_path}.bundle"`
174
190
  end
175
-
176
- def copy_pod
177
- Dir["#{@framework_path}"].each do |framework|
178
- `cp -fr "#{framework}" "#{@sdk_path}"`
179
- end
180
- Dir["#{@build_path}/*.bundle"].each do |bundle|
181
- `cp -fr "#{bundle}" "#{@sdk_path}"`
182
- end
183
- end
184
191
  end
185
192
  end
186
193
  end
@@ -27,7 +27,6 @@ module PPL
27
27
 
28
28
  def self.options_extension_hash
29
29
  Hash[
30
- 'build' => PPL::Command::Build.options,
31
30
  'update' => PPL::Command::Update.options,
32
31
  'trunk-push' => Pod::Command::Trunk::Push.options,
33
32
  'repo-push' => Pod::Command::Repo::Push.options
@@ -49,7 +48,6 @@ module PPL
49
48
  end
50
49
 
51
50
  def run
52
- PPL::Command::Build.run([@projectPath] + argv_extension['build'])
53
51
  PPL::Command::Update.run([@projectPath] + argv_extension['update'])
54
52
 
55
53
  PPL::Scanner.new(@projectPath, ['pod']).run
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pod-pipeline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - 郑贤达
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-02 00:00:00.000000000 Z
11
+ date: 2022-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods-core