cocoapods-linkline 0.0.1 → 0.0.2

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: 0d2c0efd0ec908ba8aa2d9f6771785a1d2c16e2c7159219a022d33aa398fe101
4
+ data.tar.gz: eaf346c94f056ffbd426d9c319c819eb148391825d99d8236e6cf2ecd2c8d146
5
5
  SHA512:
6
- metadata.gz: d09df3041f81a60ef5c4e03903da62b2dc06af28b23e8b00e0889d4c778ba05ddc0f4af3b8db3b891ba2b38558c0538ffddd5ea070e6a43db0ba159885db8e1c
7
- data.tar.gz: d9aafd0fb18a78923c4ed7011626a31678061e4ab405610beb7c5623eb68d521bc96e2ab12340ed62678b669a0e9e52cde5569a7ac7d10dd65e07793222261d4
6
+ metadata.gz: eb434f3858afaf9f5680be0af5d38f11e3e9458d1497195674edc0e7ebcf4bf41685e2b4c389fc1a1261108d11570951d9e1d766f767262c614aa15616a5ee46
7
+ data.tar.gz: d2fb661e27afc2261456b16e4a6dea37918a7fc3ce965a3df4b3138c9849c910fe8ff1addc583f9494d2cc974de626990b53753924a4d996e18db1dc67b7fb54
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
+ ```
Binary file
@@ -9,8 +9,20 @@ 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
 
@@ -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)
@@ -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,3 @@
1
1
  module CocoapodsLinkline
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
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.0.2
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-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -51,6 +51,7 @@ files:
51
51
  - LICENSE.txt
52
52
  - README.md
53
53
  - Rakefile
54
+ - cocoapods-linkline-0.0.1.gem
54
55
  - cocoapods-linkline.gemspec
55
56
  - lib/cocoapods-linkline.rb
56
57
  - lib/cocoapods-linkline/command.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