mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 02:07:39 +08:00
Handle new git_bindings
In ios we use ssh in memory. On Android it just doesn't seem to work.
This commit is contained in:
@ -235,7 +235,7 @@ bool handleError(FlutterResult result, int err) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
int err = gj_git_fetch([folderPath UTF8String], [remote UTF8String], [publicKey UTF8String], [privateKey UTF8String], [password UTF8String]);
|
int err = gj_git_fetch([folderPath UTF8String], [remote UTF8String], [publicKey UTF8String], [privateKey UTF8String], [password UTF8String], true);
|
||||||
if (!handleError(result, err)) {
|
if (!handleError(result, err)) {
|
||||||
result(@YES);
|
result(@YES);
|
||||||
return;
|
return;
|
||||||
@ -308,7 +308,7 @@ bool handleError(FlutterResult result, int err) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
int err = gj_git_push([folderPath UTF8String], [remote UTF8String], [publicKey UTF8String], [privateKey UTF8String], [password UTF8String]);
|
int err = gj_git_push([folderPath UTF8String], [remote UTF8String], [publicKey UTF8String], [privateKey UTF8String], [password UTF8String], true);
|
||||||
if (!handleError(result, err)) {
|
if (!handleError(result, err)) {
|
||||||
result(@YES);
|
result(@YES);
|
||||||
return;
|
return;
|
||||||
|
@ -437,7 +437,7 @@ packages:
|
|||||||
description:
|
description:
|
||||||
path: "."
|
path: "."
|
||||||
ref: HEAD
|
ref: HEAD
|
||||||
resolved-ref: e7e957acdaff208744b5b1fff9a611cbfbd1de34
|
resolved-ref: "2598c4cf21c4e23639b7eb5f3e1dd66cfd8eccd9"
|
||||||
url: "https://github.com/GitJournal/git_bindings.git"
|
url: "https://github.com/GitJournal/git_bindings.git"
|
||||||
source: git
|
source: git
|
||||||
version: "0.0.18"
|
version: "0.0.18"
|
||||||
|
Reference in New Issue
Block a user