DebugDrawer icon indicating copy to clipboard operation
DebugDrawer copied to clipboard

Share timber logs fails on Android 24+

Open kaciula opened this issue 8 years ago • 2 comments

Starting from Android 24, you cannot use file:// schemas to share content to other apps.

https://commonsware.com/blog/2016/03/14/psa-file-scheme-ban-n-developer-preview.html

The library should use a FileProvider to share the logs with other apps. Keep in mind that an app can have one single FileProvider so the TimberModule needs to get the app's file provider authority and use that to create the URI.

Let me know if you're interested in a PR.

kaciula avatar Jan 13 '17 12:01 kaciula

I'm also very interested in this feature. Is this lib is no longer being maintained, we can create our custom modules as a workaround.

flavioarfaria avatar Jun 07 '17 18:06 flavioarfaria

It seems this library is no longer being maintained. So I fixed this issue in my forked repository herer: https://github.com/lenguyenthanh/DebugDrawer

I also published it to https://jitpack.io/#lenguyenthanh/debugdrawer so anyone can use that. Here is example setup:

    debugImplementation "com.github.lenguyenthanh.debugdrawer:debugdrawer-base:0.9.0"
    debugImplementation "com.github.lenguyenthanh.debugdrawer:debugdrawer:0.9.0"
    debugImplementation "com.github.lenguyenthanh.debugdrawer:debugdrawer-view:0.9.0"
    debugImplementation "com.github.lenguyenthanh.debugdrawer:debugdrawer-okhttp3:0.9.0"
    debugImplementation "com.github.lenguyenthanh.debugdrawer:debugdrawer-scalpel:0.9.0"
    debugImplementation "com.github.lenguyenthanh.debugdrawer:debugdrawer-picasso:0.9.0"
    debugImplementation "com.github.lenguyenthanh.debugdrawer:debugdrawer-timber:0.9.0"
    debugImplementation "com.github.lenguyenthanh.debugdrawer:debugdrawer-fps:0.9.0"
    debugImplementation "com.github.lenguyenthanh.debugdrawer:debugdrawer-actions:0.9.0"
    debugImplementation "com.github.lenguyenthanh.debugdrawer:debugdrawer-commons:0.9.0"

lenguyenthanh avatar Sep 10 '19 09:09 lenguyenthanh