cocoapods-use-frameworks-dynamic-wrapper 0.0.1 → 0.1.0.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cocoapods-use-frameworks-dynamic-wrapper/cocoapods-use-frameworks-dynamic-wrapper.rb +1 -1
- data/lib/cocoapods-use-frameworks-dynamic-wrapper/gem_version.rb +1 -1
- metadata +6 -16
- data/.bundle/config +0 -2
- data/.gitignore +0 -5
- data/Gemfile +0 -10
- data/Gemfile.lock +0 -113
- data/LICENSE.txt +0 -22
- data/README.md +0 -20
- data/Rakefile +0 -9
- data/cocoapods-use-frameworks-dynamic-wrapper.gemspec +0 -20
- data/test/cocoapods-use-frameworks-dynamic-wrapper/dynamic-wrapper_test.rb +0 -48
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8740f375a95df441fee58ecd140f03f7ce94d4548ce72dc4845f7f970e017fd1
|
4
|
+
data.tar.gz: 80e578c92a0bf0bd5455a0c3bf9501bb73f4855c8e6de3dd709e3acba407c8f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44da5b51b867ec949321c3765de8e88a720ec42688500172c3fc6a675a47f8657bd1b90e378de2f4dfd49206dc62b04bc74e94292b9c19eae86cd23456abd991
|
7
|
+
data.tar.gz: 04a632330041d23090e7488e3261a40c126942dea5d29d368a28854b8195a8ec995080c3921cd311285758b51bc30505a93f4f005789985712ba52e8a7409b85
|
data/lib/cocoapods-use-frameworks-dynamic-wrapper/cocoapods-use-frameworks-dynamic-wrapper.rb
CHANGED
@@ -11,7 +11,7 @@ module Pod
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def should_dynamic_wrapper?
|
14
|
-
real_should_build
|
14
|
+
!real_should_build && target_definitions.any?(&:dynamic_wrapper) && !file_accessors.flat_map(&:vendored_static_artifacts).empty?
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-use-frameworks-dynamic-wrapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1
|
4
|
+
version: 0.1.0.beta.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nakahira
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods
|
@@ -31,18 +31,9 @@ executables: []
|
|
31
31
|
extensions: []
|
32
32
|
extra_rdoc_files: []
|
33
33
|
files:
|
34
|
-
- ".bundle/config"
|
35
|
-
- ".gitignore"
|
36
|
-
- Gemfile
|
37
|
-
- Gemfile.lock
|
38
|
-
- LICENSE.txt
|
39
|
-
- README.md
|
40
|
-
- Rakefile
|
41
|
-
- cocoapods-use-frameworks-dynamic-wrapper.gemspec
|
42
34
|
- lib/cocoapods-use-frameworks-dynamic-wrapper/cocoapods-use-frameworks-dynamic-wrapper.rb
|
43
35
|
- lib/cocoapods-use-frameworks-dynamic-wrapper/gem_version.rb
|
44
36
|
- lib/cocoapods_plugin.rb
|
45
|
-
- test/cocoapods-use-frameworks-dynamic-wrapper/dynamic-wrapper_test.rb
|
46
37
|
homepage: https://github.com/xuzhongping/cocoapods-use-frameworks-dynamic-wrapper
|
47
38
|
licenses:
|
48
39
|
- MIT
|
@@ -58,14 +49,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
58
49
|
version: '0'
|
59
50
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
60
51
|
requirements:
|
61
|
-
- - "
|
52
|
+
- - ">"
|
62
53
|
- !ruby/object:Gem::Version
|
63
|
-
version:
|
54
|
+
version: 1.3.1
|
64
55
|
requirements: []
|
65
|
-
rubygems_version: 3.0.3
|
56
|
+
rubygems_version: 3.0.3
|
66
57
|
signing_key:
|
67
58
|
specification_version: 4
|
68
59
|
summary: The CocoaPods plugin can automatically fix static framework transitive dependencies
|
69
60
|
problems.
|
70
|
-
test_files:
|
71
|
-
- test/cocoapods-use-frameworks-dynamic-wrapper/dynamic-wrapper_test.rb
|
61
|
+
test_files: []
|
data/.bundle/config
DELETED
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
@@ -1,113 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
cocoapods-use-frameworks-dynamic-wrapper (0.0.1)
|
5
|
-
cocoapods (~> 1.0)
|
6
|
-
|
7
|
-
GEM
|
8
|
-
remote: https://rubygems.org/
|
9
|
-
specs:
|
10
|
-
CFPropertyList (3.0.5)
|
11
|
-
rexml
|
12
|
-
activesupport (6.1.4.1)
|
13
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
14
|
-
i18n (>= 1.6, < 2)
|
15
|
-
minitest (>= 5.1)
|
16
|
-
tzinfo (~> 2.0)
|
17
|
-
zeitwerk (~> 2.3)
|
18
|
-
addressable (2.8.0)
|
19
|
-
public_suffix (>= 2.0.2, < 5.0)
|
20
|
-
algoliasearch (1.27.5)
|
21
|
-
httpclient (~> 2.8, >= 2.8.3)
|
22
|
-
json (>= 1.5.1)
|
23
|
-
atomos (0.1.3)
|
24
|
-
bundle (0.0.1)
|
25
|
-
bundler
|
26
|
-
claide (1.0.3)
|
27
|
-
cocoapods (1.11.2)
|
28
|
-
addressable (~> 2.8)
|
29
|
-
claide (>= 1.0.2, < 2.0)
|
30
|
-
cocoapods-core (= 1.11.2)
|
31
|
-
cocoapods-deintegrate (>= 1.0.3, < 2.0)
|
32
|
-
cocoapods-downloader (>= 1.4.0, < 2.0)
|
33
|
-
cocoapods-plugins (>= 1.0.0, < 2.0)
|
34
|
-
cocoapods-search (>= 1.0.0, < 2.0)
|
35
|
-
cocoapods-trunk (>= 1.4.0, < 2.0)
|
36
|
-
cocoapods-try (>= 1.1.0, < 2.0)
|
37
|
-
colored2 (~> 3.1)
|
38
|
-
escape (~> 0.0.4)
|
39
|
-
fourflusher (>= 2.3.0, < 3.0)
|
40
|
-
gh_inspector (~> 1.0)
|
41
|
-
molinillo (~> 0.8.0)
|
42
|
-
nap (~> 1.0)
|
43
|
-
ruby-macho (>= 1.0, < 3.0)
|
44
|
-
xcodeproj (>= 1.21.0, < 2.0)
|
45
|
-
cocoapods-core (1.11.2)
|
46
|
-
activesupport (>= 5.0, < 7)
|
47
|
-
addressable (~> 2.8)
|
48
|
-
algoliasearch (~> 1.0)
|
49
|
-
concurrent-ruby (~> 1.1)
|
50
|
-
fuzzy_match (~> 2.0.4)
|
51
|
-
nap (~> 1.0)
|
52
|
-
netrc (~> 0.11)
|
53
|
-
public_suffix (~> 4.0)
|
54
|
-
typhoeus (~> 1.0)
|
55
|
-
cocoapods-deintegrate (1.0.5)
|
56
|
-
cocoapods-downloader (1.5.1)
|
57
|
-
cocoapods-plugins (1.0.0)
|
58
|
-
nap
|
59
|
-
cocoapods-search (1.0.1)
|
60
|
-
cocoapods-trunk (1.6.0)
|
61
|
-
nap (>= 0.8, < 2.0)
|
62
|
-
netrc (~> 0.11)
|
63
|
-
cocoapods-try (1.2.0)
|
64
|
-
colored2 (3.1.2)
|
65
|
-
concurrent-ruby (1.1.9)
|
66
|
-
escape (0.0.4)
|
67
|
-
ethon (0.15.0)
|
68
|
-
ffi (>= 1.15.0)
|
69
|
-
ffi (1.15.4)
|
70
|
-
fourflusher (2.3.1)
|
71
|
-
fuzzy_match (2.0.4)
|
72
|
-
gh_inspector (1.1.3)
|
73
|
-
httpclient (2.8.3)
|
74
|
-
i18n (1.8.11)
|
75
|
-
concurrent-ruby (~> 1.0)
|
76
|
-
json (2.6.1)
|
77
|
-
minitest (5.14.4)
|
78
|
-
molinillo (0.8.0)
|
79
|
-
nanaimo (0.3.0)
|
80
|
-
nap (1.1.0)
|
81
|
-
netrc (0.11.0)
|
82
|
-
power_assert (2.0.1)
|
83
|
-
public_suffix (4.0.6)
|
84
|
-
rake (13.0.6)
|
85
|
-
rexml (3.2.5)
|
86
|
-
ruby-macho (2.5.1)
|
87
|
-
test-unit (3.5.1)
|
88
|
-
power_assert
|
89
|
-
typhoeus (1.4.0)
|
90
|
-
ethon (>= 0.9.0)
|
91
|
-
tzinfo (2.0.4)
|
92
|
-
concurrent-ruby (~> 1.0)
|
93
|
-
xcodeproj (1.21.0)
|
94
|
-
CFPropertyList (>= 2.3.3, < 4.0)
|
95
|
-
atomos (~> 0.1.3)
|
96
|
-
claide (>= 1.0.2, < 2.0)
|
97
|
-
colored2 (~> 3.1)
|
98
|
-
nanaimo (~> 0.3.0)
|
99
|
-
rexml (~> 3.2.4)
|
100
|
-
zeitwerk (2.5.1)
|
101
|
-
|
102
|
-
PLATFORMS
|
103
|
-
arm64-darwin-20
|
104
|
-
x86_64-darwin-20
|
105
|
-
|
106
|
-
DEPENDENCIES
|
107
|
-
bundle
|
108
|
-
cocoapods-use-frameworks-dynamic-wrapper!
|
109
|
-
rake
|
110
|
-
test-unit
|
111
|
-
|
112
|
-
BUNDLED WITH
|
113
|
-
2.2.31
|
data/LICENSE.txt
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
Copyright (c) 2021 nakahira <1021057927@qq.com>
|
2
|
-
|
3
|
-
MIT License
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
a copy of this software and associated documentation files (the
|
7
|
-
"Software"), to deal in the Software without restriction, including
|
8
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
-
permit persons to whom the Software is furnished to do so, subject to
|
11
|
-
the following conditions:
|
12
|
-
|
13
|
-
The above copyright notice and this permission notice shall be
|
14
|
-
included in all copies or substantial portions of the Software.
|
15
|
-
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
# cocoapods-use-frameworks-dynamic-wrapper
|
2
|
-
|
3
|
-
The CocoaPods plugin can automatically fix static framework transitive dependencies problems.
|
4
|
-
|
5
|
-
## Installation
|
6
|
-
|
7
|
-
$ gem install cocoapods-use-frameworks-dynamic-wrapper
|
8
|
-
|
9
|
-
## Usage
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
plugin 'cocoapods-use-frameworks-dynamic-wrapper'
|
13
|
-
|
14
|
-
target :ExampleTarget do
|
15
|
-
use_frameworks! :dynamic_wrapper => true
|
16
|
-
|
17
|
-
pod 'SomePod'
|
18
|
-
end
|
19
|
-
```
|
20
|
-
|
data/Rakefile
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'cocoapods-use-frameworks-dynamic-wrapper/gem_version.rb'
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name = 'cocoapods-use-frameworks-dynamic-wrapper'
|
8
|
-
spec.version = CocoapodsUseFrameworksDynamicWrapper::VERSION
|
9
|
-
spec.authors = ['nakahira']
|
10
|
-
spec.email = ['1021057927@qq.com']
|
11
|
-
spec.summary = %q{The CocoaPods plugin can automatically fix static framework transitive dependencies problems.}
|
12
|
-
spec.homepage = 'https://github.com/xuzhongping/cocoapods-use-frameworks-dynamic-wrapper'
|
13
|
-
spec.license = 'MIT'
|
14
|
-
|
15
|
-
spec.files = `git ls-files`.split($/)
|
16
|
-
spec.test_files = spec.files.grep(%r{^(test|cocoapods-use-frameworks-dynamic-wrapper)/})
|
17
|
-
spec.require_paths = ['lib']
|
18
|
-
|
19
|
-
spec.add_runtime_dependency 'cocoapods', '~> 1.0'
|
20
|
-
end
|
@@ -1,48 +0,0 @@
|
|
1
|
-
require 'test/unit'
|
2
|
-
require 'cocoapods'
|
3
|
-
require 'cocoapods_plugin'
|
4
|
-
|
5
|
-
class TestTargetDefinition < Test::Unit::TestCase
|
6
|
-
def setup
|
7
|
-
@app = Pod::Podfile::TargetDefinition.new('MyApp', nil)
|
8
|
-
end
|
9
|
-
|
10
|
-
def test_dynamic_wrapper_only
|
11
|
-
@app.use_frameworks! :dynamic_wrapper => true
|
12
|
-
assert_equal(@app.dynamic_wrapper, true )
|
13
|
-
end
|
14
|
-
|
15
|
-
def test_dynamic_wrapper_linkage_static
|
16
|
-
@app.use_frameworks! :linkage => :static, :dynamic_wrapper => true
|
17
|
-
assert_nil(@app.dynamic_wrapper)
|
18
|
-
end
|
19
|
-
|
20
|
-
def test_dynamic_wrapper_linkage_dynamic
|
21
|
-
@app.use_frameworks! :linkage => :dynamic, :dynamic_wrapper => true
|
22
|
-
assert_equal(@app.dynamic_wrapper, true)
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
class TestTargetValidator < Test::Unit::TestCase
|
27
|
-
def setup
|
28
|
-
app = Pod::Podfile::TargetDefinition.new('MyApp', nil)
|
29
|
-
spec_a = Pod::Specification.new(nil, 'ModuleA')
|
30
|
-
pod_target_a = Pod::PodTarget.new(nil, nil, {'Debug' => :debug}, nil, nil, [spec_a], [app])
|
31
|
-
spec_b = Pod::Specification.new(nil, 'ModuleB')
|
32
|
-
pod_target_b = Pod::PodTarget.new(nil, nil, {'Debug' => :debug}, nil, nil, [spec_b], [app])
|
33
|
-
@pod_targets = [pod_target_a, pod_target_b]
|
34
|
-
@target_validator = Pod::Installer::Xcode::TargetValidator.new(nil, nil, nil)
|
35
|
-
end
|
36
|
-
def test_dynamic_wrapper_flush
|
37
|
-
@target_validator.dynamic_wrapper_flush(@pod_targets)
|
38
|
-
@pod_targets.each do |pod_target|
|
39
|
-
assert_equal(pod_target.should_build?, true)
|
40
|
-
name = pod_target.root_spec.attributes_hash['name']
|
41
|
-
module_name = pod_target.root_spec.attributes_hash['module_name']
|
42
|
-
assert_equal(module_name, name + '_dynamic_wrapper_pod')
|
43
|
-
pod_target.build_settings.each_value do |setting|
|
44
|
-
assert_equal(setting.requires_objc_linker_flag?, true )
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|