Skip to content

Commit cddb54f

Browse files
SUPERCILEXsamtstern
authored andcommitted
Remove outdated know issues (#572)
1 parent c7fd497 commit cddb54f

File tree

1 file changed

+9
-34
lines changed

1 file changed

+9
-34
lines changed

storage/README.md

Lines changed: 9 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -15,48 +15,23 @@ benefits while leveraging Firebase Storage's authenticated storage capabilities.
1515
To load an image from a `StorageReference`, simply use the `FirebaseImageLoader` class:
1616

1717
```java
18-
// Reference to an image file in Firebase Storage
19-
StorageReference storageReference = ...;
18+
// Reference to an image file in Firebase Storage
19+
StorageReference storageReference = ...;
2020

21-
// ImageView in your Activity
22-
ImageView imageView = ...;
21+
// ImageView in your Activity
22+
ImageView imageView = ...;
2323

24-
// Load the image using Glide
25-
Glide.with(this /* context */)
26-
.using(new FirebaseImageLoader())
27-
.load(storageReference)
28-
.into(imageView);
24+
// Load the image using Glide
25+
Glide.with(this /* context */)
26+
.using(new FirebaseImageLoader())
27+
.load(storageReference)
28+
.into(imageView);
2929
```
3030

3131
Images displayed using `FirebaseImageLoader` are cached by their path in Firebase Storage, so
3232
repeated loads will be fast and conserve bandwidth. For more information on caching in Glide,
3333
see [this guide][glide-caching].
3434

35-
## Known Issues
36-
37-
There is a bug in `com.google.firebase:firebase-storage:9.6.1` and earlier that results in
38-
excessive logging when downloading images. You may see messages in your logs like this:
39-
40-
```
41-
W/StorageTask: unable to change internal state to: INTERNAL_STATE_IN_PROGRESS isUser: false from state:INTERNAL_STATE_SUCCESS
42-
```
43-
44-
In production this could slow your app down if you are downloading many images. The suggested
45-
workaround is to disable logging in production by adding the following lines to your
46-
ProGuard configuration (`proguard-rules.pro`):
47-
48-
```
49-
-assumenosideeffects class android.util.Log {
50-
public static int w(...);
51-
public static int d(...);
52-
public static int v(...);
53-
}
54-
```
55-
56-
This will disable calls to `Log.w()`, `Log.d()`, and `Log.v()` but preserve log calls at the
57-
`INFO` and `ERROR` levels. Note that this will only be effective when using
58-
`proguard-android-optimize.txt` as the default ProGuard file in `build.gradle`.
59-
6035
[firebase-storage]: https://firebase.google.com/docs/storage/
6136
[glide]: https://github.com/bumptech/glide
6237
[storage-reference]: https://firebase.google.com/docs/reference/android/com/google/firebase/storage/StorageReference

0 commit comments

Comments
 (0)