Currently there are no comprehensive materials about sandboxing. There’ a short example on the evaluating polyglot scripts inside a Java process with reliable timeouts rather than exposing the system to malicious code: https://github.com/oracle/graal/blob/master/sdk/docs/PolyglotEmbedding.md
Hi, Mohit! I don’t have the numbers I can confidently show you with regards of performance differences between JRebel for Android and Instant Run. They handle some changes to the code differently, but you should definitely try it on your projects. So much can depend on the configuration, gradle version in use, project setup, size of the project…
There are some conceptual differences in the implementation, but if you’re more interested in the comparison from the end user point of view, there’s a post about that: https://medium.com/@shelajev/looking-at-jrebel-for-android-and-instant-run-how-to-update-code-and-resources-in-android-89b5fc69a98a#.ly3jxo7n8
Hi Dominic, thank you for the kind feedback!
I have no problem with the translation, it’d be amazing to spread the knowledge further. Please comment here when the translated version is up. I’d love to check it out!
The example code doesn’t handle timeouts in any way. Here’s a good StackOverflow answer about Retrofit 2 and how to handle timeouts: http://stackoverflow.com/questions/29921667/retrofit-and-okhttpclient-catch-connection-timeout-in-failure-method
Basically, you need to configure the timeouts on the HTTP client (OkHttp for…