Moustapha Kodjo Amadou
eec96c6258
Merge pull request #644 from NBA2K1/main
...
Improve extension service lifecycle, isolate robustness, dedupe lists, and UI/lifecycle cleanups
2026-02-13 10:50:32 +01:00
Moustapha Kodjo Amadou
d5aecf66dc
Fix #643
2026-01-26 17:28:25 +01:00
NBA2K1
8b1f7fc581
Add service disposal and lifecycle cleanup
...
This commit improves memory management, reduces redundant interpreter
instantiation, and standardizes service usage patterns.
- Add `dispose()` to `ExtensionService` interface and implement it across
Dart, JS, LNReader, and Mihon services.
- Replace repeated interpreter creation in `DartExtensionService` with a
persistent `_interpreter` instance initialized once in the constructor.
- Add disposal logic for JS DOM selector and Cheerio instances to prevent
memory leaks.
- Introduce `withExtensionService()` helper to ensure services are always
disposed after use.
- Update call sites across the codebase to use `withExtensionService()`
or manual try/finally disposal.
- Improve isolate service message handling by extracting `responsePort`
earlier.
- Ensure safer defaults (e.g., returning empty lists, const lists) when
service calls fail.
2026-01-13 01:11:19 +01:00
NBA2K1
267f2d12df
dedupe page and video lists using LinkedHashSet
...
- Replace list→set→list conversions with LinkedHashSet for stable ordering
- Ensure PageUrl uniqueness based on URL
- Ensure Video uniqueness based on url + originalUrl
- Add null‑safety checks when building PageUrl and Video objects
- Improve readability and reduce unnecessary allocations
2026-01-08 23:52:31 +01:00
Moustapha Kodjo Amadou
f2fbaf5ec5
refactor
2025-11-20 15:17:31 +01:00
Moustapha Kodjo Amadou
29fe96151d
fix: enable logger usage in isolate service
2025-11-12 17:02:06 +01:00
Moustapha Kodjo Amadou
2ff20c35cc
+
2025-10-22 10:51:25 +01:00
Moustapha Kodjo Amadou
80efee40d1
dart format
2025-05-30 17:43:42 +01:00
Moustapha Kodjo Amadou
962bab1cdd
upgrade
2025-05-21 18:16:18 +01:00
Moustapha Kodjo Amadou
d250c08424
refactor: update AndroidManifest and MainActivity for APK installation; remove flutter_app_installer dependency
2025-05-09 18:38:23 +01:00
Schnitzel5
3677938bf8
added support for epubs
...
embedded images not supported yet
2025-05-07 22:17:23 +02:00
Schnitzel5
d6d674c270
+
2025-05-05 20:12:58 +02:00
Schnitzel5
821366cb06
added epubx dependency
2025-05-04 23:45:46 +02:00
Moustapha Kodjo Amadou
56f8b080cc
fix
2025-03-10 16:17:05 +01:00
Moustapha Kodjo Amadou
3e401c8af2
dart format
2025-02-23 15:31:49 +01:00
kodjomoustapha
fcb67ffd36
+
2025-01-09 15:24:55 +01:00
Schnitzel5
5ae7a8d581
added option to download novels
2025-01-07 23:37:29 +01:00
kodjomoustapha
b4c09bbee0
feat: add evaluateJavascriptViaWebview
2025-01-06 13:04:04 +01:00
Schnitzel5
34179a17a5
Merge branch 'feature/novel' into feature/light-novel
2024-12-20 15:59:06 +01:00
kodjomoustapha
a41ccaff22
fix & reformat
2024-12-20 10:15:15 +01:00
Schnitzel5
50eff04fe6
added extension functions
2024-12-20 00:22:18 +01:00
Yegor Shovkun
73b144ed16
refactor: move try-catch
2024-12-14 14:01:42 +02:00
Yegor Shovkun
f0cf52813a
refactor: refactor extension services
2024-12-14 13:55:40 +02:00
Yegor Shovkun
adbd1529f7
fix: cs fix (reformat with 120 line length)
2024-12-14 12:38:56 +02:00
kodjomoustapha
46d4aefc2f
feat: add supportsLatest getter for JS
2024-12-02 17:14:01 +01:00
kodjomoustapha
11dea6dfaf
fix get torrent video list
2024-12-02 17:01:10 +01:00
yxxyun
c5bd38719f
add UC extractor
2024-10-05 21:13:16 +08:00
yxxyun
4dedb6bfa2
update quark
2024-10-02 15:33:55 +08:00
yxxyun
a382044329
add quark
2024-10-02 12:50:56 +08:00
kodjomoustapha
ad9f292c0e
+
2024-08-02 17:25:59 +01:00
kodjomoustapha
7d5640e2b0
feat: add a custom request headers for getPageList #235
2024-08-02 14:51:39 +01:00
kodjomoustapha
d614fccedb
+
2024-07-29 10:27:48 +01:00
kodjomoustapha
59ed4da8de
Add a wonderfull css package(pseudom) with custom pseudo selectors
2024-06-15 13:27:44 +01:00
kodjomoustapha
281e621da3
+
2024-05-14 10:45:35 +01:00
kodjomoustapha
6e4f117cf5
Fix some JsHttpClient request methods
2024-05-07 18:55:59 +01:00
kodjomoustapha
d0ee7d3260
Fix extension getHeaders method
2024-04-15 12:13:31 +01:00
kodjomoustapha
931100fadf
Fix getPageList for JS extension
2024-04-08 15:01:13 +01:00
kodjomoustapha
72ecdfbd97
Fix getFilterList for JS extensions
2024-04-07 16:54:48 +01:00
kodjomoustapha
1d9150b3bb
fix
2024-03-27 15:35:35 +01:00
kodjomoustapha
4f131de97d
more
2024-03-22 15:17:12 +01:00
kodjomoustapha
6f7a179f02
Added create extension page
2024-03-19 17:32:14 +01:00
kodjomoustapha
5b8245e85c
fix
2024-03-15 16:12:49 +01:00
kodjomoustapha
b554953d34
fix dom_selector
2024-03-15 15:50:09 +01:00
kodjomoustapha
d49de188a4
rename
2024-03-14 17:46:53 +01:00
kodjomoustapha
6fa0e8a89f
Added JavaScript extension runtime, gridview count
2024-03-12 17:24:41 +01:00