From 88c1612184472e5094fc57db287ccd56acfbee6b Mon Sep 17 00:00:00 2001 From: dstark5 Date: Sat, 16 Dec 2023 21:45:51 -0800 Subject: [PATCH] Fixed result not found error --- android/app/src/main/AndroidManifest.xml | 1 - android/app/src/main/res/raw/annas_archive | 32 +++++++++++++++++++ .../main/res/xml/network_security_config.xml | 17 ++++++++++ lib/services/annas_archieve.dart | 3 +- lib/ui/about_page.dart | 2 +- lib/ui/book_info_page.dart | 1 + pubspec.lock | 4 +-- pubspec.yaml | 6 ++-- 8 files changed, 57 insertions(+), 9 deletions(-) create mode 100644 android/app/src/main/res/raw/annas_archive create mode 100644 android/app/src/main/res/xml/network_security_config.xml diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 3b693d9..c435bba 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -24,7 +24,6 @@ android:label="Openlib" android:name="${applicationName}" android:requestLegacyExternalStorage="true" - android:usesCleartextTraffic="true" android:networkSecurityConfig="@xml/network_security_config" android:icon="@mipmap/launcher_icon"> diff --git a/android/app/src/main/res/raw/annas_archive b/android/app/src/main/res/raw/annas_archive new file mode 100644 index 0000000..6589f9a --- /dev/null +++ b/android/app/src/main/res/raw/annas_archive @@ -0,0 +1,32 @@ +-----BEGIN CERTIFICATE----- +MIIFfTCCBGWgAwIBAgIRAI0YQRVveHeTEYLPgc2CDXowDQYJKoZIhvcNAQELBQAw +RjELMAkGA1UEBhMCVVMxIjAgBgNVBAoTGUdvb2dsZSBUcnVzdCBTZXJ2aWNlcyBM +TEMxEzARBgNVBAMTCkdUUyBDQSAxUDUwHhcNMjMxMDMwMjMwOTExWhcNMjQwMTI4 +MjMwOTEwWjAcMRowGAYDVQQDExFhbm5hcy1hcmNoaXZlLm9yZzCCASIwDQYJKoZI +hvcNAQEBBQADggEPADCCAQoCggEBAKl79Oj7GW10c1ikBC/sSkyr2tmmIl1/iszu +9DN5w3lbX3q5hLeSB2xPaW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4MQGP0A +AAQDAEgwRgIhAKbAEYr9qDmiafcnkXIG7xObbI4fz3IsLSht8etA/jSlAiEAkQ7G +t6x81Onpl4RcTtrXLptI0fDkrAZ66hAPWbIH8SAwDQYJKoZIhvcNAQELBQADggEB +AGfvZYtIOPKRvVyfI4tJpetCJmU/DEMbCIyX05M+2P1n2uY1D4tweAMmYf4trh5Z +cuTK3QDeoICus3WK08L3Ni/699QbQ0uonp0IIIOi2NlP2rLhvtETWpmLoX6jM55W +cYGiQldhCgWYEXoANrJshUbjkyM81QMNzSrn33JPkzWUdgVoS/KfABaeymLekXO4 +ndLp4ktLlYQZr3JJU39FvwgN8IcmeLWUnpSWsekH+nHSW9e8vOsNQoZyHw0minqz +ZzFbS10reX1kG56+AxDf5fOOM+C+MAozSUnXUjrkpXXakwUooMTklKtYbBiwR2R0 +wrcYmVHymn07AUliDOalu2I= +-----END CERTIFICATE----- diff --git a/android/app/src/main/res/xml/network_security_config.xml b/android/app/src/main/res/xml/network_security_config.xml new file mode 100644 index 0000000..50099c3 --- /dev/null +++ b/android/app/src/main/res/xml/network_security_config.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + secure.example.com + 127.0.0.1 + + + annas-archive.org + + \ No newline at end of file diff --git a/lib/services/annas_archieve.dart b/lib/services/annas_archieve.dart index 74da5c3..9656960 100644 --- a/lib/services/annas_archieve.dart +++ b/lib/services/annas_archieve.dart @@ -66,8 +66,7 @@ class AnnasArchieve { List _parser(resData, String fileType) { var document = parse(resData.toString().replaceAll(RegExp(r""), '')); - var books = document.querySelectorAll( - 'a[class="js-vim-focus custom-a flex items-center relative left-[-10px] w-[calc(100%+20px)] px-[10px] outline-offset-[-2px] outline-2 rounded-[3px] hover:bg-black/6.7 focus:outline "]'); + var books = document.querySelectorAll('a'); List bookList = []; diff --git a/lib/ui/about_page.dart b/lib/ui/about_page.dart index 92c62a6..925d96c 100644 --- a/lib/ui/about_page.dart +++ b/lib/ui/about_page.dart @@ -43,7 +43,7 @@ class AboutPage extends StatelessWidget { Padding( padding: EdgeInsets.only(left: 7, right: 7, top: 5), child: Text( - "1.0.3", + "1.0.4", style: TextStyle( fontSize: 15, fontWeight: FontWeight.bold, diff --git a/lib/ui/book_info_page.dart b/lib/ui/book_info_page.dart index 7cb5a37..2183869 100644 --- a/lib/ui/book_info_page.dart +++ b/lib/ui/book_info_page.dart @@ -345,6 +345,7 @@ class _ShowDialog extends ConsumerWidget { color: Theme.of(context).colorScheme.secondary, strokeWidth: 2.5, + strokeCap: StrokeCap.round, ), ), const SizedBox( diff --git a/pubspec.lock b/pubspec.lock index d969ec5..6561834 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -149,10 +149,10 @@ packages: dependency: "direct main" description: name: dio - sha256: ce75a1b40947fea0a0e16ce73337122a86762e38b982e1ccb909daa3b9bc4197 + sha256: "797e1e341c3dd2f69f2dad42564a6feff3bfb87187d05abb93b9609e6f1645c3" url: "https://pub.dev" source: hosted - version: "5.3.2" + version: "5.4.0" epub_view: dependency: "direct main" description: diff --git a/pubspec.yaml b/pubspec.yaml index e330cdb..5228ac3 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.0.3+6 +version: 1.0.4+7 environment: sdk: '>=3.0.5 <4.0.0' @@ -34,13 +34,13 @@ dependencies: google_nav_bar: ^5.0.6 - epub_view: ^3.2.0 flutter_pdfview: ^1.2.7 vocsy_epub_viewer: ^2.0.0 + epub_view: ^3.2.0 # syncfusion_flutter_pdfviewer: ^22.2.5 # pdfx: ^2.4.0 - dio: ^5.3.0 + dio: ^5.4.0 html: ^0.15.4 sqflite: ^2.3.0