cocoapods-imy-bin 0.2.6 → 0.3.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +0 -540
  3. data/lib/cocoapods-imy-bin/command/bin/archive.rb +43 -4
  4. data/lib/cocoapods-imy-bin/command/bin/auto.rb +9 -7
  5. data/lib/cocoapods-imy-bin/command/bin/code.rb +1 -6
  6. data/lib/cocoapods-imy-bin/command/bin/local.rb +16 -7
  7. data/lib/cocoapods-imy-bin/config/config.rb +1 -1
  8. data/lib/cocoapods-imy-bin/config/config_builder.rb +39 -2
  9. data/lib/cocoapods-imy-bin/gem_version.rb +1 -1
  10. data/lib/cocoapods-imy-bin/helpers.rb +1 -0
  11. data/lib/cocoapods-imy-bin/helpers/Info.plist +0 -0
  12. data/lib/cocoapods-imy-bin/helpers/build_helper.rb +15 -7
  13. data/lib/cocoapods-imy-bin/helpers/build_utils.rb +63 -0
  14. data/lib/cocoapods-imy-bin/helpers/framework.rb +25 -2
  15. data/lib/cocoapods-imy-bin/helpers/framework_builder.rb +172 -57
  16. data/lib/cocoapods-imy-bin/helpers/library.rb +2 -2
  17. data/lib/cocoapods-imy-bin/helpers/local/local_build_helper.rb +38 -6
  18. data/lib/cocoapods-imy-bin/helpers/local/local_framework.rb +20 -0
  19. data/lib/cocoapods-imy-bin/helpers/local/local_framework_builder.rb +91 -38
  20. data/lib/cocoapods-imy-bin/helpers/sources_helper.rb +5 -2
  21. data/lib/cocoapods-imy-bin/helpers/spec_source_creator.rb +65 -8
  22. data/lib/cocoapods-imy-bin/helpers/upload_helper.rb +8 -3
  23. data/lib/cocoapods-imy-bin/native.rb +4 -0
  24. data/lib/cocoapods-imy-bin/native/analyzer.rb +2 -0
  25. data/lib/cocoapods-imy-bin/native/file_accessor.rb +28 -0
  26. data/lib/cocoapods-imy-bin/native/pod_target_installer.rb +94 -0
  27. data/lib/cocoapods-imy-bin/native/podfile_generator.rb +11 -2
  28. data/lib/cocoapods-imy-bin/native/target_validator.rb +41 -0
  29. data/lib/cocoapods-imy-bin/native/validator.rb +1 -38
  30. metadata +7 -2
@@ -126,6 +126,14 @@ module Pod
126
126
  break
127
127
  end
128
128
  end
129
+ # setting modular_headers_for
130
+ if(target_definition && target_definition.use_modular_headers_hash.values.any?)
131
+ target_definition.use_modular_headers_hash.values.each do |f|
132
+ f.each { | pod_name| self.set_use_modular_headers_for_pod(pod_name, true) }
133
+ end
134
+ end
135
+
136
+
129
137
  if target_definition
130
138
  value = target_definition.to_hash['dependencies']
131
139
  next if value.blank?
@@ -139,15 +147,16 @@ module Pod
139
147
  old_value = self.to_hash['dependencies'].first
140
148
  value << old_value unless (old_value == nil || value.include?(old_value))
141
149
 
142
- set_hash_value(%w(dependencies).first, value)
150
+ set_hash_value(%w(dependencies).first, value)
143
151
 
144
152
  value = target_definition.to_hash['configuration_pod_whitelist']
145
153
  next if value.blank?
146
154
  set_hash_value(%w(configuration_pod_whitelist).first, value)
147
155
 
148
- # self.children = Array.new
156
+
149
157
  end
150
158
 
159
+
151
160
  end
152
161
 
153
162
  end
@@ -0,0 +1,41 @@
1
+ module Pod
2
+ class Installer
3
+ class Xcode
4
+ # The {Xcode::TargetValidator} ensures that the pod and aggregate target
5
+ # configuration is valid for installation.
6
+ #
7
+ class TargetValidator
8
+
9
+
10
+
11
+ def verify_swift_pods_have_module_dependencies
12
+ error_messages = []
13
+ pod_targets.each do |pod_target|
14
+ next unless pod_target.uses_swift?
15
+
16
+ non_module_dependencies = []
17
+ pod_target.dependent_targets.each do |dependent_target|
18
+ next if !dependent_target.should_build? || dependent_target.defines_module?
19
+ non_module_dependencies << dependent_target.name
20
+ end
21
+
22
+ next if non_module_dependencies.empty?
23
+
24
+ error_messages << "The Swift pod `#{pod_target.name}` depends upon #{non_module_dependencies.map { |d| "`#{d}`" }.to_sentence}, " \
25
+ "which #{non_module_dependencies.count == 1 ? 'does' : 'do'} not define modules. " \
26
+ 'To opt into those targets generating module maps '\
27
+ '(which is necessary to import them from Swift when building as static libraries), ' \
28
+ 'you may set `use_modular_headers!` globally in your Podfile, '\
29
+ 'or specify `:modular_headers => true` for particular dependencies.'
30
+ end
31
+ return false
32
+
33
+ # raise Informative, 'The following Swift pods cannot yet be integrated '\
34
+ # "as static libraries:\n\n#{error_messages.join("\n\n")}"
35
+ end
36
+
37
+
38
+ end
39
+ end
40
+ end
41
+ end
@@ -14,44 +14,7 @@ module Pod
14
14
  # Perform analysis for a given spec (or subspec)
