1
- From 1283d93aab20f6e53d30dbf87b8732f60fb07d8c Mon Sep 17 00:00:00 2001
1
+ From d8826eee1973587a8453273cf78c903c8e1177e6 Mon Sep 17 00:00:00 2001
2
2
From: pugaizai <
[email protected] >
3
- Date: Sat, 27 Sep 2025 19:04:25 +0800
4
- Subject: [PATCH 3/4] rm-checkupdate
3
+ Date: Tue, 30 Sep 2025 21:11:06 +0800
4
+ Subject: [PATCH 2/3] Remove check update
5
5
6
6
---
7
- lib/controller.dart | 45 -------------------
7
+ arb/intl_en.arb | 9 +---
8
+ lib/controller.dart | 42 ------------------
8
9
lib/l10n/intl/messages_en.dart | 17 --------
9
10
lib/l10n/intl/messages_ja.dart | 9 ----
10
11
lib/l10n/intl/messages_ru.dart | 17 --------
11
12
lib/l10n/intl/messages_zh_CN.dart | 7 ---
12
13
lib/l10n/l10n.dart | 70 ------------------------------
13
14
lib/views/about.dart | 20 ---------
14
15
lib/views/application_setting.dart | 24 ----------
15
- 8 files changed, 209 deletions(-)
16
+ 9 files changed, 1 insertion(+), 214 deletions(-)
16
17
18
+ diff --git a/arb/intl_en.arb b/arb/intl_en.arb
19
+ index 0a77a23..390c494 100644
20
+ --- a/arb/intl_en.arb
21
+ +++ b/arb/intl_en.arb
22
+ @@ -49,8 +49,6 @@
23
+ "autoRunDesc": "Auto run when the application is opened",
24
+ "logcat": "Logcat",
25
+ "logcatDesc": "Disabling will hide the log entry",
26
+ - "autoCheckUpdate": "Auto check updates",
27
+ - "autoCheckUpdateDesc": "Auto check for updates when the app starts",
28
+ "accessControl": "AccessControl",
29
+ "accessControlDesc": "Configure application access proxy",
30
+ "application": "Application",
31
+ @@ -124,7 +122,6 @@
32
+ "desc": "A multi-platform proxy client based on ClashMeta, simple and easy to use, open-source and ad-free.",
33
+ "startVpn": "Starting VPN...",
34
+ "stopVpn": "Stopping VPN...",
35
+ - "discovery": "Discovery a new version",
36
+ "compatible": "Compatibility mode",
37
+ "compatibleDesc": "Opening it will lose part of its application ability and gain the support of full amount of Clash.",
38
+ "notSelectedTip": "The current proxy group cannot be selected.",
39
+ @@ -147,10 +144,6 @@
40
+ "addressHelp": "WebDAV server address",
41
+ "addressTip": "Please enter a valid WebDAV address",
42
+ "password": "Password",
43
+ - "checkUpdate": "Check for updates",
44
+ - "discoverNewVersion": "Discover the new version",
45
+ - "checkUpdateError": "The current application is already the latest version",
46
+ - "goDownload": "Go to download",
47
+ "unknown": "Unknown",
48
+ "geoData": "GeoData",
49
+ "externalResources": "External resources",
50
+ @@ -435,4 +428,4 @@
51
+ "crashlyticsTip": "When enabled, automatically uploads crash logs without sensitive information when the app crashes",
52
+ "appendSystemDns": "Append System DNS",
53
+ "appendSystemDnsTip": "Forcefully append system DNS to the configuration"
54
+ - }
55
+ \ No newline at end of file
56
+ + }
17
57
diff --git a/lib/controller.dart b/lib/controller.dart
18
- index 9d3cad6..74eb259 100644
58
+ index 294b78c..af42ad6 100644
19
59
--- a/lib/controller.dart
20
60
+++ b/lib/controller.dart
21
61
@@ -16,7 +16,6 @@ import 'package:flutter/material.dart';
@@ -26,7 +66,7 @@ index 9d3cad6..74eb259 100644
26
66
27
67
import 'common/common.dart';
28
68
import 'models/models.dart';
29
- @@ -456,49 +455 ,6 @@ class AppController {
69
+ @@ -469,46 +468 ,6 @@ class AppController {
30
70
globalState.config = Config(themeProps: defaultThemeProps);
31
71
}
32
72
@@ -40,9 +80,6 @@ index 9d3cad6..74eb259 100644
40
80
- Map<String, dynamic>? data,
41
81
- bool handleError = false,
42
82
- }) async {
43
- - if (globalState.isPre) {
44
- - return;
45
- - }
46
83
- if (data != null) {
47
84
- final tagName = data['tag_name'];
48
85
- final body = data['body'];
@@ -76,7 +113,7 @@ index 9d3cad6..74eb259 100644
76
113
Future<void> _handlePreference() async {
77
114
if (await preferences.isInit) {
78
115
return;
79
- @@ -534 ,7 +490 ,6 @@ class AppController {
116
+ @@ -544 ,7 +503 ,6 @@ class AppController {
80
117
};
81
118
updateTray(true);
82
119
autoUpdateProfiles();
@@ -85,10 +122,10 @@ index 9d3cad6..74eb259 100644
85
122
if (!_ref.read(appSettingProvider).silentLaunch) {
86
123
window?.show();
87
124
diff --git a/lib/l10n/intl/messages_en.dart b/lib/l10n/intl/messages_en.dart
88
- index 89d27ab..73472d4 100644
125
+ index 193dd3a..5587255 100644
89
126
--- a/lib/l10n/intl/messages_en.dart
90
127
+++ b/lib/l10n/intl/messages_en.dart
91
- @@ -105 ,12 +105 ,6 @@ class MessageLookup extends MessageLookupByLibrary {
128
+ @@ -111 ,12 +111 ,6 @@ class MessageLookup extends MessageLookupByLibrary {
92
129
"Modify application related settings",
93
130
),
94
131
"auto": MessageLookupByLibrary.simpleMessage("Auto"),
@@ -101,7 +138,7 @@ index 89d27ab..73472d4 100644
101
138
"autoCloseConnections": MessageLookupByLibrary.simpleMessage(
102
139
"Auto close connections",
103
140
),
104
- @@ -161 ,10 +155 ,6 @@ class MessageLookup extends MessageLookupByLibrary {
141
+ @@ -167 ,10 +161 ,6 @@ class MessageLookup extends MessageLookupByLibrary {
105
142
"Cancel select all",
106
143
),
107
144
"checkError": MessageLookupByLibrary.simpleMessage("Check error"),
@@ -112,7 +149,7 @@ index 89d27ab..73472d4 100644
112
149
"checking": MessageLookupByLibrary.simpleMessage("Checking..."),
113
150
"clearData": MessageLookupByLibrary.simpleMessage("Clear Data"),
114
151
"clipboardExport": MessageLookupByLibrary.simpleMessage("Export clipboard"),
115
- @@ -252 ,12 +242 ,6 @@ class MessageLookup extends MessageLookupByLibrary {
152
+ @@ -258 ,12 +248 ,6 @@ class MessageLookup extends MessageLookupByLibrary {
116
153
"This software is only used for non-commercial purposes such as learning exchanges and scientific research. It is strictly prohibited to use this software for commercial purposes. Any commercial activity, if any, has nothing to do with this software.",
117
154
),
118
155
"disconnected": MessageLookupByLibrary.simpleMessage("Disconnected"),
@@ -125,7 +162,7 @@ index 89d27ab..73472d4 100644
125
162
"dnsDesc": MessageLookupByLibrary.simpleMessage(
126
163
"Update DNS related settings",
127
164
),
128
- @@ -338 ,7 +322 ,6 @@ class MessageLookup extends MessageLookupByLibrary {
165
+ @@ -344 ,7 +328 ,6 @@ class MessageLookup extends MessageLookupByLibrary {
129
166
),
130
167
"global": MessageLookupByLibrary.simpleMessage("Global"),
131
168
"go": MessageLookupByLibrary.simpleMessage("Go"),
@@ -134,10 +171,10 @@ index 89d27ab..73472d4 100644
134
171
"Do you want to cache the changes?",
135
172
),
136
173
diff --git a/lib/l10n/intl/messages_ja.dart b/lib/l10n/intl/messages_ja.dart
137
- index fe347aa..c1639e2 100644
174
+ index e87ef2e..8603349 100644
138
175
--- a/lib/l10n/intl/messages_ja.dart
139
176
+++ b/lib/l10n/intl/messages_ja.dart
140
- @@ -83 ,10 +83 ,6 @@ class MessageLookup extends MessageLookupByLibrary {
177
+ @@ -87 ,10 +87 ,6 @@ class MessageLookup extends MessageLookupByLibrary {
141
178
"application": MessageLookupByLibrary.simpleMessage("アプリケーション"),
142
179
"applicationDesc": MessageLookupByLibrary.simpleMessage("アプリ関連設定を変更"),
143
180
"auto": MessageLookupByLibrary.simpleMessage("自動"),
@@ -148,7 +185,7 @@ index fe347aa..c1639e2 100644
148
185
"autoCloseConnections": MessageLookupByLibrary.simpleMessage("接続を自動閉じる"),
149
186
"autoCloseConnectionsDesc": MessageLookupByLibrary.simpleMessage(
150
187
"ノード変更後に接続を自動閉じる",
151
- @@ -119 ,8 +115 ,6 @@ class MessageLookup extends MessageLookupByLibrary {
188
+ @@ -123 ,8 +119 ,6 @@ class MessageLookup extends MessageLookupByLibrary {
152
189
),
153
190
"cancelSelectAll": MessageLookupByLibrary.simpleMessage("全選択解除"),
154
191
"checkError": MessageLookupByLibrary.simpleMessage("確認エラー"),
@@ -157,7 +194,7 @@ index fe347aa..c1639e2 100644
157
194
"checking": MessageLookupByLibrary.simpleMessage("確認中..."),
158
195
"clearData": MessageLookupByLibrary.simpleMessage("データを消去"),
159
196
"clipboardExport": MessageLookupByLibrary.simpleMessage("クリップボードにエクスポート"),
160
- @@ -194 ,8 +188 ,6 @@ class MessageLookup extends MessageLookupByLibrary {
197
+ @@ -198 ,8 +192 ,6 @@ class MessageLookup extends MessageLookupByLibrary {
161
198
"本ソフトウェアは学習交流や科学研究などの非営利目的でのみ使用されます。商用利用は厳禁です。いかなる商用活動も本ソフトウェアとは無関係です。",
162
199
),
163
200
"disconnected": MessageLookupByLibrary.simpleMessage("切断済み"),
@@ -166,7 +203,7 @@ index fe347aa..c1639e2 100644
166
203
"dnsDesc": MessageLookupByLibrary.simpleMessage("DNS関連設定の更新"),
167
204
"dnsHijacking": MessageLookupByLibrary.simpleMessage("DNSハイジャッキング"),
168
205
"dnsMode": MessageLookupByLibrary.simpleMessage("DNSモード"),
169
- @@ -258 ,7 +250 ,6 @@ class MessageLookup extends MessageLookupByLibrary {
206
+ @@ -262 ,7 +254 ,6 @@ class MessageLookup extends MessageLookupByLibrary {
170
207
"getOriginRules": MessageLookupByLibrary.simpleMessage("元のルールを取得"),
171
208
"global": MessageLookupByLibrary.simpleMessage("グローバル"),
172
209
"go": MessageLookupByLibrary.simpleMessage("移動"),
@@ -175,10 +212,10 @@ index fe347aa..c1639e2 100644
175
212
"host": MessageLookupByLibrary.simpleMessage("ホスト"),
176
213
"hostsDesc": MessageLookupByLibrary.simpleMessage("ホストを追加"),
177
214
diff --git a/lib/l10n/intl/messages_ru.dart b/lib/l10n/intl/messages_ru.dart
178
- index 858b0f4..a1ea1cf 100644
215
+ index 9a7cfc9..61318bf 100644
179
216
--- a/lib/l10n/intl/messages_ru.dart
180
217
+++ b/lib/l10n/intl/messages_ru.dart
181
- @@ -102 ,12 +102 ,6 @@ class MessageLookup extends MessageLookupByLibrary {
218
+ @@ -108 ,12 +108 ,6 @@ class MessageLookup extends MessageLookupByLibrary {
182
219
"Изменение настроек, связанных с приложением",
183
220
),
184
221
"auto": MessageLookupByLibrary.simpleMessage("Авто"),
@@ -191,7 +228,7 @@ index 858b0f4..a1ea1cf 100644
191
228
"autoCloseConnections": MessageLookupByLibrary.simpleMessage(
192
229
"Автоматическое закрытие соединений",
193
230
),
194
- @@ -162 ,10 +156 ,6 @@ class MessageLookup extends MessageLookupByLibrary {
231
+ @@ -168 ,10 +162 ,6 @@ class MessageLookup extends MessageLookupByLibrary {
195
232
"Отменить выбор всего",
196
233
),
197
234
"checkError": MessageLookupByLibrary.simpleMessage("Ошибка проверки"),
@@ -202,7 +239,7 @@ index 858b0f4..a1ea1cf 100644
202
239
"checking": MessageLookupByLibrary.simpleMessage("Проверка..."),
203
240
"clearData": MessageLookupByLibrary.simpleMessage("Очистить данные"),
204
241
"clipboardExport": MessageLookupByLibrary.simpleMessage(
205
- @@ -259 ,12 +249 ,6 @@ class MessageLookup extends MessageLookupByLibrary {
242
+ @@ -265 ,12 +255 ,6 @@ class MessageLookup extends MessageLookupByLibrary {
206
243
"Это программное обеспечение используется только в некоммерческих целях, таких как учебные обмены и научные исследования. Запрещено использовать это программное обеспечение в коммерческих целях. Любая коммерческая деятельность, если таковая имеется, не имеет отношения к этому программному обеспечению.",
207
244
),
208
245
"disconnected": MessageLookupByLibrary.simpleMessage("Отключено"),
@@ -215,7 +252,7 @@ index 858b0f4..a1ea1cf 100644
215
252
"dnsDesc": MessageLookupByLibrary.simpleMessage(
216
253
"Обновление настроек, связанных с DNS",
217
254
),
218
- @@ -353 ,7 +337 ,6 @@ class MessageLookup extends MessageLookupByLibrary {
255
+ @@ -359 ,7 +343 ,6 @@ class MessageLookup extends MessageLookupByLibrary {
219
256
),
220
257
"global": MessageLookupByLibrary.simpleMessage("Глобальный"),
221
258
"go": MessageLookupByLibrary.simpleMessage("Перейти"),
@@ -224,10 +261,10 @@ index 858b0f4..a1ea1cf 100644
224
261
"Хотите сохранить изменения в кэше?",
225
262
),
226
263
diff --git a/lib/l10n/intl/messages_zh_CN.dart b/lib/l10n/intl/messages_zh_CN.dart
227
- index 537b4f0..bf7c11e 100644
264
+ index ddc255f..a94a89b 100644
228
265
--- a/lib/l10n/intl/messages_zh_CN.dart
229
266
+++ b/lib/l10n/intl/messages_zh_CN.dart
230
- @@ -79 ,8 +79 ,6 @@ class MessageLookup extends MessageLookupByLibrary {
267
+ @@ -81 ,8 +81 ,6 @@ class MessageLookup extends MessageLookupByLibrary {
231
268
"application": MessageLookupByLibrary.simpleMessage("应用程序"),
232
269
"applicationDesc": MessageLookupByLibrary.simpleMessage("修改应用程序相关设置"),
233
270
"auto": MessageLookupByLibrary.simpleMessage("自动"),
@@ -236,7 +273,7 @@ index 537b4f0..bf7c11e 100644
236
273
"autoCloseConnections": MessageLookupByLibrary.simpleMessage("自动关闭连接"),
237
274
"autoCloseConnectionsDesc": MessageLookupByLibrary.simpleMessage(
238
275
"切换节点后自动关闭连接",
239
- @@ -109 ,8 +107 ,6 @@ class MessageLookup extends MessageLookupByLibrary {
276
+ @@ -111 ,8 +109 ,6 @@ class MessageLookup extends MessageLookupByLibrary {
240
277
"cancelFilterSystemApp": MessageLookupByLibrary.simpleMessage("取消过滤系统应用"),
241
278
"cancelSelectAll": MessageLookupByLibrary.simpleMessage("取消全选"),
242
279
"checkError": MessageLookupByLibrary.simpleMessage("检测失败"),
@@ -245,7 +282,7 @@ index 537b4f0..bf7c11e 100644
245
282
"checking": MessageLookupByLibrary.simpleMessage("检测中..."),
246
283
"clearData": MessageLookupByLibrary.simpleMessage("清除数据"),
247
284
"clipboardExport": MessageLookupByLibrary.simpleMessage("导出剪贴板"),
248
- @@ -180 ,8 +176 ,6 @@ class MessageLookup extends MessageLookupByLibrary {
285
+ @@ -182 ,8 +178 ,6 @@ class MessageLookup extends MessageLookupByLibrary {
249
286
"本软件仅供学习交流、科研等非商业性质的用途,严禁将本软件用于商业目的。如有任何商业行为,均与本软件无关。",
250
287
),
251
288
"disconnected": MessageLookupByLibrary.simpleMessage("已断开"),
@@ -254,7 +291,7 @@ index 537b4f0..bf7c11e 100644
254
291
"dnsDesc": MessageLookupByLibrary.simpleMessage("更新DNS相关设置"),
255
292
"dnsHijacking": MessageLookupByLibrary.simpleMessage("DNS劫持"),
256
293
"dnsMode": MessageLookupByLibrary.simpleMessage("DNS模式"),
257
- @@ -234 ,7 +228 ,6 @@ class MessageLookup extends MessageLookupByLibrary {
294
+ @@ -236 ,7 +230 ,6 @@ class MessageLookup extends MessageLookupByLibrary {
258
295
"getOriginRules": MessageLookupByLibrary.simpleMessage("获取原始规则"),
259
296
"global": MessageLookupByLibrary.simpleMessage("全局"),
260
297
"go": MessageLookupByLibrary.simpleMessage("前往"),
@@ -263,7 +300,7 @@ index 537b4f0..bf7c11e 100644
263
300
"host": MessageLookupByLibrary.simpleMessage("主机"),
264
301
"hostsDesc": MessageLookupByLibrary.simpleMessage("追加Hosts"),
265
302
diff --git a/lib/l10n/l10n.dart b/lib/l10n/l10n.dart
266
- index a38084d..59f5879 100644
303
+ index 59747e1..d2e77d4 100644
267
304
--- a/lib/l10n/l10n.dart
268
305
+++ b/lib/l10n/l10n.dart
269
306
@@ -404,26 +404,6 @@ class AppLocalizations {
0 commit comments