kunny/RxFirebase

Unable to resolve TaskResult if 'transitive=false'

Closed this issue · 3 comments

This file will be unavailable com.androidhuman.rxfirebase.common.model.TaskResult. Browsed my project's dependency library and indeed, it wasn't there.

Removing 'transitive = false' seems to resolve it. What's the reason behind the flag anyway?

kunny commented

TL;DR
Adding compile com.androidhuman.rxfirebase:common:{version} as a dependency will resolve your problem.

For example:

compile ('com.androidhuman.rxfirebase:common:10.1.0') {
    transitive = false
}
compile ('com.androidhuman.rxfirebase:firebase-auth:10.1.0') {
    transitive = false
}

Setting up dependency was poorly documented in the readme.
I have added transitive = true to avoid requiring jitpack as a repository URL since RetroOptional depends on it.

I'll update the readme soon.

kunny commented

Update: I've choosed to remove RetroOptional from the project. It will be replaced with DataValue class which provides almost same features as Optional class.
(See #7 for more details)

kunny commented

Removed RetroOptional from usage from version 10.2.0.0.
See wiki for the changes in usage.