mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 12:19:09 -04:00
feat: upgrade libgit2 to 1.4.3
This commit is contained in:
parent
94fbb8317f
commit
f42f8a6e1b
10 changed files with 20 additions and 7 deletions
|
@ -2467,6 +2467,14 @@ class Libgit2 {
|
|||
/// > to support repositories with the `noop` extension but does want
|
||||
/// > to support repositories with the `newext` extension.
|
||||
///
|
||||
/// opts(GIT_OPT_GET_OWNER_VALIDATION, int *enabled)
|
||||
/// > Gets the owner validation setting for repository
|
||||
/// > directories.
|
||||
///
|
||||
/// opts(GIT_OPT_SET_OWNER_VALIDATION, int enabled)
|
||||
/// > Set that repository directories should be owned by the current
|
||||
/// > user. The default is to validate ownership.
|
||||
///
|
||||
/// @param option Option key
|
||||
/// @param ... value to set the option
|
||||
/// @return 0 on success, <0 on failure
|
||||
|
@ -26913,6 +26921,8 @@ abstract class git_libgit2_opt_t {
|
|||
static const int GIT_OPT_SET_ODB_LOOSE_PRIORITY = 32;
|
||||
static const int GIT_OPT_GET_EXTENSIONS = 33;
|
||||
static const int GIT_OPT_SET_EXTENSIONS = 34;
|
||||
static const int GIT_OPT_GET_OWNER_VALIDATION = 35;
|
||||
static const int GIT_OPT_SET_OWNER_VALIDATION = 36;
|
||||
}
|
||||
|
||||
/// A data buffer for exporting data from libgit2
|
||||
|
@ -30613,6 +30623,9 @@ abstract class git_error_code {
|
|||
|
||||
/// < Patch application failed
|
||||
static const int GIT_EAPPLYFAIL = -35;
|
||||
|
||||
/// < The object is not owned by the current user
|
||||
static const int GIT_EOWNER = -36;
|
||||
}
|
||||
|
||||
/// Structure to store extra details of the last error that occurred.
|
||||
|
@ -32680,13 +32693,13 @@ const int GIT_CREDTYPE_SSH_MEMORY = 64;
|
|||
|
||||
const int GIT_EMAIL_CREATE_OPTIONS_VERSION = 1;
|
||||
|
||||
const String LIBGIT2_VERSION = '1.4.2';
|
||||
const String LIBGIT2_VERSION = '1.4.3';
|
||||
|
||||
const int LIBGIT2_VER_MAJOR = 1;
|
||||
|
||||
const int LIBGIT2_VER_MINOR = 4;
|
||||
|
||||
const int LIBGIT2_VER_REVISION = 2;
|
||||
const int LIBGIT2_VER_REVISION = 3;
|
||||
|
||||
const int LIBGIT2_VER_PATCH = 0;
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ import 'package:libgit2dart/src/bindings/libgit2_bindings.dart';
|
|||
import 'package:path/path.dart' as path;
|
||||
import 'package:pub_cache/pub_cache.dart';
|
||||
|
||||
const libgit2Version = '1.4.2';
|
||||
const libgit2Version = '1.4.3';
|
||||
final libDir = path.join('.dart_tool', 'libgit2');
|
||||
|
||||
String getLibName() {
|
||||
|
@ -25,7 +25,7 @@ String getLibName() {
|
|||
return 'libgit2-$libgit2Version.$ext';
|
||||
}
|
||||
|
||||
/// Checks if [File]/[Link] exists for an [uri].
|
||||
/// Checks if [File]/[Link] exists for [path].
|
||||
bool _doesFileExist(String path) {
|
||||
return File(path).existsSync() || Link(path).existsSync();
|
||||
}
|
||||
|
|
|
@ -20,6 +20,6 @@ target_link_libraries(${PLUGIN_NAME} PRIVATE PkgConfig::GTK)
|
|||
|
||||
# List of absolute paths to libraries that should be bundled with the plugin
|
||||
set(libgit2dart_bundled_libraries
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/libgit2-1.4.2.so"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/libgit2-1.4.3.so"
|
||||
PARENT_SCOPE
|
||||
)
|
||||
|
|
Binary file not shown.
BIN
linux/libgit2-1.4.3.so
Normal file
BIN
linux/libgit2-1.4.3.so
Normal file
Binary file not shown.
Binary file not shown.
BIN
macos/libgit2-1.4.3.dylib
Normal file
BIN
macos/libgit2-1.4.3.dylib
Normal file
Binary file not shown.
|
@ -15,7 +15,7 @@ Dart bindings to libgit2.
|
|||
s.source = { :path => '.' }
|
||||
s.source_files = 'Classes/**/*'
|
||||
s.dependency 'FlutterMacOS'
|
||||
s.vendored_libraries = 'libgit2-1.4.2.dylib'
|
||||
s.vendored_libraries = 'libgit2-1.4.3.dylib'
|
||||
|
||||
s.platform = :osx, '10.11'
|
||||
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
|
||||
|
|
|
@ -19,6 +19,6 @@ target_link_libraries(${PLUGIN_NAME} PRIVATE flutter flutter_wrapper_plugin)
|
|||
|
||||
# List of absolute paths to libraries that should be bundled with the plugin
|
||||
set(libgit2dart_bundled_libraries
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/libgit2-1.4.2.dll"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/libgit2-1.4.3.dll"
|
||||
PARENT_SCOPE
|
||||
)
|
||||
|
|
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue