Class: Unused::UnusedManager
- Inherits:
-
Object
- Object
- Unused::UnusedManager
- Defined in:
- lib/podfileDep/reference/unused.rb
Class Method Summary collapse
-
.check_unused ⇒ Object
打印未被引用的依赖库.
Class Method Details
.check_unused ⇒ Object
打印未被引用的依赖库
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/podfileDep/reference/unused.rb', line 9 def self.check_unused yaml_dep = Pod::YamlDep.new if yaml_dep.quick_build msg = "💚当前已开启编译优化选项,请关注上方日志 '下载依赖...'部分内容。" msg += "\n #{MyConstants::PODFILE_LOCAL_YAML}文件内的依赖库,将不会被优化忽略掉。如需关闭优化,有2种方式任选其一" msg += "\n1. 在#{MyConstants::PODFILE_LOCAL_YAML}中 最外层 QUICK_BUILD字段设置为false,然后重新pod install" msg += "\n2. 执行 pod install all 可单次关闭" puts msg.green else msg = "💛检测到你未开启编译优化选项,如你处于开发模式,可开启此功能,移除不被引用的依赖库来加速编译,有2种方式任选其一" msg += "\n1. 在#{MyConstants::PODFILE_LOCAL_YAML}中 最外层 QUICK_BUILD字段设置为true,然后重新pod install" msg += "\n2. 执行 pod install quick 可单次开启" puts msg.yellow end end |