Skip to content

Commit

Permalink
Made JSR 305 compileOnly
Browse files Browse the repository at this point in the history
  • Loading branch information
dlew committed May 27, 2017
1 parent 687e3f8 commit 8b895cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
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

0 comments on commit 8b895cd

Please sign in to comment.