cocoapods-force-static-framework 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cocoapods-force-static-framework/command/framework.rb +7 -7
- data/lib/cocoapods-force-static-framework/gem_version.rb +1 -1
- metadata +3 -14
- data/.gitignore +0 -50
- data/Gemfile +0 -13
- data/LICENSE +0 -21
- data/LICENSE.txt +0 -22
- data/README.md +0 -7
- data/Rakefile +0 -13
- data/cocoapods-force-static-framework.gemspec +0 -23
- data/spec/command/framework_spec.rb +0 -12
- data/spec/spec_helper.rb +0 -50
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0cbdf4f95132e743a483266675498e941cd9493
|
4
|
+
data.tar.gz: 0d7dc5bf3b90432f7c1e00f4b58a2e48081c8d89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9fc4db3af5971dc2327e2b42bfd8a3fa2829bd9ae51592b2a2e996711930e869299a97c7b59e0dbd7674c9e5ac316e112d25d6c66f1b2f3549a544c42ba4fdf
|
7
|
+
data.tar.gz: 74fa19d43c5bbaa7f73487cbd502a5393f2914d6f3d125783d8c36657aa7dad5ad764710a742d2c9c42a13e17b36b934c25f77b67b0b52d9584e772e6fb93d7c
|
@@ -16,15 +16,15 @@ module Pod
|
|
16
16
|
should_static = options.delete(Pod::Static.keyword)
|
17
17
|
requirements.pop if options.empty?
|
18
18
|
pod_name = Specification.root_name(name)
|
19
|
-
@
|
20
|
-
@
|
19
|
+
@force_static_framework_names ||= []
|
20
|
+
@force_static_framework_names.push pod_name
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
24
|
-
def
|
25
|
-
names = @
|
24
|
+
def force_static_framework_names
|
25
|
+
names = @force_static_framework_names || []
|
26
26
|
if parent != nil and parent.kind_of? TargetDefinition
|
27
|
-
|
27
|
+
names += parent.force_static_framework_names
|
28
28
|
end
|
29
29
|
names
|
30
30
|
end
|
@@ -44,8 +44,8 @@ module Pod
|
|
44
44
|
old_method = instance_method(:initialize)
|
45
45
|
|
46
46
|
define_method(:initialize) do |sandbox, host_requires_frameworks, user_build_configurations, archs, platform, specs, target_definitions, file_accessors, scope_suffix, build_type|
|
47
|
-
bt =
|
48
|
-
if target_definitions.first.
|
47
|
+
bt = build_type[:build_type]
|
48
|
+
if target_definitions.first.force_static_framework_names.include?(specs.first.name)
|
49
49
|
bt = Target::BuildType.static_framework
|
50
50
|
end
|
51
51
|
old_method.bind(self).(sandbox, host_requires_frameworks, user_build_configurations, archs, platform, specs, target_definitions, file_accessors, scope_suffix, :build_type => bt)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-force-static-framework
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- maqiang
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -45,20 +45,11 @@ executables: []
|
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
-
- ".gitignore"
|
49
|
-
- Gemfile
|
50
|
-
- LICENSE
|
51
|
-
- LICENSE.txt
|
52
|
-
- README.md
|
53
|
-
- Rakefile
|
54
|
-
- cocoapods-force-static-framework.gemspec
|
55
48
|
- lib/cocoapods-force-static-framework.rb
|
56
49
|
- lib/cocoapods-force-static-framework/command.rb
|
57
50
|
- lib/cocoapods-force-static-framework/command/framework.rb
|
58
51
|
- lib/cocoapods-force-static-framework/gem_version.rb
|
59
52
|
- lib/cocoapods_plugin.rb
|
60
|
-
- spec/command/framework_spec.rb
|
61
|
-
- spec/spec_helper.rb
|
62
53
|
homepage: https://github.com/Arror/cocoapods-force-static-framework
|
63
54
|
licenses:
|
64
55
|
- MIT
|
@@ -83,6 +74,4 @@ rubygems_version: 2.5.2.3
|
|
83
74
|
signing_key:
|
84
75
|
specification_version: 4
|
85
76
|
summary: A longer description of cocoapods-force-static-framework.
|
86
|
-
test_files:
|
87
|
-
- spec/command/framework_spec.rb
|
88
|
-
- spec/spec_helper.rb
|
77
|
+
test_files: []
|
data/.gitignore
DELETED
@@ -1,50 +0,0 @@
|
|
1
|
-
*.gem
|
2
|
-
*.rbc
|
3
|
-
/.config
|
4
|
-
/coverage/
|
5
|
-
/InstalledFiles
|
6
|
-
/pkg/
|
7
|
-
/spec/reports/
|
8
|
-
/spec/examples.txt
|
9
|
-
/test/tmp/
|
10
|
-
/test/version_tmp/
|
11
|
-
/tmp/
|
12
|
-
|
13
|
-
# Used by dotenv library to load environment variables.
|
14
|
-
# .env
|
15
|
-
|
16
|
-
## Specific to RubyMotion:
|
17
|
-
.dat*
|
18
|
-
.repl_history
|
19
|
-
build/
|
20
|
-
*.bridgesupport
|
21
|
-
build-iPhoneOS/
|
22
|
-
build-iPhoneSimulator/
|
23
|
-
|
24
|
-
## Specific to RubyMotion (use of CocoaPods):
|
25
|
-
#
|
26
|
-
# We recommend against adding the Pods directory to your .gitignore. However
|
27
|
-
# you should judge for yourself, the pros and cons are mentioned at:
|
28
|
-
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
29
|
-
#
|
30
|
-
# vendor/Pods/
|
31
|
-
|
32
|
-
## Documentation cache and generated files:
|
33
|
-
/.yardoc/
|
34
|
-
/_yardoc/
|
35
|
-
/doc/
|
36
|
-
/rdoc/
|
37
|
-
|
38
|
-
## Environment normalization:
|
39
|
-
/.bundle/
|
40
|
-
/vendor/bundle
|
41
|
-
/lib/bundler/man/
|
42
|
-
|
43
|
-
# for a library or gem, you might want to ignore these files since the code is
|
44
|
-
# intended to run in multiple environments; otherwise, check them in:
|
45
|
-
# Gemfile.lock
|
46
|
-
# .ruby-version
|
47
|
-
# .ruby-gemset
|
48
|
-
|
49
|
-
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
50
|
-
.rvmrc
|
data/Gemfile
DELETED
data/LICENSE
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
MIT License
|
2
|
-
|
3
|
-
Copyright (c) 2019 Arror
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
13
|
-
copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
-
SOFTWARE.
|
data/LICENSE.txt
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
Copyright (c) 2019 maqiang <qiang.ma@nio.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
data/Rakefile
DELETED
@@ -1,23 +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-force-static-framework/gem_version.rb'
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name = 'cocoapods-force-static-framework'
|
8
|
-
spec.version = CocoapodsForceStaticFramework::VERSION
|
9
|
-
spec.authors = ['maqiang']
|
10
|
-
spec.email = ['hallo.maqiang@gmail.com']
|
11
|
-
spec.description = %q{A short description of cocoapods-force-static-framework.}
|
12
|
-
spec.summary = %q{A longer description of cocoapods-force-static-framework.}
|
13
|
-
spec.homepage = 'https://github.com/Arror/cocoapods-force-static-framework'
|
14
|
-
spec.license = 'MIT'
|
15
|
-
|
16
|
-
spec.files = `git ls-files`.split($/)
|
17
|
-
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
-
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
-
spec.require_paths = ['lib']
|
20
|
-
|
21
|
-
spec.add_development_dependency 'bundler', '~> 1.3'
|
22
|
-
spec.add_development_dependency 'rake'
|
23
|
-
end
|
@@ -1,12 +0,0 @@
|
|
1
|
-
require File.expand_path('../../spec_helper', __FILE__)
|
2
|
-
|
3
|
-
module Pod
|
4
|
-
describe Command::Framework do
|
5
|
-
describe 'CLAide' do
|
6
|
-
it 'registers it self' do
|
7
|
-
Command.parse(%w{ framework }).should.be.instance_of Command::Framework
|
8
|
-
end
|
9
|
-
end
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
data/spec/spec_helper.rb
DELETED
@@ -1,50 +0,0 @@
|
|
1
|
-
require 'pathname'
|
2
|
-
ROOT = Pathname.new(File.expand_path('../../', __FILE__))
|
3
|
-
$:.unshift((ROOT + 'lib').to_s)
|
4
|
-
$:.unshift((ROOT + 'spec').to_s)
|
5
|
-
|
6
|
-
require 'bundler/setup'
|
7
|
-
require 'bacon'
|
8
|
-
require 'mocha-on-bacon'
|
9
|
-
require 'pretty_bacon'
|
10
|
-
require 'pathname'
|
11
|
-
require 'cocoapods'
|
12
|
-
|
13
|
-
Mocha::Configuration.prevent(:stubbing_non_existent_method)
|
14
|
-
|
15
|
-
require 'cocoapods_plugin'
|
16
|
-
|
17
|
-
#-----------------------------------------------------------------------------#
|
18
|
-
|
19
|
-
module Pod
|
20
|
-
|
21
|
-
# Disable the wrapping so the output is deterministic in the tests.
|
22
|
-
#
|
23
|
-
UI.disable_wrap = true
|
24
|
-
|
25
|
-
# Redirects the messages to an internal store.
|
26
|
-
#
|
27
|
-
module UI
|
28
|
-
@output = ''
|
29
|
-
@warnings = ''
|
30
|
-
|
31
|
-
class << self
|
32
|
-
attr_accessor :output
|
33
|
-
attr_accessor :warnings
|
34
|
-
|
35
|
-
def puts(message = '')
|
36
|
-
@output << "#{message}\n"
|
37
|
-
end
|
38
|
-
|
39
|
-
def warn(message = '', actions = [])
|
40
|
-
@warnings << "#{message}\n"
|
41
|
-
end
|
42
|
-
|
43
|
-
def print(message)
|
44
|
-
@output << message
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
49
|
-
|
50
|
-
#-----------------------------------------------------------------------------#
|