cocoapods-fix-react-native 2019.01.26.16 → 2019.02.11.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cocoapods-fix-react-native/versions/0_58_0-post.rb +1 -0
- data/lib/cocoapods-fix-react-native/versions/0_58_0-pre.rb +48 -0
- data/lib/cocoapods-fix-react-native/versions/0_58_1-post.rb +1 -1
- data/lib/cocoapods-fix-react-native/versions/0_58_1-pre.rb +1 -0
- data/lib/cocoapods-fix-react-native/versions/0_58_2-post.rb +1 -0
- data/lib/cocoapods-fix-react-native/versions/0_58_2-pre.rb +1 -0
- data/lib/cocoapods-fix-react-native/versions/0_58_3-post.rb +1 -0
- data/lib/cocoapods-fix-react-native/versions/0_58_3-pre.rb +1 -0
- data/lib/cocoapods-fix-react-native/versions/0_58_4-post.rb +1 -0
- data/lib/cocoapods-fix-react-native/versions/0_58_4-pre.rb +1 -0
- metadata +11 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9672c079764058fdb728a0f7bc38455b4a020c3fab18d4c7e1aa86f929dabeb3
|
4
|
+
data.tar.gz: 28f58cbfa13bcc73d05e16e75c0d11622e5d8c7b14bd26bf5c44e810e78d9cf8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d9a3f6c4d8100c81f00cb2cf9b8a96109e9d4ae9b9ac2b05f1b31d30534998ea83abd31796515fffb1483ef9de7e3b9053e7fe18c76b4a539152c1ec08b2bc2
|
7
|
+
data.tar.gz: fa3ae86b6fc668e8c124443f26c452b57a7a1d5298ec79c45fa34b25338a8a748293657cb377df88829709b5034e2783191ee23472df7598eb8397f3387a274d
|
@@ -0,0 +1 @@
|
|
1
|
+
require_relative './0_57_8-post'
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'cocoapods'
|
2
|
+
require 'cocoapods-fix-react-native/helpers/root_helper'
|
3
|
+
|
4
|
+
# Obtain the React Native root directory
|
5
|
+
$root = get_root
|
6
|
+
|
7
|
+
# TODO: move to be both file in pods and file in node_mods?
|
8
|
+
def patch_pod_file(path, old_code, new_code)
|
9
|
+
file = File.join($root, path)
|
10
|
+
unless File.exist?(file)
|
11
|
+
Pod::UI.warn "#{file} does not exist so was not patched.."
|
12
|
+
return
|
13
|
+
end
|
14
|
+
code = File.read(file)
|
15
|
+
if code.include?(old_code)
|
16
|
+
Pod::UI.message "Patching #{file}", '- '
|
17
|
+
FileUtils.chmod('+w', file)
|
18
|
+
File.write(file, code.sub(old_code, new_code))
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
# https://github.com/facebook/react-native/pull/23274
|
23
|
+
react_podspec_file = 'React.podspec'
|
24
|
+
react_podspec_old_code = '
|
25
|
+
s.subspec "jsiexecutor" do |ss|
|
26
|
+
ss.dependency "React/cxxreact"
|
27
|
+
ss.dependency "React/jsi"
|
28
|
+
ss.dependency "Folly", folly_version
|
29
|
+
ss.compiler_flags = folly_compiler_flags
|
30
|
+
ss.source_files = "ReactCommon/jsiexecutor/jsireact/*.{cpp,h}"
|
31
|
+
ss.private_header_files = "ReactCommon/jsiexecutor/jsireact/*.h"
|
32
|
+
ss.header_dir = "jsireact"
|
33
|
+
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\"" }
|
34
|
+
end
|
35
|
+
'
|
36
|
+
react_podspec_new_code = '
|
37
|
+
s.subspec "jsiexecutor" do |ss|
|
38
|
+
ss.dependency "React/cxxreact"
|
39
|
+
ss.dependency "React/jsi"
|
40
|
+
ss.dependency "Folly", folly_version
|
41
|
+
ss.compiler_flags = folly_compiler_flags
|
42
|
+
ss.source_files = "ReactCommon/jsiexecutor/jsireact/*.{cpp,h}"
|
43
|
+
ss.private_header_files = "ReactCommon/jsiexecutor/jsireact/*.h"
|
44
|
+
ss.header_dir = "jsireact"
|
45
|
+
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\", \"$(PODS_TARGET_SRCROOT)/ReactCommon/jsiexecutor\"" }
|
46
|
+
end
|
47
|
+
'
|
48
|
+
patch_pod_file react_podspec_file, react_podspec_old_code, react_podspec_new_code
|
@@ -1 +1 @@
|
|
1
|
-
require_relative './
|
1
|
+
require_relative './0_58_0-post'
|
@@ -0,0 +1 @@
|
|
1
|
+
require_relative './0_58_0-pre'
|
@@ -0,0 +1 @@
|
|
1
|
+
require_relative './0_58_1-post'
|
@@ -0,0 +1 @@
|
|
1
|
+
require_relative './0_58_1-pre'
|
@@ -0,0 +1 @@
|
|
1
|
+
require_relative './0_58_2-post'
|
@@ -0,0 +1 @@
|
|
1
|
+
require_relative './0_58_2-pre'
|
@@ -0,0 +1 @@
|
|
1
|
+
require_relative './0_58_3-post'
|
@@ -0,0 +1 @@
|
|
1
|
+
require_relative './0_58_3-pre'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-fix-react-native
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2019.
|
4
|
+
version: 2019.02.11.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Orta Therox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -71,7 +71,16 @@ files:
|
|
71
71
|
- lib/cocoapods-fix-react-native/versions/0_57_5-post.rb
|
72
72
|
- lib/cocoapods-fix-react-native/versions/0_57_7-post.rb
|
73
73
|
- lib/cocoapods-fix-react-native/versions/0_57_8-post.rb
|
74
|
+
- lib/cocoapods-fix-react-native/versions/0_58_0-post.rb
|
75
|
+
- lib/cocoapods-fix-react-native/versions/0_58_0-pre.rb
|
74
76
|
- lib/cocoapods-fix-react-native/versions/0_58_1-post.rb
|
77
|
+
- lib/cocoapods-fix-react-native/versions/0_58_1-pre.rb
|
78
|
+
- lib/cocoapods-fix-react-native/versions/0_58_2-post.rb
|
79
|
+
- lib/cocoapods-fix-react-native/versions/0_58_2-pre.rb
|
80
|
+
- lib/cocoapods-fix-react-native/versions/0_58_3-post.rb
|
81
|
+
- lib/cocoapods-fix-react-native/versions/0_58_3-pre.rb
|
82
|
+
- lib/cocoapods-fix-react-native/versions/0_58_4-post.rb
|
83
|
+
- lib/cocoapods-fix-react-native/versions/0_58_4-pre.rb
|
75
84
|
- lib/cocoapods_plugin.rb
|
76
85
|
- spec/command/native_spec.rb
|
77
86
|
- spec/spec_helper.rb
|