question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

We need an equivalent of Fabric.isInitialized()

See original GitHub issue

What feature would you like to see?

The previous Fabric SDK had a method Fabric.isInitialized() that allowed you to check if Fabric was initialized before doing something like logging an exception. This allowed you to put a guard around methods in unit tests.

How would you use it?

I would use it to put a guard around things that unit tests might touch when Firebase is not initialized. Example:

fun logException(ex: Throwable, nodeInfoCompat: AccessibilityNodeInfoCompat?) {
    // We check to make sure Fabric is initialized or else the tests will fail - see above comment
    if (Fabric.isInitialized()) {
        crashSetParam(CrashParameters.ROOT_NODE, nodeInfoCompat.toString())
        Crashlytics.logException(ex)
    }
}

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:14
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
juangdiazcommented, Sep 24, 2020

any news on this?

1reaction
zolkiBycommented, Jun 26, 2020

Yes, not work for me. We have legacy codebase with static methods for reporting to crashlytics

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to check if Firebase Crashlytics is initialized?
{ // We check to make sure Fabric is initialized or else the tests will fail - see above comment try { FirebaseCrashlytics.getInstance()....
Read more >
Fabric | Firebase - Google
Returns the global value for debug mode. static boolean. isInitialized(). Returns true when all kits have finished asynchronous initialization.
Read more >
Fabric chaincode lifecycle — hyperledger-fabricdocs main ...
Fabric chaincode lifecycle requires that organizations agree to the parameters that define a chaincode, such as name, version, and the chaincode endorsement ...
Read more >
tutorial:primer [Fabric Wiki]
isClient() checks that you often see in Minecraft modding. Next Steps. Once you've achieved the prerequisites and have read this document, it's ...
Read more >
Fabric Manager for NVIDIA NVSwitch Systems
To run Fabric Manager service, the target system must include the ... Driver package for NVIDIA Data Center GPUs (Version 450.xx and higher)....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found