-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
JSON Import API #489
JSON Import API #489
Conversation
…lm-java into cm-json-import-api
Conflicts: realm/src/main/java/io/realm/Realm.java
@@ -3,7 +3,7 @@ buildscript { | |||
jcenter() | |||
} | |||
dependencies { | |||
classpath 'com.android.tools.build:gradle:0.12.2' | |||
classpath 'com.android.tools.build:gradle:0.13.+' |
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.
Good change but this should be another PR
Updated with fixes for comments + added file with notes about API. |
…er. Regexp for checking date syntax.
There is a unit test for it testing all data types with a null value, it defaults to the default value for that datatype. I have updated the JavaDoc for the Json methods so this is clarified. |
Conflicts: changelog.txt
} | ||
|
||
dependencies { | ||
compile 'io.realm:realm-android:0.75.1' |
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.
update to 0.76.0
…leaned up JsonExample.
protected void setUp() throws Exception { | ||
Realm.deleteRealmFile(getContext()); | ||
testRealm = Realm.getInstance(getContext()); | ||
testRealm.beginTransaction(); |
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.
No need to delete objects when the file has been deleted.
} | ||
|
||
public void testImportStream_DateAsLong() throws IOException { | ||
InputStream in = loadJsonFromAssets("date_as_long.json"); |
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.
These 5 lines are repeated through out the next many tests. Make a local method for that.
API methods :
A few comments: