How adityav025/munche works
Key Architectural Layers and Components
• Presentation Layer: This consists of the Android UI components such as Activities, Fragments, and Adapters. For instance, you have multiple UI packages (ui/auth, ui/cart, ui/order, ui/location, ui/main, ui/review) as well as fragments (e.g., FavouriteFragment, RestaurantFragment, SearchFragment) and adapters (SearchListAdapter.kt).
• Domain/Business Logic Layer: This includes the core functionalities (e.g., user authentication, order processing, and review submissions). Although business logic may be interwoven in activities and helper classes, identify classes that coordinate functionalities.
• Data Model Layer: Encompasses the model classes (found under the models package) like RestaurantDetail, CartItemDetail, ReviewDetails, etc. These represent the data structures used in the app.
• External Integrations/Services:
• Firebase Suite – used for authentication, database, and storage.
• Mapbox – provides mapping and route generation functionalities.
• Paytm SDK – for handling the payment integration (with a note about a separate checksum server component).
• Other libraries like Glide (for image loading), Lottie (for animations), and Smiley Rating Bar.
Interactions and Data Flow
• User actions on the UI (Activities/Fragments) trigger business logic flows that consult model data objects.
• Communication with external services like Firebase for authentication and database management happens directly from specific business logic components or through dedicated service classes.
• Mapbox integration is used for verifying user location and route generation.
• Payment processing includes a special flow where a checksum must be generated using a backend server. Indicate this network call from the CheckoutActivity.
• Adapters and view helpers ensure data is passed and displayed correctly (e.g., SearchListAdapter for search results).
Architectural Patterns and Design Principles
• The UI (presentation layer) is separated from the data models.
• Use of asynchronous tasks when communicating with servers (for checksum generation) and note that there is a helper for this functionality in the order package.