Implement Android Home activity and HTTPS synchronization (#97)
Android ARM verification / rust (push) Failing after 46m50s
Android ARM verification / android (push) Failing after 8s
Dependency security audit / rustsec (push) Successful in 23s

This commit is contained in:
hugo committed 2026-10-09 14:45:57 +02:00
1 parent 8c9341f214
commit 5c933a99a3
29 files changed
+2008 -110

No files matched your search

+19
View File
@@ -525,6 +525,18 @@ pub struct MobileHomeOperation {
#[uniffi::export]
impl MobileHomeOperation {
pub fn activity_known(&self) -> bool {
self.operation.activity_known()
}
pub fn identity(&self) -> Result<MobileGitIdentity, MobileHomeFfiError> {
self.operation
.identity()
.map(|identity| MobileGitIdentity {
name: identity.name().to_owned(),
email: identity.email().to_owned(),
})
.map_err(Into::into)
}
pub fn progress(&self) -> MobileHomeProgress {
let progress = self.operation.progress();
MobileHomeProgress {
@@ -569,6 +581,13 @@ impl MobileHomeOperation {
self.operation.sync().map(Into::into).map_err(Into::into)
}
pub fn refresh_gesture(&self) -> Result<MobileHomePage, MobileHomeFfiError> {
self.operation
.refresh_gesture()
.map(Into::into)
.map_err(Into::into)
}
pub fn cancel(&self) {
self.operation.cancel();
}