pod-pipeline 0.5.7 → 0.5.8
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b21a6b46fe8b53d7f5a67e42925ce3cb650cb0add13f345370b3536d4d0bc57e
|
4
|
+
data.tar.gz: 47f60f1813e7a0f59e90165917489522e1ba4a69586721cb611f491fcc1d8392
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5be551fc3105d8309f3802fb33ef106e13557be4d11f8c621417e628771d8ea3ef9472ea13062587941cef03bff3eb07d6e100a49e7484b572845549d7a2a61a
|
7
|
+
data.tar.gz: 9d63c3428036d8f96b36f882ba6b5a27a08e58e8cdcab014530a197b97903357638c7a1affc05a2982045bdc8e96f1ae4167c233c2f2d52c1d7b96c9c8619fb4
|
@@ -101,36 +101,35 @@ module PPL
|
|
101
101
|
end
|
102
102
|
|
103
103
|
def add_headers
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
104
|
+
header_stands = "#{@output}/Example/Pods/Headers/Public/#{@podspec.name}/*.h"
|
105
|
+
Dir[header_stands].each do |header_stand|
|
106
|
+
if File.ftype(header_stand).eql? 'link'
|
107
|
+
header_file = "#{File.dirname(header_stand)}/#{File.readlink(header_stand)}"
|
108
|
+
if File.ftype(header_file).eql? 'file'
|
109
|
+
header_file_basename = File.basename(header_file)
|
110
|
+
if !(File.exist? "#{@framework_headers_path}/#{header_file_basename}")
|
111
|
+
puts header_file_basename
|
112
|
+
FileUtils.cp(header_file, @framework_headers_path)
|
113
|
+
end
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|
117
|
+
header_files = "#{@build_path}/**/#{@podspec.name}.framework/Headers/*.h"
|
118
|
+
Dir[header_files].each do |header_file|
|
119
|
+
if File.ftype(header_file).eql? 'file'
|
120
|
+
header_file_basename = File.basename(header_file)
|
121
|
+
if !(File.exist? "#{@framework_headers_path}/#{header_file_basename}")
|
122
|
+
puts header_file_basename
|
123
|
+
FileUtils.cp(header_file, @framework_headers_path)
|
124
|
+
end
|
125
|
+
end
|
126
|
+
end
|
127
127
|
end
|
128
128
|
|
129
129
|
def combine_headers(local_dependency, pod_dependency)
|
130
130
|
headers = "#{@framework_path}/Headers"
|
131
131
|
#添加 构建生成的二进制文件
|
132
132
|
inputs = []
|
133
|
-
inputs << "#{@build_path}/*/**/#{@podspec.name}.framework"
|
134
133
|
if local_dependency
|
135
134
|
#添加 本地依赖的二进制文件
|
136
135
|
inputs << "#{@output}/#{@podspec.name}/Frameworks/**/*.framework"
|
@@ -143,6 +142,8 @@ module PPL
|
|
143
142
|
end
|
144
143
|
|
145
144
|
Header.combine(headers, inputs, @combine_include, @combine_exclude)
|
145
|
+
|
146
|
+
add_headers
|
146
147
|
end
|
147
148
|
|
148
149
|
def combine_binarys(local_dependency, pod_dependency)
|
@@ -0,0 +1,36 @@
|
|
1
|
+
require 'pod-pipeline/util/scanner'
|
2
|
+
|
3
|
+
module PPL
|
4
|
+
class Command
|
5
|
+
class Scan < Command
|
6
|
+
class Depend < Scan
|
7
|
+
self.summary = '输出 Pod 配置信息'
|
8
|
+
|
9
|
+
self.description = <<-DESC
|
10
|
+
输出 Pod 配置信息。
|
11
|
+
DESC
|
12
|
+
|
13
|
+
self.arguments = [
|
14
|
+
CLAide::Argument.new('项目根目录(默认使用当前目录)', false),
|
15
|
+
]
|
16
|
+
def self.options
|
17
|
+
[].concat(super)
|
18
|
+
end
|
19
|
+
|
20
|
+
def initialize(argv)
|
21
|
+
@path = argv.arguments!
|
22
|
+
|
23
|
+
@projectPath = @path.count.zero? ? Pathname.pwd.to_s : @path.first
|
24
|
+
|
25
|
+
super
|
26
|
+
end
|
27
|
+
|
28
|
+
def run
|
29
|
+
PPL::Scanner.new(@projectPath, ['depend']).run
|
30
|
+
|
31
|
+
puts "#{PPL::Scanner.depend}" if PPL::Scanner.depend
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -10,6 +10,7 @@ module PPL
|
|
10
10
|
@@linter = nil
|
11
11
|
@@name = nil
|
12
12
|
@@version = nil
|
13
|
+
@@depend = nil
|
13
14
|
@@git = nil
|
14
15
|
@@remote = nil
|
15
16
|
@@branch = nil
|
@@ -30,6 +31,7 @@ module PPL
|
|
30
31
|
@@linter = scan_pod @projectPath
|
31
32
|
@@name = @@linter.spec.name
|
32
33
|
@@version = @@linter.spec.version
|
34
|
+
@@depend = @@linter.spec.dependencies
|
33
35
|
@@git = scan_git @projectPath
|
34
36
|
@@remote = @@git.remote
|
35
37
|
@@branch = @@git.branches.current.first
|
@@ -40,6 +42,9 @@ module PPL
|
|
40
42
|
when "version"
|
41
43
|
@@linter = scan_pod @projectPath
|
42
44
|
@@version = @@linter.spec.version
|
45
|
+
when "depend"
|
46
|
+
@@linter = scan_pod @projectPath
|
47
|
+
@@depend = @@linter.spec.dependencies.map{ |depend| depend.name }.join(',')
|
43
48
|
when "remote"
|
44
49
|
@@git = scan_git @projectPath
|
45
50
|
@@remote = @@git.remote
|
@@ -68,6 +73,10 @@ module PPL
|
|
68
73
|
@@version
|
69
74
|
end
|
70
75
|
|
76
|
+
def self.depend
|
77
|
+
@@depend
|
78
|
+
end
|
79
|
+
|
71
80
|
def self.git
|
72
81
|
@@git
|
73
82
|
end
|
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.5.
|
4
|
+
version: 0.5.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 郑贤达
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-01-
|
11
|
+
date: 2023-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods-core
|
@@ -120,6 +120,7 @@ files:
|
|
120
120
|
- lib/pod-pipeline/command/scan.rb
|
121
121
|
- lib/pod-pipeline/command/scan/all.rb
|
122
122
|
- lib/pod-pipeline/command/scan/branch.rb
|
123
|
+
- lib/pod-pipeline/command/scan/depend.rb
|
123
124
|
- lib/pod-pipeline/command/scan/name.rb
|
124
125
|
- lib/pod-pipeline/command/scan/remote.rb
|
125
126
|
- lib/pod-pipeline/command/scan/version.rb
|