Skip to content

Commit

Permalink
Prepare version 0.3.0 for the release
Browse files Browse the repository at this point in the history
  • Loading branch information
skoric committed May 15, 2019
1 parent f1d7d5a commit f3cf913
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Change Log
==========

Version 0.3.0 *(2019-05-15)*
----------------------------
* AndroidX support. ([#28](https://github.com/PSPDFKit-labs/VanGogh/pull/28))

Version 0.2.0 *(2017-11-27)*
----------------------------
* *Important:* Duration is no more pre-determined by the library but uses the default duration defined by Android in `ValueAnimator`. Quick animations use 60% of that duration value and slow animations use 300%. ([#20](https://github.com/PSPDFKit-labs/VanGogh/issues/20))
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ repositories {
And latest version to your dependencies:

```gradle
compile 'com.pspdfkit-labs:vangogh:0.2.0'
compile 'com.pspdfkit-labs:vangogh:0.3.0'
```

Snapshots of the development version are available in [Sonatype's snapshots repository](https://oss.sonatype.org/content/repositories/snapshots/).
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ org.gradle.jvmargs=-Xmx1536m
# org.gradle.parallel=true

GROUP=com.pspdfkit-labs
VERSION_NAME=0.2.1-SNAPSHOT
VERSION_NAME=0.3.0

POM_DESCRIPTION=Android view animations powered by RxJava2.
POM_URL=https://github.com/PSPDFKit-labs/VanGogh
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package com.pspdfkit.labs.vangogh.rx;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.core.view.ViewCompat;
import androidx.core.view.ViewPropertyAnimatorCompat;
import androidx.core.view.ViewPropertyAnimatorListener;
import android.view.View;
import com.pspdfkit.labs.vangogh.base.Animation;
import io.reactivex.Completable;
import io.reactivex.CompletableObserver;
import io.reactivex.annotations.NonNull;
import io.reactivex.annotations.Nullable;
import io.reactivex.functions.Consumer;

/**
Expand Down Expand Up @@ -37,13 +37,13 @@ public final class AnimationCompletable extends Completable implements OnAnimati
@Nullable private ViewPropertyAnimatorCompat animator;

/** Tracks whether the animation is still running. */
@Nullable private boolean isAnimationRunning = false;
private boolean isAnimationRunning = false;

/**
* Creates completable that runs provided animation once subscribed to.
* @param animation Animation to run when subscribed.
*/
public AnimationCompletable(Animation animation) {
public AnimationCompletable(@NonNull Animation animation) {
this.animation = animation;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package com.pspdfkit.labs.vangogh.rx;

import androidx.annotation.NonNull;

import io.reactivex.android.MainThreadDisposable;
import io.reactivex.annotations.NonNull;

/**
* Represents disposable resource for animations.
Expand All @@ -15,15 +16,13 @@ public final class AnimationDisposable extends MainThreadDisposable {
* Creates disposable that can notify the listener when disposed.
* @param onAnimationDisposedListener Listener being notified when this disposable is disposed.
*/
public AnimationDisposable(OnAnimationDisposedListener onAnimationDisposedListener) {
public AnimationDisposable(@NonNull OnAnimationDisposedListener onAnimationDisposedListener) {
this.onAnimationDisposedListener = onAnimationDisposedListener;
}

@Override
protected void onDispose() {
if (onAnimationDisposedListener != null) {
onAnimationDisposedListener.onAnimationDisposed();
}
onAnimationDisposedListener.onAnimationDisposed();
}

}
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package com.pspdfkit.labs.vangogh.rx;

/**
* Listener used to notify that the animation has been disposed, more precisely {@link AnimationDisposable}.
* Listener used to notify that the animation has been
* disposed, more precisely {@link AnimationDisposable}.
*/
interface OnAnimationDisposedListener {

Expand Down

0 comments on commit f3cf913

Please sign in to comment.