Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangtian616 committed Oct 27, 2024
1 parent f091e1f commit 1e88c48
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lib/src/utils/proxy_util.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:flutter/cupertino.dart';
import 'package:get/get_utils/src/platform/platform.dart';
import 'package:http_proxy_override/http_proxy_override.dart';
import 'package:http_proxy/http_proxy.dart';
import 'package:jhentai/src/service/log.dart';
import 'package:jhentai/src/utils/string_uril.dart';
import 'package:system_network_proxy/system_network_proxy.dart';
Expand All @@ -15,7 +15,7 @@ Future<String> getSystemProxyAddress() async {
systemProxyAddress = await SystemNetworkProxy.getProxyServer();
}
if (GetPlatform.isMobile) {
HttpProxyOverride httpProxy = await HttpProxyOverride.createHttpProxy();
HttpProxy httpProxy = await HttpProxy.createHttpProxy();
if (!isEmptyOrNull(httpProxy.host) && !isEmptyOrNull(httpProxy.port)) {
systemProxyAddress = '${httpProxy.host}:${httpProxy.port}';
}
Expand Down
8 changes: 4 additions & 4 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -811,14 +811,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "4.0.2"
http_proxy_override:
http_proxy:
dependency: "direct main"
description:
name: http_proxy_override
sha256: "703fc68d3e893f91fde09e7897db14a1fa5a01ad85d73894b8a06ef00a87f130"
name: http_proxy
sha256: "08d9f1652acdc11d977e1593de112b093f1fbc7c81153b9abfaf34b2ca011b51"
url: "https://pub.dev"
source: hosted
version: "1.0.1"
version: "1.2.2"
image:
dependency: transitive
description:
Expand Down
3 changes: 2 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ dependencies:
animated_flip_counter: 0.2.6
saver_gallery: 3.0.5
system_network_proxy: 1.0.2
http_proxy_override: 1.0.1
http_proxy:
git: https://github.com/jiangtian616/http_proxy
flutter_socks_proxy:
# https://github.com/tayoji-io/socks_proxy/issues/7
git: https://github.com/jiangtian616/socks_proxy
Expand Down

0 comments on commit 1e88c48

Please sign in to comment.