firebase-cpp-sdk icon indicating copy to clipboard operation
firebase-cpp-sdk copied to clipboard

[FR] ProGuard Rules Shouldn't Ignore Warnings?

Open cpsauer opened this issue 3 years ago • 4 comments

Hello fantastic Firebase folks,

It looks like all the ProGuard specs start by ignoring all warnings for the project that uses them, with -ignorewarnings. (To reproduce, run grep ignorewarnings external/firebase_cpp/libs/android/*.pro from the latest release.)

This seems...dangerous, and is pretty heavily discouraged by the ProGuard Manual and disallowed in Bazel for similar reasons.

Is it necessary? (Things seemed to work fine without in a quick test) And if not necessary, would you be open to removing -ignorewarnings?

Cheers, Chris

cpsauer avatar May 11 '22 06:05 cpsauer

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

google-oss-bot avatar May 11 '22 06:05 google-oss-bot

(I'd have tossed up a PR for this, but I couldn't see where it was coming from in the ProGuard generation)

cpsauer avatar May 11 '22 07:05 cpsauer

We are going to mark this as a feature request for now. Looking over it, we aren't quite sure where that line is coming from either without doing a deeper dive into it. Also aren't sure of all the implications of removing that, though I will agree it does seem odd, and would probably be better to remove. Thanks for flagging this!

a-maurice avatar May 16 '22 20:05 a-maurice

Sounds good. Thanks! I've changed the title to match the designation. Cheers!

cpsauer avatar May 16 '22 22:05 cpsauer