Jigsaw-Code / outline-go-tun2socks

Apache License 2.0
231 stars 94 forks source link

fix: 💊 re-export APIs used by Outline Client #122

Closed jyyi1 closed 1 year ago

jyyi1 commented 1 year ago

Outline Client is referencing the following APIs (Android JNI interface as an example) exported by gomobile.

image

But due to the recent refactoring, we introduced types that are not recognized by gomobile. This is the only function exported in master branch now:

image

In this PR, I re-exported these functions (together with the new NewClientFromJSON) by using the built-in types. Here is the exported Android JNI interface:

image

/cc @sbruens , although the required APIs are re-exported, some of the data types still need to be updated:

Related PR: #118