-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Formula Android] Add event listener to track performance. #313
Conversation
66bf74d
to
8b30740
Compare
JaCoCo Code Coverage 79.51% ✅
Generated by 🚫 Danger |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍🏼
@@ -47,6 +45,22 @@ object FormulaAndroid { | |||
FormulaFragmentDelegate.fragmentEnvironment = fragmentEnvironment | |||
} | |||
|
|||
/** | |||
* Initializes Formula Android integration. Should be called within [Application.onCreate]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it need to be called before the DI injection call in [Application.onCreate]
? If yes - might be worth mentioning it here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not necessary because usually, the logic will not run until a fragment is shown.
gradle/merge-reports.gradle
Outdated
reports.html.enabled = false | ||
// reports.html.enabled = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Accidental?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, needed to debug a failure
8b30740
to
5677405
Compare
What
Adding
EventListener
withonFeatureInitialized
,onViewInflated
,onRendered
callbacks to understand performance of each function.