Wednesday, March 8, 2017

How to build React-Native behind proxy

Recently I tried to setup and build react-native app (mostly for Android), behind a proxy server. To pass the gradle build, need set proxy config as below:

  • Edit AwesomeProject\Android\, add proxy config:
  •     systemProp.http.proxyHost=
  •     systemProp.http.proxyPort=8080
  •     systemProp.https.proxyHost=
  •     systemProp.https.proxyPort=8080

Thrift fails on Windows - thrift failed error: The command line is too long.

Meet a thrift compiling failure on my project on Windows 7. Using Maven in IntelliJ so I choiced maven-thrift-pluging for thrift files. For ...