Refactor: refactor project structure & update clash core (#1174)

* Refactor: refactor project structure

* Chore: remove apply

* Chore: update clash core

* Fix: fix versionName & versionCode patch

* Chore: update golang plugin

* Fix: fix workflow build
This commit is contained in:
Kr328
2021-09-11 14:53:09 +08:00
committed by GitHub
parent fa23be76ed
commit 11c4e19e0c
78 changed files with 549 additions and 946 deletions

View File

@@ -1,23 +0,0 @@
package main
//#include "bridge.h"
import "C"
import "cfa/proxy"
//export startHttp
func startHttp(listenAt C.c_string) *C.char {
l := C.GoString(listenAt)
listen, err := proxy.Start(l)
if err != nil {
return nil
}
return C.CString(listen)
}
//export stopHttp
func stopHttp() {
proxy.Stop()
}