Required tools for playing around with memory:
hexdump
objdump
readelf
xxd
gcore
// Make a custom Gson instance, with a custom TypeAdapter for each wrapper object. | |
// In this instance we only have RealmList<RealmInt> as a a wrapper for RealmList<Integer> | |
Type token = new TypeToken<RealmList<RealmInt>>(){}.getType(); | |
Gson gson = new GsonBuilder() | |
.setExclusionStrategies(new ExclusionStrategy() { | |
@Override | |
public boolean shouldSkipField(FieldAttributes f) { | |
return f.getDeclaringClass().equals(RealmObject.class); | |
} |
apply plugin: 'jacoco' | |
jacoco { | |
version "0.7.1.201405082137" | |
} | |
task jacocoTestReportAndroidTest(type: JacocoReport, dependsOn: "connectedAndroidTest") { | |
def coverageSourceDirs = [ | |
'src/main/java' | |
] | |
group = "Reporting" |