cocoapods-force-static-framework 0.0.6 → 0.0.7
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
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 33ad2819149664e459dadcd19f154f5d3fca8590767b8107ff45b80d73c6bfda
|
|
4
|
+
data.tar.gz: 93d68b228dd3f041fead2b6b5c66c6442086eb051d81826004e64f1b7afae1ea
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a8f4bc6f11bf776353868e34e56d4b8d19379e04e16cff1967349f96d888ae4ee9b06f259f35b79af3d786fed100bf9f34352c55f3936732f986fff15b0fd028
|
|
7
|
+
data.tar.gz: 44b24c4e54baeaa6f7d385d6b9f84a1c39e19a38b24a58523266bd9747f06d1e3f3ab28ea36898fc962da89c4b3c7c55e4fab338205c437a20ad62c46bc577ef
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
module Pod
|
|
2
2
|
|
|
3
|
+
@@all_static = false
|
|
4
|
+
|
|
5
|
+
def self.store_all_framework_static(bool)
|
|
6
|
+
@@all_static = bool
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
def self.all_framework_static
|
|
10
|
+
@@all_static
|
|
11
|
+
end
|
|
12
|
+
|
|
3
13
|
@@static_frameworks = []
|
|
4
14
|
|
|
5
15
|
def self.store_static_framework_names(names)
|
|
@@ -34,7 +44,7 @@ module Pod
|
|
|
34
44
|
when '.json'
|
|
35
45
|
name = File.basename(path, '.podspec.json')
|
|
36
46
|
end
|
|
37
|
-
if Pod.static_framework_names.include?(name)
|
|
47
|
+
if Pod.all_framework_static or Pod.static_framework_names.include?(name)
|
|
38
48
|
spec.static_framework = true
|
|
39
49
|
end
|
|
40
50
|
spec.defined_in_file = path
|
|
@@ -46,7 +56,9 @@ end
|
|
|
46
56
|
|
|
47
57
|
Pod::HooksManager.register('cocoapods-force-static-framework', :pre_install) do |context, options|
|
|
48
58
|
reval = options[:static_frameworks]
|
|
49
|
-
if reval and reval.instance_of?
|
|
59
|
+
if reval and reval.instance_of? String and reval == 'all'
|
|
60
|
+
Pod.store_all_framework_static(true)
|
|
61
|
+
elsif reval and reval.instance_of? Array
|
|
50
62
|
Pod.store_static_framework_names(reval)
|
|
51
63
|
else
|
|
52
64
|
raise Pod::Informative, "请正确设置:static_frameworks, 示例: plugin 'cocoapods-force-static-framework', :static_frameworks => ['RxSwift']"
|
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.7
|
|
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-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -69,8 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
69
69
|
- !ruby/object:Gem::Version
|
|
70
70
|
version: '0'
|
|
71
71
|
requirements: []
|
|
72
|
-
|
|
73
|
-
rubygems_version: 2.5.2.3
|
|
72
|
+
rubygems_version: 3.0.3
|
|
74
73
|
signing_key:
|
|
75
74
|
specification_version: 4
|
|
76
75
|
summary: A longer description of cocoapods-force-static-framework.
|