Skip to content

Commit

Permalink
Merge pull request #1325 from Raizlabs/develop
Browse files Browse the repository at this point in the history
4.0.4
  • Loading branch information
agrosner authored Jun 9, 2017
2 parents 8b1e3f7 + 1c90d6c commit 43dd2f6
Show file tree
Hide file tree
Showing 45 changed files with 442 additions and 441 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Add the library to the project-level build.gradle, using the apt plugin to enabl

```groovy
def dbflow_version = "4.0.3"
def dbflow_version = "4.0.4"
// or dbflow_version = "develop-SNAPSHOT" for grabbing latest dependency in your project on the develop branch
// or 10-digit short-hash of a specific commit. (Useful for bugs fixed in develop, but not in a release yet)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Description: An annotation used to ignore a column in the {@link Table#allFields()} instance.
*/
@Retention(RetentionPolicy.SOURCE)
@Retention(RetentionPolicy.CLASS)
@Target(ElementType.FIELD)
public @interface ColumnIgnore {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package com.raizlabs.android.dbflow.converter;

import java.math.BigInteger;

/**
* Description: Defines how we store and retrieve a {@link java.math.BigInteger}
*/
public class BigIntegerConverter extends TypeConverter<String, BigInteger> {
@Override
public String getDBValue(BigInteger model) {
return model == null ? null : model.toString();
}

@Override
public BigInteger getModelValue(String data) {
return data == null ? null : new BigInteger(data);
}
}
1 change: 0 additions & 1 deletion dbflow-jack-tests/.gitignore

This file was deleted.

32 changes: 0 additions & 32 deletions dbflow-jack-tests/build.gradle

This file was deleted.

25 changes: 0 additions & 25 deletions dbflow-jack-tests/proguard-rules.pro

This file was deleted.

5 changes: 0 additions & 5 deletions dbflow-jack-tests/src/main/AndroidManifest.xml

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,6 @@ object ClassNames {

val SINGLE_KEY_CACHEABLE_MODEL_LOADER = ClassName.get(QUERIABLE, "SingleKeyCacheableModelLoader")
val SINGLE_KEY_CACHEABLE_LIST_MODEL_LOADER = ClassName.get(QUERIABLE, "SingleKeyCacheableListModelLoader")

val NON_NULL = ClassName.get("android.support.annotation", "NonNull")
}
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ class TypeConverterHandler : BaseContainerHandler<TypeConverter>() {
// Check here if user already placed definition of same type, since default converters
// are added last.
if (processorManager.typeConverters
.filter { it.value.modelTypeName == converterDefinition.modelTypeName }
.isEmpty()) {
.filter { it.value.modelTypeName == converterDefinition.modelTypeName }
.isEmpty()) {
processorManager.addTypeConverterDefinition(converterDefinition)
}
}
Expand All @@ -155,10 +155,10 @@ class TypeConverterHandler : BaseContainerHandler<TypeConverter>() {
companion object {
private val VALIDATOR = TypeConverterValidator()
private val DEFAULT_TYPE_CONVERTERS = arrayOf<Class<*>>(CalendarConverter::class.java,
BigDecimalConverter::class.java,
DateConverter::class.java, SqlDateConverter::class.java,
BooleanConverter::class.java, UUIDConverter::class.java,
CharConverter::class.java)
BigDecimalConverter::class.java, BigIntegerConverter::class.java,
DateConverter::class.java, SqlDateConverter::class.java,
BooleanConverter::class.java, UUIDConverter::class.java,
CharConverter::class.java)
}
}

Expand Down
Loading

0 comments on commit 43dd2f6

Please sign in to comment.