Closed MJ1998 closed 4 months ago
Wondering if all singletons should be in one place, for example, SensingEngineProvider
?
@chandrashekar-s
Wondering if all singletons should be in one place, for example,
SensingEngineProvider
? @chandrashekar-s
Should be fine to have in individual classes, probably to have a better context.
Fixes #60 #12
Created singletons as per : https://www.baeldung.com/kotlin/singleton-classes#1-companion-object
For easy integration, the configuration is now provided from
SensingEngineConfiguration.Provider
interface. This interface is implemented by the Application class which can be accessed via theapplicationContext
variable.Small change so that the application works even when no
local.properties
file is provided.The interfaces and singleton instances are public whereas the implementations are private.
TESTED:- Uploaded data once. Closed app. Opened and uploaded again. Works as intended!