15
15
  #
16
16
  def perform_extensive_analysis(spec)
17
- if spec.non_library_specification?
18
- error('spec', "Validating a non library spec (`#{spec.name}`) is not supported.")
19
- return false
20
- end
21
- validate_homepage(spec)
22
- validate_screenshots(spec)
23
- validate_social_media_url(spec)
24
- validate_documentation_url(spec)
25
- validate_source_url(spec)
26
-
27
- platforms = platforms_to_lint(spec)
28
-
29
- valid = platforms.send(fail_fast ? :all? : :each) do |platform|
30
- UI.message "\n\n#{spec} - Analyzing on #{platform} platform.".green.reversed
31
- @consumer = spec.consumer(platform)
32
- setup_validation_environment
33
- begin
34
- create_app_project
35
- # download_pod
36
- # check_file_patterns
37
- # install_pod
38
- # validate_swift_version
39
- # add_app_project_import
40
- # validate_vendored_dynamic_frameworks
41
- # build_pod
42
- # test_pod unless skip_tests
43
- ensure
44
- tear_down_validation_environment
45
- end
46
- validated?
47
- end
48
- return false if fail_fast && !valid
49
- perform_extensive_subspec_analysis(spec) unless @no_subspecs
50
- rescue => e
51
- message = e.to_s
52
- message << "\n" << e.backtrace.join("\n") << "\n" if config.verbose?
53
- error('unknown', "Encountered an unknown error (#{message}) during validation.")
54
- false
17
+ return true
55
18
  end
56
19
 
57
20
  #覆盖
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-imy-bin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.3.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - 苏良锦
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-16 00:00:00.000000000 Z
11
+ date: 2020-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel
@@ -113,7 +113,9 @@ files:
113
113
  - lib/cocoapods-imy-bin/config/config_hot_key_asker.rb
114
114
  - lib/cocoapods-imy-bin/gem_version.rb
115
115
  - lib/cocoapods-imy-bin/helpers.rb
116
+ - lib/cocoapods-imy-bin/helpers/Info.plist
116
117
  - lib/cocoapods-imy-bin/helpers/build_helper.rb
118
+ - lib/cocoapods-imy-bin/helpers/build_utils.rb
117
119
  - lib/cocoapods-imy-bin/helpers/framework.rb
118
120
  - lib/cocoapods-imy-bin/helpers/framework_builder.rb
119
121
  - lib/cocoapods-imy-bin/helpers/library.rb
@@ -131,11 +133,13 @@ files:
131
133
  - lib/cocoapods-imy-bin/native.rb
132
134
  - lib/cocoapods-imy-bin/native/acknowledgements.rb
133
135
  - lib/cocoapods-imy-bin/native/analyzer.rb
136
+ - lib/cocoapods-imy-bin/native/file_accessor.rb
134
137
  - lib/cocoapods-imy-bin/native/installation_options.rb
135
138
  - lib/cocoapods-imy-bin/native/installer.rb
136
139
  - lib/cocoapods-imy-bin/native/linter.rb
137
140
  - lib/cocoapods-imy-bin/native/path_source.rb
138
141
  - lib/cocoapods-imy-bin/native/pod_source_installer.rb
142
+ - lib/cocoapods-imy-bin/native/pod_target_installer.rb
139
143
  - lib/cocoapods-imy-bin/native/podfile.rb
140
144
  - lib/cocoapods-imy-bin/native/podfile_env.rb
141
145
  - lib/cocoapods-imy-bin/native/podfile_generator.rb
@@ -145,6 +149,7 @@ files:
145
149
  - lib/cocoapods-imy-bin/native/source.rb
146
150
  - lib/cocoapods-imy-bin/native/sources_manager.rb
147
151
  - lib/cocoapods-imy-bin/native/specification.rb
152
+ - lib/cocoapods-imy-bin/native/target_validator.rb
148
153
  - lib/cocoapods-imy-bin/native/validator.rb
149
154
  - lib/cocoapods-imy-bin/source_provider_hook.rb
150
155
  - lib/cocoapods_plugin.rb