diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/Info.plist b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/Info.plist deleted file mode 100644 index da0ccdd3e6..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/Info.plist +++ /dev/null @@ -1,55 +0,0 @@ - - - - - AvailableLibraries - - - LibraryIdentifier - ios-arm64_x86_64-simulator - LibraryPath - Tun2socks.framework - SupportedArchitectures - - arm64 - x86_64 - - SupportedPlatform - ios - SupportedPlatformVariant - simulator - - - LibraryIdentifier - ios-arm64_x86_64-maccatalyst - LibraryPath - Tun2socks.framework - SupportedArchitectures - - arm64 - x86_64 - - SupportedPlatform - ios - SupportedPlatformVariant - maccatalyst - - - LibraryIdentifier - ios-arm64 - LibraryPath - Tun2socks.framework - SupportedArchitectures - - arm64 - - SupportedPlatform - ios - - - CFBundlePackageType - XFWK - XCFrameworkFormatVersion - 1.0 - - diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Headers/Shadowsocks.objc.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Headers/Shadowsocks.objc.h deleted file mode 100644 index 9b0c111a16..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Headers/Shadowsocks.objc.h +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Copyright 2023 The Outline Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// Objective-C API for talking to github.com/Jigsaw-Code/outline-go-tun2socks/outline/shadowsocks Go package. -// gobind -lang=objc github.com/Jigsaw-Code/outline-go-tun2socks/outline/shadowsocks -// -// File is generated by gobind. Do not edit. - -#ifndef __Shadowsocks_H__ -#define __Shadowsocks_H__ - -@import Foundation; -#include "ref.h" -#include "Universe.objc.h" - - -@class ShadowsocksClient; -@class ShadowsocksConfig; - -/** - * Client provides a transparent container for [client.Client] that -is exportable (as an opaque object) via gobind. - */ -@interface ShadowsocksClient : NSObject { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -/** - * NewClient provides a gobind-compatible wrapper for [client.NewClient]. - */ -- (nullable instancetype)init:(ShadowsocksConfig* _Nullable)config; -// skipped field Client.Client with unsupported type: github.com/Jigsaw-Code/outline-ss-server/client.Client - -// skipped method Client.DialTCP with unsupported parameter or return types - -// skipped method Client.ListenUDP with unsupported parameter or return types - -// skipped method Client.SetTCPSaltGenerator with unsupported parameter or return types - -@end - -/** - * Config represents a shadowsocks server configuration. -Exported via gobind. - */ -@interface ShadowsocksConfig : NSObject { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -- (nonnull instancetype)init; -@property (nonatomic) NSString* _Nonnull host; -@property (nonatomic) long port; -@property (nonatomic) NSString* _Nonnull password; -@property (nonatomic) NSString* _Nonnull cipherName; -@property (nonatomic) NSData* _Nullable prefix; -@end - -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksAuthenticationFailure; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksConfigureSystemProxyFailure; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksIllegalConfiguration; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksNoAdminPermissions; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksNoError; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksNoVPNPermissions; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksShadowsocksStartFailure; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksSystemMisconfigured; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksUDPConnectivity; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksUnexpected; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksUnreachable; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksUnsupportedRoutingTable; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksVpnStartFailure; - -/** - * CheckConnectivity determines whether the Shadowsocks proxy can relay TCP and UDP traffic under -the current network. Parallelizes the execution of TCP and UDP checks, selects the appropriate -error code to return accounting for transient network failures. -Returns an error if an unexpected error ocurrs. - */ -FOUNDATION_EXPORT BOOL ShadowsocksCheckConnectivity(ShadowsocksClient* _Nullable client, long* _Nullable ret0_, NSError* _Nullable* _Nullable error); - -/** - * CheckServerReachable determines whether the server at `host:port` is reachable over TCP. -Returns an error if the server is unreachable. - */ -FOUNDATION_EXPORT BOOL ShadowsocksCheckServerReachable(NSString* _Nullable host, long port, NSError* _Nullable* _Nullable error); - -/** - * NewClient provides a gobind-compatible wrapper for [client.NewClient]. - */ -FOUNDATION_EXPORT ShadowsocksClient* _Nullable ShadowsocksNewClient(ShadowsocksConfig* _Nullable config, NSError* _Nullable* _Nullable error); - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Headers/Tun2socks.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Headers/Tun2socks.h deleted file mode 100644 index 706da85c44..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Headers/Tun2socks.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright 2023 The Outline Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -// Objective-C API for talking to the following Go packages -// -// github.com/Jigsaw-Code/outline-go-tun2socks/outline/apple -// github.com/Jigsaw-Code/outline-go-tun2socks/outline/shadowsocks -// -// File is generated by gomobile bind. Do not edit. -#ifndef __Tun2socks_FRAMEWORK_H__ -#define __Tun2socks_FRAMEWORK_H__ - -#include "Tun2socks.objc.h" -#include "Shadowsocks.objc.h" -#include "Universe.objc.h" - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Headers/Tun2socks.objc.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Headers/Tun2socks.objc.h deleted file mode 100644 index 4e962fac9a..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Headers/Tun2socks.objc.h +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2023 The Outline Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// Objective-C API for talking to github.com/Jigsaw-Code/outline-go-tun2socks/outline/apple Go package. -// gobind -lang=objc github.com/Jigsaw-Code/outline-go-tun2socks/outline/apple -// -// File is generated by gobind. Do not edit. - -#ifndef __Tun2socks_H__ -#define __Tun2socks_H__ - -@import Foundation; -#include "ref.h" -#include "Universe.objc.h" - -#include "Shadowsocks.objc.h" - -@protocol Tun2socksOutlineTunnel; -@class Tun2socksOutlineTunnel; -@protocol Tun2socksTunWriter; -@class Tun2socksTunWriter; - -@protocol Tun2socksOutlineTunnel -- (void)disconnect; -- (BOOL)isConnected; -- (BOOL)updateUDPSupport; -- (BOOL)write:(NSData* _Nullable)data ret0_:(long* _Nullable)ret0_ error:(NSError* _Nullable* _Nullable)error; -@end - -@protocol Tun2socksTunWriter -- (BOOL)close:(NSError* _Nullable* _Nullable)error; -- (BOOL)write:(NSData* _Nullable)p0 n:(long* _Nullable)n error:(NSError* _Nullable* _Nullable)error; -@end - -/** - * ConnectShadowsocksTunnel reads packets from a TUN device and routes it to a Shadowsocks proxy server. -Returns an OutlineTunnel instance that should be used to input packets to the tunnel. - -`tunWriter` is used to output packets to the TUN (VPN). -`client` is the Shadowsocks client (created by [shadowsocks.NewClient]). -`isUDPEnabled` indicates whether the tunnel and/or network enable UDP proxying. - -Sets an error if the tunnel fails to connect. - */ -FOUNDATION_EXPORT id _Nullable Tun2socksConnectShadowsocksTunnel(id _Nullable tunWriter, ShadowsocksClient* _Nullable client, BOOL isUDPEnabled, NSError* _Nullable* _Nullable error); - -@class Tun2socksOutlineTunnel; - -@class Tun2socksTunWriter; - -/** - * OutlineTunnel embeds the tun2socks.Tunnel interface so it gets exported by gobind. - */ -@interface Tun2socksOutlineTunnel : NSObject { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -- (void)disconnect; -- (BOOL)isConnected; -- (BOOL)updateUDPSupport; -- (BOOL)write:(NSData* _Nullable)data ret0_:(long* _Nullable)ret0_ error:(NSError* _Nullable* _Nullable)error; -@end - -/** - * TunWriter is an interface that allows for outputting packets to the TUN (VPN). - */ -@interface Tun2socksTunWriter : NSObject { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -- (BOOL)close:(NSError* _Nullable* _Nullable)error; -- (BOOL)write:(NSData* _Nullable)p0 n:(long* _Nullable)n error:(NSError* _Nullable* _Nullable)error; -@end - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Headers/Universe.objc.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Headers/Universe.objc.h deleted file mode 100644 index 698a5f3172..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Headers/Universe.objc.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2023 The Outline Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// Objective-C API for talking to Go package. -// gobind -lang=objc -// -// File is generated by gobind. Do not edit. - -#ifndef __Universe_H__ -#define __Universe_H__ - -@import Foundation; -#include "ref.h" - -@protocol Universeerror; -@class Universeerror; - -@protocol Universeerror -- (NSString* _Nonnull)error; -@end - -@class Universeerror; - -@interface Universeerror : NSError { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -- (NSString* _Nonnull)error; -@end - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Headers/ref.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Headers/ref.h deleted file mode 100644 index b8036a4d85..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Headers/ref.h +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -#ifndef __GO_REF_HDR__ -#define __GO_REF_HDR__ - -#include - -// GoSeqRef is an object tagged with an integer for passing back and -// forth across the language boundary. A GoSeqRef may represent either -// an instance of a Go object, or an Objective-C object passed to Go. -// The explicit allocation of a GoSeqRef is used to pin a Go object -// when it is passed to Objective-C. The Go seq package maintains a -// reference to the Go object in a map keyed by the refnum along with -// a reference count. When the reference count reaches zero, the Go -// seq package will clear the corresponding entry in the map. -@interface GoSeqRef : NSObject { -} -@property(readonly) int32_t refnum; -@property(strong) id obj; // NULL when representing a Go object. - -// new GoSeqRef object to proxy a Go object. The refnum must be -// provided from Go side. -- (instancetype)initWithRefnum:(int32_t)refnum obj:(id)obj; - -- (int32_t)incNum; - -@end - -@protocol goSeqRefInterface --(GoSeqRef*) _ref; -@end - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Modules/module.modulemap b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Modules/module.modulemap deleted file mode 100644 index fad8888773..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Modules/module.modulemap +++ /dev/null @@ -1,9 +0,0 @@ -framework module "Tun2socks" { - header "ref.h" - header "Tun2socks.objc.h" - header "Shadowsocks.objc.h" - header "Universe.objc.h" - header "Tun2socks.h" - - export * -} \ No newline at end of file diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Resources/Info.plist b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Resources/Info.plist deleted file mode 100644 index 0d1a4b8ab9..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Resources/Info.plist +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Tun2socks b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Tun2socks deleted file mode 100644 index db0b1b7cde..0000000000 Binary files a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Tun2socks and /dev/null differ diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/A/Headers/Shadowsocks.objc.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/A/Headers/Shadowsocks.objc.h deleted file mode 100644 index 9b0c111a16..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/A/Headers/Shadowsocks.objc.h +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Copyright 2023 The Outline Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// Objective-C API for talking to github.com/Jigsaw-Code/outline-go-tun2socks/outline/shadowsocks Go package. -// gobind -lang=objc github.com/Jigsaw-Code/outline-go-tun2socks/outline/shadowsocks -// -// File is generated by gobind. Do not edit. - -#ifndef __Shadowsocks_H__ -#define __Shadowsocks_H__ - -@import Foundation; -#include "ref.h" -#include "Universe.objc.h" - - -@class ShadowsocksClient; -@class ShadowsocksConfig; - -/** - * Client provides a transparent container for [client.Client] that -is exportable (as an opaque object) via gobind. - */ -@interface ShadowsocksClient : NSObject { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -/** - * NewClient provides a gobind-compatible wrapper for [client.NewClient]. - */ -- (nullable instancetype)init:(ShadowsocksConfig* _Nullable)config; -// skipped field Client.Client with unsupported type: github.com/Jigsaw-Code/outline-ss-server/client.Client - -// skipped method Client.DialTCP with unsupported parameter or return types - -// skipped method Client.ListenUDP with unsupported parameter or return types - -// skipped method Client.SetTCPSaltGenerator with unsupported parameter or return types - -@end - -/** - * Config represents a shadowsocks server configuration. -Exported via gobind. - */ -@interface ShadowsocksConfig : NSObject { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -- (nonnull instancetype)init; -@property (nonatomic) NSString* _Nonnull host; -@property (nonatomic) long port; -@property (nonatomic) NSString* _Nonnull password; -@property (nonatomic) NSString* _Nonnull cipherName; -@property (nonatomic) NSData* _Nullable prefix; -@end - -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksAuthenticationFailure; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksConfigureSystemProxyFailure; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksIllegalConfiguration; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksNoAdminPermissions; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksNoError; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksNoVPNPermissions; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksShadowsocksStartFailure; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksSystemMisconfigured; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksUDPConnectivity; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksUnexpected; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksUnreachable; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksUnsupportedRoutingTable; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksVpnStartFailure; - -/** - * CheckConnectivity determines whether the Shadowsocks proxy can relay TCP and UDP traffic under -the current network. Parallelizes the execution of TCP and UDP checks, selects the appropriate -error code to return accounting for transient network failures. -Returns an error if an unexpected error ocurrs. - */ -FOUNDATION_EXPORT BOOL ShadowsocksCheckConnectivity(ShadowsocksClient* _Nullable client, long* _Nullable ret0_, NSError* _Nullable* _Nullable error); - -/** - * CheckServerReachable determines whether the server at `host:port` is reachable over TCP. -Returns an error if the server is unreachable. - */ -FOUNDATION_EXPORT BOOL ShadowsocksCheckServerReachable(NSString* _Nullable host, long port, NSError* _Nullable* _Nullable error); - -/** - * NewClient provides a gobind-compatible wrapper for [client.NewClient]. - */ -FOUNDATION_EXPORT ShadowsocksClient* _Nullable ShadowsocksNewClient(ShadowsocksConfig* _Nullable config, NSError* _Nullable* _Nullable error); - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/A/Headers/Tun2socks.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/A/Headers/Tun2socks.h deleted file mode 100644 index 706da85c44..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/A/Headers/Tun2socks.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright 2023 The Outline Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -// Objective-C API for talking to the following Go packages -// -// github.com/Jigsaw-Code/outline-go-tun2socks/outline/apple -// github.com/Jigsaw-Code/outline-go-tun2socks/outline/shadowsocks -// -// File is generated by gomobile bind. Do not edit. -#ifndef __Tun2socks_FRAMEWORK_H__ -#define __Tun2socks_FRAMEWORK_H__ - -#include "Tun2socks.objc.h" -#include "Shadowsocks.objc.h" -#include "Universe.objc.h" - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/A/Headers/Tun2socks.objc.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/A/Headers/Tun2socks.objc.h deleted file mode 100644 index 4e962fac9a..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/A/Headers/Tun2socks.objc.h +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2023 The Outline Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// Objective-C API for talking to github.com/Jigsaw-Code/outline-go-tun2socks/outline/apple Go package. -// gobind -lang=objc github.com/Jigsaw-Code/outline-go-tun2socks/outline/apple -// -// File is generated by gobind. Do not edit. - -#ifndef __Tun2socks_H__ -#define __Tun2socks_H__ - -@import Foundation; -#include "ref.h" -#include "Universe.objc.h" - -#include "Shadowsocks.objc.h" - -@protocol Tun2socksOutlineTunnel; -@class Tun2socksOutlineTunnel; -@protocol Tun2socksTunWriter; -@class Tun2socksTunWriter; - -@protocol Tun2socksOutlineTunnel -- (void)disconnect; -- (BOOL)isConnected; -- (BOOL)updateUDPSupport; -- (BOOL)write:(NSData* _Nullable)data ret0_:(long* _Nullable)ret0_ error:(NSError* _Nullable* _Nullable)error; -@end - -@protocol Tun2socksTunWriter -- (BOOL)close:(NSError* _Nullable* _Nullable)error; -- (BOOL)write:(NSData* _Nullable)p0 n:(long* _Nullable)n error:(NSError* _Nullable* _Nullable)error; -@end - -/** - * ConnectShadowsocksTunnel reads packets from a TUN device and routes it to a Shadowsocks proxy server. -Returns an OutlineTunnel instance that should be used to input packets to the tunnel. - -`tunWriter` is used to output packets to the TUN (VPN). -`client` is the Shadowsocks client (created by [shadowsocks.NewClient]). -`isUDPEnabled` indicates whether the tunnel and/or network enable UDP proxying. - -Sets an error if the tunnel fails to connect. - */ -FOUNDATION_EXPORT id _Nullable Tun2socksConnectShadowsocksTunnel(id _Nullable tunWriter, ShadowsocksClient* _Nullable client, BOOL isUDPEnabled, NSError* _Nullable* _Nullable error); - -@class Tun2socksOutlineTunnel; - -@class Tun2socksTunWriter; - -/** - * OutlineTunnel embeds the tun2socks.Tunnel interface so it gets exported by gobind. - */ -@interface Tun2socksOutlineTunnel : NSObject { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -- (void)disconnect; -- (BOOL)isConnected; -- (BOOL)updateUDPSupport; -- (BOOL)write:(NSData* _Nullable)data ret0_:(long* _Nullable)ret0_ error:(NSError* _Nullable* _Nullable)error; -@end - -/** - * TunWriter is an interface that allows for outputting packets to the TUN (VPN). - */ -@interface Tun2socksTunWriter : NSObject { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -- (BOOL)close:(NSError* _Nullable* _Nullable)error; -- (BOOL)write:(NSData* _Nullable)p0 n:(long* _Nullable)n error:(NSError* _Nullable* _Nullable)error; -@end - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/A/Headers/Universe.objc.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/A/Headers/Universe.objc.h deleted file mode 100644 index 698a5f3172..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/A/Headers/Universe.objc.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2023 The Outline Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// Objective-C API for talking to Go package. -// gobind -lang=objc -// -// File is generated by gobind. Do not edit. - -#ifndef __Universe_H__ -#define __Universe_H__ - -@import Foundation; -#include "ref.h" - -@protocol Universeerror; -@class Universeerror; - -@protocol Universeerror -- (NSString* _Nonnull)error; -@end - -@class Universeerror; - -@interface Universeerror : NSError { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -- (NSString* _Nonnull)error; -@end - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/A/Headers/ref.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/A/Headers/ref.h deleted file mode 100644 index b8036a4d85..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/A/Headers/ref.h +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -#ifndef __GO_REF_HDR__ -#define __GO_REF_HDR__ - -#include - -// GoSeqRef is an object tagged with an integer for passing back and -// forth across the language boundary. A GoSeqRef may represent either -// an instance of a Go object, or an Objective-C object passed to Go. -// The explicit allocation of a GoSeqRef is used to pin a Go object -// when it is passed to Objective-C. The Go seq package maintains a -// reference to the Go object in a map keyed by the refnum along with -// a reference count. When the reference count reaches zero, the Go -// seq package will clear the corresponding entry in the map. -@interface GoSeqRef : NSObject { -} -@property(readonly) int32_t refnum; -@property(strong) id obj; // NULL when representing a Go object. - -// new GoSeqRef object to proxy a Go object. The refnum must be -// provided from Go side. -- (instancetype)initWithRefnum:(int32_t)refnum obj:(id)obj; - -- (int32_t)incNum; - -@end - -@protocol goSeqRefInterface --(GoSeqRef*) _ref; -@end - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/A/Modules/module.modulemap b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/A/Modules/module.modulemap deleted file mode 100644 index fad8888773..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/A/Modules/module.modulemap +++ /dev/null @@ -1,9 +0,0 @@ -framework module "Tun2socks" { - header "ref.h" - header "Tun2socks.objc.h" - header "Shadowsocks.objc.h" - header "Universe.objc.h" - header "Tun2socks.h" - - export * -} \ No newline at end of file diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/A/Resources/Info.plist b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/A/Resources/Info.plist deleted file mode 100644 index 0d1a4b8ab9..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/A/Resources/Info.plist +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/A/Tun2socks b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/A/Tun2socks deleted file mode 100644 index db0b1b7cde..0000000000 Binary files a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/A/Tun2socks and /dev/null differ diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/Current/Headers/Shadowsocks.objc.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/Current/Headers/Shadowsocks.objc.h deleted file mode 100644 index 9b0c111a16..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/Current/Headers/Shadowsocks.objc.h +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Copyright 2023 The Outline Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// Objective-C API for talking to github.com/Jigsaw-Code/outline-go-tun2socks/outline/shadowsocks Go package. -// gobind -lang=objc github.com/Jigsaw-Code/outline-go-tun2socks/outline/shadowsocks -// -// File is generated by gobind. Do not edit. - -#ifndef __Shadowsocks_H__ -#define __Shadowsocks_H__ - -@import Foundation; -#include "ref.h" -#include "Universe.objc.h" - - -@class ShadowsocksClient; -@class ShadowsocksConfig; - -/** - * Client provides a transparent container for [client.Client] that -is exportable (as an opaque object) via gobind. - */ -@interface ShadowsocksClient : NSObject { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -/** - * NewClient provides a gobind-compatible wrapper for [client.NewClient]. - */ -- (nullable instancetype)init:(ShadowsocksConfig* _Nullable)config; -// skipped field Client.Client with unsupported type: github.com/Jigsaw-Code/outline-ss-server/client.Client - -// skipped method Client.DialTCP with unsupported parameter or return types - -// skipped method Client.ListenUDP with unsupported parameter or return types - -// skipped method Client.SetTCPSaltGenerator with unsupported parameter or return types - -@end - -/** - * Config represents a shadowsocks server configuration. -Exported via gobind. - */ -@interface ShadowsocksConfig : NSObject { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -- (nonnull instancetype)init; -@property (nonatomic) NSString* _Nonnull host; -@property (nonatomic) long port; -@property (nonatomic) NSString* _Nonnull password; -@property (nonatomic) NSString* _Nonnull cipherName; -@property (nonatomic) NSData* _Nullable prefix; -@end - -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksAuthenticationFailure; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksConfigureSystemProxyFailure; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksIllegalConfiguration; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksNoAdminPermissions; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksNoError; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksNoVPNPermissions; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksShadowsocksStartFailure; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksSystemMisconfigured; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksUDPConnectivity; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksUnexpected; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksUnreachable; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksUnsupportedRoutingTable; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksVpnStartFailure; - -/** - * CheckConnectivity determines whether the Shadowsocks proxy can relay TCP and UDP traffic under -the current network. Parallelizes the execution of TCP and UDP checks, selects the appropriate -error code to return accounting for transient network failures. -Returns an error if an unexpected error ocurrs. - */ -FOUNDATION_EXPORT BOOL ShadowsocksCheckConnectivity(ShadowsocksClient* _Nullable client, long* _Nullable ret0_, NSError* _Nullable* _Nullable error); - -/** - * CheckServerReachable determines whether the server at `host:port` is reachable over TCP. -Returns an error if the server is unreachable. - */ -FOUNDATION_EXPORT BOOL ShadowsocksCheckServerReachable(NSString* _Nullable host, long port, NSError* _Nullable* _Nullable error); - -/** - * NewClient provides a gobind-compatible wrapper for [client.NewClient]. - */ -FOUNDATION_EXPORT ShadowsocksClient* _Nullable ShadowsocksNewClient(ShadowsocksConfig* _Nullable config, NSError* _Nullable* _Nullable error); - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/Current/Headers/Tun2socks.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/Current/Headers/Tun2socks.h deleted file mode 100644 index 706da85c44..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/Current/Headers/Tun2socks.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright 2023 The Outline Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -// Objective-C API for talking to the following Go packages -// -// github.com/Jigsaw-Code/outline-go-tun2socks/outline/apple -// github.com/Jigsaw-Code/outline-go-tun2socks/outline/shadowsocks -// -// File is generated by gomobile bind. Do not edit. -#ifndef __Tun2socks_FRAMEWORK_H__ -#define __Tun2socks_FRAMEWORK_H__ - -#include "Tun2socks.objc.h" -#include "Shadowsocks.objc.h" -#include "Universe.objc.h" - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/Current/Headers/Tun2socks.objc.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/Current/Headers/Tun2socks.objc.h deleted file mode 100644 index 4e962fac9a..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/Current/Headers/Tun2socks.objc.h +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2023 The Outline Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// Objective-C API for talking to github.com/Jigsaw-Code/outline-go-tun2socks/outline/apple Go package. -// gobind -lang=objc github.com/Jigsaw-Code/outline-go-tun2socks/outline/apple -// -// File is generated by gobind. Do not edit. - -#ifndef __Tun2socks_H__ -#define __Tun2socks_H__ - -@import Foundation; -#include "ref.h" -#include "Universe.objc.h" - -#include "Shadowsocks.objc.h" - -@protocol Tun2socksOutlineTunnel; -@class Tun2socksOutlineTunnel; -@protocol Tun2socksTunWriter; -@class Tun2socksTunWriter; - -@protocol Tun2socksOutlineTunnel -- (void)disconnect; -- (BOOL)isConnected; -- (BOOL)updateUDPSupport; -- (BOOL)write:(NSData* _Nullable)data ret0_:(long* _Nullable)ret0_ error:(NSError* _Nullable* _Nullable)error; -@end - -@protocol Tun2socksTunWriter -- (BOOL)close:(NSError* _Nullable* _Nullable)error; -- (BOOL)write:(NSData* _Nullable)p0 n:(long* _Nullable)n error:(NSError* _Nullable* _Nullable)error; -@end - -/** - * ConnectShadowsocksTunnel reads packets from a TUN device and routes it to a Shadowsocks proxy server. -Returns an OutlineTunnel instance that should be used to input packets to the tunnel. - -`tunWriter` is used to output packets to the TUN (VPN). -`client` is the Shadowsocks client (created by [shadowsocks.NewClient]). -`isUDPEnabled` indicates whether the tunnel and/or network enable UDP proxying. - -Sets an error if the tunnel fails to connect. - */ -FOUNDATION_EXPORT id _Nullable Tun2socksConnectShadowsocksTunnel(id _Nullable tunWriter, ShadowsocksClient* _Nullable client, BOOL isUDPEnabled, NSError* _Nullable* _Nullable error); - -@class Tun2socksOutlineTunnel; - -@class Tun2socksTunWriter; - -/** - * OutlineTunnel embeds the tun2socks.Tunnel interface so it gets exported by gobind. - */ -@interface Tun2socksOutlineTunnel : NSObject { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -- (void)disconnect; -- (BOOL)isConnected; -- (BOOL)updateUDPSupport; -- (BOOL)write:(NSData* _Nullable)data ret0_:(long* _Nullable)ret0_ error:(NSError* _Nullable* _Nullable)error; -@end - -/** - * TunWriter is an interface that allows for outputting packets to the TUN (VPN). - */ -@interface Tun2socksTunWriter : NSObject { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -- (BOOL)close:(NSError* _Nullable* _Nullable)error; -- (BOOL)write:(NSData* _Nullable)p0 n:(long* _Nullable)n error:(NSError* _Nullable* _Nullable)error; -@end - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/Current/Headers/Universe.objc.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/Current/Headers/Universe.objc.h deleted file mode 100644 index 698a5f3172..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/Current/Headers/Universe.objc.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2023 The Outline Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// Objective-C API for talking to Go package. -// gobind -lang=objc -// -// File is generated by gobind. Do not edit. - -#ifndef __Universe_H__ -#define __Universe_H__ - -@import Foundation; -#include "ref.h" - -@protocol Universeerror; -@class Universeerror; - -@protocol Universeerror -- (NSString* _Nonnull)error; -@end - -@class Universeerror; - -@interface Universeerror : NSError { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -- (NSString* _Nonnull)error; -@end - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/Current/Headers/ref.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/Current/Headers/ref.h deleted file mode 100644 index b8036a4d85..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/Current/Headers/ref.h +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -#ifndef __GO_REF_HDR__ -#define __GO_REF_HDR__ - -#include - -// GoSeqRef is an object tagged with an integer for passing back and -// forth across the language boundary. A GoSeqRef may represent either -// an instance of a Go object, or an Objective-C object passed to Go. -// The explicit allocation of a GoSeqRef is used to pin a Go object -// when it is passed to Objective-C. The Go seq package maintains a -// reference to the Go object in a map keyed by the refnum along with -// a reference count. When the reference count reaches zero, the Go -// seq package will clear the corresponding entry in the map. -@interface GoSeqRef : NSObject { -} -@property(readonly) int32_t refnum; -@property(strong) id obj; // NULL when representing a Go object. - -// new GoSeqRef object to proxy a Go object. The refnum must be -// provided from Go side. -- (instancetype)initWithRefnum:(int32_t)refnum obj:(id)obj; - -- (int32_t)incNum; - -@end - -@protocol goSeqRefInterface --(GoSeqRef*) _ref; -@end - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/Current/Modules/module.modulemap b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/Current/Modules/module.modulemap deleted file mode 100644 index fad8888773..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/Current/Modules/module.modulemap +++ /dev/null @@ -1,9 +0,0 @@ -framework module "Tun2socks" { - header "ref.h" - header "Tun2socks.objc.h" - header "Shadowsocks.objc.h" - header "Universe.objc.h" - header "Tun2socks.h" - - export * -} \ No newline at end of file diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/Current/Resources/Info.plist b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/Current/Resources/Info.plist deleted file mode 100644 index 0d1a4b8ab9..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/Current/Resources/Info.plist +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/Current/Tun2socks b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/Current/Tun2socks deleted file mode 100644 index db0b1b7cde..0000000000 Binary files a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64/Tun2socks.framework/Versions/Current/Tun2socks and /dev/null differ diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Headers/Shadowsocks.objc.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Headers/Shadowsocks.objc.h deleted file mode 100644 index 9b0c111a16..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Headers/Shadowsocks.objc.h +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Copyright 2023 The Outline Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// Objective-C API for talking to github.com/Jigsaw-Code/outline-go-tun2socks/outline/shadowsocks Go package. -// gobind -lang=objc github.com/Jigsaw-Code/outline-go-tun2socks/outline/shadowsocks -// -// File is generated by gobind. Do not edit. - -#ifndef __Shadowsocks_H__ -#define __Shadowsocks_H__ - -@import Foundation; -#include "ref.h" -#include "Universe.objc.h" - - -@class ShadowsocksClient; -@class ShadowsocksConfig; - -/** - * Client provides a transparent container for [client.Client] that -is exportable (as an opaque object) via gobind. - */ -@interface ShadowsocksClient : NSObject { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -/** - * NewClient provides a gobind-compatible wrapper for [client.NewClient]. - */ -- (nullable instancetype)init:(ShadowsocksConfig* _Nullable)config; -// skipped field Client.Client with unsupported type: github.com/Jigsaw-Code/outline-ss-server/client.Client - -// skipped method Client.DialTCP with unsupported parameter or return types - -// skipped method Client.ListenUDP with unsupported parameter or return types - -// skipped method Client.SetTCPSaltGenerator with unsupported parameter or return types - -@end - -/** - * Config represents a shadowsocks server configuration. -Exported via gobind. - */ -@interface ShadowsocksConfig : NSObject { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -- (nonnull instancetype)init; -@property (nonatomic) NSString* _Nonnull host; -@property (nonatomic) long port; -@property (nonatomic) NSString* _Nonnull password; -@property (nonatomic) NSString* _Nonnull cipherName; -@property (nonatomic) NSData* _Nullable prefix; -@end - -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksAuthenticationFailure; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksConfigureSystemProxyFailure; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksIllegalConfiguration; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksNoAdminPermissions; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksNoError; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksNoVPNPermissions; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksShadowsocksStartFailure; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksSystemMisconfigured; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksUDPConnectivity; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksUnexpected; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksUnreachable; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksUnsupportedRoutingTable; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksVpnStartFailure; - -/** - * CheckConnectivity determines whether the Shadowsocks proxy can relay TCP and UDP traffic under -the current network. Parallelizes the execution of TCP and UDP checks, selects the appropriate -error code to return accounting for transient network failures. -Returns an error if an unexpected error ocurrs. - */ -FOUNDATION_EXPORT BOOL ShadowsocksCheckConnectivity(ShadowsocksClient* _Nullable client, long* _Nullable ret0_, NSError* _Nullable* _Nullable error); - -/** - * CheckServerReachable determines whether the server at `host:port` is reachable over TCP. -Returns an error if the server is unreachable. - */ -FOUNDATION_EXPORT BOOL ShadowsocksCheckServerReachable(NSString* _Nullable host, long port, NSError* _Nullable* _Nullable error); - -/** - * NewClient provides a gobind-compatible wrapper for [client.NewClient]. - */ -FOUNDATION_EXPORT ShadowsocksClient* _Nullable ShadowsocksNewClient(ShadowsocksConfig* _Nullable config, NSError* _Nullable* _Nullable error); - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Headers/Tun2socks.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Headers/Tun2socks.h deleted file mode 100644 index 706da85c44..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Headers/Tun2socks.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright 2023 The Outline Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -// Objective-C API for talking to the following Go packages -// -// github.com/Jigsaw-Code/outline-go-tun2socks/outline/apple -// github.com/Jigsaw-Code/outline-go-tun2socks/outline/shadowsocks -// -// File is generated by gomobile bind. Do not edit. -#ifndef __Tun2socks_FRAMEWORK_H__ -#define __Tun2socks_FRAMEWORK_H__ - -#include "Tun2socks.objc.h" -#include "Shadowsocks.objc.h" -#include "Universe.objc.h" - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Headers/Tun2socks.objc.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Headers/Tun2socks.objc.h deleted file mode 100644 index 4e962fac9a..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Headers/Tun2socks.objc.h +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2023 The Outline Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// Objective-C API for talking to github.com/Jigsaw-Code/outline-go-tun2socks/outline/apple Go package. -// gobind -lang=objc github.com/Jigsaw-Code/outline-go-tun2socks/outline/apple -// -// File is generated by gobind. Do not edit. - -#ifndef __Tun2socks_H__ -#define __Tun2socks_H__ - -@import Foundation; -#include "ref.h" -#include "Universe.objc.h" - -#include "Shadowsocks.objc.h" - -@protocol Tun2socksOutlineTunnel; -@class Tun2socksOutlineTunnel; -@protocol Tun2socksTunWriter; -@class Tun2socksTunWriter; - -@protocol Tun2socksOutlineTunnel -- (void)disconnect; -- (BOOL)isConnected; -- (BOOL)updateUDPSupport; -- (BOOL)write:(NSData* _Nullable)data ret0_:(long* _Nullable)ret0_ error:(NSError* _Nullable* _Nullable)error; -@end - -@protocol Tun2socksTunWriter -- (BOOL)close:(NSError* _Nullable* _Nullable)error; -- (BOOL)write:(NSData* _Nullable)p0 n:(long* _Nullable)n error:(NSError* _Nullable* _Nullable)error; -@end - -/** - * ConnectShadowsocksTunnel reads packets from a TUN device and routes it to a Shadowsocks proxy server. -Returns an OutlineTunnel instance that should be used to input packets to the tunnel. - -`tunWriter` is used to output packets to the TUN (VPN). -`client` is the Shadowsocks client (created by [shadowsocks.NewClient]). -`isUDPEnabled` indicates whether the tunnel and/or network enable UDP proxying. - -Sets an error if the tunnel fails to connect. - */ -FOUNDATION_EXPORT id _Nullable Tun2socksConnectShadowsocksTunnel(id _Nullable tunWriter, ShadowsocksClient* _Nullable client, BOOL isUDPEnabled, NSError* _Nullable* _Nullable error); - -@class Tun2socksOutlineTunnel; - -@class Tun2socksTunWriter; - -/** - * OutlineTunnel embeds the tun2socks.Tunnel interface so it gets exported by gobind. - */ -@interface Tun2socksOutlineTunnel : NSObject { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -- (void)disconnect; -- (BOOL)isConnected; -- (BOOL)updateUDPSupport; -- (BOOL)write:(NSData* _Nullable)data ret0_:(long* _Nullable)ret0_ error:(NSError* _Nullable* _Nullable)error; -@end - -/** - * TunWriter is an interface that allows for outputting packets to the TUN (VPN). - */ -@interface Tun2socksTunWriter : NSObject { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -- (BOOL)close:(NSError* _Nullable* _Nullable)error; -- (BOOL)write:(NSData* _Nullable)p0 n:(long* _Nullable)n error:(NSError* _Nullable* _Nullable)error; -@end - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Headers/Universe.objc.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Headers/Universe.objc.h deleted file mode 100644 index 698a5f3172..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Headers/Universe.objc.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2023 The Outline Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// Objective-C API for talking to Go package. -// gobind -lang=objc -// -// File is generated by gobind. Do not edit. - -#ifndef __Universe_H__ -#define __Universe_H__ - -@import Foundation; -#include "ref.h" - -@protocol Universeerror; -@class Universeerror; - -@protocol Universeerror -- (NSString* _Nonnull)error; -@end - -@class Universeerror; - -@interface Universeerror : NSError { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -- (NSString* _Nonnull)error; -@end - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Headers/ref.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Headers/ref.h deleted file mode 100644 index b8036a4d85..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Headers/ref.h +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -#ifndef __GO_REF_HDR__ -#define __GO_REF_HDR__ - -#include - -// GoSeqRef is an object tagged with an integer for passing back and -// forth across the language boundary. A GoSeqRef may represent either -// an instance of a Go object, or an Objective-C object passed to Go. -// The explicit allocation of a GoSeqRef is used to pin a Go object -// when it is passed to Objective-C. The Go seq package maintains a -// reference to the Go object in a map keyed by the refnum along with -// a reference count. When the reference count reaches zero, the Go -// seq package will clear the corresponding entry in the map. -@interface GoSeqRef : NSObject { -} -@property(readonly) int32_t refnum; -@property(strong) id obj; // NULL when representing a Go object. - -// new GoSeqRef object to proxy a Go object. The refnum must be -// provided from Go side. -- (instancetype)initWithRefnum:(int32_t)refnum obj:(id)obj; - -- (int32_t)incNum; - -@end - -@protocol goSeqRefInterface --(GoSeqRef*) _ref; -@end - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Modules/module.modulemap b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Modules/module.modulemap deleted file mode 100644 index fad8888773..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Modules/module.modulemap +++ /dev/null @@ -1,9 +0,0 @@ -framework module "Tun2socks" { - header "ref.h" - header "Tun2socks.objc.h" - header "Shadowsocks.objc.h" - header "Universe.objc.h" - header "Tun2socks.h" - - export * -} \ No newline at end of file diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Resources/Info.plist b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Resources/Info.plist deleted file mode 100644 index 0d1a4b8ab9..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Resources/Info.plist +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Tun2socks b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Tun2socks deleted file mode 100644 index dec766a02c..0000000000 Binary files a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Tun2socks and /dev/null differ diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/A/Headers/Shadowsocks.objc.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/A/Headers/Shadowsocks.objc.h deleted file mode 100644 index 9b0c111a16..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/A/Headers/Shadowsocks.objc.h +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Copyright 2023 The Outline Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// Objective-C API for talking to github.com/Jigsaw-Code/outline-go-tun2socks/outline/shadowsocks Go package. -// gobind -lang=objc github.com/Jigsaw-Code/outline-go-tun2socks/outline/shadowsocks -// -// File is generated by gobind. Do not edit. - -#ifndef __Shadowsocks_H__ -#define __Shadowsocks_H__ - -@import Foundation; -#include "ref.h" -#include "Universe.objc.h" - - -@class ShadowsocksClient; -@class ShadowsocksConfig; - -/** - * Client provides a transparent container for [client.Client] that -is exportable (as an opaque object) via gobind. - */ -@interface ShadowsocksClient : NSObject { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -/** - * NewClient provides a gobind-compatible wrapper for [client.NewClient]. - */ -- (nullable instancetype)init:(ShadowsocksConfig* _Nullable)config; -// skipped field Client.Client with unsupported type: github.com/Jigsaw-Code/outline-ss-server/client.Client - -// skipped method Client.DialTCP with unsupported parameter or return types - -// skipped method Client.ListenUDP with unsupported parameter or return types - -// skipped method Client.SetTCPSaltGenerator with unsupported parameter or return types - -@end - -/** - * Config represents a shadowsocks server configuration. -Exported via gobind. - */ -@interface ShadowsocksConfig : NSObject { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -- (nonnull instancetype)init; -@property (nonatomic) NSString* _Nonnull host; -@property (nonatomic) long port; -@property (nonatomic) NSString* _Nonnull password; -@property (nonatomic) NSString* _Nonnull cipherName; -@property (nonatomic) NSData* _Nullable prefix; -@end - -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksAuthenticationFailure; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksConfigureSystemProxyFailure; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksIllegalConfiguration; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksNoAdminPermissions; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksNoError; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksNoVPNPermissions; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksShadowsocksStartFailure; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksSystemMisconfigured; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksUDPConnectivity; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksUnexpected; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksUnreachable; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksUnsupportedRoutingTable; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksVpnStartFailure; - -/** - * CheckConnectivity determines whether the Shadowsocks proxy can relay TCP and UDP traffic under -the current network. Parallelizes the execution of TCP and UDP checks, selects the appropriate -error code to return accounting for transient network failures. -Returns an error if an unexpected error ocurrs. - */ -FOUNDATION_EXPORT BOOL ShadowsocksCheckConnectivity(ShadowsocksClient* _Nullable client, long* _Nullable ret0_, NSError* _Nullable* _Nullable error); - -/** - * CheckServerReachable determines whether the server at `host:port` is reachable over TCP. -Returns an error if the server is unreachable. - */ -FOUNDATION_EXPORT BOOL ShadowsocksCheckServerReachable(NSString* _Nullable host, long port, NSError* _Nullable* _Nullable error); - -/** - * NewClient provides a gobind-compatible wrapper for [client.NewClient]. - */ -FOUNDATION_EXPORT ShadowsocksClient* _Nullable ShadowsocksNewClient(ShadowsocksConfig* _Nullable config, NSError* _Nullable* _Nullable error); - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/A/Headers/Tun2socks.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/A/Headers/Tun2socks.h deleted file mode 100644 index 706da85c44..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/A/Headers/Tun2socks.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright 2023 The Outline Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -// Objective-C API for talking to the following Go packages -// -// github.com/Jigsaw-Code/outline-go-tun2socks/outline/apple -// github.com/Jigsaw-Code/outline-go-tun2socks/outline/shadowsocks -// -// File is generated by gomobile bind. Do not edit. -#ifndef __Tun2socks_FRAMEWORK_H__ -#define __Tun2socks_FRAMEWORK_H__ - -#include "Tun2socks.objc.h" -#include "Shadowsocks.objc.h" -#include "Universe.objc.h" - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/A/Headers/Tun2socks.objc.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/A/Headers/Tun2socks.objc.h deleted file mode 100644 index 4e962fac9a..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/A/Headers/Tun2socks.objc.h +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2023 The Outline Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// Objective-C API for talking to github.com/Jigsaw-Code/outline-go-tun2socks/outline/apple Go package. -// gobind -lang=objc github.com/Jigsaw-Code/outline-go-tun2socks/outline/apple -// -// File is generated by gobind. Do not edit. - -#ifndef __Tun2socks_H__ -#define __Tun2socks_H__ - -@import Foundation; -#include "ref.h" -#include "Universe.objc.h" - -#include "Shadowsocks.objc.h" - -@protocol Tun2socksOutlineTunnel; -@class Tun2socksOutlineTunnel; -@protocol Tun2socksTunWriter; -@class Tun2socksTunWriter; - -@protocol Tun2socksOutlineTunnel -- (void)disconnect; -- (BOOL)isConnected; -- (BOOL)updateUDPSupport; -- (BOOL)write:(NSData* _Nullable)data ret0_:(long* _Nullable)ret0_ error:(NSError* _Nullable* _Nullable)error; -@end - -@protocol Tun2socksTunWriter -- (BOOL)close:(NSError* _Nullable* _Nullable)error; -- (BOOL)write:(NSData* _Nullable)p0 n:(long* _Nullable)n error:(NSError* _Nullable* _Nullable)error; -@end - -/** - * ConnectShadowsocksTunnel reads packets from a TUN device and routes it to a Shadowsocks proxy server. -Returns an OutlineTunnel instance that should be used to input packets to the tunnel. - -`tunWriter` is used to output packets to the TUN (VPN). -`client` is the Shadowsocks client (created by [shadowsocks.NewClient]). -`isUDPEnabled` indicates whether the tunnel and/or network enable UDP proxying. - -Sets an error if the tunnel fails to connect. - */ -FOUNDATION_EXPORT id _Nullable Tun2socksConnectShadowsocksTunnel(id _Nullable tunWriter, ShadowsocksClient* _Nullable client, BOOL isUDPEnabled, NSError* _Nullable* _Nullable error); - -@class Tun2socksOutlineTunnel; - -@class Tun2socksTunWriter; - -/** - * OutlineTunnel embeds the tun2socks.Tunnel interface so it gets exported by gobind. - */ -@interface Tun2socksOutlineTunnel : NSObject { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -- (void)disconnect; -- (BOOL)isConnected; -- (BOOL)updateUDPSupport; -- (BOOL)write:(NSData* _Nullable)data ret0_:(long* _Nullable)ret0_ error:(NSError* _Nullable* _Nullable)error; -@end - -/** - * TunWriter is an interface that allows for outputting packets to the TUN (VPN). - */ -@interface Tun2socksTunWriter : NSObject { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -- (BOOL)close:(NSError* _Nullable* _Nullable)error; -- (BOOL)write:(NSData* _Nullable)p0 n:(long* _Nullable)n error:(NSError* _Nullable* _Nullable)error; -@end - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/A/Headers/Universe.objc.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/A/Headers/Universe.objc.h deleted file mode 100644 index 698a5f3172..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/A/Headers/Universe.objc.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2023 The Outline Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// Objective-C API for talking to Go package. -// gobind -lang=objc -// -// File is generated by gobind. Do not edit. - -#ifndef __Universe_H__ -#define __Universe_H__ - -@import Foundation; -#include "ref.h" - -@protocol Universeerror; -@class Universeerror; - -@protocol Universeerror -- (NSString* _Nonnull)error; -@end - -@class Universeerror; - -@interface Universeerror : NSError { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -- (NSString* _Nonnull)error; -@end - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/A/Headers/ref.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/A/Headers/ref.h deleted file mode 100644 index b8036a4d85..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/A/Headers/ref.h +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -#ifndef __GO_REF_HDR__ -#define __GO_REF_HDR__ - -#include - -// GoSeqRef is an object tagged with an integer for passing back and -// forth across the language boundary. A GoSeqRef may represent either -// an instance of a Go object, or an Objective-C object passed to Go. -// The explicit allocation of a GoSeqRef is used to pin a Go object -// when it is passed to Objective-C. The Go seq package maintains a -// reference to the Go object in a map keyed by the refnum along with -// a reference count. When the reference count reaches zero, the Go -// seq package will clear the corresponding entry in the map. -@interface GoSeqRef : NSObject { -} -@property(readonly) int32_t refnum; -@property(strong) id obj; // NULL when representing a Go object. - -// new GoSeqRef object to proxy a Go object. The refnum must be -// provided from Go side. -- (instancetype)initWithRefnum:(int32_t)refnum obj:(id)obj; - -- (int32_t)incNum; - -@end - -@protocol goSeqRefInterface --(GoSeqRef*) _ref; -@end - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/A/Modules/module.modulemap b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/A/Modules/module.modulemap deleted file mode 100644 index fad8888773..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/A/Modules/module.modulemap +++ /dev/null @@ -1,9 +0,0 @@ -framework module "Tun2socks" { - header "ref.h" - header "Tun2socks.objc.h" - header "Shadowsocks.objc.h" - header "Universe.objc.h" - header "Tun2socks.h" - - export * -} \ No newline at end of file diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/A/Resources/Info.plist b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/A/Resources/Info.plist deleted file mode 100644 index 0d1a4b8ab9..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/A/Resources/Info.plist +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/A/Tun2socks b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/A/Tun2socks deleted file mode 100644 index dec766a02c..0000000000 Binary files a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/A/Tun2socks and /dev/null differ diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/Current/Headers/Shadowsocks.objc.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/Current/Headers/Shadowsocks.objc.h deleted file mode 100644 index 9b0c111a16..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/Current/Headers/Shadowsocks.objc.h +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Copyright 2023 The Outline Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// Objective-C API for talking to github.com/Jigsaw-Code/outline-go-tun2socks/outline/shadowsocks Go package. -// gobind -lang=objc github.com/Jigsaw-Code/outline-go-tun2socks/outline/shadowsocks -// -// File is generated by gobind. Do not edit. - -#ifndef __Shadowsocks_H__ -#define __Shadowsocks_H__ - -@import Foundation; -#include "ref.h" -#include "Universe.objc.h" - - -@class ShadowsocksClient; -@class ShadowsocksConfig; - -/** - * Client provides a transparent container for [client.Client] that -is exportable (as an opaque object) via gobind. - */ -@interface ShadowsocksClient : NSObject { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -/** - * NewClient provides a gobind-compatible wrapper for [client.NewClient]. - */ -- (nullable instancetype)init:(ShadowsocksConfig* _Nullable)config; -// skipped field Client.Client with unsupported type: github.com/Jigsaw-Code/outline-ss-server/client.Client - -// skipped method Client.DialTCP with unsupported parameter or return types - -// skipped method Client.ListenUDP with unsupported parameter or return types - -// skipped method Client.SetTCPSaltGenerator with unsupported parameter or return types - -@end - -/** - * Config represents a shadowsocks server configuration. -Exported via gobind. - */ -@interface ShadowsocksConfig : NSObject { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -- (nonnull instancetype)init; -@property (nonatomic) NSString* _Nonnull host; -@property (nonatomic) long port; -@property (nonatomic) NSString* _Nonnull password; -@property (nonatomic) NSString* _Nonnull cipherName; -@property (nonatomic) NSData* _Nullable prefix; -@end - -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksAuthenticationFailure; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksConfigureSystemProxyFailure; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksIllegalConfiguration; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksNoAdminPermissions; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksNoError; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksNoVPNPermissions; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksShadowsocksStartFailure; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksSystemMisconfigured; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksUDPConnectivity; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksUnexpected; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksUnreachable; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksUnsupportedRoutingTable; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksVpnStartFailure; - -/** - * CheckConnectivity determines whether the Shadowsocks proxy can relay TCP and UDP traffic under -the current network. Parallelizes the execution of TCP and UDP checks, selects the appropriate -error code to return accounting for transient network failures. -Returns an error if an unexpected error ocurrs. - */ -FOUNDATION_EXPORT BOOL ShadowsocksCheckConnectivity(ShadowsocksClient* _Nullable client, long* _Nullable ret0_, NSError* _Nullable* _Nullable error); - -/** - * CheckServerReachable determines whether the server at `host:port` is reachable over TCP. -Returns an error if the server is unreachable. - */ -FOUNDATION_EXPORT BOOL ShadowsocksCheckServerReachable(NSString* _Nullable host, long port, NSError* _Nullable* _Nullable error); - -/** - * NewClient provides a gobind-compatible wrapper for [client.NewClient]. - */ -FOUNDATION_EXPORT ShadowsocksClient* _Nullable ShadowsocksNewClient(ShadowsocksConfig* _Nullable config, NSError* _Nullable* _Nullable error); - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/Current/Headers/Tun2socks.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/Current/Headers/Tun2socks.h deleted file mode 100644 index 706da85c44..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/Current/Headers/Tun2socks.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright 2023 The Outline Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -// Objective-C API for talking to the following Go packages -// -// github.com/Jigsaw-Code/outline-go-tun2socks/outline/apple -// github.com/Jigsaw-Code/outline-go-tun2socks/outline/shadowsocks -// -// File is generated by gomobile bind. Do not edit. -#ifndef __Tun2socks_FRAMEWORK_H__ -#define __Tun2socks_FRAMEWORK_H__ - -#include "Tun2socks.objc.h" -#include "Shadowsocks.objc.h" -#include "Universe.objc.h" - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/Current/Headers/Tun2socks.objc.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/Current/Headers/Tun2socks.objc.h deleted file mode 100644 index 4e962fac9a..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/Current/Headers/Tun2socks.objc.h +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2023 The Outline Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// Objective-C API for talking to github.com/Jigsaw-Code/outline-go-tun2socks/outline/apple Go package. -// gobind -lang=objc github.com/Jigsaw-Code/outline-go-tun2socks/outline/apple -// -// File is generated by gobind. Do not edit. - -#ifndef __Tun2socks_H__ -#define __Tun2socks_H__ - -@import Foundation; -#include "ref.h" -#include "Universe.objc.h" - -#include "Shadowsocks.objc.h" - -@protocol Tun2socksOutlineTunnel; -@class Tun2socksOutlineTunnel; -@protocol Tun2socksTunWriter; -@class Tun2socksTunWriter; - -@protocol Tun2socksOutlineTunnel -- (void)disconnect; -- (BOOL)isConnected; -- (BOOL)updateUDPSupport; -- (BOOL)write:(NSData* _Nullable)data ret0_:(long* _Nullable)ret0_ error:(NSError* _Nullable* _Nullable)error; -@end - -@protocol Tun2socksTunWriter -- (BOOL)close:(NSError* _Nullable* _Nullable)error; -- (BOOL)write:(NSData* _Nullable)p0 n:(long* _Nullable)n error:(NSError* _Nullable* _Nullable)error; -@end - -/** - * ConnectShadowsocksTunnel reads packets from a TUN device and routes it to a Shadowsocks proxy server. -Returns an OutlineTunnel instance that should be used to input packets to the tunnel. - -`tunWriter` is used to output packets to the TUN (VPN). -`client` is the Shadowsocks client (created by [shadowsocks.NewClient]). -`isUDPEnabled` indicates whether the tunnel and/or network enable UDP proxying. - -Sets an error if the tunnel fails to connect. - */ -FOUNDATION_EXPORT id _Nullable Tun2socksConnectShadowsocksTunnel(id _Nullable tunWriter, ShadowsocksClient* _Nullable client, BOOL isUDPEnabled, NSError* _Nullable* _Nullable error); - -@class Tun2socksOutlineTunnel; - -@class Tun2socksTunWriter; - -/** - * OutlineTunnel embeds the tun2socks.Tunnel interface so it gets exported by gobind. - */ -@interface Tun2socksOutlineTunnel : NSObject { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -- (void)disconnect; -- (BOOL)isConnected; -- (BOOL)updateUDPSupport; -- (BOOL)write:(NSData* _Nullable)data ret0_:(long* _Nullable)ret0_ error:(NSError* _Nullable* _Nullable)error; -@end - -/** - * TunWriter is an interface that allows for outputting packets to the TUN (VPN). - */ -@interface Tun2socksTunWriter : NSObject { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -- (BOOL)close:(NSError* _Nullable* _Nullable)error; -- (BOOL)write:(NSData* _Nullable)p0 n:(long* _Nullable)n error:(NSError* _Nullable* _Nullable)error; -@end - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/Current/Headers/Universe.objc.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/Current/Headers/Universe.objc.h deleted file mode 100644 index 698a5f3172..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/Current/Headers/Universe.objc.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2023 The Outline Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// Objective-C API for talking to Go package. -// gobind -lang=objc -// -// File is generated by gobind. Do not edit. - -#ifndef __Universe_H__ -#define __Universe_H__ - -@import Foundation; -#include "ref.h" - -@protocol Universeerror; -@class Universeerror; - -@protocol Universeerror -- (NSString* _Nonnull)error; -@end - -@class Universeerror; - -@interface Universeerror : NSError { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -- (NSString* _Nonnull)error; -@end - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/Current/Headers/ref.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/Current/Headers/ref.h deleted file mode 100644 index b8036a4d85..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/Current/Headers/ref.h +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -#ifndef __GO_REF_HDR__ -#define __GO_REF_HDR__ - -#include - -// GoSeqRef is an object tagged with an integer for passing back and -// forth across the language boundary. A GoSeqRef may represent either -// an instance of a Go object, or an Objective-C object passed to Go. -// The explicit allocation of a GoSeqRef is used to pin a Go object -// when it is passed to Objective-C. The Go seq package maintains a -// reference to the Go object in a map keyed by the refnum along with -// a reference count. When the reference count reaches zero, the Go -// seq package will clear the corresponding entry in the map. -@interface GoSeqRef : NSObject { -} -@property(readonly) int32_t refnum; -@property(strong) id obj; // NULL when representing a Go object. - -// new GoSeqRef object to proxy a Go object. The refnum must be -// provided from Go side. -- (instancetype)initWithRefnum:(int32_t)refnum obj:(id)obj; - -- (int32_t)incNum; - -@end - -@protocol goSeqRefInterface --(GoSeqRef*) _ref; -@end - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/Current/Modules/module.modulemap b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/Current/Modules/module.modulemap deleted file mode 100644 index fad8888773..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/Current/Modules/module.modulemap +++ /dev/null @@ -1,9 +0,0 @@ -framework module "Tun2socks" { - header "ref.h" - header "Tun2socks.objc.h" - header "Shadowsocks.objc.h" - header "Universe.objc.h" - header "Tun2socks.h" - - export * -} \ No newline at end of file diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/Current/Resources/Info.plist b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/Current/Resources/Info.plist deleted file mode 100644 index 0d1a4b8ab9..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/Current/Resources/Info.plist +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/Current/Tun2socks b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/Current/Tun2socks deleted file mode 100644 index dec766a02c..0000000000 Binary files a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-maccatalyst/Tun2socks.framework/Versions/Current/Tun2socks and /dev/null differ diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Headers/Shadowsocks.objc.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Headers/Shadowsocks.objc.h deleted file mode 100644 index 9b0c111a16..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Headers/Shadowsocks.objc.h +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Copyright 2023 The Outline Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// Objective-C API for talking to github.com/Jigsaw-Code/outline-go-tun2socks/outline/shadowsocks Go package. -// gobind -lang=objc github.com/Jigsaw-Code/outline-go-tun2socks/outline/shadowsocks -// -// File is generated by gobind. Do not edit. - -#ifndef __Shadowsocks_H__ -#define __Shadowsocks_H__ - -@import Foundation; -#include "ref.h" -#include "Universe.objc.h" - - -@class ShadowsocksClient; -@class ShadowsocksConfig; - -/** - * Client provides a transparent container for [client.Client] that -is exportable (as an opaque object) via gobind. - */ -@interface ShadowsocksClient : NSObject { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -/** - * NewClient provides a gobind-compatible wrapper for [client.NewClient]. - */ -- (nullable instancetype)init:(ShadowsocksConfig* _Nullable)config; -// skipped field Client.Client with unsupported type: github.com/Jigsaw-Code/outline-ss-server/client.Client - -// skipped method Client.DialTCP with unsupported parameter or return types - -// skipped method Client.ListenUDP with unsupported parameter or return types - -// skipped method Client.SetTCPSaltGenerator with unsupported parameter or return types - -@end - -/** - * Config represents a shadowsocks server configuration. -Exported via gobind. - */ -@interface ShadowsocksConfig : NSObject { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -- (nonnull instancetype)init; -@property (nonatomic) NSString* _Nonnull host; -@property (nonatomic) long port; -@property (nonatomic) NSString* _Nonnull password; -@property (nonatomic) NSString* _Nonnull cipherName; -@property (nonatomic) NSData* _Nullable prefix; -@end - -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksAuthenticationFailure; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksConfigureSystemProxyFailure; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksIllegalConfiguration; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksNoAdminPermissions; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksNoError; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksNoVPNPermissions; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksShadowsocksStartFailure; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksSystemMisconfigured; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksUDPConnectivity; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksUnexpected; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksUnreachable; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksUnsupportedRoutingTable; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksVpnStartFailure; - -/** - * CheckConnectivity determines whether the Shadowsocks proxy can relay TCP and UDP traffic under -the current network. Parallelizes the execution of TCP and UDP checks, selects the appropriate -error code to return accounting for transient network failures. -Returns an error if an unexpected error ocurrs. - */ -FOUNDATION_EXPORT BOOL ShadowsocksCheckConnectivity(ShadowsocksClient* _Nullable client, long* _Nullable ret0_, NSError* _Nullable* _Nullable error); - -/** - * CheckServerReachable determines whether the server at `host:port` is reachable over TCP. -Returns an error if the server is unreachable. - */ -FOUNDATION_EXPORT BOOL ShadowsocksCheckServerReachable(NSString* _Nullable host, long port, NSError* _Nullable* _Nullable error); - -/** - * NewClient provides a gobind-compatible wrapper for [client.NewClient]. - */ -FOUNDATION_EXPORT ShadowsocksClient* _Nullable ShadowsocksNewClient(ShadowsocksConfig* _Nullable config, NSError* _Nullable* _Nullable error); - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Headers/Tun2socks.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Headers/Tun2socks.h deleted file mode 100644 index 706da85c44..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Headers/Tun2socks.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright 2023 The Outline Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -// Objective-C API for talking to the following Go packages -// -// github.com/Jigsaw-Code/outline-go-tun2socks/outline/apple -// github.com/Jigsaw-Code/outline-go-tun2socks/outline/shadowsocks -// -// File is generated by gomobile bind. Do not edit. -#ifndef __Tun2socks_FRAMEWORK_H__ -#define __Tun2socks_FRAMEWORK_H__ - -#include "Tun2socks.objc.h" -#include "Shadowsocks.objc.h" -#include "Universe.objc.h" - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Headers/Tun2socks.objc.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Headers/Tun2socks.objc.h deleted file mode 100644 index 4e962fac9a..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Headers/Tun2socks.objc.h +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2023 The Outline Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// Objective-C API for talking to github.com/Jigsaw-Code/outline-go-tun2socks/outline/apple Go package. -// gobind -lang=objc github.com/Jigsaw-Code/outline-go-tun2socks/outline/apple -// -// File is generated by gobind. Do not edit. - -#ifndef __Tun2socks_H__ -#define __Tun2socks_H__ - -@import Foundation; -#include "ref.h" -#include "Universe.objc.h" - -#include "Shadowsocks.objc.h" - -@protocol Tun2socksOutlineTunnel; -@class Tun2socksOutlineTunnel; -@protocol Tun2socksTunWriter; -@class Tun2socksTunWriter; - -@protocol Tun2socksOutlineTunnel -- (void)disconnect; -- (BOOL)isConnected; -- (BOOL)updateUDPSupport; -- (BOOL)write:(NSData* _Nullable)data ret0_:(long* _Nullable)ret0_ error:(NSError* _Nullable* _Nullable)error; -@end - -@protocol Tun2socksTunWriter -- (BOOL)close:(NSError* _Nullable* _Nullable)error; -- (BOOL)write:(NSData* _Nullable)p0 n:(long* _Nullable)n error:(NSError* _Nullable* _Nullable)error; -@end - -/** - * ConnectShadowsocksTunnel reads packets from a TUN device and routes it to a Shadowsocks proxy server. -Returns an OutlineTunnel instance that should be used to input packets to the tunnel. - -`tunWriter` is used to output packets to the TUN (VPN). -`client` is the Shadowsocks client (created by [shadowsocks.NewClient]). -`isUDPEnabled` indicates whether the tunnel and/or network enable UDP proxying. - -Sets an error if the tunnel fails to connect. - */ -FOUNDATION_EXPORT id _Nullable Tun2socksConnectShadowsocksTunnel(id _Nullable tunWriter, ShadowsocksClient* _Nullable client, BOOL isUDPEnabled, NSError* _Nullable* _Nullable error); - -@class Tun2socksOutlineTunnel; - -@class Tun2socksTunWriter; - -/** - * OutlineTunnel embeds the tun2socks.Tunnel interface so it gets exported by gobind. - */ -@interface Tun2socksOutlineTunnel : NSObject { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -- (void)disconnect; -- (BOOL)isConnected; -- (BOOL)updateUDPSupport; -- (BOOL)write:(NSData* _Nullable)data ret0_:(long* _Nullable)ret0_ error:(NSError* _Nullable* _Nullable)error; -@end - -/** - * TunWriter is an interface that allows for outputting packets to the TUN (VPN). - */ -@interface Tun2socksTunWriter : NSObject { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -- (BOOL)close:(NSError* _Nullable* _Nullable)error; -- (BOOL)write:(NSData* _Nullable)p0 n:(long* _Nullable)n error:(NSError* _Nullable* _Nullable)error; -@end - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Headers/Universe.objc.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Headers/Universe.objc.h deleted file mode 100644 index 698a5f3172..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Headers/Universe.objc.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2023 The Outline Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// Objective-C API for talking to Go package. -// gobind -lang=objc -// -// File is generated by gobind. Do not edit. - -#ifndef __Universe_H__ -#define __Universe_H__ - -@import Foundation; -#include "ref.h" - -@protocol Universeerror; -@class Universeerror; - -@protocol Universeerror -- (NSString* _Nonnull)error; -@end - -@class Universeerror; - -@interface Universeerror : NSError { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -- (NSString* _Nonnull)error; -@end - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Headers/ref.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Headers/ref.h deleted file mode 100644 index b8036a4d85..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Headers/ref.h +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -#ifndef __GO_REF_HDR__ -#define __GO_REF_HDR__ - -#include - -// GoSeqRef is an object tagged with an integer for passing back and -// forth across the language boundary. A GoSeqRef may represent either -// an instance of a Go object, or an Objective-C object passed to Go. -// The explicit allocation of a GoSeqRef is used to pin a Go object -// when it is passed to Objective-C. The Go seq package maintains a -// reference to the Go object in a map keyed by the refnum along with -// a reference count. When the reference count reaches zero, the Go -// seq package will clear the corresponding entry in the map. -@interface GoSeqRef : NSObject { -} -@property(readonly) int32_t refnum; -@property(strong) id obj; // NULL when representing a Go object. - -// new GoSeqRef object to proxy a Go object. The refnum must be -// provided from Go side. -- (instancetype)initWithRefnum:(int32_t)refnum obj:(id)obj; - -- (int32_t)incNum; - -@end - -@protocol goSeqRefInterface --(GoSeqRef*) _ref; -@end - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Modules/module.modulemap b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Modules/module.modulemap deleted file mode 100644 index fad8888773..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Modules/module.modulemap +++ /dev/null @@ -1,9 +0,0 @@ -framework module "Tun2socks" { - header "ref.h" - header "Tun2socks.objc.h" - header "Shadowsocks.objc.h" - header "Universe.objc.h" - header "Tun2socks.h" - - export * -} \ No newline at end of file diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Resources/Info.plist b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Resources/Info.plist deleted file mode 100644 index 0d1a4b8ab9..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Resources/Info.plist +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Tun2socks b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Tun2socks deleted file mode 100644 index df1feab3b7..0000000000 Binary files a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Tun2socks and /dev/null differ diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/A/Headers/Shadowsocks.objc.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/A/Headers/Shadowsocks.objc.h deleted file mode 100644 index 9b0c111a16..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/A/Headers/Shadowsocks.objc.h +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Copyright 2023 The Outline Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// Objective-C API for talking to github.com/Jigsaw-Code/outline-go-tun2socks/outline/shadowsocks Go package. -// gobind -lang=objc github.com/Jigsaw-Code/outline-go-tun2socks/outline/shadowsocks -// -// File is generated by gobind. Do not edit. - -#ifndef __Shadowsocks_H__ -#define __Shadowsocks_H__ - -@import Foundation; -#include "ref.h" -#include "Universe.objc.h" - - -@class ShadowsocksClient; -@class ShadowsocksConfig; - -/** - * Client provides a transparent container for [client.Client] that -is exportable (as an opaque object) via gobind. - */ -@interface ShadowsocksClient : NSObject { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -/** - * NewClient provides a gobind-compatible wrapper for [client.NewClient]. - */ -- (nullable instancetype)init:(ShadowsocksConfig* _Nullable)config; -// skipped field Client.Client with unsupported type: github.com/Jigsaw-Code/outline-ss-server/client.Client - -// skipped method Client.DialTCP with unsupported parameter or return types - -// skipped method Client.ListenUDP with unsupported parameter or return types - -// skipped method Client.SetTCPSaltGenerator with unsupported parameter or return types - -@end - -/** - * Config represents a shadowsocks server configuration. -Exported via gobind. - */ -@interface ShadowsocksConfig : NSObject { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -- (nonnull instancetype)init; -@property (nonatomic) NSString* _Nonnull host; -@property (nonatomic) long port; -@property (nonatomic) NSString* _Nonnull password; -@property (nonatomic) NSString* _Nonnull cipherName; -@property (nonatomic) NSData* _Nullable prefix; -@end - -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksAuthenticationFailure; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksConfigureSystemProxyFailure; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksIllegalConfiguration; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksNoAdminPermissions; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksNoError; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksNoVPNPermissions; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksShadowsocksStartFailure; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksSystemMisconfigured; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksUDPConnectivity; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksUnexpected; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksUnreachable; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksUnsupportedRoutingTable; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksVpnStartFailure; - -/** - * CheckConnectivity determines whether the Shadowsocks proxy can relay TCP and UDP traffic under -the current network. Parallelizes the execution of TCP and UDP checks, selects the appropriate -error code to return accounting for transient network failures. -Returns an error if an unexpected error ocurrs. - */ -FOUNDATION_EXPORT BOOL ShadowsocksCheckConnectivity(ShadowsocksClient* _Nullable client, long* _Nullable ret0_, NSError* _Nullable* _Nullable error); - -/** - * CheckServerReachable determines whether the server at `host:port` is reachable over TCP. -Returns an error if the server is unreachable. - */ -FOUNDATION_EXPORT BOOL ShadowsocksCheckServerReachable(NSString* _Nullable host, long port, NSError* _Nullable* _Nullable error); - -/** - * NewClient provides a gobind-compatible wrapper for [client.NewClient]. - */ -FOUNDATION_EXPORT ShadowsocksClient* _Nullable ShadowsocksNewClient(ShadowsocksConfig* _Nullable config, NSError* _Nullable* _Nullable error); - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/A/Headers/Tun2socks.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/A/Headers/Tun2socks.h deleted file mode 100644 index 706da85c44..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/A/Headers/Tun2socks.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright 2023 The Outline Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -// Objective-C API for talking to the following Go packages -// -// github.com/Jigsaw-Code/outline-go-tun2socks/outline/apple -// github.com/Jigsaw-Code/outline-go-tun2socks/outline/shadowsocks -// -// File is generated by gomobile bind. Do not edit. -#ifndef __Tun2socks_FRAMEWORK_H__ -#define __Tun2socks_FRAMEWORK_H__ - -#include "Tun2socks.objc.h" -#include "Shadowsocks.objc.h" -#include "Universe.objc.h" - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/A/Headers/Tun2socks.objc.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/A/Headers/Tun2socks.objc.h deleted file mode 100644 index 4e962fac9a..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/A/Headers/Tun2socks.objc.h +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2023 The Outline Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// Objective-C API for talking to github.com/Jigsaw-Code/outline-go-tun2socks/outline/apple Go package. -// gobind -lang=objc github.com/Jigsaw-Code/outline-go-tun2socks/outline/apple -// -// File is generated by gobind. Do not edit. - -#ifndef __Tun2socks_H__ -#define __Tun2socks_H__ - -@import Foundation; -#include "ref.h" -#include "Universe.objc.h" - -#include "Shadowsocks.objc.h" - -@protocol Tun2socksOutlineTunnel; -@class Tun2socksOutlineTunnel; -@protocol Tun2socksTunWriter; -@class Tun2socksTunWriter; - -@protocol Tun2socksOutlineTunnel -- (void)disconnect; -- (BOOL)isConnected; -- (BOOL)updateUDPSupport; -- (BOOL)write:(NSData* _Nullable)data ret0_:(long* _Nullable)ret0_ error:(NSError* _Nullable* _Nullable)error; -@end - -@protocol Tun2socksTunWriter -- (BOOL)close:(NSError* _Nullable* _Nullable)error; -- (BOOL)write:(NSData* _Nullable)p0 n:(long* _Nullable)n error:(NSError* _Nullable* _Nullable)error; -@end - -/** - * ConnectShadowsocksTunnel reads packets from a TUN device and routes it to a Shadowsocks proxy server. -Returns an OutlineTunnel instance that should be used to input packets to the tunnel. - -`tunWriter` is used to output packets to the TUN (VPN). -`client` is the Shadowsocks client (created by [shadowsocks.NewClient]). -`isUDPEnabled` indicates whether the tunnel and/or network enable UDP proxying. - -Sets an error if the tunnel fails to connect. - */ -FOUNDATION_EXPORT id _Nullable Tun2socksConnectShadowsocksTunnel(id _Nullable tunWriter, ShadowsocksClient* _Nullable client, BOOL isUDPEnabled, NSError* _Nullable* _Nullable error); - -@class Tun2socksOutlineTunnel; - -@class Tun2socksTunWriter; - -/** - * OutlineTunnel embeds the tun2socks.Tunnel interface so it gets exported by gobind. - */ -@interface Tun2socksOutlineTunnel : NSObject { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -- (void)disconnect; -- (BOOL)isConnected; -- (BOOL)updateUDPSupport; -- (BOOL)write:(NSData* _Nullable)data ret0_:(long* _Nullable)ret0_ error:(NSError* _Nullable* _Nullable)error; -@end - -/** - * TunWriter is an interface that allows for outputting packets to the TUN (VPN). - */ -@interface Tun2socksTunWriter : NSObject { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -- (BOOL)close:(NSError* _Nullable* _Nullable)error; -- (BOOL)write:(NSData* _Nullable)p0 n:(long* _Nullable)n error:(NSError* _Nullable* _Nullable)error; -@end - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/A/Headers/Universe.objc.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/A/Headers/Universe.objc.h deleted file mode 100644 index 698a5f3172..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/A/Headers/Universe.objc.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2023 The Outline Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// Objective-C API for talking to Go package. -// gobind -lang=objc -// -// File is generated by gobind. Do not edit. - -#ifndef __Universe_H__ -#define __Universe_H__ - -@import Foundation; -#include "ref.h" - -@protocol Universeerror; -@class Universeerror; - -@protocol Universeerror -- (NSString* _Nonnull)error; -@end - -@class Universeerror; - -@interface Universeerror : NSError { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -- (NSString* _Nonnull)error; -@end - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/A/Headers/ref.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/A/Headers/ref.h deleted file mode 100644 index b8036a4d85..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/A/Headers/ref.h +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -#ifndef __GO_REF_HDR__ -#define __GO_REF_HDR__ - -#include - -// GoSeqRef is an object tagged with an integer for passing back and -// forth across the language boundary. A GoSeqRef may represent either -// an instance of a Go object, or an Objective-C object passed to Go. -// The explicit allocation of a GoSeqRef is used to pin a Go object -// when it is passed to Objective-C. The Go seq package maintains a -// reference to the Go object in a map keyed by the refnum along with -// a reference count. When the reference count reaches zero, the Go -// seq package will clear the corresponding entry in the map. -@interface GoSeqRef : NSObject { -} -@property(readonly) int32_t refnum; -@property(strong) id obj; // NULL when representing a Go object. - -// new GoSeqRef object to proxy a Go object. The refnum must be -// provided from Go side. -- (instancetype)initWithRefnum:(int32_t)refnum obj:(id)obj; - -- (int32_t)incNum; - -@end - -@protocol goSeqRefInterface --(GoSeqRef*) _ref; -@end - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/A/Modules/module.modulemap b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/A/Modules/module.modulemap deleted file mode 100644 index fad8888773..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/A/Modules/module.modulemap +++ /dev/null @@ -1,9 +0,0 @@ -framework module "Tun2socks" { - header "ref.h" - header "Tun2socks.objc.h" - header "Shadowsocks.objc.h" - header "Universe.objc.h" - header "Tun2socks.h" - - export * -} \ No newline at end of file diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/A/Resources/Info.plist b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/A/Resources/Info.plist deleted file mode 100644 index 0d1a4b8ab9..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/A/Resources/Info.plist +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/A/Tun2socks b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/A/Tun2socks deleted file mode 100644 index df1feab3b7..0000000000 Binary files a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/A/Tun2socks and /dev/null differ diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/Current/Headers/Shadowsocks.objc.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/Current/Headers/Shadowsocks.objc.h deleted file mode 100644 index 9b0c111a16..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/Current/Headers/Shadowsocks.objc.h +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Copyright 2023 The Outline Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// Objective-C API for talking to github.com/Jigsaw-Code/outline-go-tun2socks/outline/shadowsocks Go package. -// gobind -lang=objc github.com/Jigsaw-Code/outline-go-tun2socks/outline/shadowsocks -// -// File is generated by gobind. Do not edit. - -#ifndef __Shadowsocks_H__ -#define __Shadowsocks_H__ - -@import Foundation; -#include "ref.h" -#include "Universe.objc.h" - - -@class ShadowsocksClient; -@class ShadowsocksConfig; - -/** - * Client provides a transparent container for [client.Client] that -is exportable (as an opaque object) via gobind. - */ -@interface ShadowsocksClient : NSObject { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -/** - * NewClient provides a gobind-compatible wrapper for [client.NewClient]. - */ -- (nullable instancetype)init:(ShadowsocksConfig* _Nullable)config; -// skipped field Client.Client with unsupported type: github.com/Jigsaw-Code/outline-ss-server/client.Client - -// skipped method Client.DialTCP with unsupported parameter or return types - -// skipped method Client.ListenUDP with unsupported parameter or return types - -// skipped method Client.SetTCPSaltGenerator with unsupported parameter or return types - -@end - -/** - * Config represents a shadowsocks server configuration. -Exported via gobind. - */ -@interface ShadowsocksConfig : NSObject { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -- (nonnull instancetype)init; -@property (nonatomic) NSString* _Nonnull host; -@property (nonatomic) long port; -@property (nonatomic) NSString* _Nonnull password; -@property (nonatomic) NSString* _Nonnull cipherName; -@property (nonatomic) NSData* _Nullable prefix; -@end - -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksAuthenticationFailure; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksConfigureSystemProxyFailure; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksIllegalConfiguration; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksNoAdminPermissions; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksNoError; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksNoVPNPermissions; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksShadowsocksStartFailure; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksSystemMisconfigured; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksUDPConnectivity; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksUnexpected; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksUnreachable; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksUnsupportedRoutingTable; -/** - * Outline error codes. Must be kept in sync with definitions in outline-client/cordova-plugin-outline/outlinePlugin.js - */ -FOUNDATION_EXPORT const int64_t ShadowsocksVpnStartFailure; - -/** - * CheckConnectivity determines whether the Shadowsocks proxy can relay TCP and UDP traffic under -the current network. Parallelizes the execution of TCP and UDP checks, selects the appropriate -error code to return accounting for transient network failures. -Returns an error if an unexpected error ocurrs. - */ -FOUNDATION_EXPORT BOOL ShadowsocksCheckConnectivity(ShadowsocksClient* _Nullable client, long* _Nullable ret0_, NSError* _Nullable* _Nullable error); - -/** - * CheckServerReachable determines whether the server at `host:port` is reachable over TCP. -Returns an error if the server is unreachable. - */ -FOUNDATION_EXPORT BOOL ShadowsocksCheckServerReachable(NSString* _Nullable host, long port, NSError* _Nullable* _Nullable error); - -/** - * NewClient provides a gobind-compatible wrapper for [client.NewClient]. - */ -FOUNDATION_EXPORT ShadowsocksClient* _Nullable ShadowsocksNewClient(ShadowsocksConfig* _Nullable config, NSError* _Nullable* _Nullable error); - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/Current/Headers/Tun2socks.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/Current/Headers/Tun2socks.h deleted file mode 100644 index 706da85c44..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/Current/Headers/Tun2socks.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright 2023 The Outline Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -// Objective-C API for talking to the following Go packages -// -// github.com/Jigsaw-Code/outline-go-tun2socks/outline/apple -// github.com/Jigsaw-Code/outline-go-tun2socks/outline/shadowsocks -// -// File is generated by gomobile bind. Do not edit. -#ifndef __Tun2socks_FRAMEWORK_H__ -#define __Tun2socks_FRAMEWORK_H__ - -#include "Tun2socks.objc.h" -#include "Shadowsocks.objc.h" -#include "Universe.objc.h" - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/Current/Headers/Tun2socks.objc.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/Current/Headers/Tun2socks.objc.h deleted file mode 100644 index 4e962fac9a..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/Current/Headers/Tun2socks.objc.h +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2023 The Outline Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// Objective-C API for talking to github.com/Jigsaw-Code/outline-go-tun2socks/outline/apple Go package. -// gobind -lang=objc github.com/Jigsaw-Code/outline-go-tun2socks/outline/apple -// -// File is generated by gobind. Do not edit. - -#ifndef __Tun2socks_H__ -#define __Tun2socks_H__ - -@import Foundation; -#include "ref.h" -#include "Universe.objc.h" - -#include "Shadowsocks.objc.h" - -@protocol Tun2socksOutlineTunnel; -@class Tun2socksOutlineTunnel; -@protocol Tun2socksTunWriter; -@class Tun2socksTunWriter; - -@protocol Tun2socksOutlineTunnel -- (void)disconnect; -- (BOOL)isConnected; -- (BOOL)updateUDPSupport; -- (BOOL)write:(NSData* _Nullable)data ret0_:(long* _Nullable)ret0_ error:(NSError* _Nullable* _Nullable)error; -@end - -@protocol Tun2socksTunWriter -- (BOOL)close:(NSError* _Nullable* _Nullable)error; -- (BOOL)write:(NSData* _Nullable)p0 n:(long* _Nullable)n error:(NSError* _Nullable* _Nullable)error; -@end - -/** - * ConnectShadowsocksTunnel reads packets from a TUN device and routes it to a Shadowsocks proxy server. -Returns an OutlineTunnel instance that should be used to input packets to the tunnel. - -`tunWriter` is used to output packets to the TUN (VPN). -`client` is the Shadowsocks client (created by [shadowsocks.NewClient]). -`isUDPEnabled` indicates whether the tunnel and/or network enable UDP proxying. - -Sets an error if the tunnel fails to connect. - */ -FOUNDATION_EXPORT id _Nullable Tun2socksConnectShadowsocksTunnel(id _Nullable tunWriter, ShadowsocksClient* _Nullable client, BOOL isUDPEnabled, NSError* _Nullable* _Nullable error); - -@class Tun2socksOutlineTunnel; - -@class Tun2socksTunWriter; - -/** - * OutlineTunnel embeds the tun2socks.Tunnel interface so it gets exported by gobind. - */ -@interface Tun2socksOutlineTunnel : NSObject { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -- (void)disconnect; -- (BOOL)isConnected; -- (BOOL)updateUDPSupport; -- (BOOL)write:(NSData* _Nullable)data ret0_:(long* _Nullable)ret0_ error:(NSError* _Nullable* _Nullable)error; -@end - -/** - * TunWriter is an interface that allows for outputting packets to the TUN (VPN). - */ -@interface Tun2socksTunWriter : NSObject { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -- (BOOL)close:(NSError* _Nullable* _Nullable)error; -- (BOOL)write:(NSData* _Nullable)p0 n:(long* _Nullable)n error:(NSError* _Nullable* _Nullable)error; -@end - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/Current/Headers/Universe.objc.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/Current/Headers/Universe.objc.h deleted file mode 100644 index 698a5f3172..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/Current/Headers/Universe.objc.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2023 The Outline Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// Objective-C API for talking to Go package. -// gobind -lang=objc -// -// File is generated by gobind. Do not edit. - -#ifndef __Universe_H__ -#define __Universe_H__ - -@import Foundation; -#include "ref.h" - -@protocol Universeerror; -@class Universeerror; - -@protocol Universeerror -- (NSString* _Nonnull)error; -@end - -@class Universeerror; - -@interface Universeerror : NSError { -} -@property(strong, readonly) _Nonnull id _ref; - -- (nonnull instancetype)initWithRef:(_Nonnull id)ref; -- (NSString* _Nonnull)error; -@end - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/Current/Headers/ref.h b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/Current/Headers/ref.h deleted file mode 100644 index b8036a4d85..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/Current/Headers/ref.h +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -#ifndef __GO_REF_HDR__ -#define __GO_REF_HDR__ - -#include - -// GoSeqRef is an object tagged with an integer for passing back and -// forth across the language boundary. A GoSeqRef may represent either -// an instance of a Go object, or an Objective-C object passed to Go. -// The explicit allocation of a GoSeqRef is used to pin a Go object -// when it is passed to Objective-C. The Go seq package maintains a -// reference to the Go object in a map keyed by the refnum along with -// a reference count. When the reference count reaches zero, the Go -// seq package will clear the corresponding entry in the map. -@interface GoSeqRef : NSObject { -} -@property(readonly) int32_t refnum; -@property(strong) id obj; // NULL when representing a Go object. - -// new GoSeqRef object to proxy a Go object. The refnum must be -// provided from Go side. -- (instancetype)initWithRefnum:(int32_t)refnum obj:(id)obj; - -- (int32_t)incNum; - -@end - -@protocol goSeqRefInterface --(GoSeqRef*) _ref; -@end - -#endif diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/Current/Modules/module.modulemap b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/Current/Modules/module.modulemap deleted file mode 100644 index fad8888773..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/Current/Modules/module.modulemap +++ /dev/null @@ -1,9 +0,0 @@ -framework module "Tun2socks" { - header "ref.h" - header "Tun2socks.objc.h" - header "Shadowsocks.objc.h" - header "Universe.objc.h" - header "Tun2socks.h" - - export * -} \ No newline at end of file diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/Current/Resources/Info.plist b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/Current/Resources/Info.plist deleted file mode 100644 index 0d1a4b8ab9..0000000000 --- a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/Current/Resources/Info.plist +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/Current/Tun2socks b/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/Current/Tun2socks deleted file mode 100644 index df1feab3b7..0000000000 Binary files a/src/cordova/apple/OutlineAppleLib/Tun2socks.xcframework/ios-arm64_x86_64-simulator/Tun2socks.framework/Versions/Current/Tun2socks and /dev/null differ