PostHog / posthog-android

PostHog Android SDK
https://posthog.com/docs/libraries/android
MIT License
43 stars 23 forks source link

chore: custom drawable converter #110

Closed marandaneto closed 8 months ago

marandaneto commented 8 months ago

:bulb: Motivation and Context

Drawables using https://github.com/mikepenz/Android-Iconics/blob/develop/iconics-core/src/main/java/com/mikepenz/iconics/IconicsDrawable.kt won't be possible to convert to Bitmap automatically

:green_heart: How did you test it?

            sessionReplayConfig.drawableConverter = PostHogDrawableConverter { drawable ->
                if (drawable is IconicsDrawable) {
                    drawable.toBitmap()
                }
                null
            }

:pencil: Checklist