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

Share timber logs fails on Android 24+ #78

Open
kaciula opened this issue Jan 13, 2017 · 2 comments
Open

Share timber logs fails on Android 24+ #78

kaciula opened this issue Jan 13, 2017 · 2 comments

Comments

@kaciula
Copy link

kaciula commented Jan 13, 2017

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.

@flavioarfaria
Copy link

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.

@lenguyenthanh
Copy link

lenguyenthanh commented Sep 10, 2019

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"

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

No branches or pull requests

3 participants