cocoapods-user-defined-build-types 0.0.6 → 0.0.7

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: 0ec6b2c9ffa49ecb1b1b31a2c7433a2e53754bc65ab614917f038c937aed54bd
4
- data.tar.gz: 6faafb0f14e117b16be7b99d832c8573d628356519362fddeb26cb3ec90aa91f
3
+ metadata.gz: 71f2fdc9a1dec7d5d96fbc13e5eca9726d2280b6e9d240f249327c0a176c0732
4
+ data.tar.gz: d33e1ae84757656b9cec680fde559aa05616e665f9af2ae712a82fb090b456dc
5
5
  SHA512:
6
- metadata.gz: f8f96e9c280723a2d306b7ecd19742c34651a23f72a1303c476dd492cbaec262d7e34a39ac9e2890eab15467fab05f65ea0daf73ee8439d8982b47a3633de979
7
- data.tar.gz: '038e6f695873847924334271ba35bab180fd78393886b8912f5685a84aa76928f6142f05c56b906491df983c6dd12e1603e672bfe822076d031bad6a60086997'
6
+ metadata.gz: 6460207475805546add3057f91950f72f4eb944251ec84f448bb80de22fbb0ed973a46c82472fabbb29b35d10335aedf2dc01ee27219473251f7998ea51f0393
7
+ data.tar.gz: 00af423a20f09a2415a1db5aa397c5d326ca2880f5f998cfb4c9327d6d5a77b5ba545d2878afb1a23e9a5bdeb3d0efb0c3f6f9eb76f3ab3308f21d19f17bb32e
@@ -1,3 +1,3 @@
1
1
  module CocoapodsUserDefinedBuildTypes
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -1,3 +1,8 @@
1
+ is_version_1_9_x = Pod.const_defined?(:BuildType) # CP v1.9.x
2
+
3
+ # Assign BuildType to proper module definition dependent on CP version.
4
+ BuildType = is_version_1_9_x ? Pod::BuildType : Pod::Target::BuildType
5
+
1
6
  module Pod
2
7
  class UserOption
3
8
 
@@ -8,10 +13,10 @@ module Pod
8
13
  # [Hash{String, BuildType}] mapping of Podfile keyword to a BuildType
9
14
  def self.keyword_mapping
10
15
  {
11
- :dynamic_framework => Pod::Target::BuildType.dynamic_framework,
12
- :dynamic_library => Pod::Target::BuildType.dynamic_library,
13
- :static_framework => Pod::Target::BuildType.static_framework,
14
- :static_library => Pod::Target::BuildType.static_library
16
+ :dynamic_framework => BuildType.dynamic_framework,
17
+ :dynamic_library => BuildType.dynamic_library,
18
+ :static_framework => BuildType.static_framework,
19
+ :static_library => BuildType.static_library
15
20
  }
16
21
  end
17
22
  end
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.6
4
+ version: 0.0.7
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-03-26 00:00:00.000000000 Z
11
+ date: 2020-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods