Skip to content

Latest commit

 

History

History
55 lines (38 loc) · 2.43 KB

README.md

File metadata and controls

55 lines (38 loc) · 2.43 KB

Geofences

This app was created to learn more about Android maps, geofencing and the use of sonarqube with jacoco for unit tests and coverage reports.

A Kodeco tutorial was used as a reference to learn about the use of GeoFences in Android. More information in the following link: Kodeco Geofencing

Installation

Clone this repository and import into Android Studio

git clone https://github.com/munbonecci/Geofences.git

Build variants

Use the Android Studio Build Variants button to choose between debug and release flavors.

Maintainers

This project is maintained by:

Built with

  • Kotlin -For coding.
  • Maps -Maps.
  • Geofencing -Geofencing.
  • Work Manager -Is the recommended solution for persistent work.
  • Service -A Service is an application component representing either an application's desire to perform a longer-running operation while not interacting with the user or to supply functionality for other applications to use.
  • Junit -For unit tests.
  • Sonarqube -Self-managed, automatic code review tool that systematically helps you deliver clean code.
  • Jacoco -For coverage reports.

How I run the app?

  • Clone the repository
  • Open it in Android Studio
  • Wait until dependencies are installed
  • If you experience problems when compiling the project you may need to change your JDK to Corretto 11
  • Run app in your emulator or physical device

How I run the coverage test in Sonarqube?

  • Make sure you are running Sonarqube locally or somewhere online
  • If you are running Sonarqube locally add your sonar.login and sonar.password from build.gradle(:app)
  • From terminal in android studio preferably execute the following command: ./gradlew clean connectedAndroidTest test createDebugCoverageReport jacocoTestReport sonarqube
  • When build finish open or refresh your Sonarqube from localhost or origin in your browser.