Initial commit

This commit is contained in:
chen08209
2024-04-30 23:38:49 +08:00
commit df4d38012b
295 changed files with 33443 additions and 0 deletions

15
lib/common/android.dart Normal file
View File

@@ -0,0 +1,15 @@
import 'dart:io';
import 'package:fl_clash/clash/clash.dart';
import 'package:fl_clash/plugins/app.dart';
class Android {
init() async {
app?.onExit = () {
clashCore.shutdown();
exit(0);
};
}
}
final android = Platform.isAndroid ? Android() : null;