lib/cocoapods-jxedt/binary/config.rb in cocoapods-jxedt-0.0.17 vs lib/cocoapods-jxedt/binary/config.rb in cocoapods-jxedt-0.0.18
- old
+ new
@@ -10,10 +10,11 @@
:all_binary => '全部组件使用二进制。默认为false',
:binary_dir => "二进制文件的保存路径,'Pods/Pods.xcodeproj'文件的相对路径。默认为'../_Prebuild'",
:binary_switch => "插件开关,设置为false则关闭插件二进制功能。默认为true",
:prebuild_job => "开启编译任务,设置为false则不触发编译功能。默认为true",
:keep_source_project => "保留源码的pods工程,方便查看源码,文件目录为Podfile文件同级目录下'Pods-Source'。默认为false",
+ :create_index_project => "在源码工程目录下创建一个index project工程,可以直接拖入workspace中,可点击查看源码,可断点调试。默认取`keep_source_project`的配置",
:dev_pods_enabled => "Development Pods是否支持二进制。默认为false",
:excluded_pods => "排除binary的pods,是一个数组。默认是[]",
:xcconfig_configuration_alias => "xcconfig文件中配置多configuration的别名(一定要唯一),用于搜索替换,我们用来支持多configuration的二进制。一般不需要设置,默认值为'cocoapods-jxedt-binary'",
:framework_header_search_enabled => "开启binary的组件是否配置HEADER_SEARCH_PATH头文件搜索,兼容头文件引用的问题。默认为false",
:silent_build => "静默编译,即不输出编译命令。默认true",
@@ -78,9 +79,17 @@
@dsl_config[:prebuild_job] || @dsl_config[:prebuild_job].nil?
end
def keep_source_project?
@dsl_config[:keep_source_project] || false
+ end
+
+ def create_index_project?
+ @create_index ||= begin
+ create_index = @dsl_config[:create_index_project]
+ create_index = keep_source_project? if create_index.nil?
+ create_index && keep_source_project?
+ end
end
def dev_pods_enabled?
@dsl_config[:dev_pods_enabled] || false
end
\ No newline at end of file