Integrating Crashlytics to library project

前端 未结 3 787
滥情空心
滥情空心 2021-02-18 18:24

I have a library project (a custom view library project) which doesn\'t have any Activities/services. I want to integrate Crashlytics SDK to my library. When I try to add it via

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-18 19:19

    You need an app module at the moment, even if your intention is to integrate Crashlytics only in your library. If what you only have is the library, there is no reasonable way of doing that, not officially yet at least.

    See below for generating the necessary stuff first in the app side and then moving (some of them) towards your library such as the initialization.

    When you onboard a kit, Fabric sets up the initialization code inside the base project, not the library. Here's how you'd do it...

提交回复
热议问题