nopstation android source code documentation

Package name, versionCode and versionName are configured in build.gradle (app module).

nop-station

NST KEY and NST SECRET are on SplashScreenActivity.kt class.

nop-station

Most of the functions are in MainActivity. These functions are divided into Fragments. (example: For HomePage, HomePageFragment used)

Other activities usage: CyberSourceActivity for dynamic Payment,

Product Full Image and zooming: FullScreenImageActivity

SplashScreen and NST generation: SplashScreenActivity

Networking Libraries and API Calls:

OkHttp, Retrofit for network configuration.

Eventbus is used in every fragment’s onEvent method to catch every API call. And every API requests are also made on the same fragments.

nop-station

All API urls are declared in the ApiService.kt interface.

nop-station

NetworkUtilities.kt is used for DeviceId generation and putting NST and Token as header for every network call.
Firebase Push Notification is configured on the fcm directory’s MessagingService.kt class.

nop-station

When App starts, app changes language according to Admin Panel Configuration on CategoryNewFragment.kt class.

nop-station

Language and currency can be changed from app. It is done on SettingsFragment.kt

nop-station

Kotlin specific useful extension functions utilities are written on Extensions.kt file.

nop-station

A Singleton named PrefSingleton is used to ease the SharedPreference usages throughout the app.

nop-station