For example
AppEventsLogger.clearUserID() should not be called on the main thread as it calls assertIsNotMainThread() inside. Because of this bug, developer doesn't know about it as the app wouldn't crash in debug mode and because this is not documented.
Expected results
Replace BuildConfig.DEBUG with FacebookSdk.isDebugEnabledField
Checklist before submitting a bug report
Java version
irrelevant
Android version
irrelevant
Android SDK version
irrelevant - exists on latest main branch
Installation platform & version
Gradle
Package
Core & AppEvents
Goals
AppEventUtility
uses BuildConfig.DEBUG, which always returns false as you also claim in troubleshooting here https://developers.facebook.com/docs/android/troubleshooting/#faq_491357261067442 This code and probably other places in SDK should useFacebookSdk.isDebugEnabledField
flag.For example
AppEventsLogger.clearUserID()
should not be called on the main thread as it callsassertIsNotMainThread()
inside. Because of this bug, developer doesn't know about it as the app wouldn't crash in debug mode and because this is not documented.Expected results
Replace BuildConfig.DEBUG with FacebookSdk.isDebugEnabledField
Actual results
App didn't crash in debug, while it should
Steps to reproduce
No response
Code samples & details