forked from pilgr/Paper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request pilgr#37 from pilgr/development
Version 1.5
- Loading branch information
Showing
18 changed files
with
293 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Change Log | ||
========== | ||
|
||
Version 1.5 *(2016-04-28)* | ||
---------------------------- | ||
|
||
* Save all the things! No more restriction to use classes only having no-arg constructor. | ||
* Custom serializers can be added using `Paper.addSerializer()`. | ||
* Kotlin is fully supported now, including saving `data class`es. Saving lambdas is not supported. | ||
|
||
|
||
Version 1.1 *(2015-11-27)* | ||
---------------------------- | ||
|
||
* New ```Paper.book().getAllKeys()``` api | ||
* Proguard config for lib itself is included in aar. | ||
|
||
|
||
Version 1.0 *(2015-09-15)* | ||
---------------------------- | ||
|
||
* New multi-book API. | ||
* 0.9 API is still supported and marked as deprecated. | ||
* Unsafe possibility to write null values is disabled. | ||
|
||
*NOTE:* Data storage format is unchanged. You can easily use files created within version 0.9. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
org.gradle.jvmargs=-XX:MaxPermSize=1024m -XX:+CMSClassUnloadingEnabled -XX:+HeapDumpOnOutOfMemoryError -Xmx2048m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
paperdb/src/androidTest/java/io/paperdb/testdata/ClassWithoutPublicNoArgConstructor.java
This file was deleted.
Oops, something went wrong.
36 changes: 36 additions & 0 deletions
36
paperdb/src/androidTest/java/io/paperdb/testdata/PersonArg.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package io.paperdb.testdata; | ||
|
||
import java.util.Arrays; | ||
|
||
// Person + arg constructor | ||
public class PersonArg extends Person { | ||
public PersonArg(String name) { | ||
super(); | ||
setName("changed" + name); | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || PersonArg.class != o.getClass()) return false; | ||
|
||
PersonArg person = (PersonArg) o; | ||
|
||
if (getAge() != person.getAge()) return false; | ||
if (!Arrays.equals(getBikes(), person.getBikes())) return false; | ||
if (getName() != null ? !getName().equals(person.getName()) : person.getName() != null) | ||
return false; | ||
//noinspection RedundantIfStatement | ||
if (getPhoneNumbers() != null | ||
? !getPhoneNumbers().equals(person.getPhoneNumbers()) | ||
: person.getPhoneNumbers() != null) | ||
return false; | ||
|
||
return true; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return super.hashCode(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.