Skip to content

Commit e5c4d34

Browse files
samtsternGerrit Code Review
authored andcommitted
Merge "Firebase Storage update"
2 parents de40623 + 5a920d0 commit e5c4d34

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

app/src/main/java/com/firebase/uidemo/storage/ImageActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ protected void onCreate(Bundle savedInstanceState) {
5959
setContentView(R.layout.activity_image);
6060
ButterKnife.bind(this);
6161

62-
// By default, Firebase Storage files require authentication to read or write.
62+
// By default, Cloud Storage files require authentication to read or write.
6363
// For this sample to function correctly, enable Anonymous Auth in the Firebase console:
6464
// https://console.firebase.google.com/project/_/authentication/providers
6565
FirebaseAuth.getInstance()
@@ -102,7 +102,7 @@ private void uploadPhoto(Uri uri) {
102102
hideDownloadUI();
103103
Toast.makeText(this, "Uploading...", Toast.LENGTH_SHORT).show();
104104

105-
// Upload to Firebase Storage
105+
// Upload to Cloud Storage
106106
String uuid = UUID.randomUUID().toString();
107107
mImageRef = FirebaseStorage.getInstance().getReference(uuid);
108108
mImageRef.putFile(uri)

app/src/main/res/values/strings.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<string name="desc_chat">Demonstrates using a FirebaseRecyclerAdapter to load data from Firebase Database into a RecyclerView for a basic chat app.</string>
99
<string name="desc_auth_ui">Demonstrates the Firebase Auth UI flow, with customization options.</string>
10-
<string name="desc_image">Demonstrates displaying an image from Firebase Storage using Glide.</string>
10+
<string name="desc_image">Demonstrates displaying an image from Cloud Storage using Glide.</string>
1111

1212
<!-- strings for Auth UI demo activities -->
1313
<eat-comment/>
@@ -47,7 +47,7 @@
4747
<string name="configuration_required">Configuration is required - see README.md</string>
4848
<string name="other_options_header">Other Options:</string>
4949
<string name="enable_smartlock">Enable SmartLock for Passwords</string>
50-
<string name="rational_image_perm">This sample will read an image from local storage to upload to Firebase Storage.</string>
50+
<string name="rational_image_perm">This sample will read an image from local storage to upload to Cloud Storage.</string>
5151
<string name="anonymous_auth_failed_msg">Anonymous authentication failed, various components of the demo will not work. Make sure your device is online and that Anonymous Auth is configured in your Firebase project(https://console.firebase.google.com/project/_/authentication/providers)</string>
5252
<string name="extra_google_scopes">Example extra Google scopes</string>
5353
<string name="games">Games</string>

storage/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22

33
## Using FirebaseUI to download and display images
44

5-
[Firebase Storage][firebase-storage] provides secure file uploads and downloads for your Firebase apps,
5+
[Cloud Storage for Firebase][firebase-storage] provides secure file uploads and downloads for your Firebase apps,
66
regardless of network quality. You can use it to store images, audio, video, or other
7-
user-generated content. Firebase Storage is backed by Google Cloud Storage, a powerful, simple,
7+
user-generated content. Cloud Storage is a powerful, simple,
88
and cost-effective object storage service.
99

10-
FirebaseUI provides bindings to download an image file stored in Firebase Storage
10+
FirebaseUI provides bindings to download an image file stored in Cloud Storage
1111
from a [`StorageReference`][storage-reference] and display it using the popular
1212
[Glide][glide] library. This technique allows you to get all of Glide's performance
13-
benefits while leveraging Firebase Storage's authenticated storage capabilities.
13+
benefits while leveraging Cloud Storage's authenticated storage capabilities.
1414

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
18+
// Reference to an image file in Cloud Storage
1919
StorageReference storageReference = ...;
2020

2121
// ImageView in your Activity
@@ -28,7 +28,7 @@ Glide.with(this /* context */)
2828
.into(imageView);
2929
```
3030

31-
Images displayed using `FirebaseImageLoader` are cached by their path in Firebase Storage, so
31+
Images displayed using `FirebaseImageLoader` are cached by their path in Cloud 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

0 commit comments

Comments
 (0)