Skip to content

Commit

Permalink
Suppress proguard warnings for mozilla.telemetry.glean.testing.**
Browse files Browse the repository at this point in the history
The Glean SDK ships with classes used for tests as well. They are disabled
and not directly usable in production code: they throw if used there. They
can be used in tests just fine but, outside of tests, the test dependency
they use won't be there, hence the warning. It's safe to suppress these.
  • Loading branch information
Dexterp37 committed Aug 6, 2020
1 parent 0f8bf31 commit aeb0e28
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions glean-core/android/proguard-rules-consumer.pro
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,9 @@

# Glean specific rules
-keep class mozilla.telemetry.** { *; }

# The Glean SDK ships with classes used for tests as well. They are disabled
# and not directly usable in production code: they throw if used there. They
# can be used in tests just fine but, outside of tests, the test dependency
# they use won't be there, hence the warning. It's safe to suppress these.
-dontwarn mozilla.telemetry.glean.testing.**

0 comments on commit aeb0e28

Please sign in to comment.