Welcome to the Openlib Project! This guide will walk you through setting up the project on your local machine, specifically focusing on Android Studio.
Before you begin, make sure you have the following installed and configured on your system:
- Flutter: Follow Flutter installation instructions.
- To verify Flutter installation, run:
flutter doctor
- To verify Flutter installation, run:
- Git: Required to clone the repository.
- Android Studio (recommended): With Flutter plugin support.
First, decide where you want the project folder to be created. You can do this from the terminal as follows:
mkdir OpenlibProject
cd OpenlibProjectUse Git to clone the project into your newly created directory:
git clone https://github.com/warreth/OpenlibExtended.gitAfter cloning, move into the OpenlibExtended folder:
cd OpenlibExtendedTo open the project:
- For VS Code: Use:
code . - For Android Studio: Open Android Studio, and then use File > Open to navigate to the Openlib folder.
To ensure compatibility with your target Android devices, update the minimum SDK version:
- Open local.properties (located in
android/). - Add the below properties:
Here,
flutter.buildMode=release flutter.minSdkVersion=21 flutter.targetSdkVersion=34 flutter.compileSdkVersion=34
"21"represents the minimum SDK version supported.
To access the emulator options and additional Flutter-specific features:
- Go to File > Settings > Plugins in Android Studio.
- Ensure Flutter support is enabled.
- This will provide access to the emulator tab, where you can choose the device for testing.
To run the app:
- Open main.dart (usually found under
lib/). - Use the Run button in Android Studio to launch the app on your selected emulator or connected device.
To build and run on Linux, you need to install WebKitGTK 4.1. This is required for the internal browser window used for CAPTCHA verification and downloads.
Arch Linux / CachyOS:
sudo pacman -S webkit2gtk-4.1Ubuntu / Debian:
sudo apt install libwebkit2gtk-4.1-devFedora:
sudo dnf install webkit2gtk4.1-develIf you encounter any issues, refer to the official Flutter documentation for comprehensive troubleshooting and setup tips.
Feel free to reach out or create an issue if you have any questions or need further assistance.