You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the Realm Gradle plugin (0.7.0) in a multiplatform project, the build fails for source sets not using the Realm library (in our case, the JVM) with the following error message:
java.lang.IllegalStateException: Cannot find io.realm.RealmConfiguration.Builder on platform JVM (JVM_1_8).
This was not the case with older versions of the plugin (we upgraded from 0.4.1). As far as I can tell, it was introduced by #395.
The issue comes from the schema lowering extension that tries to find the realm configuration builder (and throws if it doesn't exist) before the builder was actually used for the first time.
The text was updated successfully, but these errors were encountered:
Thanks for the report. We tried to cache class lookups early to avoid duplicate look ups, but didn't think of the use case that the plugin is running on source sets that doesn't depend on our library.
When using the Realm Gradle plugin (0.7.0) in a multiplatform project, the build fails for source sets not using the Realm library (in our case, the JVM) with the following error message:
This was not the case with older versions of the plugin (we upgraded from 0.4.1). As far as I can tell, it was introduced by #395.
The issue comes from the schema lowering extension that tries to find the realm configuration builder (and throws if it doesn't exist) before the builder was actually used for the first time.
The text was updated successfully, but these errors were encountered: