[英]How do I obtain package specific crash report/data only for my library module/package (implemented in some Application via gradle dependency)
I have implemented a library module and publish the library. 我已经实现了一个库模块并发布了库。 Developer can incoporate it via gradle dependency I have given to him.
开发人员可以通过我给他的gradle依赖来合并它。
My Question is when I somehow configured crash reporting (via third party library) by obtaining the Application
class's instance in my library, I will also have the crash reports of that android client application. 我的问题是,当我通过在库中获取
Application
类的实例以某种方式配置崩溃报告(通过第三方库)时,我还将获得该android客户端应用程序的崩溃报告。
I just want to have crash reports only for my library's module/package. 我只想为我的图书馆的模块/包装提供崩溃报告。
I have searched it on Google and found a similar Duplicate Question already asked but un-answered yet.
我已经在Google上搜索了它,发现一个类似的重复问题已经问过,但尚未得到回答 。 Thats why I am asking it again.
那就是为什么我再问一次。
I don't know any library that could help you. 我不知道有什么图书馆可以帮到您。 A possible solution would be for you to have a global exception handler (like the one explained here ) in your library which sends the exceptions using retrofit / okhttp / whatever you prefer to an api/service you set up.
一种可能的解决办法是让你有一个全球性的异常处理程序(如一个解释这里 )在你的库,将使用异常改装/ okhttp /无论你喜欢的API /服务设置好了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.