cocoapods-force-static-framework 0.0.3 → 0.0.4

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
  SHA1:
3
- metadata.gz: 9198da5ec4ef823cb4aff87148833d4e865b3646
4
- data.tar.gz: 14cbd946d923372703f3c26493e6f5c8d3d0fa57
3
+ metadata.gz: 27581af78956bed79bf052cc10277cde03bef8ef
4
+ data.tar.gz: 8e22fab06f757bab83d78c891fa44ded494d6ca9
5
5
  SHA512:
6
- metadata.gz: 8a7d2a988366e4b47520e4c3d673f0f78bf1c01aff109b56b977aa3785cafea340cc24e1395530426d2d9efe333f0835aa3968c933fae0e737c05dd08c5ba1d4
7
- data.tar.gz: a7da96e3ad97a81c4e4228296cb11217a48fc556c689e922b4acebaf606cc3ef9a5908bc35af584ef27017bf8e4bb4e0b1d995ba6ef880bb5d9e59cc874d4bde
6
+ metadata.gz: 03ba5ec7bcb7d3d6ef30da2e1c24b7153f3790cd8ab1aefea3576f4562290c925186bb9a39502bcc0682c36edc6d3e1577208103dc373084cc5289ca281dfcfa
7
+ data.tar.gz: f795d1d9d00cba126bffb70afb6da0d7650eb85abe3eb56e17ab9697b23a3eb5ed89f1f42fa12364d68f9d207008b410ced6f59d48ac73e65f9f922075159f51
@@ -13,10 +13,10 @@ module Pod
13
13
  def parse_force_static_framework(name, requirements)
14
14
  options = requirements.last
15
15
  if options.is_a?(Hash) && options[Pod::Static.keyword] != nil
16
- should_static = options.delete(Pod::Static.keyword)
16
+ should_force_static = options.delete(Pod::Static.keyword)
17
17
  requirements.pop if options.empty?
18
18
  pod_name = Specification.root_name(name)
19
- if should_static
19
+ if should_force_static && Pod::Podfile::DSL.force_static_framework_enable
20
20
  @force_static_framework_names ||= []
21
21
  @force_static_framework_names.push pod_name
22
22
  end
@@ -55,4 +55,22 @@ module Pod
55
55
 
56
56
  end
57
57
 
58
+ end
59
+
60
+ module Pod
61
+ class Podfile
62
+ module DSL
63
+
64
+ def force_static_framework_enable!
65
+ @@option_force_static_framework_enable = true
66
+ end
67
+
68
+ def self.force_static_framework_enable
69
+ @@option_force_static_framework_enable
70
+ end
71
+
72
+ @@option_force_static_framework_enable = false
73
+
74
+ end
75
+ end
58
76
  end
@@ -1,3 +1,3 @@
1
1
  module CocoapodsForceStaticFramework
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-force-static-framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - maqiang