Smart1SDK
Smart1SDK is the main entry point for initializing the Smart1 SDK.
This object provides the necessary setup to configure Koin dependency injection for the SDK to work properly in your Android application.
Usage
You must call Smart1SDK.initialize in your Application class's onCreate() method before using any SDK features.
Example
class MyApplication : Application() {
override fun onCreate() {
super.onCreate()
// Initialize Smart1 SDK
Smart1SDK.initialize(this)
// Now you can use SDK features
}
}Important Notes
This initialization must be done before using any SDK functionality
Call this only once in your Application class
This SDK manages its own Koin instance. If you are using Koin in your app, you can provide your own Koin modules to the Smart1SDK.initialize method. Do not call startKoin block in your app because the SDK will do it for you, and if you do it, you will get a runtime error.
Make sure to declare your Application class in your AndroidManifest.xml:
<application
android:name=".MyApplication"
...>
</application>Functions
Initializes the Smart1 SDK with the required Koin dependency injection setup.