File tree 6 files changed +16
-12
lines changed
vangogh/src/main/java/com/pspdfkit/labs/vangogh/rx
6 files changed +16
-12
lines changed Original file line number Diff line number Diff line change 1
1
Change Log
2
2
==========
3
3
4
+ Version 0.3.0 * (2019-05-15)*
5
+ ----------------------------
6
+ * AndroidX support. ([ #28 ] ( https://github.com/PSPDFKit-labs/VanGogh/pull/28 ) )
7
+
4
8
Version 0.2.0 * (2017-11-27)*
5
9
----------------------------
6
10
* * 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 ) )
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ repositories {
41
41
And latest version to your dependencies:
42
42
43
43
``` gradle
44
- compile 'com.pspdfkit-labs:vangogh:0.2 .0'
44
+ compile 'com.pspdfkit-labs:vangogh:0.3 .0'
45
45
```
46
46
47
47
Snapshots of the development version are available in [ Sonatype's snapshots repository] ( https://oss.sonatype.org/content/repositories/snapshots/ ) .
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ org.gradle.jvmargs=-Xmx1536m
13
13
# org.gradle.parallel=true
14
14
15
15
GROUP =com.pspdfkit-labs
16
- VERSION_NAME =0.2.1-SNAPSHOT
16
+ VERSION_NAME =0.3.0
17
17
18
18
POM_DESCRIPTION =Android view animations powered by RxJava2.
19
19
POM_URL =https://github.com/PSPDFKit-labs/VanGogh
Original file line number Diff line number Diff line change 1
1
package com .pspdfkit .labs .vangogh .rx ;
2
2
3
+ import androidx .annotation .NonNull ;
4
+ import androidx .annotation .Nullable ;
3
5
import androidx .core .view .ViewCompat ;
4
6
import androidx .core .view .ViewPropertyAnimatorCompat ;
5
7
import androidx .core .view .ViewPropertyAnimatorListener ;
6
8
import android .view .View ;
7
9
import com .pspdfkit .labs .vangogh .base .Animation ;
8
10
import io .reactivex .Completable ;
9
11
import io .reactivex .CompletableObserver ;
10
- import io .reactivex .annotations .NonNull ;
11
- import io .reactivex .annotations .Nullable ;
12
12
import io .reactivex .functions .Consumer ;
13
13
14
14
/**
@@ -37,13 +37,13 @@ public final class AnimationCompletable extends Completable implements OnAnimati
37
37
@ Nullable private ViewPropertyAnimatorCompat animator ;
38
38
39
39
/** Tracks whether the animation is still running. */
40
- @ Nullable private boolean isAnimationRunning = false ;
40
+ private boolean isAnimationRunning = false ;
41
41
42
42
/**
43
43
* Creates completable that runs provided animation once subscribed to.
44
44
* @param animation Animation to run when subscribed.
45
45
*/
46
- public AnimationCompletable (Animation animation ) {
46
+ public AnimationCompletable (@ NonNull Animation animation ) {
47
47
this .animation = animation ;
48
48
}
49
49
Original file line number Diff line number Diff line change 1
1
package com .pspdfkit .labs .vangogh .rx ;
2
2
3
+ import androidx .annotation .NonNull ;
4
+
3
5
import io .reactivex .android .MainThreadDisposable ;
4
- import io .reactivex .annotations .NonNull ;
5
6
6
7
/**
7
8
* Represents disposable resource for animations.
@@ -15,15 +16,13 @@ public final class AnimationDisposable extends MainThreadDisposable {
15
16
* Creates disposable that can notify the listener when disposed.
16
17
* @param onAnimationDisposedListener Listener being notified when this disposable is disposed.
17
18
*/
18
- public AnimationDisposable (OnAnimationDisposedListener onAnimationDisposedListener ) {
19
+ public AnimationDisposable (@ NonNull OnAnimationDisposedListener onAnimationDisposedListener ) {
19
20
this .onAnimationDisposedListener = onAnimationDisposedListener ;
20
21
}
21
22
22
23
@ Override
23
24
protected void onDispose () {
24
- if (onAnimationDisposedListener != null ) {
25
- onAnimationDisposedListener .onAnimationDisposed ();
26
- }
25
+ onAnimationDisposedListener .onAnimationDisposed ();
27
26
}
28
27
29
28
}
Original file line number Diff line number Diff line change 1
1
package com .pspdfkit .labs .vangogh .rx ;
2
2
3
3
/**
4
- * Listener used to notify that the animation has been disposed, more precisely {@link AnimationDisposable}.
4
+ * Listener used to notify that the animation has been
5
+ * disposed, more precisely {@link AnimationDisposable}.
5
6
*/
6
7
interface OnAnimationDisposedListener {
7
8
You can’t perform that action at this time.
0 commit comments