pmusolino / Wormholy

iOS network debugging, like a wizard 🧙‍♂️
MIT License
2.31k stars 184 forks source link

Add ability to enable or disable tracking #101

Closed volbap closed 2 years ago

volbap commented 3 years ago

Hi, @pmusolino ! I find your library very useful in my daily basis. Thank you so much.

I recently encountered that when going live and using production environments, there was no easy way to disable Wormholy. I needed to uninstall it every time, which was annonying.

I just added this little boolean variable in the Wormholy file to help dealing with this situation, so we are able to enable or disable the tracking by just setting that variable to true or false.

I don't know if this is the best way to achieve this functionality, but I hope it is helpful.

Best, Pablo.

pmusolino commented 2 years ago

Hi @volbap, sorry for the delay. In reality, there is no need for this variable, since in production it is possible to completely remove the library from the binary file if you do not want to use it. Feel free to ask if it's not clear how to do it for you.