mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-04 09:53:30 +00:00
Working Mobile Cloud Sync
Cloud Sync works for Mobile, and the mobile app can sync files from a cloud library, and other clients can access the data from the phone's cloud library.
This commit is contained in:
parent
f34fbbde0f
commit
449fc43d30
|
@ -91,7 +91,7 @@ If you encounter any issues, ensure that you are using the following versions of
|
|||
|
||||
- Rust version: **1.78**
|
||||
- Node version: **18.18**
|
||||
- Pnpm version: **9.0.6**
|
||||
- Pnpm version: **9.1.1**
|
||||
|
||||
After cleaning out your build artifacts using `pnpm clean`, `git clean`, or `cargo clean`, it is necessary to re-run the `setup-system` script.
|
||||
|
||||
|
|
|
@ -25,12 +25,6 @@ const ACTORS = {
|
|||
const SyncSettingsScreen = ({ navigation }: SettingsStackScreenProps<'SyncSettings'>) => {
|
||||
const syncEnabled = useLibraryQuery(['sync.enabled']);
|
||||
|
||||
const backfillSync = useLibraryMutation(['sync.backfill'], {
|
||||
onSuccess: async () => {
|
||||
await syncEnabled.refetch();
|
||||
}
|
||||
});
|
||||
|
||||
const [data, setData] = useState<inferSubscriptionResult<Procedures, 'library.actors'>>({});
|
||||
const [startBackfill, setStart] = useState(false);
|
||||
|
||||
|
@ -43,8 +37,6 @@ const SyncSettingsScreen = ({ navigation }: SettingsStackScreenProps<'SyncSettin
|
|||
navigation.navigate('BackfillWaitingStack', {
|
||||
screen: 'BackfillWaiting'
|
||||
});
|
||||
|
||||
// Force re-render?
|
||||
}
|
||||
}, [startBackfill, navigation]);
|
||||
|
||||
|
|
|
@ -138,7 +138,7 @@ impl Node {
|
|||
config,
|
||||
event_bus,
|
||||
libraries,
|
||||
cloud_sync_flag: Arc::new(AtomicBool::new(false)),
|
||||
cloud_sync_flag: Arc::new(AtomicBool::new(cfg!(target_os = "ios") || cfg!(target_os = "android"))),
|
||||
http: reqwest::Client::new(),
|
||||
env,
|
||||
#[cfg(feature = "ai")]
|
||||
|
|
Loading…
Reference in a new issue