Multiple @RealmModule
s with same class name can cause erroneous schema definitions
#7860
Labels
@RealmModule
s with same class name can cause erroneous schema definitions
#7860
How frequently does the bug occur?
Sometimes
Description
Defining a library and an app module with an
@RealmModule
with a equal class name can cause configurations to pick up the wrong schema. Both@RealmModule
-classes must have the same name (but needs to be in separate packages to avoid class name overlaps).Library:
App:
Due to the layout of our mediators both of the above modules will generate a mediator class named
io.realm.ModuleMediator
. For some reason compilation of the final app will silently discard one of the classes instead of throwing a compilation error.Note: Somehow the project setup can be dictating how the final app is build and which of the two modules that will end up in the final package. Thus, it is not guaranteed to fail.
Similar issue reported in #7855
Stacktrace & log output
No response
Can you reproduce the bug?
Sometimes
Reproduction Steps
No response
Version
1.17.0
What Atlas App Services are you using?
Both Atlas Device Sync and Atlas App Services
Are you using encryption?
No
Platform OS and version(s)
Android API 33
Build environment
Android Build Tools version: 8.1.4
Gradle version: 8.3
The text was updated successfully, but these errors were encountered: