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
- SHA1:
3
- metadata.gz: '0830ebbce0026639ec237dba570f49370befae7e'
4
- data.tar.gz: 5fa3cf07617ad993fc8d433e8a8d6cd92b0477a8
2
+ SHA256:
3
+ metadata.gz: 33ad2819149664e459dadcd19f154f5d3fca8590767b8107ff45b80d73c6bfda
4
+ data.tar.gz: 93d68b228dd3f041fead2b6b5c66c6442086eb051d81826004e64f1b7afae1ea
5
5
  SHA512:
6
- metadata.gz: 5f6bc6f0c52fa2a181460410d4f05b9840784003a22dcce0f9654312f5f1ae8bcddc03503fbe907e518f7c6b5ac7c0c330d70313051d2012486a41b7da464ebd
7
- data.tar.gz: 4c7dff579496811bc2005a868fd1936dc6ca28f0c8428b2508ab8150fb1b1b937db8a7f6f6f25102aa1dbb5c2261493482d1862b1b90dfe83f5c7b2773dd72e7
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? Array
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']"
@@ -1,3 +1,3 @@
1
1
  module CocoapodsForceStaticFramework
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
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.6
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-15 00:00:00.000000000 Z
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
- rubyforge_project:
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.