liato / android-bankdroid

A swedish banking application for your Android device.
http://www.swedroid.se/forum/showthread.php?t=11108
Other
242 stars 173 forks source link

Make crashlytics optional #631

Closed goober closed 1 year ago

goober commented 7 years ago

Move crashlytics into separate module and wrap it into a logging interface to make it optional.

walles commented 7 years ago

Maybe using this?

https://github.com/JakeWharton/timber

I've used it and like it, it even comes with custom Android Lint rules!

goober commented 7 years ago

Looks promising. I will take a look

robho commented 7 years ago

When this is done, will it be possible to make an android build without crashlytics?

I'm asking because F-Droid needs this to make Bankdroid available in its repository (see #450). Currently they have some hairy sed preprocessing which removes crashlytics from the source before building Bankdroid.

(Bankdroid is a few releases behind on F-Droid and automatic builds of new releases were disabled when crashlytics appeared in Bankdroid. If a crashlytics-free release of Bankdroid would be possible I think the Bankdroid experience would be better for F-Droid users. Probably not many Bankdroid users use F-Droid, but thought I'd mention it anyway :-))

goober commented 7 years ago

My idea is to move out crashlytics-related code into a new module e.g. logging-crashlytics, load it dynamically through javas ServiceLoader, with a local logging as a fallback. In addition to that I am planning to add a build property to exclude the logging-crashlytics-module when you build the artifacts.

@robho could that be a working solution for you?

robho commented 7 years ago

Thanks for the clarification. It sounds good to me, but I don't know much about the android build system or F-Droid packaging.

Go for what you're planning and I'll try to understand your changes and see if I can help get the F-Droid builds updated..

goober commented 7 years ago

Basically you should be able to run ./gradlew assembleRelease -PignoreCrashlytics and bankdroid should be built without a dependency to crashlytics

IzzySoft commented 6 years ago

Any progress concerning Crashlytics? This issue was last updated almost 2 years ago and possibly forgotten about?

IzzySoft commented 1 year ago

Ah! I almost forgot about this one – now it's comple… wait:

    compile('com.crashlytics.sdk.android:crashlytics:2.6.5@aar') {
        transitive = true;
    }

So I guess it's rather "wontfix" then? :cry: