BDAnalyze 2.3.0 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -5
- data/lib/AnalyzeTool +0 -0
- data/lib/BDAnalyze/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4602df15d6cfdfe9f3e45b180ed45641786ee510
|
4
|
+
data.tar.gz: 6208715973bb9056ef0a91aec1f19b2ae924e9f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 010fec9831d8e2823997a348a85a3d9dbd941f97c35cf5c9c22cbc677d18270dc08ff477160c8dd0f799948df9cd89688c04407c9594d81a9cd9297de0a2fe3b
|
7
|
+
data.tar.gz: eb3c4291e7671f013342211d3e3e5e927cd6aeb2fb963eb6da933fa6c92fc1c0ed59b592d2a3b06cd27e2ed1f7eb1dd9d1a4fbb33713daa8f5b32409d14d0fa5
|
data/README.md
CHANGED
@@ -45,7 +45,7 @@ Or install it yourself as:
|
|
45
45
|
```
|
46
46
|
1.一份编译好的头条 源码 工程「i.e.为了测试准确性以及完整性,需要用到所有源码信息,因此需要使用一份源码编译的头条工程,这里一定要注意需要使用全源码编译,因为二进制的Pods没有hmap信息」
|
47
47
|
2.一个用来存放解析结果「解析结果为:各种文件」的绝对路径。e.g.---- /Users/bob/des
|
48
|
-
3
|
48
|
+
3.头条项目工程在本机的绝对路径 e.g ---- /Users/bob/Git/work/tt_app_ios/Article/Article.xcodeproj
|
49
49
|
4.要分析的目标路径 e.g. ---- /Users/bob/Git/work/tt_app_ios/Article/Model「由于头条项目中使用了*.pch文件,因此解析时也要将pch文件放到目标文件下」
|
50
50
|
5.头条项目主工程的hmap文件 e.g. ---- /Users/bob/Library/Developer/Xcode/DerivedData/Article-gynljfcyrfnppnewlnrdnebqxclg/Build/Intermediates.noindex/Article.build/Debug-iphonesimulator/newsbeta.build/newsbeta.hmap
|
51
51
|
6.头条项目Pods工程的hmap文件[任意Pods的中的hmap文件即可] e.g. ---- /Users/bob/Library/Developer/Xcode/DerivedData/TTWenda-gynljfcyrfnppnewlnrdnebqxclg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/TTAccountLogin.build/TTAccountLogin.hmap「注意这里需要确定你编译的是真机还是模拟器,如果你选择的是真机但是实际用的模拟器编译,会导致Pods信息不全」
|
@@ -72,7 +72,7 @@ BDAnalyze --searchhmap Article
|
|
72
72
|
|
73
73
|
```ruby
|
74
74
|
BDAnalyze --s /Users/bob/des
|
75
|
-
--proj /Users/bob/Git
|
75
|
+
--proj /Users/bob/Git/work/tt_app_ios/Article/Article.xcodeproj
|
76
76
|
--tpath /Users/bob/Git/工作/tt_app_ios/Article/Model
|
77
77
|
--mHmap /Users/bob/Library/Developer/Xcode/DerivedData/Article-cghgvmicwdcbxwfdfbahfewrpppf/Build/Intermediates.noindex/Article.build/Debug-iphonesimulator/Explore.build/Explore.hmap
|
78
78
|
--pHmap /Users/bob/Library/Developer/Xcode/DerivedData/Article-cghgvmicwdcbxwfdfbahfewrpppf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/AWEVideoPlayer.build/AWEVideoPlayer.hmap
|
@@ -82,7 +82,7 @@ BDAnalyze --s /Users/bob/des
|
|
82
82
|
|
83
83
|
```ruby
|
84
84
|
BDAnalyze --s /Users/bob/des
|
85
|
-
--proj /Users/bob/Git
|
85
|
+
--proj /Users/bob/Git/work/tt_app_ios/Article/Article.xcodeproj
|
86
86
|
--tpath /Users/bob/Git/工作/tt_app_ios/Article/Model
|
87
87
|
--mHmap /Users/bob/Library/Developer/Xcode/DerivedData/Article-cghgvmicwdcbxwfdfbahfewrpppf/Build/Intermediates.noindex/Article.build/Debug-iphonesimulator/Explore.build/Explore.hmap
|
88
88
|
--pHmap /Users/bob/Library/Developer/Xcode/DerivedData/Article-cghgvmicwdcbxwfdfbahfewrpppf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/AWEVideoPlayer.build/AWEVideoPlayer.hmap
|
@@ -115,6 +115,7 @@ BDAnalyze --s /Users/bob/des
|
|
115
115
|
│ ├── HTSVideoMusicDetail.h
|
116
116
|
│ ├── HTSVideoMusicList.h
|
117
117
|
│ ├── containedPods.txt
|
118
|
+
│ ├── user_header_path.txt
|
118
119
|
│ └── Pods
|
119
120
|
│ └── AWEVideoPlayer
|
120
121
|
│ └── AWEVideoCachePlayTask.h
|
@@ -122,54 +123,64 @@ BDAnalyze --s /Users/bob/des
|
|
122
123
|
│ ├── CADisplayLink+HTSBlock.h
|
123
124
|
│ ├── CADisplayLink+HTSBlock.m
|
124
125
|
│ ├── HTSVideoMusicCommon.h
|
126
|
+
│ ├── user_header_path.txt
|
125
127
|
│ └── containedPods.txt
|
126
128
|
├── 第1层
|
127
129
|
│ ├── Article+TTADComputedProperties.h
|
128
130
|
│ ├── Article+TTADComputedProperties.m
|
129
131
|
│ ├── ArticleMomentManager.h
|
132
|
+
│ ├── user_header_path.txt
|
130
133
|
│ └── containedPods.txt
|
131
134
|
├── 第2层
|
132
135
|
│ ├── ArticleAddressManager.h
|
133
136
|
│ ├── ArticleAddressManager.m
|
137
|
+
│ ├── user_header_path.txt
|
134
138
|
│ └── containedPods.txt
|
135
139
|
├── 第3层
|
136
140
|
│ ├── ArticleAPNsManager.h
|
137
141
|
│ ├── ArticleAPNsManager.m
|
142
|
+
│ ├── user_header_path.txt
|
138
143
|
│ └── containedPods.txt
|
139
144
|
├── 第4层
|
140
145
|
│ ├── APNsManager.h
|
141
146
|
│ ├── APNsManager.m
|
142
147
|
│ ├── UIViewController+BDTAccountModalPresentor.h
|
143
148
|
│ ├── UIViewController+BDTAccountModalPresentor.m
|
149
|
+
│ ├── user_header_path.txt
|
144
150
|
│ └── containedPods.txt
|
145
151
|
├── 第5层
|
146
152
|
│ ├── ActionButton.h
|
147
153
|
│ ├── ActionButton.m
|
148
154
|
│ ├── UIViewController+TTVAdditions.m
|
155
|
+
│ ├── user_header_path.txt
|
149
156
|
│ └── containedPods.txt
|
150
157
|
├── 第6层
|
151
158
|
│ ├── ArticleAvatarView.h
|
152
159
|
│ ├── ArticleAvatarView.m
|
153
160
|
│ ├── containedPods.txt
|
161
|
+
│ ├── user_header_path.txt
|
154
162
|
│ └── toutiao.hpp
|
155
163
|
├── 第7层
|
156
164
|
│ ├── AccountButton.h
|
157
165
|
│ ├── AccountButton.m
|
158
166
|
│ ├── TTVideoRecommendView.m
|
167
|
+
│ ├── user_header_path.txt
|
159
168
|
│ └── containedPods.txt
|
160
169
|
├── 第8层
|
161
170
|
│ ├── ArticleMomentListCellCommentItem.h
|
162
171
|
│ ├── ArticleMomentListCellCommentItem.m
|
172
|
+
│ ├── user_header_path.txt
|
163
173
|
│ └── containedPods.txt
|
164
174
|
└── 第9层
|
165
175
|
├── HTSVideoMusicInfoDataManager.h
|
166
176
|
├── HTSVideoMusicInfoDataManager.m
|
177
|
+
├── user_header_path.txt
|
167
178
|
└── containedPods.txt
|
168
179
|
|
169
180
|
11 directories, 2579 files
|
170
181
|
```
|
171
182
|
|
172
|
-
解析结果按照 **依赖层级** 进行分布,上图即说明 **/Users/bob/Git/工作/tt_app_ios/Article/Model** 文件集合共有11层依赖。其中每层依赖的文件夹下表示当前依赖层级的所有文件,其中对于Pods的依赖存放在每个层级的containedPods.txt文件中。在最外层的allDenpendencyPod.txt文件表示所依赖的所有Pods
|
183
|
+
解析结果按照 **依赖层级** 进行分布,上图即说明 **/Users/bob/Git/工作/tt_app_ios/Article/Model** 文件集合共有11层依赖。其中每层依赖的文件夹下表示当前依赖层级的所有文件,其中对于Pods的依赖存放在每个层级的containedPods.txt文件中。在最外层的allDenpendencyPod.txt文件表示所依赖的所有Pods统计.user_header_path.txt表示依赖文件的相对于--proj 的路径
|
173
184
|
#### <a id="Case2"></a>[2] 分析单个组件的实际依赖情况
|
174
185
|
在沉库过程中,还有一个重要操作就是梳理已经下沉的组件的实际依赖关系,这样可以提供最小颗粒度的组件给使用方,同时有序的依赖关系会带来解析速度的提升以及维护成本的下降
|
175
186
|
|
@@ -189,7 +200,7 @@ BDAnalyze --s /Users/bob/des
|
|
189
200
|
|
190
201
|
```ruby
|
191
202
|
BDAnalyze --s /Users/bob/des
|
192
|
-
--proj /Users/bob/Git
|
203
|
+
--proj /Users/bob/Git/work/tt_app_ios/Article/Article.xcodeproj
|
193
204
|
--tpath /Users/bob/Git/工作/tt_app_ios/Article/Pods/BDAccount
|
194
205
|
--mHmap /Users/bob/Library/Developer/Xcode/DerivedData/Article-cghgvmicwdcbxwfdfbahfewrpppf/Build/Intermediates.noindex/Article.build/Debug-iphonesimulator/Explore.build/Explore.hmap
|
195
206
|
--pHmap /Users/bob/Library/Developer/Xcode/DerivedData/Article-cghgvmicwdcbxwfdfbahfewrpppf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/AWEVideoPlayer.build/AWEVideoPlayer.hmap
|
data/lib/AnalyzeTool
CHANGED
Binary file
|
data/lib/BDAnalyze/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: BDAnalyze
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bupterambition
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|