Compare commits

..

9 Commits

Author SHA1 Message Date
chen08209
442c32b6eb Update Version 2024-05-03 15:32:12 +08:00
chen08209
949a2aaac3 Update ProxyGroup Sort 2024-05-03 14:31:10 +08:00
chen08209
c77463f337 Fix Android quickStart VpnService some problems 2024-05-02 00:46:42 +08:00
chen08209
00377d6070 Update version 2024-05-01 23:39:21 +08:00
chen08209
f393b4b3e9 Set Android notification low importance 2024-05-01 23:29:32 +08:00
chen08209
75e6cfde15 Add Telegram in README_zh_CN.md
(cherry picked from commit 8a188a37c9)
2024-05-01 21:52:22 +08:00
chen08209
7bfe5617d9 Add Telegram 2024-05-01 21:49:18 +08:00
chen08209
97cc96c243 Fix the issue that VpnService can't be closed correctly in special cases 2024-05-01 21:29:54 +08:00
chen08209
1821ee2f61 Fix the problem that TileService is not destroyed correctly in some cases
Adjust tab animation defaults
2024-05-01 15:13:09 +08:00
3 changed files with 13 additions and 9 deletions

View File

@@ -82,7 +82,7 @@ func updateConfig(s *C.char) bool {
//export getProxies
func getProxies() *C.char {
data, err := json.Marshal(tunnel.ProxiesWithProviders())
data, err := json.Marshal(tunnel.Proxies())
if err != nil {
return C.CString("")
}
@@ -98,7 +98,7 @@ func changeProxy(s *C.char) bool {
log.Infoln("Unmarshal ChangeProxyParams %v", err)
return false
}
proxies := tunnel.ProxiesWithProviders()
proxies := tunnel.Proxies()
proxy := proxies[*params.GroupName]
if proxy == nil {
return false
@@ -148,7 +148,7 @@ func asyncTestDelay(s *C.char) {
ctx, cancel := context.WithTimeout(context.Background(), time.Millisecond*time.Duration(params.Timeout))
defer cancel()
proxies := tunnel.ProxiesWithProviders()
proxies := tunnel.Proxies()
proxy := proxies[params.ProxyName]
delayData := &Delay{
@@ -235,6 +235,7 @@ func getProviders() *C.char {
return C.CString(string(data))
}
//export getProvider
func getProvider(name *C.char) *C.char {
providerName := C.GoString(name)

View File

@@ -74,12 +74,15 @@ class ClashCore {
final proxiesRawString = proxiesRaw.cast<Utf8>().toDartString();
return Isolate.run<List<Group>>(() {
final proxies = json.decode(proxiesRawString);
final groupNames =
(proxies[UsedProxy.GLOBAL.name]["all"] as List).where((e) {
final groupsRaw = (proxies[UsedProxy.GLOBAL.name]["all"] as List)
.where((e) {
final proxy = proxies[e];
return GroupTypeExtension.valueList.contains(proxy['type']);
});
final groupsRaw = [UsedProxy.GLOBAL.name, ...groupNames].map((groupName) {
final excludeName = !UsedProxyExtension.valueList
.where((element) => element != UsedProxy.GLOBAL.name)
.contains(proxy['name']);
final validType = GroupTypeExtension.valueList.contains(proxy['type']);
return excludeName && validType;
}).map((groupName) {
final group = proxies[groupName];
group["all"] = ((group["all"] ?? []) as List)
.map(

View File

@@ -1,7 +1,7 @@
name: fl_clash
description: A multi-platform proxy client based on ClashMeta, simple and easy to use, open-source and ad-free.
publish_to: 'none'
version: 0.7.5
version: 0.7.2
environment:
sdk: '>=3.1.0 <4.0.0'