cocoapods-vbbuildsource 0.0.4 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +0 -4
- data/Gemfile.lock +1 -11
- data/lib/cocoapods-vbbuildsource/command/vbbuildsource.rb +9 -7
- data/lib/cocoapods-vbbuildsource/gem_version.rb +1 -1
- metadata +2 -3
- data/cocoapods-vbbuildsource-0.0.3.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5749e984e32e5c53681abeb33b63b5f835a60bc014fc250ffea63edf2f432a1
|
4
|
+
data.tar.gz: 4b5f036e46a309539893f020aa9a29350c84eda41347e6d96e83f2abae4092a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b48638a4d830e05bc650b57ca3ccfef9a11ee378f901c784a8dc8e813b75b213efdfdb627b04ab6dc5441104fe01bb03aa5f5a6075d5700b6d8c4210ff45018
|
7
|
+
data.tar.gz: 17f5a02e6bc95cf4c51aec42ef13dba357347b617872816d0426674ffd648d5579328fda10f02bc9e6f2af27454d9ac47721b5bdc94917143f16aab12989277d
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cocoapods-vbbuildsource (0.0.
|
4
|
+
cocoapods-vbbuildsource (0.0.8)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -18,7 +18,6 @@ GEM
|
|
18
18
|
httpclient (~> 2.8, >= 2.8.3)
|
19
19
|
json (>= 1.5.1)
|
20
20
|
atomos (0.1.3)
|
21
|
-
bacon (1.2.0)
|
22
21
|
claide (1.0.3)
|
23
22
|
cocoapods (1.10.0)
|
24
23
|
addressable (~> 2.6)
|
@@ -71,15 +70,10 @@ GEM
|
|
71
70
|
concurrent-ruby (~> 1.0)
|
72
71
|
json (2.5.1)
|
73
72
|
minitest (5.14.4)
|
74
|
-
mocha (1.13.0)
|
75
|
-
mocha-on-bacon (0.2.3)
|
76
|
-
mocha (>= 0.13.0)
|
77
73
|
molinillo (0.6.6)
|
78
74
|
nanaimo (0.3.0)
|
79
75
|
nap (1.1.0)
|
80
76
|
netrc (0.11.0)
|
81
|
-
prettybacon (0.0.2)
|
82
|
-
bacon (~> 1.2)
|
83
77
|
public_suffix (4.0.6)
|
84
78
|
rake (13.0.6)
|
85
79
|
rexml (3.2.5)
|
@@ -101,13 +95,9 @@ PLATFORMS
|
|
101
95
|
ruby
|
102
96
|
|
103
97
|
DEPENDENCIES
|
104
|
-
bacon
|
105
98
|
bundler (~> 1.3)
|
106
99
|
cocoapods (= 1.10.0)
|
107
100
|
cocoapods-vbbuildsource!
|
108
|
-
mocha
|
109
|
-
mocha-on-bacon
|
110
|
-
prettybacon
|
111
101
|
rake
|
112
102
|
|
113
103
|
BUNDLED WITH
|
@@ -88,8 +88,8 @@ module Pod
|
|
88
88
|
binary_file_path = find_binary_file_in_framework framework_file_path
|
89
89
|
help! "未找到库 #{@module_name} 的二进制文件" unless binary_file_path
|
90
90
|
# 找到framework里面的某一个.h头文件的 DW_AT_decl_file 字段
|
91
|
-
|
92
|
-
|
91
|
+
binary_build_path_string = find_file_path_string_in_binary(framework_file_path,binary_file_path)
|
92
|
+
help! "未找到库 #{@module_name} 的二进制path路径" unless binary_build_path_string
|
93
93
|
binary_build_path_list = binary_build_path_string.split('DW_AT_decl_file').delete_if(&:empty?).uniq
|
94
94
|
# 删掉所有的括号引号
|
95
95
|
binary_build_path_list = binary_build_path_list.each { |item| item.gsub!('("','').gsub!('")', '') }
|
@@ -130,13 +130,14 @@ module Pod
|
|
130
130
|
return Pathname.new("#{framework_file_path.to_path}/#{framework_file_path.basename.to_path.gsub!('.framework', '')}")
|
131
131
|
end
|
132
132
|
|
133
|
-
def
|
133
|
+
def find_file_path_string_in_binary(framework_file_path, binary_file_path)
|
134
134
|
framework_file_path.children.collect do |child|
|
135
|
-
if child.file? && child.extname.end_with?(
|
136
|
-
|
135
|
+
if child.file? && child.extname.end_with?('.h')
|
136
|
+
binary_build_path_string = `dwarfdump #{binary_file_path.to_path} | grep #{File.basename(child)} | grep 'DW_AT_decl_file'`.gsub!(/\s/, '')
|
137
|
+
return binary_build_path_string if binary_build_path_string
|
137
138
|
elsif child.directory?
|
138
|
-
|
139
|
-
return
|
139
|
+
binary_build_path_string = find_file_path_string_in_binary(child, binary_file_path)
|
140
|
+
return binary_build_path_string if binary_build_path_string
|
140
141
|
end
|
141
142
|
end
|
142
143
|
return nil
|
@@ -154,6 +155,7 @@ module Pod
|
|
154
155
|
def find_spec_source_file_path specification
|
155
156
|
source_path = specification.specification.attributes_hash['source_files']
|
156
157
|
source_path = specification.specification.subspecs.first.attributes_hash['source_files'] unless source_path
|
158
|
+
source_path = specification.specification.subspecs.first.attributes_hash['ios']['source_files'] unless source_path
|
157
159
|
help! "该库 #{@module_name} 的spec文件没填 source_file,暂不支持" unless source_path
|
158
160
|
dir_list = source_path.split('/')
|
159
161
|
help! "源码路径错误 #{source_path}" unless dir_list.count >= 2
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-vbbuildsource
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- faliu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-09-
|
11
|
+
date: 2021-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -51,7 +51,6 @@ files:
|
|
51
51
|
- LICENSE.txt
|
52
52
|
- README.md
|
53
53
|
- Rakefile
|
54
|
-
- cocoapods-vbbuildsource-0.0.3.gem
|
55
54
|
- cocoapods-vbbuildsource.gemspec
|
56
55
|
- image/filepath.png
|
57
56
|
- image/image.gif
|
Binary file
|