This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Make sure to replace <YOUR_LOCAL_IP> with | |
| // the external IP of your computer if you're using Android. | |
| // Note that we're using port 8888 which is Charles' default. | |
| String proxy = Platform.isAndroid ? '<YOUR_LOCAL_IP>:8888' : 'localhost:8888'; | |
| // Create a new HttpClient instance. | |
| HttpClient httpClient = new HttpClient(); | |
| // Hook into the findProxy callback to set | |
| // the client's proxy. |