Skip to content

Commit

Permalink
Merge pull request #1018 from Raizlabs/develop
Browse files Browse the repository at this point in the history
Version 4.0.0-beta1
  • Loading branch information
agrosner authored Oct 17, 2016
2 parents 74bb93c + 9497650 commit 530cd6c
Show file tree
Hide file tree
Showing 347 changed files with 8,204 additions and 12,085 deletions.
10 changes: 6 additions & 4 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-3.1.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)
[![JitPack.io](https://img.shields.io/badge/JitPack.io-4.0.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)

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

Expand All @@ -10,7 +10,7 @@ Let DBFlow make SQL code _flow_ like a _steady_ stream so you can focus on writi

# Why Use DBFlow
DBFlow is built from a collection of the best features of many database libraries in the most efficient way possible. Also, it is built to not only make it _significantly_ easier to deal with databases on Android, but also to provide extensibility. Don't let an ORM or library get in your way, let the code you write in your applications be the best as possible.
- **Extensibility**: The main table object, `Model`, is just an interface. No subclass required, but as a convenience we recommend using `BaseModel`. You can extend non-`Model` classes in different packages and use them as your DB tables. Also you can subclass other `Model` to join the `@Column` together, and again they can be in different packages.
- **Extensibility**: No restrictions on inheritance of your table classes. They can be plain POJOs, no subclass required, but as a convenience we recommend using `BaseModel`. You can extend non-`Model` classes in different packages and use them as your DB tables. Also you can subclass other tables to join the `@Column` together, and again they can be in different packages.
- **Speed**: Built with java's annotation processing code generation, there's almost zero runtime performance hit by using this library (only reflection is creation of the main, generated database module's constructor). This library saves hours of boilerplate code and maintenance by generating the code for you. With powerful model caching (multiple primary key `Model` too), you can surpass the speed of SQLite by reusing where possible. We have support for lazy-loading relationships on-demand such as `@ForeignKey` or `@OneToMany` that make queries happen super-fast.
- **SQLite Query Flow**: The queries in this library adhere as closely as possible to SQLite native queries. `select(name, screenSize).from(Android.class).where(name.is("Nexus 5x")).and(version.is(6.0)).querySingle()`
- **Open Source**: This library is fully open source and contributions are not only welcomed, but encouraged.
Expand Down Expand Up @@ -57,7 +57,7 @@ Add the library to the project-level build.gradle, using the apt plugin to enabl
apply plugin: 'com.neenbedankt.android-apt'
def dbflow_version = "3.1.1"
def dbflow_version = "4.0.0-beta1"
// 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 All @@ -67,9 +67,11 @@ Add the library to the project-level build.gradle, using the apt plugin to enabl
compile "com.github.Raizlabs.DBFlow:dbflow-core:${dbflow_version}"
compile "com.github.Raizlabs.DBFlow:dbflow:${dbflow_version}"
// sql-cipher database encyrption (optional)
// sql-cipher database encryption (optional)
compile "com.github.Raizlabs.DBFlow:dbflow-sqlcipher:${dbflow_version}"
compile "net.zetetic:android-database-sqlcipher:${sqlcipher_version}@aar"
// kotlin extensions
compile "com.github.Raizlabs.DBFlow:dbflow-kotlinextensions:${dbflow_version}"
}
Expand Down
46 changes: 0 additions & 46 deletions app/build.gradle

This file was deleted.

18 changes: 0 additions & 18 deletions app/src/main/AndroidManifest.xml

This file was deleted.

43 changes: 0 additions & 43 deletions app/src/main/java/com/raizlabs/android/dbflow/AModel.java

This file was deleted.

22 changes: 0 additions & 22 deletions app/src/main/java/com/raizlabs/android/dbflow/AModelView.java

This file was deleted.

14 changes: 0 additions & 14 deletions app/src/main/java/com/raizlabs/android/dbflow/AppDatabase.java

This file was deleted.

44 changes: 0 additions & 44 deletions app/src/main/java/com/raizlabs/android/dbflow/DemoActivity.java

This file was deleted.

17 changes: 0 additions & 17 deletions app/src/main/java/com/raizlabs/android/dbflow/Migration1.java

This file was deleted.

16 changes: 0 additions & 16 deletions app/src/main/java/com/raizlabs/android/dbflow/Migration2.java

This file was deleted.

19 changes: 0 additions & 19 deletions app/src/main/java/com/raizlabs/android/dbflow/OtherModel.java

This file was deleted.

This file was deleted.

17 changes: 0 additions & 17 deletions app/src/main/java/com/raizlabs/android/dbflow/SecondModel.java

This file was deleted.

16 changes: 0 additions & 16 deletions app/src/main/res/layout/activity_demo.xml

This file was deleted.

9 changes: 0 additions & 9 deletions app/src/main/res/menu/menu_demo.xml

This file was deleted.

6 changes: 0 additions & 6 deletions app/src/main/res/values-w820dp/dimens.xml

This file was deleted.

5 changes: 0 additions & 5 deletions app/src/main/res/values/dimens.xml

This file was deleted.

7 changes: 0 additions & 7 deletions app/src/main/res/values/strings.xml

This file was deleted.

5 changes: 2 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.2'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
classpath 'com.android.tools.build:gradle:2.1.3'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
}
}

Expand Down
2 changes: 0 additions & 2 deletions dbflow-core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
apply plugin: 'java'

group= 'com.raizlabs.android'

project.ext.artifactId = bt_name

targetCompatibility = JavaVersion.VERSION_1_7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,10 @@ public static boolean isNotNullOrEmpty(String inString) {
return inString != null && !inString.equals("") && inString.length() > 0;
}

/**
* @return true if the string is null, empty string "", or the length is less than equal to 0
*/
public static boolean isNullOrEmpty(String inString) {
return inString == null || inString.equals("") || inString.length() <= 0;
}
}
Loading

0 comments on commit 530cd6c

Please sign in to comment.