-
Notifications
You must be signed in to change notification settings - Fork 625
feat(storage-ktx): destructure ListResult and TaskSnapshots #1644
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(storage-ktx): destructure ListResult and TaskSnapshots #1644
Conversation
Hi @rosariopfernandes. Thanks for your PR. I'm waiting for a firebase member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Hi @rosariopfernandes thanks for the proposal. I like the idea of adding destructure here! We'll evaluate this through our internal API review process. I'll keep you posted. |
firebase-storage/ktx/src/main/kotlin/com/google/firebase/storage/ktx/Storage.kt
Outdated
Show resolved
Hide resolved
firebase-storage/ktx/src/main/kotlin/com/google/firebase/storage/ktx/Storage.kt
Outdated
Show resolved
Hide resolved
…-sdk into rpf-storage-ktx-desctructure � Conflicts: � firebase-storage/ktx/src/main/kotlin/com/google/firebase/storage/ktx/Storage.kt
…-sdk into rpf-storage-ktx-desctructure � Conflicts: � firebase-storage/ktx/src/main/kotlin/com/google/firebase/storage/ktx/Storage.kt
…to rpf-storage-ktx-desctructure # Conflicts: # firebase-storage/ktx/src/main/kotlin/com/google/firebase/storage/ktx/Storage.kt
/ok-to-test |
Coverage ReportAffected SDKs
Test Logs
NotesHTML coverage reports can be produced locally with Head commit (02fdf45d) is created by Prow via merging commits: a2dae12 6ead390. |
Binary Size ReportAffected SDKs
Test Logs
NotesHead commit (02fdf45d) is created by Prow via merging commits: a2dae12 6ead390. |
…m/rosariopfernandes/firebase-android-sdk into rpf-storage-ktx-desctructure � Conflicts: � firebase-storage/ktx/src/test/kotlin/com/google/firebase/storage/ktx/StorageTest.kt
@rosariopfernandes Just wanted to chime in since I am cc'ed on this: This PR will likely sit here for a while (2-3 weeks) as we obtain internal API approval. There is nothing more we need. |
@schmidt-sebastian Yes, I understand. I was just trying to fix the coverage report. Sorry for flooding your notifications inbox. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @rosariopfernandes thanks for your patience, your proposal has been approved 👍 Just address the comments below and we can merge your change. Thanks for your help!
firebase-storage/ktx/src/main/kotlin/com/google/firebase/storage/ktx/Storage.kt
Outdated
Show resolved
Hide resolved
firebase-storage/ktx/src/test/kotlin/com/google/firebase/storage/ktx/StorageTest.kt
Outdated
Show resolved
Hide resolved
@rosariopfernandes
|
@rlazo Because the sourceSets {
// ...
test.java {
// ...
srcDir '../src/test/java'
}
// ...
} But it would try to import all the other test classes as well, and some of them were showing errors due to the difference in package names. As a workaround, I created a new directory (/test/kotlin/) and a new TestUtil class (still under the |
Would it be possible to add it to |
@rlazo I did that, but needed to make 2 additional changes:
|
@rosariopfernandes: The following test failed, say
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
This is actually a Feature Request. It should add Kotlin destructuring declarations to the classes:
FileDownloadTask.TaskSnapshot
,StreamDownloadTask.TaskSnapshot
,UploadTask.TaskSnapshot
andListResult
.With the destructuring declarations, instead of:
Kotlin developers will be able to use:
Here's a full list of all the declarations added in this PR:
I should also point out that these arguments are optional, so for example, if a developer wishes to only get
ListResult.items
and notListResult.prefixes
orListResult.pageToken
, he may omit them: