Skip to content
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

Core Kotlin - Transfer ID #2126

Closed
1 task done
cyodrew opened this issue Nov 18, 2022 · 3 comments
Closed
1 task done

Core Kotlin - Transfer ID #2126

cyodrew opened this issue Nov 18, 2022 · 3 comments
Assignees
Labels
bug Something isn't working storage Related to the Storage category/plugins

Comments

@cyodrew
Copy link

cyodrew commented Nov 18, 2022

Before opening, please confirm:

Language and Async Model

Kotlin, Kotlin - Coroutines

Amplify Categories

Storage

Gradle script dependencies

// Put output below this line
    def amplify_version = '2.0.0'
    implementation "com.amplifyframework:core:$amplify_version"
    implementation "com.amplifyframework:aws-auth-cognito:$amplify_version"
    implementation "com.amplifyframework:aws-storage-s3:$amplify_version"
    implementation "com.amplifyframework:core-kotlin:$amplify_version"

Environment information

# Put output below this line

------------------------------------------------------------
Gradle 7.4
------------------------------------------------------------

Build time:   2022-02-08 09:58:38 UTC
Revision:     f0d9291c04b90b59445041eaa75b2ee744162586

Kotlin:       1.5.31
Groovy:       3.0.9
Ant:          Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM:          1.8.0_202 (Oracle Corporation 25.202-b08)
OS:           Mac OS X 10.16 x86_64



Please include any relevant guides or documentation you're referencing

https://docs.amplify.aws/lib/storage/querytransfers/q/platform/android/

Describe the bug

The new Amplify 2.0.0 library just released has a method to query transfers by ID via Amplify.Storage.getTransfer("TRANSFER_ID"). Through the Kotlin facade, an upload/download can be performed with coroutine support via Amplify.Storage.uploadFile() and Amplify.Storage.downloadFile(). This method gives back an InProgressStorageOperation instance, but it is does not contain a way to get the transferId, only the progress, result, and ability to cancel are available.

Reproduction steps (if applicable)

No response

Code Snippet

// Put your code below this line.

Log output

// Put your logs below this line


amplifyconfiguration.json

No response

GraphQL Schema

// Put your schema below this line

Additional information and screenshots

No response

@tylerjroach
Copy link
Member

Thank you for opening this issue! We will take a look internally and discuss the best way to enable better Kotlin Coroutine support.

@tylerjroach tylerjroach added storage Related to the Storage category/plugins bug Something isn't working labels Nov 18, 2022
@sdhuka sdhuka self-assigned this Dec 1, 2022
@sdhuka
Copy link
Contributor

sdhuka commented Dec 15, 2022

This fix will be available in the next release.

@sdhuka sdhuka closed this as completed Dec 15, 2022
@github-actions
Copy link
Contributor

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working storage Related to the Storage category/plugins
Projects
None yet
Development

No branches or pull requests

3 participants