Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.2.1 #1493

Merged
merged 1 commit into from
Dec 17, 2017
Merged

4.2.1 #1493

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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://img.shields.io/badge/Android%20Weekly-%23129-2CB3E5.svg?style=flat)](http://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://img.shields.io/badge/Android%20Weekly-%23129-2CB3E5.svg?style=flat)](http://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