podfileDep 2.2.2 → 2.2.3

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: 0f80429bafc2e7cf8a1fdc5061658df578425def95837ed7a61366d4fb2adcb2
4
- data.tar.gz: 2db492658a86ba800ff8cfee65d3344348c912d9a2ef955be2ddf0d41db7bb8e
3
+ metadata.gz: 9c461de9092d59c6b00f29ca61a7f7f40ece60fecf0ecc7012eaeb9e9435afbe
4
+ data.tar.gz: f52b292937cde38a68ac1808097875658767c62b6e7c64e65bd2313d917fa8f5
5
5
  SHA512:
6
- metadata.gz: 805aa965c9bec161d2f6dc827f6843ecc7c6b6161f777862f63b33b7f62f78ff73dff7b020cd56eb5617805b1df32b11f4a90c2c8b72ffe548f0b34d7db47a7e
7
- data.tar.gz: e4136074707696110fdbb3696a97ddd36fb4451c9d70d97e88235340d62249c08ad67b42d0dedd7e34efa76ba2799f48275f87f88d22e562645131ce436c6b12
6
+ metadata.gz: cff6c8f1e78b155a286fd104170a32c3696a5818537fb3a7c65c377cb358640f7646ed4c7e479dfe4904c8d66ae041a75d1c902170752b50bc469a3c02892e0a
7
+ data.tar.gz: f7737170ac6e1864c14ef9995a5f7103e2d0ce15fa581b3939ddd20661390f8b2cd78757ba63bbbc4020b0ff62df5dff368b04d74d76437493debaaf587ef981
data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
1
  ## [Released]
2
+
3
+ ### [2.2.3] - 2023-7-5
4
+ - 命令行支持 pod install quick
5
+ -
2
6
  ### [2.2.2] - 2023-7-5
3
7
  - 彩色日志输出
4
8
 
@@ -1,4 +1,5 @@
1
1
  require 'cocoapods'
2
+ require_relative 'podfileDep/command/quick'
2
3
  require_relative 'podfileDep/check/dep'
3
4
  require_relative 'podfileDep/check/import'
4
5
  require_relative 'podfileDep/modify/modify_code'
@@ -0,0 +1,24 @@
1
+ require 'cocoapods'
2
+ require_relative '../variable'
3
+
4
+ module Pod
5
+ class Command
6
+ class Quick < Install
7
+
8
+ self.summary = '编译优化'
9
+
10
+ self.description = <<-DESC
11
+ * 开启编译优化命令
12
+ * pod install quick
13
+ DESC
14
+
15
+
16
+ def initialize(argv)
17
+ super
18
+ $quick_build = true
19
+ end
20
+
21
+ end
22
+
23
+ end
24
+ end
@@ -15,8 +15,9 @@ module Unused
15
15
  msg += "\n #{Constants::PODFILE_LOCAL_YAML}文件内的依赖库,将不会被优化忽略掉"
16
16
  puts msg.green
17
17
  else
18
- msg = "检测到你未开启编译优化选项,如你处于开发模式,可打开此开关,移除不被引用的依赖库来加速编译"
19
- msg += "\n开关位置:#{Constants::PODFILE_LOCAL_YAML} 最外层 QUICK_BUILD字段设置为true,然后重新pod install"
18
+ msg = "检测到你未开启编译优化选项,如你处于开发模式,可开启此功能,移除不被引用的依赖库来加速编译,有2种方式任选其一"
19
+ msg += "\n1. 在#{Constants::PODFILE_LOCAL_YAML} 最外层 QUICK_BUILD字段设置为true,然后重新pod install"
20
+ msg += "\n2. 执行 pod install quick 可单次开启"
20
21
  puts msg.yellow
21
22
  end
22
23
 
@@ -0,0 +1,2 @@
1
+ # 编译优化
2
+ $quick_build = false
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PodfileDep
4
- VERSION = "2.2.2"
4
+ VERSION = "2.2.3"
5
5
  end
@@ -2,6 +2,7 @@ require_relative 'yaml_pod'
2
2
  require_relative '../version'
3
3
  require_relative '../constants'
4
4
  require_relative '../check/xcodeproj'
5
+ require_relative '../variable'
5
6
  require 'colored2'
6
7
 
7
8
  module Pod
@@ -466,7 +467,8 @@ module Pod
466
467
  #是否开启了编译优化开关
467
468
  def quick_build
468
469
  yaml_content = read_yaml_content(podfile_local_yaml)
469
- yaml_content ? !!(yaml_content["QUICK_BUILD"]) : false
470
+ quick1 = yaml_content ? !!(yaml_content["QUICK_BUILD"]) : false
471
+ quick1 or $quick_build
470
472
  end
471
473
 
472
474
  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.2.2
4
+ version: 2.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - 王帅朋
@@ -71,6 +71,7 @@ files:
71
71
  - lib/podfileDep/check/item.rb
72
72
  - lib/podfileDep/check/module.rb
73
73
  - lib/podfileDep/check/xcodeproj.rb
74
+ - lib/podfileDep/command/quick.rb
74
75
  - lib/podfileDep/constants.rb
75
76
  - lib/podfileDep/indirect/indirect.rb
76
77
  - lib/podfileDep/modify/modify_code.rb
@@ -82,6 +83,7 @@ files:
82
83
  - lib/podfileDep/thin/local.rb
83
84
  - lib/podfileDep/thin/pod_target.rb
84
85
  - lib/podfileDep/thin/shell.rb
86
+ - lib/podfileDep/variable.rb
85
87
  - lib/podfileDep/version.rb
86
88
  - lib/podfileDep/yaml/yaml_dep.rb
87
89
  - lib/podfileDep/yaml/yaml_pod.rb