File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
androidMain/kotlin/dev/gitlive/firebase/storage
commonMain/kotlin/dev/gitlive/firebase/storage
iosMain/kotlin/dev/gitlive/firebase/storage
jsMain/kotlin/dev/gitlive/firebase/storage Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ actual class StorageReference(val android: com.google.firebase.storage.StorageRe
59
59
60
60
actual suspend fun getDownloadUrl (): String = android.downloadUrl.await().toString()
61
61
62
- actual fun putFile (file : File ): ProgressFlow {
62
+ actual fun putFileResumable (file : File ): ProgressFlow {
63
63
val android = android.putFile(file.uri)
64
64
65
65
val flow = callbackFlow {
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ expect class StorageReference {
34
34
35
35
suspend fun getDownloadUrl (): String
36
36
37
- fun putFile (file : File ): ProgressFlow
37
+ fun putFileResumable (file : File ): ProgressFlow
38
38
39
39
}
40
40
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ actual class StorageReference(val ios: FIRStorageReference) {
66
66
downloadURLWithCompletion(completion = it)
67
67
}.absoluteString()!!
68
68
69
- actual fun putFile (file : File ): ProgressFlow {
69
+ actual fun putFileResumable (file : File ): ProgressFlow {
70
70
val ios = ios.putFile(file.url)
71
71
72
72
val flow = callbackFlow {
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ actual class StorageReference(val js: firebase.storage.Reference) {
54
54
55
55
actual suspend fun getDownloadUrl (): String = rethrow { js.getDownloadURL().await().toString() }
56
56
57
- actual fun putFile (file : File ): ProgressFlow = rethrow {
57
+ actual fun putFileResumable (file : File ): ProgressFlow = rethrow {
58
58
val uploadTask = js.put(file)
59
59
60
60
val flow = callbackFlow {
You can’t perform that action at this time.
0 commit comments