Skip to content

Commit

Permalink
Merge pull request #1493 from Raizlabs/develop
Browse files Browse the repository at this point in the history
4.2.1
  • Loading branch information
agrosner committed Dec 17, 2017
2 parents 966a9ad + 18733dc commit 6eaee99
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![Image](https://github.com/agrosner/DBFlow/blob/develop/dbflow_banner.png?raw=true)

[![JitPack.io](https://img.shields.io/badge/JitPack.io-4.2.0-red.svg?style=flat)](https://jitpack.io/#Raizlabs/DBFlow) [![Android Weekly](http:https://img.shields.io/badge/Android%20Weekly-%23129-2CB3E5.svg?style=flat)](http:https://androidweekly.net/issues/issue-129) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-DBFlow-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/1134)
[![JitPack.io](https://img.shields.io/badge/JitPack.io-4.2.1-red.svg?style=flat)](https://jitpack.io/#Raizlabs/DBFlow) [![Android Weekly](http:https://img.shields.io/badge/Android%20Weekly-%23129-2CB3E5.svg?style=flat)](http:https://androidweekly.net/issues/issue-129) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-DBFlow-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/1134)

A robust, powerful, and very simple ORM android database library with **annotation processing**.

Expand Down Expand Up @@ -43,7 +43,7 @@ Add the library to the project-level build.gradle, using the apt plugin to enabl
apply plugin: 'kotlin-kapt' // required for kotlin.
def dbflow_version = "4.2.0"
def dbflow_version = "4.2.1"
// 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 @@ -10,6 +10,7 @@
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;

import com.raizlabs.android.dbflow.StringUtils;
import com.raizlabs.android.dbflow.config.FlowManager;
import com.raizlabs.android.dbflow.list.FlowCursorList.OnCursorRefreshListener;
import com.raizlabs.android.dbflow.runtime.FlowContentObserver;
Expand Down Expand Up @@ -60,7 +61,9 @@ public class FlowQueryList<TModel> extends FlowContentObserver


private FlowQueryList(Builder<TModel> builder) {
super(FlowManager.DEFAULT_AUTHORITY);
super(StringUtils.isNotNullOrEmpty(builder.contentAuthority)
? builder.contentAuthority
: FlowManager.DEFAULT_AUTHORITY);
transact = builder.transact;
changeInTransaction = builder.changeInTransaction;
successCallback = builder.success;
Expand Down Expand Up @@ -671,6 +674,8 @@ public static class Builder<TModel> {
private Transaction.Success success;
private Transaction.Error error;

private String contentAuthority;

private Builder(FlowCursorList<TModel> cursorList) {
table = cursorList.table();
cursor = cursorList.cursor();
Expand Down Expand Up @@ -708,6 +713,11 @@ public Builder<TModel> modelCache(ModelCache<TModel, ?> modelCache) {
return this;
}

public Builder<TModel> contentAuthority(String contentAuthority) {
this.contentAuthority = contentAuthority;
return this;
}

/**
* If true, when an operation occurs when we call endTransactionAndNotify, we refresh content.
*/
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version=4.2.0
version=4.2.1
version_code=1
group=com.raizlabs.android
bt_siteUrl=https://github.com/Raizlabs/DBFlow
Expand Down

0 comments on commit 6eaee99

Please sign in to comment.