podfileDep 2.4.9 → 2.4.10

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: 46e13acf0eb51b18b18bb5dc151bf3023b2ba147e3afbc50ceb1c5d0f6f7691f
4
+ data.tar.gz: 236f040f1d6b2e1b4571b0120c0f1f50d04e7a965d6162b70337b0501db75784
5
5
  SHA512:
6
- metadata.gz: b4a4246b66260a06ebbe4dd47747bfad51670f243de72f662916be3e847b1ea55000984cc7208d605b88e5f50d86fe5024aabc98d175af2a603b1a5c7a06a960
7
- data.tar.gz: e816ae19981c30b3ea276ae7689ca9d1360651175d62e8b91123b7146e99b7afc1adf0939838a272a0eef12820bff458843c7822610f077f245f74f91aa333cf
6
+ metadata.gz: 04a92fc2f87446f81d8b29a03e433f7d002e07d6ea5a026d2ea3db966b02a7e07d3e5127178e466036073e687fcc162934a22de96e6f3a5a917dd5d76f3f2d8a
7
+ data.tar.gz: 65ec2bf6cf721efcd1acb2944b29c603125c8b9257acec5ed82cf36b57ae9e029deee408b3817b7260837ba2ab3ec71e5ea29768a5aff36994728def20436633
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  ## [Released]
2
2
 
3
+ ### [2.4.10] - 2023-08-02
4
+ - 修复开发模块读取podspec路径错误的问题
5
+
3
6
  ### [2.4.9] - 2023-08-02
4
7
  - 修复读取podspec路径错误的问题
5
8
 
@@ -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.10"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
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.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - 王帅朋