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
// ref : https://gist.github.com/cmelchior/1a97377df0c49cd4fca9 | |
private void initGson() { | |
Type tokenInt = new TypeToken<RealmList<RealmInt>>(){}.getType(); | |
Type tokenString = new TypeToken<RealmList<RealmString>>(){}.getType(); | |
Type tokenDate = new TypeToken<Date>(){}.getType(); | |
mGson = new GsonBuilder() | |
.setDateFormat("yyyy-MM-dd'T'HH:mm:ss.ssssss") | |
.setExclusionStrategies(new ExclusionStrategy() { | |
@Override |