Files
GitJournal/lib/setup/clone_auto_select.dart
Vishesh Handa f4a1df6604 Move cloning code back into GitJournal
I want the git_setup code to only have the UI. Nothing else. The cloning
process for GitJournal is very specific to GitJournal. It doesn't need
to be that complicated for other projects.
2022-06-27 13:21:10 +02:00

15 lines
395 B
Dart

/*
* SPDX-FileCopyrightText: 2019-2021 Vishesh Handa <me@vhanda.in>
*
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import 'package:universal_io/io.dart' show Platform;
import 'clone_git_exec.dart' as git_exec;
import 'clone_libgit2.dart' as libgit2;
final isMobileApp = Platform.isIOS || Platform.isAndroid;
var cloneRemote = isMobileApp ? libgit2.cloneRemote : git_exec.cloneRemote;