cocoapods-linkline 0.0.1 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ab7f21e27d58bd3b2f8c5ecec4d567ff0b25c4eb668def39640aee0f2be245be
4
- data.tar.gz: eb9db46eaafc49463a22a437d67baf1dc371adf691d389254b44fe6b60b6eccc
3
+ metadata.gz: 566ff2884f8cf403326b10c077edfc7dc9a6855de952d5724d0d7bbf5a74a611
4
+ data.tar.gz: b04dbfe59ff329fb894a1e2c87263ba23548123063ec8cd8fa5853ea5e0c90f5
5
5
  SHA512:
6
- metadata.gz: d09df3041f81a60ef5c4e03903da62b2dc06af28b23e8b00e0889d4c778ba05ddc0f4af3b8db3b891ba2b38558c0538ffddd5ea070e6a43db0ba159885db8e1c
7
- data.tar.gz: d9aafd0fb18a78923c4ed7011626a31678061e4ab405610beb7c5623eb68d521bc96e2ab12340ed62678b669a0e9e52cde5569a7ac7d10dd65e07793222261d4
6
+ metadata.gz: b27dcc18e26884b0cd4398b22e28b072e1694735ef1b0574f7d5fc8a5370a1444263f215e88656d64a46b22b2efc3248c61f4bc520febebf297d8a09d195e576
7
+ data.tar.gz: d4e8bc87c9d394aca634b56eb14db27158c42c5a899ed2cf3a8ec38e6038c76aacd4e29035dbdb5ddd4283b4dc415ae0a0ce740c01021d9f52536c2646fdb274
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # cocoapods-linkline
2
2
 
3
- A description of cocoapods-linkline.
3
+ A plug-in that can customize component dependencies, static libraries/dynamic libraries
4
4
 
5
5
  ## Installation
6
6
 
@@ -8,4 +8,23 @@ A description of cocoapods-linkline.
8
8
 
9
9
  ## Usage
10
10
 
11
- $ pod spec linkline POD_NAME
11
+ * Build the component and all child inherit dependencies with dynamic framework
12
+ ```
13
+ pod 'xxx', :linkages => :dynamic
14
+ ```
15
+
16
+ * Build the component itself with a dynamic framework
17
+
18
+ ```
19
+ pod 'xxx', :linkage => :dynamic
20
+ ```
21
+
22
+ * Build the component and all child inherit dependencies with static framework
23
+ ```
24
+ pod 'xxx', :linkages => :static
25
+ ```
26
+
27
+ * Build the component itself with a static framework
28
+ ```
29
+ pod 'xxx', :linkage => :static
30
+ ```
@@ -9,12 +9,24 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ['youhui']
10
10
  spec.email = ['developer_yh@163.com']
11
11
  spec.description = %q{A plug-in that can customize component dependencies, static libraries/dynamic libraries.}
12
- spec.summary = %q{use :linkages => dynimic to define component all child dependencies with dynimic framework. \
13
- use :linkage => static to component self with static framework.}
12
+ spec.summary = %q{
13
+ Build the component and all child inherit dependencies with dynamic framework
14
+
15
+ pod 'xxx', :linkages => :dynamic
16
+ Build the component itself with a dynamic framework
17
+
18
+ pod 'xxx', :linkage => :dynamic
19
+ Build the component and all child inherit dependencies with static framework
20
+
21
+ pod 'xxx', :linkages => :static
22
+ Build the component itself with a static framework
23
+
24
+ pod 'xxx', :linkage => :static
25
+ }
14
26
  spec.homepage = 'https://github.com/ymoyao/cocoapods-linkline'
15
27
  spec.license = 'MIT'
16
28
 
17
- spec.files = `git ls-files`.split($/)
29
+ spec.files = `git ls-files`.split($/).reject { |file| file =~ /^cocoapods-linkline-.+\.gem$/ }
18
30
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
19
31
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
32
  spec.require_paths = ['lib']
@@ -2,16 +2,16 @@ require 'cocoapods'
2
2
  require 'cocoapods/user_interface'
3
3
 
4
4
  class Pod::Installer::Analyzer
5
- alias_method :original_generate_pod_targets, :generate_pod_targets
5
+ alias_method :ll_original_generate_pod_targets, :generate_pod_targets
6
6
  def generate_pod_targets(resolver_specs_by_target, target_inspections)
