mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-01-11 22:40:36 +00:00
accept clearText
This commit is contained in:
parent
123c05f393
commit
30fcff68be
4 changed files with 14 additions and 4 deletions
|
|
@ -7,7 +7,8 @@
|
|||
<application
|
||||
android:label="Mangayomi"
|
||||
android:name="${applicationName}"
|
||||
android:icon="@mipmap/launcher_icon">
|
||||
android:icon="@mipmap/launcher_icon"
|
||||
android:usesCleartextTraffic="true">
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:exported="true"
|
||||
|
|
|
|||
|
|
@ -2,6 +2,11 @@
|
|||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>NSAppTransportSecurity</key>
|
||||
<dict>
|
||||
<key>NSAllowsArbitraryLoads</key>
|
||||
<true/>
|
||||
</dict>
|
||||
<key>CADisableMinimumFrameDurationOnPhone</key>
|
||||
<true/>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import 'package:riverpod_annotation/riverpod_annotation.dart';
|
|||
part 'torrent_server.g.dart';
|
||||
|
||||
class MTorrentServer {
|
||||
final http = Client();
|
||||
final http = MClient.init();
|
||||
Future<bool> removeTorrent(String? inforHash) async {
|
||||
if (inforHash == null || inforHash.isEmpty) return false;
|
||||
try {
|
||||
|
|
@ -44,8 +44,7 @@ class MTorrentServer {
|
|||
|
||||
Future<String> getInfohash(String url) async {
|
||||
try {
|
||||
final torrentByte =
|
||||
(await MClient.init().get(Uri.parse(url))).bodyBytes;
|
||||
final torrentByte = (await http.get(Uri.parse(url))).bodyBytes;
|
||||
var request =
|
||||
MultipartRequest('POST', Uri.parse('$_baseUrl/torrent/add'));
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,11 @@
|
|||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>NSAppTransportSecurity</key>
|
||||
<dict>
|
||||
<key>NSAllowsArbitraryLoads</key>
|
||||
<true/>
|
||||
</dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
|
|
|
|||
Loading…
Reference in a new issue