Add proxy routing and sing-box support

This commit is contained in:
Fabian Freund
2026-05-22 18:16:31 +02:00
parent 51289f1266
commit a5974617aa
262 changed files with 32003 additions and 3962 deletions
@@ -1,9 +1,23 @@
import 'package:flutter_singbox_proxy/flutter_singbox_proxy.dart';
CREATE TABLE setting (
"key" TEXT PRIMARY KEY NOT NULL,
partition_key TEXT,
"value" ANY
) STRICT;
CREATE TABLE proxy_profile (
id TEXT NOT NULL PRIMARY KEY,
name TEXT NOT NULL,
type ENUMNAME(SingboxProxyProfileType) NOT NULL,
config_json TEXT NOT NULL,
dns_override_json TEXT,
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
) AS ProxyProfile;
CREATE INDEX idx_proxy_profile_updated_at ON proxy_profile(updated_at);
CREATE TABLE icon_cache (
origin TEXT PRIMARY KEY NOT NULL,
icon_data BLOB NOT NULL,
@@ -104,4 +118,4 @@ evictCacheEntries:
FROM icon_cache
ORDER BY fetch_date DESC
LIMIT -1 OFFSET :limit
);
);