-
Notifications
You must be signed in to change notification settings - Fork 601
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1234 from Raizlabs/develop
Version 4.0.0-beta6
- Loading branch information
Showing
464 changed files
with
10,027 additions
and
11,595 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
Contributing Guidelines | ||
-------------------------------------------------- | ||
|
||
This document provides general guidelines about how to contribute to the project. Keep in mind these important things before you start contributing. | ||
|
||
## Reporting issues | ||
|
||
* Use [github issues](https://github.com/Raizlabs/DBFlow/issues) to report a bug. | ||
* Before creating a new issue: | ||
* Make sure you are using the [latest release](https://github.com/Raizlabs/DBFlow/releases). | ||
* 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. | ||
* 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. | ||
* Reporting issues: | ||
* Please include the following information to help maintainers to fix the problem faster: | ||
* Android version you are targeting. | ||
* Full console output of stack trace or code compilation error. | ||
* Any other additional detail you think it would be useful to understand and solve the problem. | ||
|
||
|
||
## Pull requests | ||
|
||
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: | ||
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. | ||
2. If its a feature, bugfix, or anything please only change code to what you specify. | ||
3. Please keep PR titles easy to read and descriptive of changes, this will make them easier to merge :) | ||
4. Pull requests _must_ be made against `develop` branch. Any other branch (unless specified by the maintainers) will get rejected. | ||
|
||
|
||
### Suggested git workflow to contribute | ||
|
||
1. Fork the repository. | ||
2. Clone your forked project into your developer machine: `git clone [email protected]:<your-github-username>/DBFlow.git` | ||
3. Add the original project repo as upstream repository in your forked project: `git remote add upstream [email protected]:DBFlow/DBFlow.git` | ||
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`. | ||
5. Create a new branch. Note that the starting point is the upstream develop branch HEAD. `git checkout -b my-feature-name` | ||
6. Stage all your changes `git add .` and commit them `git commit -m "Your commit message"` | ||
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. | ||
8. Squash your commits into one commit. `git rebase -i HEAD~6` considering you did 6 commits. | ||
9. Push your branch into your forked remote repository. | ||
10. Create a new pull request adding any useful comment. | ||
|
||
|
||
### Feature proposal | ||
|
||
We would love to hear your ideas and make discussions about it. | ||
|
||
* Use github issues to make feature proposals. | ||
* We use `type: feature request` label to mark all [feature request issues](https://github.com/Raizlabs/DBFlow/labels/type%3A%20feature%20request). | ||
* 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. | ||
* Be as specific as possible providing a precise explanation of the feature so anyone can understand the problem and the benefits of solving it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 0 additions & 34 deletions
34
dbflow-core/src/main/java/com/raizlabs/android/dbflow/sql/ForeignKeyCreationBuilder.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
apply plugin: 'com.android.application' | ||
|
||
android { | ||
compileSdkVersion 25 | ||
buildToolsVersion "25.0.2" | ||
|
||
defaultConfig { | ||
applicationId "com.grosner.dbflow.jack.tests" | ||
minSdkVersion 9 | ||
targetSdkVersion 25 | ||
versionCode 1 | ||
versionName "1.0" | ||
|
||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||
|
||
jackOptions { | ||
enabled true | ||
} | ||
} | ||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
annotationProcessor project("${dbflow_project_prefix}dbflow-processor") | ||
compile project("${dbflow_project_prefix}dbflow-core") | ||
compile project("${dbflow_project_prefix}dbflow") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Add project specific ProGuard rules here. | ||
# By default, the flags in this file are appended to flags specified | ||
# in /Users/andrewgrosner/Library/Android/sdk/tools/proguard/proguard-android.txt | ||
# You can edit the include path and order by changing the proguardFiles | ||
# directive in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# Add any project specific keep options here: | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} | ||
|
||
# Uncomment this to preserve the line number information for | ||
# debugging stack traces. | ||
#-keepattributes SourceFile,LineNumberTable | ||
|
||
# If you keep the line number information, uncomment this to | ||
# hide the original source file name. | ||
#-renamesourcefileattribute SourceFile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<manifest package="com.grosner.dbflow.jack.tests"> | ||
|
||
<application/> | ||
|
||
</manifest> |
2 changes: 1 addition & 1 deletion
2
.../raizlabs/android/dbflow/test/AModel.java → ...com/grosner/dbflow/jack/tests/AModel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...zlabs/android/dbflow/test/AModelView.java → ...grosner/dbflow/jack/tests/AModelView.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...labs/android/dbflow/test/AppDatabase.java → ...rosner/dbflow/jack/tests/AppDatabase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
dbflow-jack-tests/src/main/java/com/grosner/dbflow/jack/tests/DemoActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package com.grosner.dbflow.jack.tests; | ||
|
||
import android.app.Activity; | ||
import android.os.Bundle; | ||
import android.view.Menu; | ||
import android.view.MenuItem; | ||
|
||
import com.raizlabs.android.dbflow.config.FlowConfig; | ||
import com.raizlabs.android.dbflow.config.FlowManager; | ||
|
||
|
||
public class DemoActivity extends Activity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
//setContentView(R.layout.activity_demo); | ||
|
||
FlowManager.init(new FlowConfig.Builder(getApplicationContext()).build()); | ||
} | ||
|
||
@Override | ||
public boolean onCreateOptionsMenu(Menu menu) { | ||
// Inflate the menu; this adds items to the action bar if it is present. | ||
//getMenuInflater().inflate(R.menu.menu_demo, menu); | ||
return true; | ||
} | ||
|
||
@Override | ||
public boolean onOptionsItemSelected(MenuItem item) { | ||
// Handle action bar item clicks here. The action bar will | ||
// automatically handle clicks on the Home/Up button, so long | ||
// as you specify a parent activity in AndroidManifest.xml. | ||
int id = item.getItemId(); | ||
|
||
//noinspection SimplifiableIfStatement | ||
//if (id == R.id.action_settings) { | ||
// return true; | ||
//} | ||
|
||
return super.onOptionsItemSelected(item); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...zlabs/android/dbflow/test/Migration1.java → ...grosner/dbflow/jack/tests/Migration1.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...zlabs/android/dbflow/test/Migration2.java → ...grosner/dbflow/jack/tests/Migration2.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...zlabs/android/dbflow/test/OtherModel.java → ...grosner/dbflow/jack/tests/OtherModel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ndroid/dbflow/test/SecondAppDatabase.java → .../dbflow/jack/tests/SecondAppDatabase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...labs/android/dbflow/test/SecondModel.java → ...rosner/dbflow/jack/tests/SecondModel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.