realm-java icon indicating copy to clipboard operation
realm-java copied to clipboard

Re-writing accessors transformer using the new AGP API

Open nhachicha opened this issue 3 years ago • 1 comments

  • [x] Migrating the Realm accessor Transformer to use the new AHP transformer API
  • [x] Migrated Gradle plugin from Groovy to Kotlin.
  • [ ] Re-writing the internal object server transformer.

nhachicha avatar Jun 30 '22 16:06 nhachicha

@rorbech I updated the current WIP

  • Currently, the JNI generated header files (.h) are not created if we invoke assemble, this might be caused by the various bumps to Gradle and AGP ... if you run compileBaseReleaseJavaWithJavac for instance then it will compile and generate the headers.
  • The internal transformer (the one that strips the ObjectServer symbols) needs to be re-written similarly to the accessor one.
  • I updated some tests projects to run the new transformer against them
  • We need to create a feature branch and release from it (probably using this template https://github.com/realm/realm-java/pull/7704

For reference:

  • https://issuetracker.google.com/issues/237190740#comment4

nhachicha avatar Jul 27 '22 09:07 nhachicha

I manually verified that all our examples are running with the current state. Also verified that updating model and other sources is properly rebuilt in incremental builds for a couple of the examples.

rorbech avatar Aug 31 '22 10:08 rorbech