chore: upgrade to libgit2-1.2.0

This commit is contained in:
Aleksey Kulikov 2021-09-17 18:22:01 +03:00
parent b83fea9360
commit a1e420d86c
36 changed files with 2889 additions and 1024 deletions

File diff suppressed because it is too large Load diff

View file

@ -5,15 +5,15 @@ import 'bindings/libgit2_bindings.dart';
DynamicLibrary loadLibrary() {
if (Platform.isLinux || Platform.isAndroid || Platform.isFuchsia) {
return DynamicLibrary.open(
'${Directory.current.path}/libgit2/libgit2-1.1.1.so');
'${Directory.current.path}/libgit2/libgit2-1.2.0.so');
}
if (Platform.isMacOS) {
return DynamicLibrary.open(
'${Directory.current.path}/libgit2/libgit2-1.1.1.dylib');
'${Directory.current.path}/libgit2/libgit2-1.2.0.dylib');
}
if (Platform.isWindows) {
return DynamicLibrary.open(
'${Directory.current.path}/libgit2/libgit2-1.1.1.dll');
'${Directory.current.path}/libgit2/libgit2-1.2.0.dll');
}
throw Exception('Platform not implemented');
}