cocoapods-yaml 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CHANGELOG.md +13 -0
- data/README.md +129 -0
- data/lib/cocoapods/yaml.rb +27 -0
- data/lib/cocoapods_plugin.rb +64 -0
- data/lib/core/check/import.rb +74 -0
- data/lib/core/check/item.rb +220 -0
- data/lib/core/check/podspec.rb +195 -0
- data/lib/core/check/project.rb +405 -0
- data/lib/core/check/simulator_arch.rb +145 -0
- data/lib/core/check/util.rb +37 -0
- data/lib/core/check/xcodeproj.rb +81 -0
- data/lib/core/command/trim_mode.rb +53 -0
- data/lib/core/command/yaml_init.rb +28 -0
- data/lib/core/command/yaml_relation.rb +43 -0
- data/lib/core/dep/find.rb +164 -0
- data/lib/core/indirect/indirect.rb +72 -0
- data/lib/core/logger.rb +85 -0
- data/lib/core/modify/source_patcher.rb +204 -0
- data/lib/core/my_constants.rb +16 -0
- data/lib/core/podfilelock.rb +17 -0
- data/lib/core/reference/project.rb +201 -0
- data/lib/core/reference/unused.rb +30 -0
- data/lib/core/setup/podfile_setup.rb +107 -0
- data/lib/core/thin/installer.rb +171 -0
- data/lib/core/thin/local.rb +40 -0
- data/lib/core/thin/pod_target.rb +32 -0
- data/lib/core/thin/shell.rb +180 -0
- data/lib/core/variable.rb +2 -0
- data/lib/core/yaml/yaml_dependencies.rb +774 -0
- data/lib/core/yaml/yaml_pod.rb +63 -0
- data/lib/core_helper.rb +10 -0
- data/lib/version.rb +7 -0
- metadata +133 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
module Pod
|
|
2
|
+
class YamlPod
|
|
3
|
+
|
|
4
|
+
def initialize(pod)
|
|
5
|
+
@pod = pod
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
attr_accessor :pod
|
|
9
|
+
attr_accessor :subspecs
|
|
10
|
+
attr_accessor :version
|
|
11
|
+
attr_accessor :git
|
|
12
|
+
attr_accessor :tag
|
|
13
|
+
attr_accessor :branch
|
|
14
|
+
attr_accessor :podspec
|
|
15
|
+
attr_accessor :configurations
|
|
16
|
+
attr_accessor :path
|
|
17
|
+
attr_accessor :inhibit_warnings
|
|
18
|
+
attr_accessor :source
|
|
19
|
+
# 是否来自LocalDependencies.yaml的本地覆盖
|
|
20
|
+
attr_accessor :from_local
|
|
21
|
+
# 是否为LocalDependencies.yaml中声明、但任何target依赖文件都未声明而被自动注入主App target的新组件
|
|
22
|
+
attr_accessor :local_injected
|
|
23
|
+
attr_reader :type
|
|
24
|
+
|
|
25
|
+
def option
|
|
26
|
+
result = {:configurations => self.configurations,
|
|
27
|
+
:inhibit_warnings => self.inhibit_warnings,
|
|
28
|
+
:subspecs => self.subspecs}
|
|
29
|
+
|
|
30
|
+
if self.path #路径依赖
|
|
31
|
+
result[:path] = self.path
|
|
32
|
+
elsif self.podspec #podspec引用
|
|
33
|
+
result[:podspec] = self.podspec
|
|
34
|
+
elsif self.version #版本号依赖
|
|
35
|
+
result[:source] = self.source
|
|
36
|
+
elsif self.git #git仓库引用
|
|
37
|
+
result[:git] = self.git
|
|
38
|
+
if self.tag #tag引用
|
|
39
|
+
result[:tag] = self.tag
|
|
40
|
+
else #分支引用 或着未指定分支 也按分支引用
|
|
41
|
+
result[:branch] = self.branch
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
result
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
def type
|
|
48
|
+
if self.path
|
|
49
|
+
0
|
|
50
|
+
elsif self.branch
|
|
51
|
+
return 1
|
|
52
|
+
elsif self.podspec
|
|
53
|
+
return 2
|
|
54
|
+
elsif self.version
|
|
55
|
+
return 3
|
|
56
|
+
elsif self.tag
|
|
57
|
+
return 4
|
|
58
|
+
else
|
|
59
|
+
0
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
data/lib/core_helper.rb
ADDED
data/lib/version.rb
ADDED
metadata
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: cocoapods-yaml
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- wsp
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: cocoapods
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - ">="
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '1.13'
|
|
19
|
+
- - "<"
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: '2'
|
|
22
|
+
type: :runtime
|
|
23
|
+
prerelease: false
|
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
+
requirements:
|
|
26
|
+
- - ">="
|
|
27
|
+
- !ruby/object:Gem::Version
|
|
28
|
+
version: '1.13'
|
|
29
|
+
- - "<"
|
|
30
|
+
- !ruby/object:Gem::Version
|
|
31
|
+
version: '2'
|
|
32
|
+
- !ruby/object:Gem::Dependency
|
|
33
|
+
name: xcodeproj
|
|
34
|
+
requirement: !ruby/object:Gem::Requirement
|
|
35
|
+
requirements:
|
|
36
|
+
- - ">="
|
|
37
|
+
- !ruby/object:Gem::Version
|
|
38
|
+
version: '1.23'
|
|
39
|
+
- - "<"
|
|
40
|
+
- !ruby/object:Gem::Version
|
|
41
|
+
version: '2'
|
|
42
|
+
type: :runtime
|
|
43
|
+
prerelease: false
|
|
44
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
45
|
+
requirements:
|
|
46
|
+
- - ">="
|
|
47
|
+
- !ruby/object:Gem::Version
|
|
48
|
+
version: '1.23'
|
|
49
|
+
- - "<"
|
|
50
|
+
- !ruby/object:Gem::Version
|
|
51
|
+
version: '2'
|
|
52
|
+
- !ruby/object:Gem::Dependency
|
|
53
|
+
name: colored2
|
|
54
|
+
requirement: !ruby/object:Gem::Requirement
|
|
55
|
+
requirements:
|
|
56
|
+
- - "~>"
|
|
57
|
+
- !ruby/object:Gem::Version
|
|
58
|
+
version: '3.1'
|
|
59
|
+
type: :runtime
|
|
60
|
+
prerelease: false
|
|
61
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
62
|
+
requirements:
|
|
63
|
+
- - "~>"
|
|
64
|
+
- !ruby/object:Gem::Version
|
|
65
|
+
version: '3.1'
|
|
66
|
+
description: |-
|
|
67
|
+
1、iOS端按target以yaml文件管理依赖(本地/二方/三方统一)
|
|
68
|
+
2、pod yaml relation子命令查询依赖库正向/反向依赖关系
|
|
69
|
+
3、检查import写法错误问题
|
|
70
|
+
4、检查未被使用的依赖库和间接依赖的依赖库
|
|
71
|
+
5、TRIM_UNUSED_POD/pod install/update --trim 自动移除未使用依赖以加速编译
|
|
72
|
+
6、其他功能开发中...
|
|
73
|
+
email:
|
|
74
|
+
- wsp810@163.com
|
|
75
|
+
executables: []
|
|
76
|
+
extensions: []
|
|
77
|
+
extra_rdoc_files: []
|
|
78
|
+
files:
|
|
79
|
+
- CHANGELOG.md
|
|
80
|
+
- README.md
|
|
81
|
+
- lib/cocoapods/yaml.rb
|
|
82
|
+
- lib/cocoapods_plugin.rb
|
|
83
|
+
- lib/core/check/import.rb
|
|
84
|
+
- lib/core/check/item.rb
|
|
85
|
+
- lib/core/check/podspec.rb
|
|
86
|
+
- lib/core/check/project.rb
|
|
87
|
+
- lib/core/check/simulator_arch.rb
|
|
88
|
+
- lib/core/check/util.rb
|
|
89
|
+
- lib/core/check/xcodeproj.rb
|
|
90
|
+
- lib/core/command/trim_mode.rb
|
|
91
|
+
- lib/core/command/yaml_init.rb
|
|
92
|
+
- lib/core/command/yaml_relation.rb
|
|
93
|
+
- lib/core/dep/find.rb
|
|
94
|
+
- lib/core/indirect/indirect.rb
|
|
95
|
+
- lib/core/logger.rb
|
|
96
|
+
- lib/core/modify/source_patcher.rb
|
|
97
|
+
- lib/core/my_constants.rb
|
|
98
|
+
- lib/core/podfilelock.rb
|
|
99
|
+
- lib/core/reference/project.rb
|
|
100
|
+
- lib/core/reference/unused.rb
|
|
101
|
+
- lib/core/setup/podfile_setup.rb
|
|
102
|
+
- lib/core/thin/installer.rb
|
|
103
|
+
- lib/core/thin/local.rb
|
|
104
|
+
- lib/core/thin/pod_target.rb
|
|
105
|
+
- lib/core/thin/shell.rb
|
|
106
|
+
- lib/core/variable.rb
|
|
107
|
+
- lib/core/yaml/yaml_dependencies.rb
|
|
108
|
+
- lib/core/yaml/yaml_pod.rb
|
|
109
|
+
- lib/core_helper.rb
|
|
110
|
+
- lib/version.rb
|
|
111
|
+
homepage: https://rubygems.org/gems/cocoapods-yaml
|
|
112
|
+
licenses:
|
|
113
|
+
- MIT
|
|
114
|
+
metadata:
|
|
115
|
+
documentation_uri: https://rubygems.org/gems/cocoapods-yaml
|
|
116
|
+
rdoc_options: []
|
|
117
|
+
require_paths:
|
|
118
|
+
- lib
|
|
119
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
120
|
+
requirements:
|
|
121
|
+
- - ">="
|
|
122
|
+
- !ruby/object:Gem::Version
|
|
123
|
+
version: 2.6.0
|
|
124
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
|
+
requirements:
|
|
126
|
+
- - ">="
|
|
127
|
+
- !ruby/object:Gem::Version
|
|
128
|
+
version: '0'
|
|
129
|
+
requirements: []
|
|
130
|
+
rubygems_version: 3.6.9
|
|
131
|
+
specification_version: 4
|
|
132
|
+
summary: iOS端 依赖库使用yaml文件管理
|
|
133
|
+
test_files: []
|