cocoapods-force-static-framework 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27581af78956bed79bf052cc10277cde03bef8ef
|
4
|
+
data.tar.gz: 8e22fab06f757bab83d78c891fa44ded494d6ca9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
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
|