hydrated_bloc
bloc 상태 관리 라이브러리의 확장으로, 상태를 자동으로 저장하고 복원합니다.
이것은 Library Genesis 서비스의 공식이 아닌 모바일 클라이언트입니다.
bloc 상태 관리 라이브러리의 확장으로, 상태를 자동으로 저장하고 복원합니다.
Hive용 확장입니다. 어떤 클래스도 저장하기 위해 TypeAdapters를 자동으로 생성합니다.
파일을 다운로드하는 것을 쉽게 만들어주는 강력한 플러그인입니다.
Dart에서의 함수형 프로그래밍. 효율적인 불변 데이터 구조, 모나드, 렌즈 및 기타 FP 도구를 사용하여 Dart 코드를 정제하세요.
v5.0.1헤더 또는 아이콘을 클릭하여 확장하거나 축소할 수 있는 플러터 위젯입니다.
v5.0.0이 패키지는 Flutter에서 간단한 HTML과 인라인 CSS 스타일을 사용하여 텍스트를 스타일링할 수 있도록 해줍니다. css_text 패키지의 포크입니다.
Android용 다운로드 디렉터리를 가져오는 Flutter 플러그인입니다.
{"sdk":"flutter"}{"sdk":"flutter"}^0.1.3^0.13.2^6.0.6^6.1.0^3.1.0{"git":{"url":"git://github.com/manuelvargastapia/flutter_downloader.git","ref":"timeout"}}^5.7.10^0.1.0^5.0.1+1{"git":{"url":"git://github.com/manuelvargastapia/simple_html_css_flutter.git","ref":"fix_range_error"}}^1.4.4+1^0.3.1^0.9.2^4.1.4^0.17.0^0.4.3+2{"sdk":"flutter"}^1.10.3^3.5.0^0.8.2^1.2.5아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
This is a non-offical mobile client for Library Genesis service. It's an independent side project. And it's Open Source, so feel free to collaborate.
The app is built with Flutter and it's available in FDroid.
Currently, we're working mainly in Android version.
The following is a list of desired new features within the scope of the project. Notwithstanding, we're happy to hear new ideas and feeback.
We recommend to submit first an issue to discuss ideas, instead of directly send a PR.
We're managing the different stages of the app (basically, development and production) throught compile time variables (check this article for information). The only environmental variable in use right now is LIBGEN_MOBILE_API. This allow us to pass a development and production API URL directly from CLI commands.
Also note that this app is using multiple flavors, therefore it has to be specifically referenced when running the app. Otherwise, you'll get the a "Gradle build failed to produce an .apk file" error.
To run the app with compile time variable plus the correct flavor, use the following command:
flutter run --dart-define=LIBGEN_API_URL=<VALUE> --flavor local
Finally, in VSCode, it could be useful define a launch.json file to debug. Such file would look like this:
{
"version": "0.2.0",
"configurations": [
{
"name": "emulator",
"request": "launch",
"type": "dart",
"args": [
"--dart-define=LIBGEN_API_URL=http://10.0.2.2:3000",
"--flavor",
"local"
]
},
]
}
Those flags also work with flutter build apk and others similar commands.
IMPORTANT
To use a phisical device to run the app, you'll need to pass the internal IP of the machine that's running the server as the value of LIBGEN_API_URL. "http://10.0.2.2:3000" will only provide access to emulators, as those are part of the same network.
Library Genesis doesn't provide a public API to work with, so we decided to build a backend service to consume. It's currently hosted in Heroku.
Check the repo to run your own instance and pass the corresponding URLs to the app throught compile time variables. It's an ExpressJS project; you just need to clone (or fork) the repo, install dependencies and run npm start.
During development, a forked version of this unofficial Libgen library has been used to get the data. This is the repo of our modified version.
The followings are all the official and third-party packages in use right now.
Internationalization
Additionally, for generating the needed boilerplate we used the VSCode plugin Flutter Intl. This way, is recommended using this plugin to automatically generate new code for new locales. Unfortunately, the offical docs seems to be outdated.
API requests
State management
Downloads
For downloading, we're using a fork of flutter_downloader package. Check pubspec.yaml for details.
Open download link in browser
Render HTML content
For rendering HTML, we're using a fork of simple_html_css package. Check pubspec.yaml for details.
Local storage
Code generation
Others