cocoapods-user-defined-build-types 0.0.4 → 0.0.5
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 057722ce83c938dd3d102f2feec18b73256ddc3d9eaa82c1e28a1599c94f3c78
|
4
|
+
data.tar.gz: b5c91dd809bc3caf29a0b251f6fc892ad1016fc42b5b20f2568af6975235cb0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbbb0cc6279b068aa4bf2ed460711c709bd01b75617a10717db97dcde0a4209d7f5e9adc08b4859f1d0f80dc347c8eb328cfa38b870136c968e88a28acf3ae4e
|
7
|
+
data.tar.gz: 62cb8c89c08e007c8d0e231c90f3360975e830177311963b7102feb3c276f0e0046639bd659fffd66acc5813a1d3d3af62cd052da1876cd41eeeb700425dbf38
|
@@ -20,9 +20,14 @@ end
|
|
20
20
|
module CocoapodsUserDefinedBuildTypes
|
21
21
|
PLUGIN_NAME = 'cocoapods-user-defined-build-types'
|
22
22
|
LATEST_SUPPORTED_COCOAPODS_VERSION = '1.8.4'
|
23
|
-
|
23
|
+
|
24
|
+
@@plugin_enabled = false
|
24
25
|
@@verbose_logging = false
|
25
26
|
|
27
|
+
def self.plugin_enabled
|
28
|
+
@@plugin_enabled
|
29
|
+
end
|
30
|
+
|
26
31
|
def self.verbose_logging
|
27
32
|
@@verbose_logging
|
28
33
|
end
|
@@ -38,7 +43,9 @@ module CocoapodsUserDefinedBuildTypes
|
|
38
43
|
@@verbose_logging = options['verbose']
|
39
44
|
end
|
40
45
|
|
41
|
-
if
|
46
|
+
if Pod::Podfile::DSL.enable_user_defined_build_types
|
47
|
+
@@plugin_enabled = true
|
48
|
+
else
|
42
49
|
Pod::UI.warn "#{PLUGIN_NAME} is installed but the enable_user_defined_build_types! was not found in the Podfile. No build types were changed."
|
43
50
|
end
|
44
51
|
end
|
@@ -90,6 +90,10 @@ module Pod
|
|
90
90
|
|
91
91
|
# Swizzle 'analyze' cocoapods core function to finalize build settings
|
92
92
|
define_method(:analyze) do |analyzer = create_analyzer|
|
93
|
+
if !CocoapodsUserDefinedBuildTypes.plugin_enabled
|
94
|
+
return swizzled_analyze.bind(self).(analyzer)
|
95
|
+
end
|
96
|
+
|
93
97
|
CocoapodsUserDefinedBuildTypes.verbose_log("patching build types...")
|
94
98
|
|
95
99
|
# Run original method
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-user-defined-build-types
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Cardasis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02-
|
11
|
+
date: 2020-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods
|