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:
Arnab Chakraborty 2024-06-10 14:29:34 +05:30
parent f34fbbde0f
commit 449fc43d30
3 changed files with 2 additions and 10 deletions

View file

@ -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.

View file

@ -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]);

View file

@ -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")]