podfileDep 2.4.9 → 2.4.11

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: 87c081de3be2c3b0512df6ce9dd56529a9a439c029d42b40fb0828d0c2597caf
4
- data.tar.gz: 533aeacfd5ba972e6c33a44dd4b73527fe10d35aff84a60656916413f25ad30d
3
+ metadata.gz: c1bb4022b21a25559de7d0713947b41268b939ab6365201c5c7893c6ad4cb671
4
+ data.tar.gz: a750ec5aa01e7213d7b648e256bd09a2e9d96ef98f658e788d6408ece49d4e1b
5
5
  SHA512:
6
- metadata.gz: b4a4246b66260a06ebbe4dd47747bfad51670f243de72f662916be3e847b1ea55000984cc7208d605b88e5f50d86fe5024aabc98d175af2a603b1a5c7a06a960
7
- data.tar.gz: e816ae19981c30b3ea276ae7689ca9d1360651175d62e8b91123b7146e99b7afc1adf0939838a272a0eef12820bff458843c7822610f077f245f74f91aa333cf
6
+ metadata.gz: 7224cccee0f8e5c44530a716bf2dd4f502f23d645e794bbc7618e3e6cc3f2fbc3a62d5e2e38cb155fca4ac5b0ca967e5728334156e14a9c561e134ae4afcd074
7
+ data.tar.gz: 5346eeea597e84fbdcdb67d31d3c847443064d02d65986e19493b1b4d0889a0204ef299dfb8aa566c2c037170489a275e800f5a61e44ad3b23fd82dd6abb8ec1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## [Released]
2
2
 
3
+ ### [2.4.11] - 2023-08-04
4
+ - 打印pod依赖库按类型输出
5
+
6
+ ### [2.4.10] - 2023-08-02
7
+ - 修复开发模块读取podspec路径错误的问题
8
+
3
9
  ### [2.4.9] - 2023-08-02
4
10
  - 修复读取podspec路径错误的问题
5
11
 
@@ -122,6 +122,9 @@ module Xcodeproj
122
122
  if group_hierarchy_path_array.size == 3
123
123
  source_file_item.module_path = group.real_path
124
124
  end
125
+ if group_hierarchy_path_array.include?("Development Pods")
126
+ source_file_item.is_development_module = true
127
+ end
125
128
  end
126
129
 
127
130
  # 文件引用
@@ -155,9 +158,8 @@ module Xcodeproj
155
158
  if source_file_item
156
159
  extend_name = child.real_path.basename.extname
157
160
  basename = child.real_path.basename
158
- if basename == "#{module_name}.podspec" or basename == "#{module_name}.podspec.json"
161
+ if basename.to_s == "#{module_name}.podspec" or basename.to_s == "#{module_name}.podspec.json"
159
162
  source_file_item.podspec_path = child.real_path
160
- source_file_item.is_development_module = true
161
163
  elsif source_file_extension.include?(extend_name)
162
164
  source_file_item.source_files[child.real_path.basename.to_s] = child.real_path
163
165
  if header_file_extension.include?(extend_name)
@@ -189,8 +191,14 @@ module Xcodeproj
189
191
  local_spec = lock_content["EXTERNAL SOURCES"]
190
192
  if local_spec and local_spec[module_name]
191
193
  path = local_spec[module_name][:path]
192
- if path
193
- return Pathname(path).expand_path
194
+ podspec_path = "#{path}/#{module_name}.podspec"
195
+ podspec_json_path = "#{path}/#{module_name}.podspec.json"
196
+ if File.exist?(podspec_path)
197
+ return Pathname(podspec_path).expand_path
198
+ elsif File.exist?(podspec_json_path)
199
+ return Pathname(podspec_json_path).expand_path
200
+ else
201
+ return nil
194
202
  end
195
203
  end
196
204
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PodfileDep
4
- VERSION = "2.4.9"
4
+ VERSION = "2.4.11"
5
5
  end
@@ -336,10 +336,8 @@ module Pod
336
336
  sort_deps = all_deps.sort do |arr1, arr2|
337
337
  dep1 = arr1[1]
338
338
  dep2 = arr2[1]
339
- if dep1.path and not dep2.path
340
- 1
341
- elsif not dep1.path and dep2.path
342
- -1
339
+ if dep1.type != dep2.type
340
+ dep1.type < dep2.type ? 1 : -1
343
341
  else
344
342
  dep1.pod.downcase <=> dep2.pod.downcase
345
343
  end
@@ -383,6 +381,9 @@ module Pod
383
381
  branch = repo_branch(dependency.path)
384
382
  modify = repo_modify(dependency.path)
385
383
  puts puts_result.cyan + branch.magenta + modify.magenta
384
+
385
+ elsif dependency.branch
386
+ puts "[!] #{puts_result}"
386
387
  else
387
388
  puts puts_result
388
389
  end
@@ -18,6 +18,7 @@ module Pod
18
18
  attr_accessor :inhibit_warnings
19
19
  attr_accessor :source
20
20
  attr_accessor :binary
21
+ attr_reader :type
21
22
 
22
23
  def option
23
24
  result = {:configurations => self.configurations,
@@ -40,5 +41,21 @@ module Pod
40
41
  end
41
42
  result
42
43
  end
44
+
45
+ def type
46
+ if self.path and self.path.size > 0
47
+ 0
48
+ elsif self.branch and self.branch.size > 0
49
+ return 1
50
+ elsif self.podspec and self.podspec.size > 0
51
+ return 2
52
+ elsif self.version and self.version.size > 0
53
+ return 3
54
+ elsif self.tag and self.tag.size > 0
55
+ return 4
56
+ else
57
+ 0
58
+ end
59
+ end
43
60
  end
44
61
  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.4.9
4
+ version: 2.4.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - 王帅朋
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-08-02 00:00:00.000000000 Z
11
+ date: 2023-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods