Welcome to the GamePS Project! This project is built using Flutter and GetX as state-management to create mobile application to browse game in Playstation 5
To get started with this project, ensure you have the following prerequisites:
- Flutter SDK: Installation Guide
- Dart SDK: Included with Flutter
- An IDE (Optional but recommended): VS Code, Android Studio, or IntelliJ IDEA
This project was assignment to build a mobile application to browse the latest released Playstation 5 games, and view more details about said games.
Below you can find about development environment and build
API_KEY=<your key>
API_URL=api.rawg.io
To build APK file :
flutter build apk --dart-define API_KEY=<your key> --dart-define API_URL=api.rawg.io
To build AAB file :
flutter build appbundle --dart-define API_KEY=<your key> --dart-define API_URL=api.rawg.io
To build IPA file :
flutter build ipa --dart-define API_KEY=<your key> --dart-define API_URL=api.rawg.io
This project uses Flutter's built-in testing framework. Follow the steps below to run tests.
- Open Terminal
- Navigate to the root directory of the project
- Run build_runner command to generate code based on annotations
dart run build_runner build
- Run the following command
flutter test --coverage
This will generate a coverage directory with the test coverage report. To view the report in a human-readable format, you can use the lcov tool:
genhtml coverage/lcov.info -o coverage/html
Then open coverage/html/index.html in your web browser to view the coverage report.
