podfileDep 2.5.3 → 2.5.6

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: 761beb5ad84a30b5ca3d46afbb6c45291dd5047692278f67909a3eb05a7e9151
4
- data.tar.gz: '07981de74f8f8bd1adc53aa5ea36d75e3cd0c5b518ce0fcfd8c40d8482d6abe5'
3
+ metadata.gz: 29c63f45d7c8ec8ccf0b2207cddfed7a72fa36fb8e89c55ab7428bbf401b22d9
4
+ data.tar.gz: 31e948d17abce16ed2f4668a4e6955a074cd82db5e0b75e6689b87a5a2d02c7b
5
5
  SHA512:
6
- metadata.gz: e848eee9d583de4435bae0097475e15f715d42b15e0952ee03672472ea1e6ed9a1c64136a782f1cd5268b63e26a95301fac3cee9e3a0ccd8d26ca6bc61958ca5
7
- data.tar.gz: d98c4aefe43c78366596e9680bfe26924e7edb4127fc71a1128a365a33508060fb31af8f2803f05609c9908c974e55e2bc8741ed773d9d57938d492eb1aace73
6
+ metadata.gz: 6891629a75f951be1fe57520613bb32e71d9054008de534929bc2c71a77788ff065bff725a15bf2964be158bd2d252d950ea483c7696d8d3d76989ae0f8b6d15
7
+ data.tar.gz: 5539aed163e0536545ff77a7faacf4624921ad830ef5d338c0153a1bd0db9217df293ddef3f7a1deac569fa0f57134e1219304991236dfc1067eb028a03e1402
data/CHANGELOG.md CHANGED
@@ -1,4 +1,12 @@
1
1
  ## [Released]
2
+ ### [2.5.6] - 2023-11-22
3
+ - 兼容一个pod库都没有的场景
4
+
5
+ ### [2.5.5] - 2023-10-16
6
+ - 2.5.4打包失败,修改版本号
7
+
8
+ ### [2.5.4] - 2023-10-16
9
+ - 获取组件多余的依赖时,过滤掉当前组件
2
10
 
3
11
  ### [2.5.3] - 2023-09-27
4
12
  - 当读取到组件的podspec路径为空时,跳过检查,暂时忽略
@@ -12,7 +20,7 @@
12
20
  ### [2.5.0] - 2023-08-22
13
21
  - pod时将所有的target名字都放出来给外部
14
22
 
15
- - ### [2.4.14] - 2023-08-04
23
+ ### [2.4.14] - 2023-08-04
16
24
  - 打印pod依赖库按类型输出(fix)
17
25
 
18
26
  ### [2.4.13] - 2023-08-04
@@ -84,7 +92,7 @@
84
92
 
85
93
  ### [2.2.3] - 2023-7-5
86
94
  - 命令行支持 pod install quick
87
- -
95
+
88
96
  ### [2.2.2] - 2023-7-5
89
97
  - 彩色日志输出
90
98
 
@@ -96,7 +104,7 @@
96
104
 
97
105
  ### [2.1.6] - 2023-6-21
98
106
  - 兼容同时支持最原始的podfile的方式pod依赖库
99
- -
107
+
100
108
  ### [2.1.5] - 2023-6-20
101
109
  - 兼容同时支持subspec和configurations
102
110
 
@@ -43,7 +43,7 @@ module Xcodeproj
43
43
  podspec_modules = get_podspec_modules(module_item)
44
44
 
45
45
  loss = loss_modules(need_modules, podspec_modules)
46
- unused = unused_modules(need_modules, podspec_modules)
46
+ unused = unused_modules(need_modules, podspec_modules, module_item)
47
47
 
48
48
  if loss.size >0
49
49
  puts "组件#{module_item.module_name}可能缺少以下依赖(#{loss.size}个), 请检查:".yellow
@@ -92,7 +92,7 @@ module Xcodeproj
92
92
  # 获取多余的模块
93
93
  # @param need_modules::[String]
94
94
  # @param podspec_modules::[Hash{String => [String]}]
95
- def unused_modules(need_modules, podspec_modules)
95
+ def unused_modules(need_modules, podspec_modules, module_item)
96
96
  res = []
97
97
  podspec_modules.each do |dep_name, array|
98
98
  contain = false
@@ -102,7 +102,7 @@ module Xcodeproj
102
102
  end
103
103
  end
104
104
 
105
- unless contain
105
+ if not contain and module_item.module_name != dep_name
106
106
  res << dep_name
107
107
  end
108
108
  end
@@ -79,6 +79,10 @@ module Xcodeproj
79
79
  lock_content = @lock_content
80
80
 
81
81
  remote_dependencies = lock_content["PODS"]
82
+ unless remote_dependencies
83
+ return
84
+ end
85
+
82
86
  remote_dependencies.each do |dependency|
83
87
  if dependency.class == Hash
84
88
  dependency = dependency.keys.first
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PodfileDep
4
- VERSION = "2.5.3"
4
+ VERSION = "2.5.6"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: podfileDep
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.3
4
+ version: 2.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - 王帅朋
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-09-27 00:00:00.000000000 Z
11
+ date: 2023-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods