Class: Pod::Sandbox::FileAccessor
- Inherits:
-
Object
- Object
- Pod::Sandbox::FileAccessor
- Defined in:
- lib/cocoapods-kz/native/file_accessor.rb
Instance Attribute Summary collapse
-
#kz_pod_target ⇒ Object
Returns the value of attribute kz_pod_target.
Instance Method Summary collapse
- #arc_source_files ⇒ Object
- #kz_headers ⇒ Object
- #kz_public_headers ⇒ Object
- #origin_arc_source_files ⇒ Object
- #origin_public_headers ⇒ Object
- #origin_resource_bundles ⇒ Object
- #origin_resources ⇒ Object
- #origin_source_files ⇒ Object
- #origin_vendored_frameworks ⇒ Object
- #origin_vendored_libraries ⇒ Object
- #private_headers ⇒ Object
- #project_headers ⇒ Object
- #public_headers(include_frameworks = false) ⇒ Object
- #resource_bundles ⇒ Object
- #resources ⇒ Object
- #source_files ⇒ Object
- #vendored_frameworks ⇒ Object
- #vendored_libraries ⇒ Object
Instance Attribute Details
#kz_pod_target ⇒ Object
Returns the value of attribute kz_pod_target.
7 8 9 |
# File 'lib/cocoapods-kz/native/file_accessor.rb', line 7 def kz_pod_target @kz_pod_target end |
Instance Method Details
#arc_source_files ⇒ Object
44 45 46 47 48 49 50 |
# File 'lib/cocoapods-kz/native/file_accessor.rb', line 44 def arc_source_files if !self.spec.test_specification && KZ::KZGlobalHelper.instance.pod_config_result_with_target(self.kz_pod_target) [] else origin_arc_source_files end end |
#kz_headers ⇒ Object
110 111 112 113 |
# File 'lib/cocoapods-kz/native/file_accessor.rb', line 110 def kz_headers extensions = HEADER_EXTENSIONS origin_source_files.select { |f| extensions.include?(f.extname) } end |
#kz_public_headers ⇒ Object
115 116 117 118 119 120 121 122 123 124 125 |
# File 'lib/cocoapods-kz/native/file_accessor.rb', line 115 def kz_public_headers public_headers = public_header_files project_headers = project_header_files private_headers = private_header_files if public_headers.nil? || public_headers.empty? header_files = kz_headers else header_files = public_headers end header_files - project_headers - private_headers end |
#origin_arc_source_files ⇒ Object
43 |
# File 'lib/cocoapods-kz/native/file_accessor.rb', line 43 alias_method :origin_arc_source_files, :arc_source_files |
#origin_public_headers ⇒ Object
9 |
# File 'lib/cocoapods-kz/native/file_accessor.rb', line 9 alias_method :origin_public_headers, :public_headers |
#origin_resource_bundles ⇒ Object
52 |
# File 'lib/cocoapods-kz/native/file_accessor.rb', line 52 alias_method :origin_resource_bundles, :resource_bundles |
#origin_resources ⇒ Object
61 |
# File 'lib/cocoapods-kz/native/file_accessor.rb', line 61 alias_method :origin_resources, :resources |
#origin_source_files ⇒ Object
34 |
# File 'lib/cocoapods-kz/native/file_accessor.rb', line 34 alias_method :origin_source_files, :source_files |
#origin_vendored_frameworks ⇒ Object
82 |
# File 'lib/cocoapods-kz/native/file_accessor.rb', line 82 alias_method :origin_vendored_frameworks, :vendored_frameworks |
#origin_vendored_libraries ⇒ Object
73 |
# File 'lib/cocoapods-kz/native/file_accessor.rb', line 73 alias_method :origin_vendored_libraries, :vendored_libraries |
#private_headers ⇒ Object
26 27 28 29 30 31 32 |
# File 'lib/cocoapods-kz/native/file_accessor.rb', line 26 def private_headers if !self.spec.test_specification && KZ::KZGlobalHelper.instance.pod_config_result_with_target(self.kz_pod_target) [] else private_header_files end end |
#project_headers ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/cocoapods-kz/native/file_accessor.rb', line 18 def project_headers if !self.spec.test_specification && KZ::KZGlobalHelper.instance.pod_config_result_with_target(self.kz_pod_target) [] else project_header_files end end |
#public_headers(include_frameworks = false) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/cocoapods-kz/native/file_accessor.rb', line 10 def public_headers(include_frameworks = false) if !self.spec.test_specification && KZ::KZGlobalHelper.instance.pod_config_result_with_target(self.kz_pod_target) [] else origin_public_headers(include_frameworks) end end |
#resource_bundles ⇒ Object
53 54 55 56 57 58 59 |
# File 'lib/cocoapods-kz/native/file_accessor.rb', line 53 def resource_bundles if !self.spec.test_specification && KZ::KZGlobalHelper.instance.pod_config_result_with_target(self.kz_pod_target) {} else origin_resource_bundles end end |
#resources ⇒ Object
62 63 64 65 66 67 68 69 70 71 |
# File 'lib/cocoapods-kz/native/file_accessor.rb', line 62 def resources result = KZ::KZGlobalHelper.instance.pod_config_result_with_target(self.kz_pod_target) if !self.spec.test_specification && result resources = origin_resources resources.concat(result.get_bundle_paths) resources else origin_resources end end |
#source_files ⇒ Object
35 36 37 38 39 40 41 |
# File 'lib/cocoapods-kz/native/file_accessor.rb', line 35 def source_files if !self.spec.test_specification && KZ::KZGlobalHelper.instance.pod_config_result_with_target(self.kz_pod_target) [] else origin_source_files end end |
#vendored_frameworks ⇒ Object
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/cocoapods-kz/native/file_accessor.rb', line 83 def vendored_frameworks if self.kz_pod_target new_frameworks = [] if KZ::KZGlobalHelper.instance.arm64_simulator libraries = origin_vendored_libraries if libraries.count > 0 new_frameworks.concat(KZ::KZFrameworkManager.handle_origin_library(libraries, self.kz_pod_target)) end frameworks = origin_vendored_frameworks if frameworks.count > 0 new_frameworks.concat(KZ::KZFrameworkManager.handle_origin_framework(frameworks, self.kz_pod_target)) end else new_frameworks.concat(origin_vendored_frameworks) end # 是否开启framework模式 result = KZ::KZGlobalHelper.instance.pod_config_result_with_target(self.kz_pod_target) if !self.spec.test_specification && result new_frameworks.concat(result.get_framework_paths) end new_frameworks else origin_vendored_frameworks end end |
#vendored_libraries ⇒ Object
74 75 76 77 78 79 80 |
# File 'lib/cocoapods-kz/native/file_accessor.rb', line 74 def vendored_libraries if self.kz_pod_target and KZ::KZGlobalHelper.instance.arm64_simulator return [] else origin_vendored_libraries end end |