-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
StrictMode Violations #145
Comments
Those aren't violations they are detections. All of these write to disk and read from disk, they have to. Implement Hyperion as one of your build variants that does not enable detections on the main thread. |
Thanks @ToxicBakery , unfortunately that's not an option for us. It's still a possibility though that this library could be updated to do disk IO on a thread other than the main thread, is that right? |
Looking at it more closely, not really. These plugins are meant to be used in dev and shifting everything to background threads isn't all that trivial. For instance, even attempting to load the plugins is a disk read violation if the thread policy is set in the application class. To support this requirement, a lot of rework would need to be done in the plugins that violate strict mode moving everything to a worker queue style implementation such as with pools or RX neither of which brings many benefits to end users and would impose requirements down on other 3rd party plugins that likely also do not concern themselves with disk reads/writes. I understand the goals for using strict mode; however, Hyperion isn't meant to be shipped to production and StrictMode isn't meant to be law. StrictMode's only goal is to help you find potential problems. I would recommend you remove Lastly, why is a build variant not an option for you? This isn't the first time that claim has come up but I can't come up with a situation that would make variants not an option. |
We have the following
StrictMode
settings:detectDiskReads()
policydetectDiskWrites()
policyThe text was updated successfully, but these errors were encountered: