Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application release minify enabled #2

Open
azetor opened this issue Feb 22, 2017 · 2 comments
Open

Application release minify enabled #2

azetor opened this issue Feb 22, 2017 · 2 comments

Comments

@azetor
Copy link

azetor commented Feb 22, 2017

I have problem with release build of application (proguard enabled). All observables not emitting any events when is added bind to fragment. Do You have any idea how to configure proguard for this lib?
Example code:

public class TestFragment extends android.support.v4.app.Fragment{

    @Override public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        new RxDao()
                .fetchAll()
                .compose(RxLifecycleCompact.bind(this).withObservable())
                .subscribeOn(Schedulers.newThread())
                .observeOn(AndroidSchedulers.mainThread())
                .subscribe(this::addItems);
    }
}

build.gradle.txt
proguard-rules.pro.txt

@weixinfree
Copy link

is every things ok without proguard? After read the source code, I do not think it is proguard problem.

@nekocode
Copy link
Contributor

This library doesn't need any configuration for proguard. It seems that your problem is not caused by proguard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants