x/v0.0.8: [BREAKING] Extensible Mobile Proxy #536
fortuna
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In this release we made the Mobile Proxy extensible: it's now possible to add new fallback strategies without making changes to the Mobile Proxy itself. This means any 3rd party can directly provide strategies to apps.
Provide Registration Function
To provide a new strategy, you will typically provide a Go function to register your config parser with the strategy finder. See
RegisterFallbackParserin thex/mobileproxy/psiphonpackage as an example.Add to Compilation
Then, make sure you include the package with the strategy in your Go Mobile compilation. To build the Mobile Proxy library with Psiphon, include
github.com/Jigsaw-Code/outline-sdk/x/mobileproxy/psiphonin thegomobile bindcall:Call Registration Function
Finally, in your mobile code, call the registration function on the SmartDialer options like so:
Note that the function takes the package name as the prefix (
Psiphon, notMobileproxy).This change breaks how the Psiphon integration worked. You now have to explicitly register it following the recipe above.
What's Changed
Full Changelog: x/v0.0.7...x/v0.0.8
This discussion was created from the release x/v0.0.8: [BREAKING] Extensible Mobile Proxy.
Beta Was this translation helpful? Give feedback.
All reactions