File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
storage/app/src/main/java/com/google/firebase/referencecode/storage Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,10 @@ public class EmulatorSuite {
6
6
7
7
public void emulatorSettings () {
8
8
// [START storage_emulator_connect]
9
- FirebaseStorage .getInstance ().useEmulator ("10.0.2.2" , 9199 );
9
+ // 10.0.2.2 is the special IP address to connect to the 'localhost' of
10
+ // the host computer from an Android emulator.
11
+ FirebaseStorage storage = FirebaseStorage .getInstance ();
12
+ storage .useEmulator ("10.0.2.2" , 9199 );
10
13
// [END storage_emulator_connect]
11
14
}
12
15
Original file line number Diff line number Diff line change @@ -8,7 +8,10 @@ class EmulatorSuite {
8
8
9
9
fun emulatorSettings () {
10
10
// [START storage_emulator_connect]
11
- Firebase .storage.useEmulator(" 10.0.2.2" , 9199 );
11
+ // 10.0.2.2 is the special IP address to connect to the 'localhost' of
12
+ // the host computer from an Android emulator.
13
+ val storage = Firebase .storage
14
+ storage.useEmulator(" 10.0.2.2" , 9199 );
12
15
// [END storage_emulator_connect]
13
16
}
14
17
You can’t perform that action at this time.
0 commit comments