Open Anigif opened 1 year ago
Hi @Anigif, thanks for reporting the issue!
The installreferrer
dependency is indeed an optional dependency – if it is not added to your project, the tracker will not call it's APIs and won't track the entity.
I can reproduce the message about missing classes when building an app withe minify, but it is only reported as a warning in my case. Do you have some setting enabled that turns warnings into errors?
Yeah, think that's true. I'm not 100% sure what flag causes this, but we have various settings that sets warnings as errors. So in theory it should be safe to ignore these warnings as a workaround?
Yes, exactly, it is safe to ignore the warning because the tracker checks for the presence of classes in the package and if they are not present, it does not use them at all.
It would be ideal if we could find a way to avoid the warnings but, to be honest, I wasn't able to figure out how to do that. I haven't found a way to remove certain code (such as you would with a Macro in C-like languages) from the package if the required package is not present. If anyone has ideas how to achieve that, please let us know.
Describe the bug After bumping to 5.2 (5.1 works) we get this error while building in release mode with
minify
enabled:The content of
missing_rules.txt
is:To Reproduce Bump to 5.2 and don't add the
installreferrer
dependency.Additional context We haven't understood it as required and we're not sure we want to log that particular entity.