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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/cocoapods_plugin.rb +1 -0
- data/lib/podfileDep/command/quick.rb +24 -0
- data/lib/podfileDep/reference/unused.rb +3 -2
- data/lib/podfileDep/variable.rb +2 -0
- data/lib/podfileDep/version.rb +1 -1
- data/lib/podfileDep/yaml/yaml_dep.rb +3 -1
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c461de9092d59c6b00f29ca61a7f7f40ece60fecf0ecc7012eaeb9e9435afbe
|
4
|
+
data.tar.gz: f52b292937cde38a68ac1808097875658767c62b6e7c64e65bd2313d917fa8f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cff6c8f1e78b155a286fd104170a32c3696a5818537fb3a7c65c377cb358640f7646ed4c7e479dfe4904c8d66ae041a75d1c902170752b50bc469a3c02892e0a
|
7
|
+
data.tar.gz: f7737170ac6e1864c14ef9995a5f7103e2d0ce15fa581b3939ddd20661390f8b2cd78757ba63bbbc4020b0ff62df5dff368b04d74d76437493debaaf587ef981
|
data/CHANGELOG.md
CHANGED
data/lib/cocoapods_plugin.rb
CHANGED
@@ -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 += "\
|
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
|
|
data/lib/podfileDep/version.rb
CHANGED
@@ -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.
|
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
|