Uploaded image for project: 'Realm Java SDK'
  1. Realm Java SDK
  2. RJAVA-1140

Allow consumers to prefer APT in Kotlin projects

      Problem

      There is currently no way to bypass the usage of kapt for Kotlin projects using Realm. The plugin's code has a pending TODO comment about allowing the configuration of this setting, but no way to actually control it. This prevents people from using tools like NAPT for improving the build speed of their project. For instance, in my case, the only remaining library to rely on kapt is Realm and I'd like to move away from it to speed up compilations.

      Unfortunately, moving to realm-kotlin is not a realistic alternative because of the huge undertaking in migrating the codebase to support it.

      Solution

      I'd like to request that a preferAptOnKotlinProject flag be added to its DSL of the Gradle plugin, with a default value of false.

      Alternatives

      No response

      How important is this improvement for you?

      I'd like to see it, but have a workaround

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: