Skip to content

Latest commit

 

History

1,096 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GasGuru

Release CI Quality Gate Google Play

GasGuru is an app to check fuel prices at all gas stations in Spain

Static Code Analysis with Detekt

To analyze the code with Detekt and check for code style and potential issues, run:

./gradlew codeCheck

Documentation

Topic Description
Adding Fuel Types Guide for adding new fuel types
CI/CD Continuous integration and deployment
GitFlow Git workflow and branching strategy
JaCoCo Code coverage reports
Navigation Navigation architecture
Obfuscation Code obfuscation configuration
Price Alerts Price alert functionality
Recomposition Optimizations Compose recomposition best practices
Testing Testing strategy and guidelines
UI Mappers UI mapper architecture

Running Tests Locally

Requirements

  • JDK 17
  • Android SDK and ADB configured
  • Android Emulator (API 34 recommended)

Initial Setup

  1. Create a local.properties file at the root of the project with the following content:
googleApiKey=YOUR_GOOGLE_MAPS_API_KEY
googleStyleId=YOUR_GOOGLE_STYLE_MAP_ID
storePassword=YOUR_KEYSTORE_PASSWORD
keyAlias=YOUR_KEYSTORE_ALIAS
keyPassword=YOUR_KEY_PASSWORD
  1. Place your google-services.json file at app/google-services.json.
curl -Ls "https://get.maestro.mobile.dev" | bash
export PATH="$HOME/.maestro/bin:$PATH"

Test execution

  1. Start an Android Emulator:
$ANDROID_HOME/emulator/emulator -avd <emulator_name> -no-snapshot-save -no-window -no-boot-anim
  1. Run instrumented test (Compose):
./gradlew connectedCheck
  1. Build the debug APK:
./gradlew assembleProdDebug
  1. Install APK on the emulator:
adb install app/build/outputs/apk/debug/app-prod-debug.apk
  1. Execute the E2E test with Maestro:
# Debug/mock build (local development)
maestro test --env APP_ID=com.gasguru.mock.debug .maestro/config.yaml

# Production build
maestro test --env APP_ID=com.gasguru .maestro/config.yaml

# Record test in local
maestro record --env APP_ID=com.gasguru.mock.debug --local config.yaml

About

GasGuru is an app to check the fuel prices at all gas stations in Spain

Topics

Resources

Contributing

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages