RxAndroid icon indicating copy to clipboard operation
RxAndroid copied to clipboard

Support for RxActionBarActivity?

Open nectarine opened this issue 11 years ago • 5 comments

Do you have any plan to support ActionBarActivity inside of rxandroid-framework? RxAndroid supports support-v4, but not appcompat-v7 ;)

nectarine avatar Mar 04 '15 06:03 nectarine

Base classes are not a scalable solution for a library. We will be favoring composition everywhere. On Mar 3, 2015 11:49 PM, "Changyeop Kim" [email protected] wrote:

Do you have any plan to support ActionBarActivity inside of rxandroid-framework? RxAndroid supports support-v4, but not appcompat-v7 ;)

— Reply to this email directly or view it on GitHub https://github.com/ReactiveX/RxAndroid/issues/144.

JakeWharton avatar Mar 04 '15 07:03 JakeWharton

Right. Extending base class is bad idea for library architecture. (although it sometimes could be a very convenient solution ;)) It was a question about existing components and missing ones.

I believe that rxandroid-framework was built to solve a classic android problem. Background task and Android lifecycle easily conflicts.

How can we solve this mismatch with pure RxAndroid? Is there any suggested way?

nectarine avatar Mar 04 '15 07:03 nectarine

@nectarine Take a look at LifecycleObservable.

hamidp avatar Mar 04 '15 13:03 hamidp

It's just that current classes in rx-android-framework seem to encourage to go with inheritance. If composition is to be favored, then what are the goals of rx-android-framework? Or will it be reworked?

dimsuz avatar Mar 18 '15 17:03 dimsuz

The other base classes have been removed from future releases. This also requires a dependency on appcompat which we cannot do. The "framework" module was also removed for future relases.

JakeWharton avatar Jun 30 '15 16:06 JakeWharton