Skip to content

Commit 9df40c4

Browse files
committed
upgrade
1 parent 9a1d1fb commit 9df40c4

25 files changed

+128
-55
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,4 @@ app.*.map.json
5050
/go/mobile/lib/*.xcframework/
5151

5252
/lib/assets/version.txt
53+
desiredFileName.txt

README-zh.md

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
## 使用前必读
1818

1919
- 根据地区的不同DNS拦截器不一定有效, 请使用科学上网测试本软件的可用性
20-
- 由于官方网站使用了反DDOS攻击, 如果漫画列表拉取失败, 请过5秒之后重试
2120

2221
## 软件截图
2322

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ A beautiful and cross platform *NHentai Client*. Support desktop and mobile phon
1111
## Must readme
1212

1313
The official website uses the page to prevent DDoS attacks.
14-
If the comic list is not obtained successfully, you need to wait 5 seconds and try again.
1514

1615
## Captures
1716

ci/version.code.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.0.8
1+
v0.0.9

ci/version.info.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
- 通过网页加载Cookie, 帮助穿过DDoS防御 (实验性)
2-
- 可以直接打开 https://nhentai.com/g/12345/ 类似的网址进入详情页(安卓)
1+
- Cross DDoS (only phone)
2+
- 通过ddos (仅手机端)

go/go.mod

+4
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ require (
2727
github.com/mattn/go-sqlite3 v1.14.9 // indirect
2828
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
2929
github.com/modern-go/reflect2 v1.0.2 // indirect
30+
golang.org/x/mobile v0.0.0-20220722155234-aaac322e2105 // indirect
31+
golang.org/x/mod v0.4.2 // indirect
3032
golang.org/x/net v0.0.0-20220615171555-694bf12d69de // indirect
3133
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect
3234
golang.org/x/text v0.3.7 // indirect
35+
golang.org/x/tools v0.1.8-0.20211022200916-316ba0b74098 // indirect
36+
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
3337
)

go/go.sum

+28
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
12
github.com/PuerkitoBio/goquery v1.8.0 h1:PJTF7AmFCFKk1N6V6jmKfrNH9tV5pNE6lZMkG0gta/U=
23
github.com/PuerkitoBio/goquery v1.8.0/go.mod h1:ypIiRMtY7COPGk+I/YbZLbxsxn9g5ejnI2HSMtkjZvI=
34
github.com/Xuanwo/go-locale v1.1.0 h1:51gUxhxl66oXAjI9uPGb2O0qwPECpriKQb2hl35mQkg=
@@ -59,17 +60,36 @@ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UV
5960
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
6061
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
6162
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
63+
github.com/yuin/goldmark v1.4.0/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
6264
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
65+
golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
66+
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
67+
golang.org/x/exp v0.0.0-20190731235908-ec7cb31e5a56/go.mod h1:JhuoJpWY28nO4Vef9tZUw9qufEGTyX1+7lmHxV5q5G4=
68+
golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
69+
golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
6370
golang.org/x/image v0.0.0-20220321031419-a8550c1d254a h1:LnH9RNcpPv5Kzi15lXg42lYMPUf0x8CuPv1YnvBWZAg=
6471
golang.org/x/image v0.0.0-20220321031419-a8550c1d254a/go.mod h1:023OzeP/+EPmXeapQh35lcL3II3LrY8Ic+EFFKVhULM=
72+
golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE=
73+
golang.org/x/mobile v0.0.0-20220722155234-aaac322e2105 h1:3vUV5x5+3LfQbgk7paCM6INOaJG9xXQbn79xoNkwfIk=
74+
golang.org/x/mobile v0.0.0-20220722155234-aaac322e2105/go.mod h1:pe2sM7Uk+2Su1y7u/6Z8KJ24D7lepUjFZbhFOrmDfuQ=
75+
golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY=
76+
golang.org/x/mod v0.4.2 h1:Gz96sIWK3OalVv/I/qNygP42zyoKp3xptRVCWRFEBvo=
77+
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
6578
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
79+
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
80+
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
81+
golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
6682
golang.org/x/net v0.0.0-20210916014120-12bc252f5db8/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
6783
golang.org/x/net v0.0.0-20220615171555-694bf12d69de h1:ogOG2+P6LjO2j55AkRScrkB2BFpd+Z8TY2wcM0Z3MGo=
6884
golang.org/x/net v0.0.0-20220615171555-694bf12d69de/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
85+
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
86+
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
6987
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
88+
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
7089
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
7190
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
7291
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
92+
golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
7393
golang.org/x/sys v0.0.0-20211023085530-d6a326fbbf70/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
7494
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a h1:dGzPydgVsqGcTRVwiLJ1jVbufYwmzD3LfVPLKsKg+0k=
7595
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
@@ -80,7 +100,15 @@ golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
80100
golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
81101
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
82102
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
103+
golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
83104
golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
105+
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
106+
golang.org/x/tools v0.1.8-0.20211022200916-316ba0b74098 h1:YuekqPskqwCCPM79F1X5Dhv4ezTCj+Ki1oNwiafxkA0=
107+
golang.org/x/tools v0.1.8-0.20211022200916-316ba0b74098/go.mod h1:LGqMHiF4EqQNHR1JncWGqT5BVaXmza+X+BDGol+dOxo=
108+
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
109+
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
110+
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=
111+
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
84112
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
85113
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
86114
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=

go/nhentai/common.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ import (
3232

3333
func availableWebAddresses(_ string) (string, error) {
3434
return serialize([]string{
35-
"104.27.194.88:443",
36-
"104.27.195.88:443",
35+
"104.21.66.123:443",
36+
"172.67.159.231:443",
3737
}, nil)
3838
}
3939

4040
func availableImgAddresses(_ string) (string, error) {
4141
return serialize([]string{
42-
"23.237.126.122:443",
42+
"185.107.44.3:443",
4343
"185.177.127.78:443",
4444
"185.177.127.77:443",
4545
}, nil)

ios/Flutter/AppFrameworkInfo.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
<key>CFBundleVersion</key>
2222
<string>1.0</string>
2323
<key>MinimumOSVersion</key>
24-
<string>9.0</string>
24+
<string>11.0</string>
2525
</dict>
2626
</plist>

ios/Podfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Uncomment this line to define a global platform for your project
2-
# platform :ios, '9.0'
2+
# platform :ios, '11.0'
33

44
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
55
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

ios/Podfile.lock

+19-8
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,50 @@ PODS:
22
- app_links (0.0.1):
33
- Flutter
44
- Flutter (1.0.0)
5+
- flutter_inappwebview (0.0.1):
6+
- Flutter
7+
- flutter_inappwebview/Core (= 0.0.1)
8+
- OrderedSet (~> 5.0)
9+
- flutter_inappwebview/Core (0.0.1):
10+
- Flutter
11+
- OrderedSet (~> 5.0)
12+
- OrderedSet (5.0.0)
513
- "permission_handler (5.1.0+2)":
614
- Flutter
715
- url_launcher_ios (0.0.1):
816
- Flutter
9-
- webview_flutter_wkwebview (0.0.1):
10-
- Flutter
1117

1218
DEPENDENCIES:
1319
- app_links (from `.symlinks/plugins/app_links/ios`)
1420
- Flutter (from `Flutter`)
21+
- flutter_inappwebview (from `.symlinks/plugins/flutter_inappwebview/ios`)
1522
- permission_handler (from `.symlinks/plugins/permission_handler/ios`)
1623
- url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)
17-
- webview_flutter_wkwebview (from `.symlinks/plugins/webview_flutter_wkwebview/ios`)
24+
25+
SPEC REPOS:
26+
trunk:
27+
- OrderedSet
1828

1929
EXTERNAL SOURCES:
2030
app_links:
2131
:path: ".symlinks/plugins/app_links/ios"
2232
Flutter:
2333
:path: Flutter
34+
flutter_inappwebview:
35+
:path: ".symlinks/plugins/flutter_inappwebview/ios"
2436
permission_handler:
2537
:path: ".symlinks/plugins/permission_handler/ios"
2638
url_launcher_ios:
2739
:path: ".symlinks/plugins/url_launcher_ios/ios"
28-
webview_flutter_wkwebview:
29-
:path: ".symlinks/plugins/webview_flutter_wkwebview/ios"
3040

3141
SPEC CHECKSUMS:
3242
app_links: 8941e7bac086136bae70d619141c36f258f4381d
33-
Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
43+
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
44+
flutter_inappwebview: bfd58618f49dc62f2676de690fc6dcda1d6c3721
45+
OrderedSet: aaeb196f7fef5a9edf55d89760da9176ad40b93c
3446
permission_handler: ccb20a9fad0ee9b1314a52b70b76b473c5f8dab0
3547
url_launcher_ios: 839c58cdb4279282219f5e248c3321761ff3c4de
36-
webview_flutter_wkwebview: b7e70ef1ddded7e69c796c7390ee74180182971f
3748

38-
PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c
49+
PODFILE CHECKSUM: ef19549a9bc3046e7bb7d2fab4d021637c0c58a3
3950

4051
COCOAPODS: 1.11.3

l10n.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
arb-dir: lib/l10n
22
template-arb-file: app_en.arb
33
output-localization-file: app_localizations.dart
4+
untranslated-messages-file: desiredFileName.txt

lib/l10n/app_zh.arb

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"failed": "失败",
3434
"autoCheckNewVersion": "自动检查更新",
3535
"disabled": "已禁用",
36+
"disable": "禁用",
3637
"enabled": "已开启",
3738
"enable": "开启",
3839
"nextTime": "下一次",

lib/screens/comic_reader_screen.dart

+8-7
Original file line numberDiff line numberDiff line change
@@ -432,9 +432,10 @@ class _ComicReaderWebToonState extends _ComicReaderState {
432432
.toList()
433433
.cast<double>();
434434
} else {
435-
final height = constraints.maxHeight -
435+
var height = constraints.maxHeight -
436436
super._appBarHeight() -
437-
(_fullScreen ? super._appBarHeight() : super._bottomBarHeight());
437+
super._bottomBarHeight() -
438+
MediaQuery.of(context).padding.bottom;
438439
_offsets = widget.comicInfo.images.pages
439440
.map((e) => height * e.w / e.h)
440441
.toList()
@@ -447,9 +448,10 @@ class _ComicReaderWebToonState extends _ComicReaderState {
447448
.toList()
448449
.cast<Size>();
449450
} else {
450-
final height = constraints.maxHeight -
451+
var height = constraints.maxHeight -
451452
super._appBarHeight() -
452-
(_fullScreen ? super._appBarHeight() : super._bottomBarHeight());
453+
super._bottomBarHeight() -
454+
MediaQuery.of(context).padding.bottom;
453455
_sizes = widget.comicInfo.images.pages
454456
.map((e) => Size(height * e.w / e.h, height))
455457
.toList()
@@ -469,9 +471,8 @@ class _ComicReaderWebToonState extends _ComicReaderState {
469471
top: super._appBarHeight(),
470472
bottom: _direction == ReaderDirection.topToBottom
471473
? 130
472-
: (_fullScreen
473-
? super._appBarHeight()
474-
: super._bottomBarHeight()),
474+
: (super._bottomBarHeight() +
475+
MediaQuery.of(context).padding.bottom)
475476
),
476477
itemCount: widget.comicInfo.images.pages.length,
477478
itemBuilder: (BuildContext context, int index) {

lib/screens/comics_screen.dart

-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@ import 'dart:io';
22

33
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
44

5-
import 'package:flutter/cupertino.dart';
65
import 'package:flutter/material.dart';
76
import 'package:nhentai/basic/channels/nhentai.dart';
87
import 'package:nhentai/screens/comic_search_screen.dart';
98
import 'package:nhentai/screens/components/pager.dart';
109
import 'package:nhentai/screens/webview_screen.dart';
11-
import 'package:webview_flutter/webview_flutter.dart';
1210

1311
import 'comic_downloads_screen.dart';
1412
import 'components/actions.dart';

lib/screens/webview_screen.dart

+49-19
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
import 'dart:convert';
2+
13
import 'package:flutter/material.dart';
4+
import 'package:flutter_inappwebview/flutter_inappwebview.dart';
25
import 'package:nhentai/basic/channels/nhentai.dart';
3-
import 'package:webview_flutter/webview_flutter.dart';
6+
import 'package:nhentai/basic/common/common.dart';
47

58
class WebViewScreen extends StatefulWidget {
69
const WebViewScreen({Key? key}) : super(key: key);
@@ -10,34 +13,61 @@ class WebViewScreen extends StatefulWidget {
1013
}
1114

1215
class _WebViewScreenState extends State<WebViewScreen> {
13-
late WebViewController _webViewController;
16+
late InAppWebViewController _webViewController;
17+
late CookieManager _cookieManager;
18+
19+
@override
20+
void initState() {
21+
_cookieManager = CookieManager.instance();
22+
super.initState();
23+
}
1424

1525
@override
1626
Widget build(BuildContext context) {
1727
return Scaffold(
1828
appBar: AppBar(
1929
title: const Text("Load web cookies"),
2030
actions: [
21-
IconButton(onPressed: () {
22-
_webViewController.loadUrl('https://nhentai.net/');
23-
}, icon: const Icon(Icons.refresh),),
24-
IconButton(onPressed: () async {
25-
final cookies = await _webViewController.runJavascriptReturningResult(
26-
'document.cookie',
27-
);
28-
await nHentai.setCookie(cookies);
29-
await nHentai.setUserAgent('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36');
30-
Navigator.of(context).pop();
31-
}, icon: const Icon(Icons.check),),
31+
IconButton(
32+
onPressed: () {
33+
_webViewController.loadUrl(
34+
urlRequest:
35+
URLRequest(url: Uri.parse('https://nhentai.net/')));
36+
},
37+
icon: const Icon(Icons.refresh),
38+
),
39+
IconButton(
40+
onPressed: () async {
41+
final body = await _webViewController.evaluateJavascript(
42+
source: "navigator.userAgent");
43+
await nHentai.setUserAgent(body);
44+
45+
// var cookies =
46+
// await _webViewController.evaluateJavascript(source: "document.cookie");
47+
//
48+
// if (cookies.startsWith("\"")) {
49+
// cookies = cookies.replaceAll("\"", "");
50+
// }
51+
52+
final cookies = await _cookieManager.getCookies(
53+
url: Uri.parse('https://nhentai.net/'));
54+
print(cookies.map((e) => "${e.name}=${e.value}").join("; "));
55+
await nHentai.setCookie(
56+
cookies.map((e) => "${e.name}=${e.value}").join("; "));
57+
Navigator.of(context).pop();
58+
},
59+
icon: const Icon(Icons.check),
60+
),
3261
],
3362
),
34-
body: WebView(
35-
initialUrl: 'https://nhentai.net/',
36-
onWebViewCreated: (WebViewController webViewController) {
37-
_webViewController = webViewController;
63+
body: InAppWebView(
64+
initialUrlRequest: URLRequest(
65+
url: Uri.parse('https://nhentai.net/'),
66+
),
67+
onLoadStart: (c, url) {
68+
print("onLoadStart");
69+
_webViewController = c;
3870
},
39-
javascriptMode: JavascriptMode.unrestricted,
40-
userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36',
4171
),
4272
);
4373
}

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: nhentai
22
description: nhentai client
33
publish_to: 'none'
4-
version: 1.0.0+1
4+
version: 0.0.9+2
55

66
environment:
77
sdk: ">=2.12.0 <3.0.0"

scripts/bind-android-debug.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ cd "$( cd "$( dirname "$0" )" && pwd )/.."
44

55
cd go/mobile
66

7-
gomobile bind -target=android/arm,android/arm64,android/386,android/amd64 -o lib/Mobile.aar ./
7+
gomobile bind -androidapi 19 -target=android/arm,android/arm64,android/386,android/amd64 -o lib/Mobile.aar ./

scripts/bind-ios-arm64.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ cd "$( cd "$( dirname "$0" )" && pwd )/.."
44

55
cd go/mobile
66

7-
gomobile bind -target=ios -o lib/Mobile.xcframework ./
7+
gomobile bind -androidapi 19 -target=ios -o lib/Mobile.xcframework ./

scripts/bind-ios.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ cd "$( cd "$( dirname "$0" )" && pwd )/.."
44

55
cd go/mobile
66

7-
gomobile bind -target=ios -o lib/Mobile.xcframework ./
7+
gomobile bind -iosversion 11.0 -target=ios -o lib/Mobile.xcframework ./

scripts/build-apk-arm.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ cd "$( cd "$( dirname "$0" )" && pwd )/.."
44

55
cd go/mobile
66
go get golang.org/x/mobile/cmd/gobind
7-
gomobile bind -target=android/arm -o lib/Mobile.aar ./
7+
gomobile bind -androidapi 19 -target=android/arm -o lib/Mobile.aar ./
88
cd ../..
99
flutter build apk --target-platform android-arm

scripts/build-apk-arm64.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ cd "$( cd "$( dirname "$0" )" && pwd )/.."
44

55
cd go/mobile
66
go get golang.org/x/mobile/cmd/gobind
7-
gomobile bind -target=android/arm64 -o lib/Mobile.aar ./
7+
gomobile bind -androidapi 19 -target=android/arm64 -o lib/Mobile.aar ./
88
cd ../..
99
flutter build apk --target-platform android-arm64

scripts/build-apk-x64.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ cd "$( cd "$( dirname "$0" )" && pwd )/.."
44

55
cd go/mobile
66
go get golang.org/x/mobile/cmd/gobind
7-
gomobile bind -target=android/amd64 -o lib/Mobile.aar ./
7+
gomobile bind -androidapi 19 -target=android/amd64 -o lib/Mobile.aar ./
88
cd ../..
99
flutter build apk --target-platform android-x64

0 commit comments

Comments
 (0)