Hello, I've a question. Why Android Studio shows "...
# dagger
h
Hello, I've a question. Why Android Studio shows "Class "App" is never used" this warning when I use Koin? Using Hilt it doesn't show this warning. As you see that I used 'App' in Manifest.
Copy code
<application
    android:name=".App"
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">
Copy code
class App : Application(){
    override fun onCreate() {
        super.onCreate()
        startKoin {
            androidContext(this@App)
            modules(listOf(appModule, repoModule, viewModelModule))
        }
    }
}
s
this is pretty normal behavior afaik, hilt prevents this because it generates a class which references App class (by its annotation)
👍 1