Skip to content
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

[Android] Initial logger. #208

Merged
merged 2 commits into from
May 24, 2021
Merged

[Android] Initial logger. #208

merged 2 commits into from
May 24, 2021

Conversation

Laimiux
Copy link
Collaborator

@Laimiux Laimiux commented May 22, 2021

What

Adding a hook to access debug formula-android events. I will provide more events in the future, but for now, I'm only interested in ignored attach events.

@carrotkite
Copy link

JaCoCo Code Coverage 76.93% ✅

Class Covered Meta Status
com/instacart/formula/android/FragmentEnvironment 66% 0%
com/instacart/formula/android/internal/FragmentFlowRenderView 77% 0%
com/instacart/formula/FormulaAndroid 50% 0%

Generated by 🚫 Danger

* @param onFragmentError A global handler for fragment errors. Override this to log the crashes.
*/
fun init(
application: Application,
logger: (String) -> Unit = {},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it be nullable if the user doesn't care to log? and if so, maybe it should be the last param?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've made the logger nullable, however, it cannot be the last parameter because the following continuation is already occupying that spot.

activities: ActivityConfigurator.() -> Unit

@Laimiux Laimiux merged commit 06092dc into master May 24, 2021
@Laimiux Laimiux deleted the laimonas/android-logger branch May 24, 2021 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants