podfileDep 1.1.4 → 2.0.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: f24323c1a1518c6ad19c0728d2c2d0dcd7bfcfe1fbbfebda26f732b1e42d2705
4
- data.tar.gz: 77a8681970626fef5fac4695883eb05ad1c909ab119bb3d8fb72667a431adaf7
3
+ metadata.gz: 453cf499c1ff0edb3b114d9557593fe4ec231f32e06b4184be2023004af7266a
4
+ data.tar.gz: 036b6aa3bd30e6f504d9819c671295fdf454f1f8d6b35b04dac997094e9664b8
5
5
  SHA512:
6
- metadata.gz: 5a57f95164c72dce0137114a4e41745b796588990f0b4e41f08ae376862490dbda23d83b53281712d9081ee9066846a3129a1b6a93c8b9766ce037aac181ecf5
7
- data.tar.gz: 36932bc857bed09de1980b33f3deacfb9a66632c4c78bbd436d99f1da2579b823bfa2abbe6fc70e15dc7a349f6c54a29ce7ceac0bf6439ad29384b1fa9fd7db5
6
+ metadata.gz: 47482290d3a12ddae5d48a5251cbd29ee5e26887174f432e122f9785007769794fa53a9fb9bae498cf214eeb17c44b830dd3c9104cc5bea440ab60706083fb1d
7
+ data.tar.gz: 995f1fea91965ea4252d9611a2f8ea7d35eb90d0d76bd02a40d4e81953be2ceff900ce24505ea56c76e8f66fef031b8dbcda7875e5d78c1ecd3000ffb1f36e11
data/CHANGELOG.md CHANGED
@@ -22,4 +22,10 @@
22
22
 
23
23
  ## [1.1.4] - 2023-03-08
24
24
 
25
- - 对FBRetainCycleDetector库中引用关系分析崩溃问题的处理(1)
25
+ - 对FBRetainCycleDetector库中引用关系分析崩溃问题的处理(1)
26
+
27
+ ## [2.0.0] - 2023-6-18
28
+
29
+ - 全新使用方式接入,更加方便,仅需一行代码接入
30
+ - yaml文件新增字段检验,支持subspecs字段
31
+ - 对文件中import的检验更加准确
@@ -0,0 +1,40 @@
1
+ require 'cocoapods'
2
+ require_relative 'podfileDep/check/dep'
3
+ require_relative 'podfileDep/check/import'
4
+ require_relative 'podfileDep/modify/modify_code'
5
+ require_relative 'podfileDep/reference/unused'
6
+ require_relative 'podfileDep/reference/project'
7
+
8
+ # 注册插件
9
+ module CocoapodsPlugin
10
+ # Pod::HooksManager.register('yaml_relies', :source_provider) do |context|
11
+ # puts "hook source_provider"
12
+ # puts context
13
+ # end
14
+ #
15
+ # Pod::HooksManager.register('yaml_relies', :pre_install) do |context|
16
+ # puts "hook pre_install"
17
+ # puts context
18
+ # end
19
+
20
+ Pod::HooksManager.register('podfileDep', :post_install) do |context|
21
+ # 检查依赖库
22
+ # Dep::DepChecker.dep_check
23
+
24
+ # 检查import
25
+ Import::ImportManager.import_check
26
+
27
+ # 代码文件处理
28
+ ModifyCode::Modify.modify_fb
29
+
30
+ # 未被使用的依赖库
31
+ Unused::UnusedManager.check_unused
32
+
33
+ # 添加yaml到引用和忽略
34
+ Project::ProjectManager.yaml_deal
35
+ end
36
+
37
+ # Pod::HooksManager.register('yaml_relies', :post_integrate) do |context|
38
+ # puts context
39
+ # end
40
+ end