-
Notifications
You must be signed in to change notification settings - Fork 18
Attachments package #159
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
Merged
Merged
Attachments package #159
Changes from 1 commit
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
ee59eae
wip
stevensJourney f3ff250
wip
stevensJourney dbcea9f
wip tests
stevensJourney 7de65fd
include as package in core module
stevensJourney adbacfb
wip: readme
stevensJourney d18e4d0
README updates
stevensJourney 9a9955d
improve storage adapters
stevensJourney 6172c08
cleanup
stevensJourney eb268b7
Merge remote-tracking branch 'origin/main' into attachments-package
stevensJourney 408db0b
fix tests
stevensJourney 6fafc3e
cleanup tests
stevensJourney 6530ed0
cleanup deletes
stevensJourney 561c02a
wip: Android Attachments Demo
stevensJourney f414eb2
Switch to open class.
stevensJourney 67eee58
fix demo navigation state
stevensJourney d00f0b1
improve locking to avoid rare race conditions
stevensJourney c9b5077
optional attachments in demo
stevensJourney 09eb616
cleanup service
stevensJourney 439bb74
Merge remote-tracking branch 'origin/main' into attachments-package
stevensJourney 8d8196c
upate tests
stevensJourney 4efc67d
fix tests
stevensJourney fe0e67e
cleanup
stevensJourney 79361c6
Merge remote-tracking branch 'origin/main' into attachments-package
stevensJourney 8d19eed
update changelog
stevensJourney f1c698a
cleanup
stevensJourney 2da25d6
Restructure the attachments Readme with some simplified wording
benitav 2255da2
check if file exists before delete
stevensJourney 48b3441
Move Supabase Remote Storage to Connectors module
stevensJourney 6dfedd5
Use enum throughout for AttachmentState
stevensJourney 75f5b28
Sync Kotlin Gradle Plugin version
stevensJourney 5dba44a
throw IllegalStateException when deleting a missing attachment file
stevensJourney f729d42
use fileSystem SystemFileSystem on IOLocalStorageAdapter
stevensJourney 66d1f9e
use Duration for Flow throttle extension
stevensJourney 35bbd4f
Fix periodic syncing loop
stevensJourney e8fcf60
revert test db path
stevensJourney c48a288
rename SUPABASE_STORAGE_BUCKET
stevensJourney 31d7e5c
fix build
stevensJourney ff39c87
Merge remote-tracking branch 'origin/main' into attachments-package
stevensJourney 89ea92c
update shared build plugin
stevensJourney b0723b1
wip: improve coroutine scope concurrency
stevensJourney 72c8288
accept input scope
stevensJourney 93e3381
lint fixes
stevensJourney 6cdbb09
fix ios test build
stevensJourney 032e8b6
Readme polish
benitav ec011a5
Cleanup KDoc comments. Sync with Swift implementation.
stevensJourney 7c5152d
add changelog entry
stevensJourney b4d4326
cleanup
stevensJourney f4e9b78
test
stevensJourney 5fd3f84
test
stevensJourney 39ea649
test
stevensJourney d1760c5
test
stevensJourney 5b2f590
cleanup changelog
stevensJourney 4208b9e
cleanup coroutine scopes
stevensJourney e06be2b
Update comments on open classes
stevensJourney 7cf5638
Improve boolean hasSynced. Make tests more stable.
stevensJourney File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
wip: Android Attachments Demo
- Loading branch information
commit 561c02ad6273dcaff2853af461e29ba0136ae04d
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
...droidMain/kotlin/com/powersync/attachments/storage/AbstractLocalStorageAdapter.android.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
package com.powersync.attachments.storage | ||
|
||
import android.os.Environment | ||
import android.os.Environment.DIRECTORY_DOCUMENTS | ||
import com.powersync.attachments.LocalStorageAdapter | ||
|
||
import okio.FileSystem | ||
|
||
@Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING") | ||
public actual abstract class AbstractLocalStorageAdapter : LocalStorageAdapter { | ||
actual override fun getUserStorageDirectory(): String = Environment.getDataDirectory().absolutePath | ||
actual override fun getUserStorageDirectory(): String = FileSystem.SYSTEM_TEMPORARY_DIRECTORY.normalized().toString() | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.