cocoapods-fix-module 0.0.6 → 0.0.7
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 +4 -4
- data/README.md +3 -1
- data/cocoapods-fix-module.gemspec +1 -1
- data/lib/cocoapods-fix-module/gem_version.rb +1 -1
- data/lib/cocoapods-fix-module/patch.rb +3 -7
- data/lib/cocoapods_plugin.rb +5 -5
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d4c0d706ef356cd6c20643ba96f93c13726721242e9048f3934c6178ffe7e5d
|
4
|
+
data.tar.gz: f5c6fc265f6edfb984d9fcfa48817e8f696529c7d6188d02ecf8f81239580d69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8efa46a4d3383cffeb622701bbbb596dffa4c4ce5626f68343376404ef190378b207172eafa4aa1a25af1001f308248a6d45f529648ebd739a5dc9f3ccddc5f0
|
7
|
+
data.tar.gz: 169ed506cc96deee1c7d887bbdee3a08c32361f00d7580fa12b8565a8930aadd5079818967e683fa4df50052edc9a472b8a5eacd72ebe05be83cd26151596b81
|
data/README.md
CHANGED
@@ -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),
|
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
|
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
|
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
|
data/lib/cocoapods_plugin.rb
CHANGED
@@ -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
|
-
|
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.
|
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-
|
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.
|
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.
|
54
|
+
version: 1.6.0
|
55
55
|
description: A short description of cocoapods-fix-module.
|
56
56
|
email:
|
57
57
|
- gaojiji@gmail.com
|