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 +4 -4
- data/CHANGELOG.md +7 -1
- data/lib/cocoapods_plugin.rb +40 -0
- data/lib/old/podfileDep.rb +1408 -0
- data/lib/podfileDep/check/dep.rb +183 -0
- data/lib/podfileDep/check/import.rb +159 -0
- data/lib/podfileDep/check/item.rb +11 -0
- data/lib/podfileDep/check/module.rb +178 -0
- data/lib/podfileDep/check/xcodeproj.rb +310 -0
- data/lib/podfileDep/constants.rb +13 -0
- data/lib/podfileDep/modify/modify_code.rb +52 -0
- data/lib/podfileDep/podfilelock.rb +17 -0
- data/lib/podfileDep/reference/project.rb +72 -0
- data/lib/podfileDep/reference/unused.rb +141 -0
- data/lib/podfileDep/version.rb +1 -1
- data/lib/podfileDep/yaml/yaml_dep.rb +449 -0
- data/lib/podfileDep.rb +13 -816
- data/podfileDep.gemspec +3 -2
- metadata +45 -6
- data/Gemfile.lock +0 -19
- data/sig/podfileDep.rbs +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 453cf499c1ff0edb3b114d9557593fe4ec231f32e06b4184be2023004af7266a
|
4
|
+
data.tar.gz: 036b6aa3bd30e6f504d9819c671295fdf454f1f8d6b35b04dac997094e9664b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47482290d3a12ddae5d48a5251cbd29ee5e26887174f432e122f9785007769794fa53a9fb9bae498cf214eeb17c44b830dd3c9104cc5bea440ab60706083fb1d
|
7
|
+
data.tar.gz: 995f1fea91965ea4252d9611a2f8ea7d35eb90d0d76bd02a40d4e81953be2ceff900ce24505ea56c76e8f66fef031b8dbcda7875e5d78c1ecd3000ffb1f36e11
|
data/CHANGELOG.md
CHANGED
@@ -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
|