davideas / FlexibleAdapter

Fast and versatile Adapter for RecyclerView which regroups several features into one library to considerably improve the user experience :-)
Apache License 2.0
3.56k stars 552 forks source link

Fix missing Lifecycle dependency #775

Open arkon opened 3 years ago

arkon commented 3 years ago

This fixes the ability to consume the libraries via JitPack and somewhat addresses #768. I didn't test if it allows for publishing to Maven Central or not.

For example:

Root build.gradle:

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

In your module's build.gradle:

dependencies {
        final flexible_adapter_version = 'c8013533';
        implementation 'com.github.arkon.FlexibleAdapter:flexible-adapter:$flexible_adapter_version'
        implementation 'com.github.arkon.FlexibleAdapter:flexible-adapter-databinding:$flexible_adapter_version'
        implementation 'com.github.arkon.FlexibleAdapter:flexible-adapter-livedata:$flexible_adapter_version'
        implementation 'com.github.arkon.FlexibleAdapter:flexible-adapter-ui:$flexible_adapter_version'
}