-
Notifications
You must be signed in to change notification settings - Fork 583
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
Major modifications: Addition of ContentProvider and column name changed from id to _id. #556
Conversation
…t simply drops tables and recreates them.
…ata tags to avoid conflicts with other libraries.
I will take a look tomorrow, thanks |
Ok. Will try to have a look when i can... Enviado do meu iPad No dia 30/03/2016, às 22:13, Mention Bot notifications@github.com escreveu:
|
@@ -1,6 +1,14 @@ | |||
apply plugin: 'com.android.library' | |||
apply from: '../maven_push.gradle' | |||
|
|||
// https://docs.gradle.org/current/userguide/publishing_maven.html | |||
// http://www.flexlabs.org/2013/06/using-local-aar-android-library-packages-in-gradle-builds | |||
apply plugin: 'maven-publish' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you also put in the Sugar example how to use the SugarContentProvider? And maybe add some docs? If you have any questions you could chat with me here: https://gitter.im/satyan/sugar or https://gitter.im/sibeliusseraphini or twitter |
I'm not sure how to fix the tabs, I always use tabs, so my editors are configured for them. |
I'm sure that every editor has the option to change tabs for spaces, don't you use android studio? |
…le schema generator.
I do, i just have no idea how to switch it, as it's never been an issue with modern editors, compilers or languages :) Which class specifically needs to be fixed? I was trying not to get the editor to change them, so hopefully it's not every file. |
By the way, feel free to edit as you see fit, I will not be offended. |
# Conflicts: # library/src/main/java/com/orm/SchemaGenerator.java # library/src/main/java/com/orm/SugarContext.java # library/src/test/java/com/orm/SchemaGeneratorTest.java # sugar.iml
I've just merged your master into my master, so the pull request should be in sync again. |
@bpappin do you have an idea or some code of how to migrate a production app using |
Do you think that a migration script could fix this? |
I don't know, someone is going to have to test it. |
Could you solve the conflicts? |
… changes to work around it.
Yes, need to do a sync with the main branch anyway. I had to do some messing around with configuration because the class scanner stopped working when I updated to Android Studio 2.0.0 and updated Gradle. |
we want to release this as an alpha version of Sugar 2.0 |
There are a lot of pull results that will need working through, I will try and get them merged shortly. I suspect this code will need some cleanup and testing done as right not it works for me, but I haven't tried anywhere else. |
@bpappin There is no problem, we can do the clean up and test! Don't worry about that! |
Please enter the commit message for your changes. Lines starting
I'm having a lot of trouble with the merge, there are a lot of small things that change entire files. |
At this stage, I'm wondering if it would be easier to start with a clean head version and redo the changes. |
you could create a branch from master, then you could cherry-pick yours commits |
I'm just not finding the merge easy, to many little changes, and this week got busy. I'll see if I can make some time for it, in a few days. |
Hi, not to sound ungrateful/whiny but when can we expect this to be merged successfully, or see a 2.0 release? I ask because I haven't seen any activity on this thread for a while so I have no idea what timeframe is involved. We have ~4 apps using Sugar that will enter production in the near future. Data loss being a big deal in our industry, it would make all our lives easier if we didn't have to force our clients to reinstall between 1.x and 2.0 so I'd rather wait to release our apps with Sugar 2.0. @bpappin @JonatanSalas I'm not the greatest at unit testing but am willing to do physical QA (time permitting) if that will expedite things. Goes without saying I love this library and the hard work y'all have put into it! |
OK, so I finally have a few cycles to come back to this. What's the status of this pull request from a project perspective at this point? |
I am assuming i can close this PR? |
Close as obsolete |
These are some major modifications in order to support several new features, most important among them, a new ContentProvider, so you can work with CursorLoader and the CursorAdapters.
This code is not compatible with version 1.5 of Sugar, mainly because the
id
column has been changed to_id
as defined inandroid.provider.BaseColumns._ID
(should have been like that from the start IMO) and I don't expect it to be merged.At this point I am just making sure I share the code back to the project.