Technical Documentation 1
Technical Documentation 1
1
Contents
Product Overview............................................................................3
Scope of Work:...............................................................................3
Prerequisite....................................................................................3
Frameworks....................................................................................3
Architecture....................................................................................4
Secured User Login…………………………………………………………………………
Database........................................................................................4
Product Feature Elements..............................................................5
1. Data Base optimization.........................................................................................5
2. Google Map Integration........................................................................................6
3. Geo Location Sorting.............................................................................................8
2
Product Overview
Using the Hub mobile application, Manage your Accounts, Doors, Slots and more
from a single application. Log activities, manage workflows and get the most out of your hub
experience all at your own pace, wherever you are! Requires proper login credentials as
obtained via TSI.
Scope of Work
Prerequisite
Frameworks
3
Architecture
4
Advantages of Using Clean Architecture
Your code is even more easily testable than with plain MVVM.
Your code is further decoupled (the biggest advantage.)
The package structure is even easier to navigate.
The project is even easier to maintain.
Presentation Layer
Domain Layer
Data Layer
5
Secured User Login
Single sign-on (SSO) allows a user to sign in once and get access to
other applications without re-entering credentials. This makes accessing apps easier and
eliminates the need for users to remember long lists of usernames and passwords.
Implementing it in your app makes accessing and using your app easier.
MSAL
Refresh Token
6
Database
Hub App operates in both offline and online modes. Certain modules
perform Offline mode while the rest will work in Online mode.
In Android Version we are using SQLite Database for storing offline data
Below list of modules in offline modes
Door
RIR
Slot
Door Visit
Door Photos
In-Store Display
7
CRUD
Database DB Commit
Operation
UI Screen
Is Timer sync
Online
App
Direct Sync
Description
In Hub App Android Version, we are using Kotin coroutines to store large
data in SQLite Database by Asynchronous way.
8
Design
Foreground Sync
UI DataBase API
Background Sync
9
Google Map Integration
Description
Get real-time GPS navigation, it shows your directions and uses real-
time traffic information to find the best route to your destination. Using google
map Service we have achieved directions for doors in door visit.
Design:
Description
Location sorting can be done in two ways.
Route Distance based sorting API.
Radius based sorting.
10
Sorting based on Route Distance
Sorting the location points based on distance API.
Cons: Differ from actual route-based distance may happen if there are any blockages in
the route area or if any sea routes involved in way points.
11
12