From a9b317ed61cce79b3d0ad455b183589bd2126453 Mon Sep 17 00:00:00 2001 From: hiddify-com <114227601+hiddify-com@users.noreply.github.com> Date: Fri, 31 May 2024 16:38:11 +0200 Subject: [PATCH] add debug and ios --- Makefile | 2 +- .../SingBox/ExtensionPlatformInterface.swift | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 611cc83f..695b5221 100644 --- a/Makefile +++ b/Makefile @@ -143,7 +143,7 @@ gen_translations: #generating missing translations using google translate android-release: android-apk-release android-apk-release: - flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi --target $(TARGET) $(BUILD_ARGS) + flutter build apk --verbose --target-platform android-arm,android-arm64,android-x64 --split-per-abi --target $(TARGET) $(BUILD_ARGS) ls -R build/app/outputs android-aab-release: diff --git a/ios/SingBoxPacketTunnel/SingBox/ExtensionPlatformInterface.swift b/ios/SingBoxPacketTunnel/SingBox/ExtensionPlatformInterface.swift index ff8f68cd..443eb0bc 100644 --- a/ios/SingBoxPacketTunnel/SingBox/ExtensionPlatformInterface.swift +++ b/ios/SingBoxPacketTunnel/SingBox/ExtensionPlatformInterface.swift @@ -166,7 +166,13 @@ public class ExtensionPlatformInterface: NSObject, LibboxPlatformInterfaceProtoc public func underNetworkExtension() -> Bool { true } - + public func includeAllNetworks() -> Bool { + #if !os(tvOS) + return SharedPreferences.includeAllNetworks.getBlocking() + #else + return false + #endif + } public func clearDNSCache() { guard let networkSettings else { return