realm / realm-java

Realm is a mobile database: a replacement for SQLite & ORMs
http://realm.io
Apache License 2.0
11.45k stars 1.75k forks source link

[Transformer] Add support for incremental builds #7816

Closed clementetb closed 1 year ago

clementetb commented 1 year ago

Add support for incremental builds to the new transformer API with Gradle incremental tasks.

The logic is similar to the previous incremental builds: we process and update only the modified files, but now the source of changes is the gradle task instead of the Gradle plugin.

One particularity of the new transformer API is that before the classes were outputted in a plain directory, whereas now they are in a single Jar file.

Incremental builds can be disabled by setting the gradle property io.realm.disableIncrementalBuilds to true.

Tested manually with a sample app with:

TODO

clementetb commented 1 year ago

@rorbech validated that configuration-cache works normally.