cocoapods-fix-react-native 2018.04.09.10 → 2018.04.10.11
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9b47e12f4253cfd80687985747fb5c2f9189adc2f73fd7f45a800dde3560ecb
|
4
|
+
data.tar.gz: 809b01ec4a77ffe686f330d8ff1db3181cbef53156e27b8b36ba3bf6f3bb452a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e131e33b44ac5213160fb16d14955fbcf0908624a367cdaa94d262afb882ed4c3f77656c97780300cd6743e5ba23377545d962d1239ed258b5a3e75f358f95c5
|
7
|
+
data.tar.gz: 02b771c9b8b829b52cbc3ed0738c745ecc6aa358ca3b5d44e19be77a716fe732eeac16d202f9da60653d8f18074693b0de1004683b006111cfb1d27571350db8
|
@@ -112,9 +112,9 @@ else
|
|
112
112
|
|
113
113
|
contents.insert(207, comment_start)
|
114
114
|
contents.insert(231, comment_end)
|
115
|
-
end
|
116
115
|
|
117
|
-
|
118
|
-
|
116
|
+
file = File.open(filepath, 'w') do |f|
|
117
|
+
f.puts(contents)
|
118
|
+
end
|
119
119
|
end
|
120
120
|
end
|
@@ -127,8 +127,27 @@ if has_dev_support
|
|
127
127
|
edit_pod_file websocket, websocket_old_code, websocket_new_code
|
128
128
|
else
|
129
129
|
# There's a link in the DevSettings to dev-only import
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
130
|
+
filepath = "#{$root}/React/Modules/RCTDevSettings.mm"
|
131
|
+
contents = []
|
132
|
+
file = File.open(filepath, 'r')
|
133
|
+
found = false
|
134
|
+
file.each_line do |line|
|
135
|
+
contents << line
|
136
|
+
end
|
137
|
+
file.close
|
138
|
+
|
139
|
+
comment_start = '#if ENABLE_PACKAGER_CONNECTION'
|
140
|
+
comment_end = '#endif'
|
141
|
+
|
142
|
+
if contents[22].rstrip != comment_start
|
143
|
+
contents.insert(22, comment_start)
|
144
|
+
contents.insert(24, comment_end)
|
145
|
+
|
146
|
+
contents.insert(207, comment_start)
|
147
|
+
contents.insert(231, comment_end)
|
148
|
+
|
149
|
+
file = File.open(filepath, 'w') do |f|
|
150
|
+
f.puts(contents)
|
151
|
+
end
|
152
|
+
end
|
134
153
|
end
|
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: 2018.04.
|
4
|
+
version: 2018.04.10.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Orta Therox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-04-
|
11
|
+
date: 2018-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|