7
- targets = original_generate_pod_targets(resolver_specs_by_target, target_inspections)
7
+ targets = ll_original_generate_pod_targets(resolver_specs_by_target, target_inspections)
8
8
  targets.each { |target|
9
- ll_rebuild_linkage(target,target,nil)
9
+ ll_rebuild_linkage(target,target)
10
10
  }
11
11
  targets
12
12
  end
13
13
 
14
- def ll_rebuild_linkage(pod_target,root_pod_target,build_type)
14
+ def ll_rebuild_linkage(pod_target,root_pod_target)
15
15
  ll_linkage,is_linkage_all = ll_fetch_linkage_from(pod_target)
16
16
  if ll_linkage
17
17
  build_type = ll_create_build_type_from(pod_target,ll_linkage)
@@ -0,0 +1,22 @@
1
+ module Pod
2
+ class Installer
3
+
4
+ # extension new option :skip_verify_static_framework, defalut false
5
+ class InstallationOptions
6
+ # Whether to skip verify dynimic framework linked static frameworks. defalut is verify
7
+ option :skip_verify_static_framework, false
8
+ end
9
+
10
+ class Xcode
11
+ class TargetValidator
12
+
13
+ alias_method :ll_verify_no_static_framework_transitive_dependencies, :verify_no_static_framework_transitive_dependencies
14
+ def verify_no_static_framework_transitive_dependencies
15
+ # if skip_verify_static_framework is true, skip verify!
16
+ ll_verify_no_static_framework_transitive_dependencies unless installation_options.skip_verify_static_framework?
17
+ end
18
+
19
+ end
20
+ end
21
+ end
22
+ end
@@ -21,13 +21,13 @@ module Pod
21
21
  pod_linkage
22
22
  end
23
23
 
24
- original_parse_inhibit_warnings = instance_method(:parse_inhibit_warnings)
24
+ ll_original_parse_inhibit_warnings = instance_method(:parse_inhibit_warnings)
25
25
  define_method(:parse_inhibit_warnings) do |name, requirements|
26
26
  @linkage ||= {}
27
27
  @linkages ||= {}
28
28
  @linkage = @linkage.merge(ll_expedition_linkages(name, requirements,:linkage))
29
29
  @linkages = @linkages.merge(ll_expedition_linkages(name, requirements,:linkages))
30
- original_parse_inhibit_warnings.bind(self).call(name, requirements)
30
+ ll_original_parse_inhibit_warnings.bind(self).call(name, requirements)
31
31
  end
32
32
  end
33
33
  end
@@ -1,3 +1,4 @@
1
1
  require 'cocoapods-linkline/command/linkline'
2
2
  require 'cocoapods-linkline/command/target-linkline'
3
3
  require 'cocoapods-linkline/command/targetdefinition-linkline'
4
+ require 'cocoapods-linkline/command/targetValidator-linkline'
@@ -1,3 +1,3 @@
1
1
  module CocoapodsLinkline
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-linkline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - youhui
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-12 00:00:00.000000000 Z
11
+ date: 2023-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -56,6 +56,7 @@ files:
56
56
  - lib/cocoapods-linkline/command.rb
57
57
  - lib/cocoapods-linkline/command/linkline.rb
58
58
  - lib/cocoapods-linkline/command/target-linkline.rb
59
+ - lib/cocoapods-linkline/command/targetValidator-linkline.rb
59
60
  - lib/cocoapods-linkline/command/targetdefinition-linkline.rb
60
61
  - lib/cocoapods-linkline/gem_version.rb
61
62
  - lib/cocoapods_plugin.rb
@@ -83,8 +84,11 @@ requirements: []
83
84
  rubygems_version: 3.1.2
84
85
  signing_key:
85
86
  specification_version: 4
86
- summary: use :linkages => dynimic to define component all child dependencies with
87
- dynimic framework. \ use :linkage => static to component self with static framework.
87
+ summary: Build the component and all child inherit dependencies with dynamic framework pod
88
+ 'xxx', :linkages => :dynamic Build the component itself with a dynamic framework pod
89
+ 'xxx', :linkage => :dynamic Build the component and all child inherit dependencies
90
+ with static framework pod 'xxx', :linkages => :static Build the component itself
91
+ with a static framework pod 'xxx', :linkage => :static
88
92
  test_files:
89
93
  - spec/command/linkline_spec.rb
90
94
  - spec/spec_helper.rb