Open iamutkarshtiwari opened 1 year ago
@iamutkarshtiwari Interesting 🤔 Don't have a hypothesis about why this happens only for 1 preview and not the rest. Would you be kind enough to create a sample project that I can play with so that it's easier to debug/repro.
Is that generated function being referenced anywhere somehow?
Hi @vinaygaba, apologies for the delayed response. No, that generated function is not being referenced anywhere. However, like I mentioned, it's accessible on the consumer side.
I have a gradle setup where I have several public preview methods (> 20) in a module. This module also has some public API that will be consumed. Since I have renamed all the public preview methods with
PreviewXyz
, no one is going to be using it because the intended public API starts withEGDSXyz
so that should be fine.However, there is one issue. For one of those preview methods, a generated class is leaking through.
I am able to access
ShowkaseMetadata_com_xyz_components_composables_scrim()
in the consuming project. I am not sure why this is happening for this preview method only as there are other preview methods that have the exactly same setup and are not leaking through: