Fix the issue of Residence detection occupying the main thread - #374
Conversation
Jikoo
left a comment
There was a problem hiding this comment.
You didn't add any dependency information for Residence. How is this supposed to compile?
The reason Residence is EoL and exists as a precompiled hook is that (at least last I was aware) they do not offer any way to use their API via Maven. Their project was structured for manual compilation by a particular IDE, so JitPack didn't even work. See also https://github.com/Jikoo/Regionerator/wiki/Hooks#adding-support
If they still are incompatible with the Maven ecosystem, you can just make a plugin that relies on both Regionerator and Residence and register the hook from it yourself.
|
I added the corresponding builder for Residence in maven, and now the project can build itself |
Jikoo
left a comment
There was a problem hiding this comment.
Nice, so they actually support JitPack now? That's good news.
Modify territory detection to Residence internal API implementation
The utilization rate of the main thread ranges from 0.7% to significantly less than 0.01%