Skip to content

Commit f2d90db

Browse files
authored
Merge pull request #1234 from Raizlabs/develop
Version 4.0.0-beta6
2 parents 42fdeb4 + bc2afe4 commit f2d90db

File tree

464 files changed

+10027
-11595
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

464 files changed

+10027
-11595
lines changed

.github/CONTRIBUTING.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
Contributing Guidelines
2+
--------------------------------------------------
3+
4+
This document provides general guidelines about how to contribute to the project. Keep in mind these important things before you start contributing.
5+
6+
## Reporting issues
7+
8+
* Use [github issues](https://github.com/Raizlabs/DBFlow/issues) to report a bug.
9+
* Before creating a new issue:
10+
* Make sure you are using the [latest release](https://github.com/Raizlabs/DBFlow/releases).
11+
* Check if the issue was [already reported or fixed](https://github.com/Raizlabs/DBFlow/issues?utf8=%E2%9C%93&q=is%3Aissue). Notice that it may not be released yet.
12+
* If you found a match add the github "+1" reaction brief comment. This helps prioritize the issues addressing the most common and critical ones first. If possible, add additional information to help us reproduce, and find the issue. Please use your best judgement.
13+
* Reporting issues:
14+
* Please include the following information to help maintainers to fix the problem faster:
15+
* Android version you are targeting.
16+
* Full console output of stack trace or code compilation error.
17+
* Any other additional detail you think it would be useful to understand and solve the problem.
18+
19+
20+
## Pull requests
21+
22+
I welcome and encourage all pull requests. It usually will take me within 24-48 hours to respond to any issue or request. Here are some basic rules to follow to ensure timely addition of your request:
23+
1. Match coding style (braces, spacing, etc.) This is best achieved using CMD+Option+L (Reformat code) on Mac (not sure for Windows) with Android Studio defaults.
24+
2. If its a feature, bugfix, or anything please only change code to what you specify.
25+
3. Please keep PR titles easy to read and descriptive of changes, this will make them easier to merge :)
26+
4. Pull requests _must_ be made against `develop` branch. Any other branch (unless specified by the maintainers) will get rejected.
27+
28+
29+
### Suggested git workflow to contribute
30+
31+
1. Fork the repository.
32+
2. Clone your forked project into your developer machine: `git clone git@github.com:<your-github-username>/DBFlow.git`
33+
3. Add the original project repo as upstream repository in your forked project: `git remote add upstream git@github.com:DBFlow/DBFlow.git`
34+
4. Before starting a new feature make sure your forked develop branch is synchronized upstream master branch. Considering you do not mere your pull request into develop you can run: `git checkout master` and then `git pull upstream develop`. Optionally `git push origin develop`.
35+
5. Create a new branch. Note that the starting point is the upstream develop branch HEAD. `git checkout -b my-feature-name`
36+
6. Stage all your changes `git add .` and commit them `git commit -m "Your commit message"`
37+
7. Make sure your branch is up to date with upstream develop, `git pull --rebase upstream develop`, resolve conflicts if necessary. This will move your commit to the top of git stack.
38+
8. Squash your commits into one commit. `git rebase -i HEAD~6` considering you did 6 commits.
39+
9. Push your branch into your forked remote repository.
40+
10. Create a new pull request adding any useful comment.
41+
42+
43+
### Feature proposal
44+
45+
We would love to hear your ideas and make discussions about it.
46+
47+
* Use github issues to make feature proposals.
48+
* We use `type: feature request` label to mark all [feature request issues](https://github.com/Raizlabs/DBFlow/labels/type%3A%20feature%20request).
49+
* Before submitting your proposal make sure there is no similar feature request. If you find a match, feel free to join the discussion or just or just act with a reaction if you think the feature is worth implementing.
50+
* Be as specific as possible providing a precise explanation of the feature so anyone can understand the problem and the benefits of solving it.

README.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ DBFlow is built from a collection of the best features of many database librarie
1414
- **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.
1515
- **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()`
1616
- **Open Source**: This library is fully open source and contributions are not only welcomed, but encouraged.
17-
- **Robust**: We support `Trigger`, `ModelView`, `Index`, `Migration`, built-in ways to manage database access, and many more features.
17+
- **Robust**: We support `Trigger`, `ModelView`, `Index`, `Migration`, built-in ways to manage database access, and many more features. SQLCipher, RXJava, and more!
1818
- **Multiple Databases, Multiple Modules**: we seamlessly support multiple database files, database modules using DBFlow in other dependencies, simultaneously.
1919
- **Built On SQLite**: SQLite is the most widely used database engine in world and using it as your base, you are not tied to a limited set of platforms or libraries.
2020

@@ -41,7 +41,7 @@ Add the library to the project-level build.gradle, using the apt plugin to enabl
4141

4242
```groovy
4343
44-
def dbflow_version = "4.0.0-beta5"
44+
def dbflow_version = "4.0.0-beta6"
4545
// or dbflow_version = "develop-SNAPSHOT" for grabbing latest dependency in your project on the develop branch
4646
// or 10-digit short-hash of a specific commit. (Useful for bugs fixed in develop, but not in a release yet)
4747
@@ -56,11 +56,23 @@ Add the library to the project-level build.gradle, using the apt plugin to enabl
5656
5757
// sql-cipher database encryption (optional)
5858
compile "com.github.Raizlabs.DBFlow:dbflow-sqlcipher:${dbflow_version}"
59-
6059
compile "net.zetetic:android-database-sqlcipher:${sqlcipher_version}@aar"
6160
6261
// kotlin extensions
6362
compile "com.github.Raizlabs.DBFlow:dbflow-kotlinextensions:${dbflow_version}"
63+
64+
// RXJava 1 support
65+
compile "com.github.Raizlabs.DBFlow:dbflow-rx:${dbflow_version}"
66+
67+
// RXJava 1 Kotlin Extensions Support
68+
compile "com.github.Raizlabs.DBFlow:dbflow-rx-kotlinextensions:${dbflow_version}"
69+
70+
// RXJava 2 support
71+
compile "com.github.Raizlabs.DBFlow:dbflow-rx2:${dbflow_version}"
72+
73+
// RXJava 2 Kotlin Extensions Support
74+
compile "com.github.Raizlabs.DBFlow:dbflow-rx2-kotlinextensions:${dbflow_version}"
75+
6476
}
6577
6678
// if you're building with Kotlin

build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
buildscript {
2+
ext.kotlin_version = '1.1.1'
23
repositories {
34
jcenter()
45
}
56
dependencies {
6-
classpath 'com.android.tools.build:gradle:2.2.3'
7+
classpath 'com.android.tools.build:gradle:2.3.1'
78
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
89
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.6.2'
10+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
911
}
1012
}
1113

1214
allprojects {
1315
repositories {
1416
jcenter()
17+
maven { url "https://www.jitpack.io" }
1518
}
1619
}
1720

dbflow-core/src/main/java/com/raizlabs/android/dbflow/sql/ForeignKeyCreationBuilder.java

Lines changed: 0 additions & 34 deletions
This file was deleted.

dbflow-jack-tests/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

dbflow-jack-tests/build.gradle

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
apply plugin: 'com.android.application'
2+
3+
android {
4+
compileSdkVersion 25
5+
buildToolsVersion "25.0.2"
6+
7+
defaultConfig {
8+
applicationId "com.grosner.dbflow.jack.tests"
9+
minSdkVersion 9
10+
targetSdkVersion 25
11+
versionCode 1
12+
versionName "1.0"
13+
14+
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
15+
16+
jackOptions {
17+
enabled true
18+
}
19+
}
20+
buildTypes {
21+
release {
22+
minifyEnabled false
23+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
24+
}
25+
}
26+
}
27+
28+
dependencies {
29+
annotationProcessor project("${dbflow_project_prefix}dbflow-processor")
30+
compile project("${dbflow_project_prefix}dbflow-core")
31+
compile project("${dbflow_project_prefix}dbflow")
32+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Add project specific ProGuard rules here.
2+
# By default, the flags in this file are appended to flags specified
3+
# in /Users/andrewgrosner/Library/Android/sdk/tools/proguard/proguard-android.txt
4+
# You can edit the include path and order by changing the proguardFiles
5+
# directive in build.gradle.
6+
#
7+
# For more details, see
8+
# http://developer.android.com/guide/developing/tools/proguard.html
9+
10+
# Add any project specific keep options here:
11+
12+
# If your project uses WebView with JS, uncomment the following
13+
# and specify the fully qualified class name to the JavaScript interface
14+
# class:
15+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16+
# public *;
17+
#}
18+
19+
# Uncomment this to preserve the line number information for
20+
# debugging stack traces.
21+
#-keepattributes SourceFile,LineNumberTable
22+
23+
# If you keep the line number information, uncomment this to
24+
# hide the original source file name.
25+
#-renamesourcefileattribute SourceFile
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<manifest package="com.grosner.dbflow.jack.tests">
2+
3+
<application/>
4+
5+
</manifest>

dbflow-tests/src/main/java/com/raizlabs/android/dbflow/test/AModel.java renamed to dbflow-jack-tests/src/main/java/com/grosner/dbflow/jack/tests/AModel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.raizlabs.android.dbflow.test;
1+
package com.grosner.dbflow.jack.tests;
22

33
import com.raizlabs.android.dbflow.annotation.Column;
44
import com.raizlabs.android.dbflow.annotation.ForeignKey;

dbflow-tests/src/main/java/com/raizlabs/android/dbflow/test/AModelView.java renamed to dbflow-jack-tests/src/main/java/com/grosner/dbflow/jack/tests/AModelView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.raizlabs.android.dbflow.test;
1+
package com.grosner.dbflow.jack.tests;
22

33
import com.raizlabs.android.dbflow.annotation.Column;
44
import com.raizlabs.android.dbflow.annotation.ModelView;

0 commit comments

Comments
 (0)