Eric Martori
08/23/2019, 9:05 PMandroidx.lifecycle:lifecycle-runtime-ktx:$androidLifecycle
in a library project
If I add this dependency in an Android library project there is no problem, but if I add this dependency in a normal kotlin library the extension functions cannot be found.
This import statement stops working: import androidx.lifecycle.lifecycleScope
But this doesn't: import androidx.lifecycle.LifecycleOwner
I am creating a library that have a dependency on the androidx lifecycle but I don't need resources or access to any normal android.*
dependency, that's why I'm trying to use a normal kotlin library instead of an android library
Any idea on why this is happening?voben
08/23/2019, 9:15 PMEric Martori
08/23/2019, 10:10 PMandroidx.lifecycle:lifecycle-runtime-ktx
doesn't have direct dependencies on android. And it doesn't explain that for example LifecycleOwner
is available but an extension on it isn't