Git Product home page Git Product logo

nearby-venues's Introduction

Nearby venues

The app is created to show recommended nearby venues. It uses the Foursquare Places API.

Toolkit

To build this app, I used:

  • Macbook Pro (M1 Pro) | 32 GB
  • Android Studio Giraffe | 2022.3.1
  • Google Pixel 7 Pro (API 33) and various emulator instances for testing

Architecture

As Android apps grow in size, it's important to define an architecture that allows the app to scale, increases the app's robustness, and makes the app easier to test. For that purpose I used Clean architecture.

image

In Nearby venues app, I used the following layers:

  • UI (:app) - Responsible to display application data on the screen
  • Domain (:domain) - Contains the business logic of the app
  • Data (:data) - Responsible for requesting and loading data

UI

The app supports Dark and Light modes

On supported devices it uses Material 3 dynamic colors

Location fetching

If available, the app fetches the last known location of the user, otherwise the app requests the current location of the user before showing the results.

260688997-ea245df6-6327-4df1-aa46-920167aa0766.mp4

Errors

In case of errors, the app shows an error screen with an option to Retry loading

Libraries

Here is the list of the libraries I used in this project:

  • App
    • Hilt
    • Navigation
    • Compose
    • Gms location
  • Network
    • Retrofit 2
    • Okhttp3
    • Gson
  • Testing
    • Junit
    • Mockito

nearby-venues's People

Contributors

araratthehero avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.