Search code examples
realm

don't try to rebuild realm model every time run android build?


I am using realm for Android. I notice that every time I run ./gradlew installDebug, it takes some time doing some job processing class xxxx (xxxx is the realm class I use in my project). But actually sometimes I didn't change anything related to that, I was doing some other work(and it has nothing to do with realm).

So I am thinking is there a way to avoid rebuilding realm class every time, in order to save some time while building android app? like a flag I can add before build or something like that.

Thanks.


Solution

  • Indeed. We agree and are looking into it. The problem is that even changes outside the Realm classes can affect the code we generate for the Realm classes. Tracking down those dependencies may be more expensive than just re-processing the code.