mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
feat: upgrade libgit2
This commit is contained in:
parent
3bbcca3c75
commit
6a097c1841
92 changed files with 279 additions and 171 deletions
|
@ -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-1.1.0/libgit2.so');
|
||||
'${Directory.current.path}/libgit2/libgit2-1.1.1.so');
|
||||
}
|
||||
if (Platform.isMacOS) {
|
||||
return DynamicLibrary.open(
|
||||
'${Directory.current.path}/libgit2-1.1.0/libgit2.dylib');
|
||||
'${Directory.current.path}/libgit2/libgit2-1.1.1.dylib');
|
||||
}
|
||||
if (Platform.isWindows) {
|
||||
return DynamicLibrary.open(
|
||||
'${Directory.current.path}/libgit2-1.1.0/libgit2.dll');
|
||||
'${Directory.current.path}/libgit2/libgit2-1.1.1.dll');
|
||||
}
|
||||
throw Exception('Platform not implemented');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue