podfileDep 2.1.1 → 2.1.2

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: d685c50ac91b5bc9100a895fe300df13c8d1f4ca29eec6cfd0d36c1e74edaf08
4
- data.tar.gz: 60365a5983ce3810316f3b72b061e38717dfbd1f4ae34838f395a90659c4f755
3
+ metadata.gz: 98e0473afab8ed38d19dd5fe2f1483ba2d8bb592d364b9c29bceda3314c65d46
4
+ data.tar.gz: 37f8f5306318c471f98052415912563c397515f573aa4cde506343959bc0ee57
5
5
  SHA512:
6
- metadata.gz: a3dc46f47e0a2f3fdff945c663396ae3f1727dd2a62f5c6e2c939be6d528f2045469c9bb73d75d6b27be317ec9aee34a1e6e7fe9509875d868df603579a9327d
7
- data.tar.gz: b0bcbd47cf7ecad5c0f19a597fb531708b2b31f4da06b2bdc885985901dac4b0276bb4f3ca85f5810f404feb7ff786ec2bdd2ac402f850ee48221e14b0aae1f1
6
+ metadata.gz: 27250cce3354cc8af046c4a3c410ad6ef9e9b181973d8a6a00ed780af64871a710df85231e6ec1f3fafbbfc7c75663a67a55e890ed28cca25244aad4172775ed
7
+ data.tar.gz: 6cc16f12cd5690f8508f6b4949e6c45d272d7965a69927fcabda0dc65fa75a542d5a3504a2d395f38a88737c8860f8fb97291e34d1f7b4ab9144f8e9d9d42ec7
data/CHANGELOG.md CHANGED
@@ -40,4 +40,8 @@
40
40
  -
41
41
  ## [2.1.1] - 2023-6-19
42
42
 
43
- - 移除不被引用的依赖在pod install时加速
43
+ - 移除不被引用的依赖在pod install时加速
44
+
45
+ ## [2.1.2] - 2023-6-19
46
+
47
+ - 被local文件引用的依赖 不移除
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PodfileDep
4
- VERSION = "2.1.1"
4
+ VERSION = "2.1.2"
5
5
  end
@@ -44,12 +44,10 @@ module Pod
44
44
  end
45
45
  class YamlManager
46
46
 
47
- # 缓存某个的依赖库
48
- # {{"module_nameA":["module_nameA", module_nameB]},}
49
- attr_accessor :local_yaml_dependencies
47
+ attr_accessor :local_yaml_deps
50
48
 
51
49
  def initialize
52
- @local_yaml_dependencies = {}
50
+ @local_yaml_deps = []
53
51
  end
54
52
 
55
53
  # 单例方法
@@ -84,7 +82,6 @@ module Pod
84
82
  # 读取yaml依赖
85
83
  yaml_dependencies = {}
86
84
  read_yaml_dependencies(podfile_third_party_yaml,false ,yaml_dependencies)
87
- local_yaml_dependencies = yaml_dependencies #这里记录下
88
85
  read_yaml_dependencies(podfile_module_yaml,false ,yaml_dependencies)
89
86
  read_yaml_dependencies(podfile_local_yaml,true ,yaml_dependencies)
90
87
 
@@ -296,6 +293,11 @@ module Pod
296
293
  binary = dependency['binary'] ? !!dependency['binary'] : true
297
294
  version = (dependency['path'] or dependency['podspec']) ? nil :dependency['version']
298
295
 
296
+ # 记录
297
+ if yaml_name == Constants::PODFILE_LOCAL_YAML
298
+ self.local_yaml_deps << dependency['pod']
299
+ end
300
+
299
301
  # 生成依赖对象
300
302
  dependency = YamlRely.new(module_name = dependency['module'],
301
303
  pod = dependency['pod'],
@@ -367,7 +369,7 @@ module Pod
367
369
  end
368
370
 
369
371
  def local_yaml_contain(module_name)
370
- return local_yaml_dependencies.keys.include?(module_name)
372
+ local_yaml_deps.include?(module_name)
371
373
  end
372
374
 
373
375
  # 是否需要快速编译
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.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - 王帅朋