nostr:npub1gcxzte5zlkncx26j68ez60fzkvtkm9e0vrwdcvsjakxf9mu9qewqlfnj5z what's the new way of doing `HttpClientManager.setDefaultProxy(getTorKmpObject().proxy)` with the new version of quartz?
Login to reply
Replies (1)
I migrated over to a DualHttpClientManager class with proxy and non proxy okhttp clients that keep being recreated when the connectivity or Tor's services restart or change ports using Flows.
Not sure if that's the way everybody should be making these, but that's the "New way"
https://github.com/vitorpamplona/amethyst/blob/main/amethyst/src/main/java/com/vitorpamplona/amethyst/Amethyst.kt
Amber is still using the old (simpler) way: https://github.com/greenart7c3/Amber/blob/master/app/src/main/java/com/greenart7c3/nostrsigner/Amber.kt