cocoapods-fix-react-native 2018.04.09.10 → 2018.04.10.11

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: 971f132700107c45ee995fb388a90dc930b9aefed393e9d4832ce637413f1fbb
4
- data.tar.gz: de90322cb501e6514e139eb72c597a955a0598830a2e5884b293d0f170173df5
3
+ metadata.gz: c9b47e12f4253cfd80687985747fb5c2f9189adc2f73fd7f45a800dde3560ecb
4
+ data.tar.gz: 809b01ec4a77ffe686f330d8ff1db3181cbef53156e27b8b36ba3bf6f3bb452a
5
5
  SHA512:
6
- metadata.gz: a5b2e4ca8b83391c359f547a17394ed33280ece7f00c6ac93c2049fc7849b2208063609b2a3cce7341f40d17278ed8ca6defa3e87c74eb21dd09c8be40de5256
7
- data.tar.gz: 2182495ea7c961a2e84f5ba7248dad72829cb8d73cb91b3715c5b8d49bee70e1ccc60c1d261165f6aa6d27073c02e1039021d1b3d1e58406e3715576e75283ab
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
- file = File.open(filepath, 'w') do |f|
118
- f.puts(contents)
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
- dev_settings = 'React/Modules/RCTDevSettings.mm'
131
- dev_settings_old_code = '#import "RCTPackagerClient.h"'
132
- dev_settings_new_code = '//#import //"RCTPackagerClient.h"'
133
- edit_pod_file dev_settings, dev_settings_old_code, dev_settings_new_code
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.09.10
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-09 00:00:00.000000000 Z
11
+ date: 2018-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler