lib/cocoapods-jxedt/binary/config.rb in cocoapods-jxedt-0.0.13 vs lib/cocoapods-jxedt/binary/config.rb in cocoapods-jxedt-0.0.14

- old
+ new

@@ -24,10 +24,11 @@ :device_build_enabled => "编译真机。默认true", :simulator_build_enabled => "编译模拟器。默认false", :disable_dsym => "禁止编译dsym产物。默认true", :disable_resource_compilable_pods => "禁止编译有需要编译的resource文件(xib、xcdatamodeld等)的pod", :build_log_path => "编译的log输出路径", + :prebuild_sandbox_path => '预编译的sandbox路径,可以配置一个多台电脑都可访问的路径,可以做源码和二进制的link。必须以`/Users/cocoapods-jxedt`开头', :build_args => "编译的配置。了解xcodebuild命令的可以配置编译参数,例如配置 ARCHS='arm64 armv7'", :git_cache => 'git缓存配置,A Hash. 详情查看 GIT_CACHE_CONFIG' }.freeze GIT_CACHE_CONFIG = { @@ -130,9 +131,18 @@ @dsl_config[:simulator_build_enabled] || false end def build_log_path @dsl_config[:build_log_path] + end + + def prebuild_sandbox_path + @sandbox_path ||= begin + sandbox_path = @dsl_config[:prebuild_sandbox_path] + sandbox_path = nil unless sandbox_path =~ /^\/Users\/cocoapods-jxedt\/.{1,}$/ + sandbox_path = nil unless File.exist?('/Users/cocoapods-jxedt') + sandbox_path + end end def build_args @args ||= begin args = @dsl_config[:build_args] || {} \ No newline at end of file