cocoapods-fix-module 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: c21380854060c0604f4390ca3f13599068c93b8314e0d442af2a70666df60af0
4
- data.tar.gz: 21356cb7eda94d9411b7e451864408f08237bd26140ae13e60f056856d25c674
3
+ metadata.gz: 9d4c0d706ef356cd6c20643ba96f93c13726721242e9048f3934c6178ffe7e5d
4
+ data.tar.gz: f5c6fc265f6edfb984d9fcfa48817e8f696529c7d6188d02ecf8f81239580d69
5
5
  SHA512:
6
- metadata.gz: 2f3977a7a6902688c509e6f5e4b907285b8260d606cde3dcae1c82071a972622cac6b58e508b67b17e18f6ad2b9e65b16cb56ef72aedc3d64ee328637b8f4da1
7
- data.tar.gz: f2622571c1c08b14ecd1332d1ff43d89410b1e7d2468ae5dc1f25e833345386b7e266bc93c24e9b60fc6179d0e8f9d218f3f3582a82b1a58d1acc85ee8563365
6
+ metadata.gz: 8efa46a4d3383cffeb622701bbbb596dffa4c4ce5626f68343376404ef190378b207172eafa4aa1a25af1001f308248a6d45f529648ebd739a5dc9f3ccddc5f0
7
+ data.tar.gz: 169ed506cc96deee1c7d887bbdee3a08c32361f00d7580fa12b8565a8930aadd5079818967e683fa4df50052edc9a472b8a5eacd72ebe05be83cd26151596b81
data/README.md CHANGED
@@ -14,4 +14,6 @@ https://code.byted.org/iOS_Library/MobileDev/issues/256
14
14
 
15
15
  ## Usage
16
16
 
17
- $ pod spec module POD_NAME
17
+ add this in the podfile
18
+
19
+ plugin 'cocoapods-fix-module'
@@ -20,6 +20,6 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency 'bundler', '~> 1.3'
22
22
  spec.add_development_dependency 'rake'
23
- spec.add_runtime_dependency 'cocoapods', '>= 1.5.0'
23
+ spec.add_runtime_dependency 'cocoapods', '>= 1.6.0'
24
24
 
25
25
  end
@@ -1,3 +1,3 @@
1
1
  module CocoapodsFixModule
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -3,14 +3,14 @@
3
3
  # REASON:
4
4
  #
5
5
  # When a pod only have vendored library, and the 'use_modular_header' is on, cocoapods won't
6
- # generate a modulemap (so module is not working), beacause it consider it as "should_build? == false".
6
+ # generate a modulemap (so module is not working), because it consider it as "should_build? == false".
7
7
  #
8
8
  # It's a bug of cocoapods.
9
9
  #
10
10
  # We fix it by changing the `install!` method:
11
11
  #
12
12
  # when a pod is (target.should_build? == true && target.uses_modular_headers?),
13
- # we treat it differently: like nomarl pods,
13
+ # we treat it differently: like normal pods,
14
14
  # - create_umbrella_header
15
15
  # - create_module_map
16
16
  #
@@ -45,11 +45,7 @@ module Pod
45
45
  FIX_MODULE_OLD_install = instance_method(:install!)
46
46
  define_method(:install!) do
47
47
 
48
- if target.name == "BDWebImage"
49
- p target.name, target.should_build?, target.send(:uses_modular_headers?), target.send(:contain_vendored_libraries_and_no_vendored_frameworks?)
50
- end
51
48
  if (not target.should_build?) && target.should_generate_module_map_for_a_pod_should_not_build?
52
- p "HIT"
53
49
  # special handling for pod with no source code
54
50
 
55
51
  # Most code below are copied from original install! method
@@ -119,7 +115,7 @@ module Pod
119
115
 
120
116
  class PodTargetSettings
121
117
 
122
- # Patch (because there is a shuld_build? check)
118
+ # Patch (because there is a should_build? check)
123
119
  #
124
120
  FIX_MODULE_OLD_module_map_file_to_import = instance_method(:module_map_file_to_import)
125
121
  define_method(:module_map_file_to_import) do
@@ -1,9 +1,9 @@
1
1
 
2
2
  Pod::HooksManager.register('cocoapods-fix-module', :pre_install) do |installer_context|
3
- if Pod::VERSION.start_with? "1.5"
4
- require 'cocoapods-fix-module/patch1.5'
5
- else
3
+ # if Pod::VERSION.start_with? "1.5"
4
+ # require 'cocoapods-fix-module/patch1.5'
5
+ # else
6
6
  # 1.6 or above
7
7
  require 'cocoapods-fix-module/patch'
8
- end
9
- end
8
+ # end
9
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-fix-module
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
  - Leavez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-02 00:00:00.000000000 Z
11
+ date: 2019-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 1.5.0
47
+ version: 1.6.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 1.5.0
54
+ version: 1.6.0
55
55
  description: A short description of cocoapods-fix-module.
56
56
  email:
57
57
  - gaojiji@gmail.com