Hi guys, I want opinion regarding Dependency Injec...
# getting-started
k
Hi guys, I want opinion regarding Dependency Injection. I am building application from scratch. I am using Amplify Aws which is build in Kotlin. When I am trying to initialise the A`mplify` or anything using this class I have to always call
<http://Amplify.xyz|Amplify.xyz>
. So this class is making singleton automatically with
companion object
?
When I am trying to inject through
koin
it doesn't get method like this
Copy code
private val amplify by inject<Amplify>()
because I cannot find
addPlugin
method
Copy code
amplify.addPlugin(AWSCognitoAuthPlugin())
When I am direct calling
Copy code
Amplify.addPlugin(AWSCognitoAuthPlugin())
it working fine..