-
Notifications
You must be signed in to change notification settings - Fork 55
Conversation
Upgrade ModernStorage to 1.5.10 Rename MediaStoreClient.kt to MediaStoreRepository.kt Add permission handlers to MediaStoreRepository Rename MediaResource to FileResource Add @parcelize to FileResource Expand media support to audio files Simplify API naming Add file scanning feature Update sample app
Upgrade ModernStorage to 1.5.10 Rename MediaStoreClient.kt to MediaStoreRepository.kt Add permission handlers to MediaStoreRepository Rename MediaResource to FileResource Add @parcelize to FileResource Expand media support to audio files Simplify API naming Add file scanning feature Update sample app
…l methods in MediaStoreRepository
|
||
withContext(Dispatchers.IO) { | ||
val response = httpClient.newCall(request).execute() | ||
return withContext(Dispatchers.IO) { |
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.
return withContext(Dispatchers.IO) { | |
return withContext(ioDispatcher) { |
The IO dispatcher should be injected into the ViewModel to make testing easier
sample/src/main/java/com/google/modernstorage/sample/mediastore/MediaStoreViewModel.kt
Outdated
Show resolved
Hide resolved
sample/src/main/java/com/google/modernstorage/sample/mediastore/MediaStoreFragment.kt
Outdated
Show resolved
Hide resolved
sample/src/main/java/com/google/modernstorage/sample/mediastore/MediaStoreViewModel.kt
Outdated
Show resolved
Hide resolved
Remove companion object Simplify scanning logic Update api metadata
…e/MediaStoreViewModel.kt Co-authored-by: Lukas Valkovic <[email protected]>
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
Format code
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
@googlebot I fixed it. |
Format code Standardize argument names Generate api metadata
Compiler bug with Result type when using suspend functions
Update README.md
Set FileType.NONE as FileResource type property (until I can figure out how to get media type value from MediaStore)
mediastore/src/main/java/com/google/modernstorage/mediastore/MediaStoreRepository.kt
Outdated
Show resolved
Hide resolved
mediastore/src/main/java/com/google/modernstorage/mediastore/Exceptions.kt
Outdated
Show resolved
Hide resolved
mediastore/src/main/java/com/google/modernstorage/mediastore/MediaStoreRepository.kt
Outdated
Show resolved
Hide resolved
mediastore/src/main/java/com/google/modernstorage/mediastore/MediaStoreRepository.kt
Outdated
Show resolved
Hide resolved
mediastore/src/main/java/com/google/modernstorage/mediastore/MediaStoreRepository.kt
Outdated
Show resolved
Hide resolved
…olumn property Extend UnsupportedMediaUriException from IllegalArgumentException instead of UnsupportedOperationException
Simplify FileResource.getEnum method logic
Upgrade ModernStorage to 1.5.10Keep using Kotlin 1.4.32 due to compiler bug