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

Made JSR 305 compileOnly #219

Merged
merged 1 commit into from
May 27, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,10 @@
import android.arch.lifecycle.LifecycleOwner;
import android.arch.lifecycle.OnLifecycleEvent;
import android.support.annotation.CheckResult;

import android.support.annotation.NonNull;
import com.trello.rxlifecycle2.LifecycleProvider;
import com.trello.rxlifecycle2.LifecycleTransformer;
import com.trello.rxlifecycle2.RxLifecycle;

import javax.annotation.Nonnull;

import io.reactivex.Observable;
import io.reactivex.subjects.BehaviorSubject;

Expand All @@ -38,21 +35,21 @@ private AndroidLifecycle(LifecycleOwner owner) {
owner.getLifecycle().addObserver(this);
}

@Nonnull
@NonNull
@Override
@CheckResult
public Observable<Lifecycle.Event> lifecycle() {
return lifecycleSubject.hide();
}

@Nonnull
@NonNull
@Override
@CheckResult
public <T> LifecycleTransformer<T> bindUntilEvent(@Nonnull Lifecycle.Event event) {
public <T> LifecycleTransformer<T> bindUntilEvent(@NonNull Lifecycle.Event event) {
return RxLifecycle.bindUntilEvent(lifecycleSubject, event);
}

@Nonnull
@NonNull
@Override
@CheckResult
public <T> LifecycleTransformer<T> bindToLifecycle() {
Expand Down
2 changes: 1 addition & 1 deletion rxlifecycle/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repositories {

dependencies {
compile rootProject.ext.rxJava
compile rootProject.ext.jsr305Annotations
compileOnly rootProject.ext.jsr305Annotations

testCompile rootProject.ext.junit
}
Expand Down