Skip to content
This repository has been archived by the owner on Aug 17, 2020. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: square/sqlbrite
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: trunk
Choose a base ref
...
head repository: Tractive/sqlbrite
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
  • 9 commits
  • 4 files changed
  • 4 contributors

Commits on Dec 18, 2015

  1. Copy the full SHA
    6b564f4 View commit details
  2. Merge pull request #1 from Tractive/feature/expose_trigger

    MOD expose triggers to automatically refresh a query
    xMikeTx committed Dec 18, 2015
    Copy the full SHA
    4df3ebd View commit details

Commits on Dec 21, 2015

  1. MOD update build tools version

    ADD jitpack dependencies
    mit-tractive committed Dec 21, 2015
    Copy the full SHA
    32ed562 View commit details

Commits on Dec 22, 2015

  1. Update README.md

    xMikeTx committed Dec 22, 2015
    Copy the full SHA
    3389053 View commit details

Commits on Feb 18, 2016

  1. Merge branch 'master' of https://github.com/square/sqlbrite into upda…

    …te_from_parent
    
    # Conflicts:
    #	sqlbrite/src/main/java/com/squareup/sqlbrite/BriteDatabase.java
    sth-tractive committed Feb 18, 2016
    Copy the full SHA
    a0d847a View commit details

Commits on Apr 25, 2016

  1. Copy the full SHA
    d5fe025 View commit details

Commits on Jul 12, 2016

  1. Merge branch 'master' of https://github.com/square/sqlbrite

    # Conflicts:
    #	build.gradle
    xMikeTx committed Jul 12, 2016
    Copy the full SHA
    4739a40 View commit details
  2. Copy the full SHA
    45d0750 View commit details

Commits on Sep 20, 2016

  1. Copy the full SHA
    1824981 View commit details
Showing with 17 additions and 2 deletions.
  1. +6 −0 README.md
  2. +2 −1 build.gradle
  3. +4 −0 sqlbrite/build.gradle
  4. +5 −1 sqlbrite/src/main/java/com/squareup/sqlbrite/BriteDatabase.java
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
This is a fork of the official SQLBrite repository which includes an exposure of the database triggers as a convenience

```java
getTriggersSubject().onNext(Collections.singleton([table_name]))
```

SQLBrite
========

3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -11,7 +11,8 @@ allprojects {
}

ext {
androidPlugin = 'com.android.tools.build:gradle:2.1.0'
androidPlugin = 'com.android.tools.build:gradle:2.1.2'
decendentsPlugin = 'com.github.dcendents:android-maven-gradle-plugin:1.4'
compileSdkVersion = 24
buildToolsVersion = '24.0.0'

4 changes: 4 additions & 0 deletions sqlbrite/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
buildscript {
dependencies {
classpath rootProject.ext.androidPlugin
classpath rootProject.ext.decendentsPlugin
}
}

apply plugin: 'com.android.library'
apply from: rootProject.file('gradle/android-findbugs.gradle')
apply plugin: 'com.github.dcendents.android-maven'

group='com.github.Tractive'

dependencies {
compile rootProject.ext.rxJava
Original file line number Diff line number Diff line change
@@ -129,7 +129,11 @@ public void setLoggingEnabled(boolean enabled) {
logging = enabled;
}

SQLiteDatabase getReadableDatabase() {
public PublishSubject<Set<String>> getTriggersSubject() {
return triggers;
}

private SQLiteDatabase getReadableDatabase() {
SQLiteDatabase db = readableDatabase;
if (db == null) {
synchronized (databaseLock) {