Implement Android Home activity and HTTPS synchronization (#97)
This commit is contained in:
1 parent
8c9341f214
commit
5c933a99a3
29 files changed
+2008
-110
No files matched your search
@@ -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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user