diff --git a/AndroidLibV2rayLite/libv2init.go b/AndroidLibV2rayLite/libv2init.go new file mode 100644 index 00000000..445c8d56 --- /dev/null +++ b/AndroidLibV2rayLite/libv2init.go @@ -0,0 +1,58 @@ +package libv2ray + +import ( + // The following are necessary as they register handlers in their init functions. + + // Required features. Can't remove unless there is replacements. + _ "v2ray.com/core/app/dispatcher" + _ "v2ray.com/core/app/proxyman/inbound" + _ "v2ray.com/core/app/proxyman/outbound" + + // Other optional features. + _ "v2ray.com/core/app/dns" + _ "v2ray.com/core/app/log" + _ "v2ray.com/core/app/policy" + _ "v2ray.com/core/app/router" + _ "v2ray.com/core/app/stats" + + // Inbound and outbound proxies. + _ "v2ray.com/core/proxy/blackhole" + _ "v2ray.com/core/proxy/dns" + _ "v2ray.com/core/proxy/dokodemo" + _ "v2ray.com/core/proxy/freedom" + _ "v2ray.com/core/proxy/http" + _ "v2ray.com/core/proxy/mtproto" + _ "v2ray.com/core/proxy/shadowsocks" + _ "v2ray.com/core/proxy/socks" + _ "v2ray.com/core/proxy/trojan" + _ "v2ray.com/core/proxy/vless/inbound" + _ "v2ray.com/core/proxy/vless/outbound" + _ "v2ray.com/core/proxy/vmess/inbound" + _ "v2ray.com/core/proxy/vmess/outbound" + + // Transport + _ "v2ray.com/core/transport/internet/http" + _ "v2ray.com/core/transport/internet/kcp" + _ "v2ray.com/core/transport/internet/quic" + _ "v2ray.com/core/transport/internet/tcp" + _ "v2ray.com/core/transport/internet/tls" + _ "v2ray.com/core/transport/internet/udp" + _ "v2ray.com/core/transport/internet/websocket" + + // Transport headers + _ "v2ray.com/core/transport/internet/headers/http" + _ "v2ray.com/core/transport/internet/headers/noop" + _ "v2ray.com/core/transport/internet/headers/srtp" + _ "v2ray.com/core/transport/internet/headers/tls" + _ "v2ray.com/core/transport/internet/headers/utp" + _ "v2ray.com/core/transport/internet/headers/wechat" + _ "v2ray.com/core/transport/internet/headers/wireguard" + + // JSON config support. Choose only one from the two below. + // The following line loads JSON from v2ctl + // _ "v2ray.com/core/main/json" + // The following line loads JSON internally + _ "v2ray.com/core/main/jsonem" + // Load config from file or http(s) + // _ "v2ray.com/core/main/confloader/external" +)