We need an equivalent of Fabric.isInitialized()
See original GitHub issueWhat 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:
- Created 3 years ago
- Reactions:14
- Comments:18 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
any news on this?
Yes, not work for me. We have legacy codebase with static methods for reporting to crashlytics