feat: upgrade libgit2 to 1.4.1

This commit is contained in:
Aleksey Kulikov 2022-02-19 11:46:16 +03:00
parent 12ee9f3b53
commit e83d6ab29a
7 changed files with 4 additions and 4 deletions

View file

@ -8,7 +8,7 @@ import 'package:libgit2dart/src/bindings/libgit2_bindings.dart';
import 'package:path/path.dart' as path; import 'package:path/path.dart' as path;
import 'package:pub_cache/pub_cache.dart'; import 'package:pub_cache/pub_cache.dart';
const libgit2Version = '1.4.0'; const libgit2Version = '1.4.1';
final libDir = path.join('.dart_tool', 'libgit2'); final libDir = path.join('.dart_tool', 'libgit2');
String getLibName() { String getLibName() {

View file

@ -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 # List of absolute paths to libraries that should be bundled with the plugin
set(libgit2dart_bundled_libraries set(libgit2dart_bundled_libraries
"${CMAKE_CURRENT_SOURCE_DIR}/libgit2-1.4.0.so" "${CMAKE_CURRENT_SOURCE_DIR}/libgit2-1.4.1.so"
PARENT_SCOPE PARENT_SCOPE
) )

View file

@ -15,7 +15,7 @@ Dart bindings to libgit2.
s.source = { :path => '.' } s.source = { :path => '.' }
s.source_files = 'Classes/**/*' s.source_files = 'Classes/**/*'
s.dependency 'FlutterMacOS' s.dependency 'FlutterMacOS'
s.vendored_libraries = 'libgit2-1.4.0.dylib' s.vendored_libraries = 'libgit2-1.4.1.dylib'
s.platform = :osx, '10.11' s.platform = :osx, '10.11'
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }

View file

@ -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 # List of absolute paths to libraries that should be bundled with the plugin
set(libgit2dart_bundled_libraries set(libgit2dart_bundled_libraries
"${CMAKE_CURRENT_SOURCE_DIR}/libgit2-1.4.0.dll" "${CMAKE_CURRENT_SOURCE_DIR}/libgit2-1.4.1.dll"
PARENT_SCOPE PARENT_SCOPE
) )