Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #49 from R3PI/develop
Browse files Browse the repository at this point in the history
Release 1.1.3
  • Loading branch information
tomjhall authored Jan 8, 2017
2 parents 9aa7ccd + 3784a2f commit 202fd38
Show file tree
Hide file tree
Showing 8 changed files with 234 additions and 66 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Change Log
==========

Version 1.1.3
----------------------------
* Removed dependency on AutoValue
* Fixed issue ClassNotFoundException when deserializing custom object.

Version 1.1.2
----------------------------
* Fixed BadParcelException when unmarshalling with RecyclerView or Toolbar Views.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Defrag is available in the jCenter repository:

```java
dependencies {
compile 'com.solera.defrag:defrag:1.1.2'
compile 'com.solera.defrag:defrag:1.1.3'
}
```

Expand Down
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ apply plugin: 'com.android.application'
apply plugin: 'android-apt'

android {
compileSdkVersion 23
buildToolsVersion '23.0.3'
compileSdkVersion 25
buildToolsVersion '25.0.1'

defaultConfig {
applicationId "com.solera.defragsample"
minSdkVersion 16
targetSdkVersion 23
targetSdkVersion 25
versionCode 1
versionName "1.0"
}
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.2'
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
Expand Down
14 changes: 4 additions & 10 deletions defrag/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'android-apt'

group = 'com.solera.defrag'
version = '1.1.2'
version = '1.1.3'


android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
compileSdkVersion 25
buildToolsVersion "25.0.1"

defaultConfig {
minSdkVersion 16
targetSdkVersion 23
targetSdkVersion 25
versionCode 2
versionName "${version}"
}
Expand All @@ -31,12 +31,6 @@ dependencies {

compile "com.android.support:appcompat-v7:${android_support_lib_version}"
compile "com.android.support:support-annotations:${android_support_lib_version}"

// Auto value
provided "com.google.auto.value:auto-value:${auto_value_lib_version}"
apt "com.google.auto.value:auto-value:${auto_value_lib_version}"
apt "com.ryanharter.auto.value:auto-value-parcel:0.2.5"
compile "com.ryanharter.auto.value:auto-value-parcel-adapter:0.2.5"
}

def siteUrl = 'https://github.com/R3PI/Defrag'
Expand Down
42 changes: 37 additions & 5 deletions defrag/src/main/java/com/solera/defrag/TraversalAnimation.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,55 @@
import android.animation.Animator;
import android.support.annotation.IntDef;
import android.support.annotation.NonNull;
import com.google.auto.value.AutoValue;
import java.lang.annotation.Retention;

import static java.lang.annotation.RetentionPolicy.SOURCE;

@AutoValue public abstract class TraversalAnimation {
public class TraversalAnimation {
public static final int ABOVE = 0;
public static final int BELOW = 1;
private final Animator animator;
private final int drawOrder;

@NonNull public static TraversalAnimation newInstance(@NonNull Animator animator,
@AnimateInDrawOrder int drawOrder) {
return new AutoValue_TraversalAnimation(animator, drawOrder);
return new TraversalAnimation(animator, drawOrder);
}

@NonNull abstract Animator animator();
private TraversalAnimation(@NonNull Animator animator, @AnimateInDrawOrder int drawOrder) {
this.animator = animator;
this.drawOrder = drawOrder;
}

@NonNull Animator animator() {
return animator;
}

@AnimateInDrawOrder int drawOrder() {
return drawOrder;
}

@Override public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;

@AnimateInDrawOrder abstract int drawOrder();
TraversalAnimation that = (TraversalAnimation) o;

return drawOrder == that.drawOrder && animator.equals(that.animator);
}

@Override public int hashCode() {
int result = animator.hashCode();
result = 31 * result + drawOrder;
return result;
}

@Override public String toString() {
return "TraversalAnimation{" +
"animator=" + animator +
", drawOrder=" + drawOrder +
'}';
}

@Retention(SOURCE) @IntDef({ ABOVE, BELOW }) public @interface AnimateInDrawOrder {
}
Expand Down
Loading

0 comments on commit 202fd38

Please sign in to comment.