mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-06-25 10:19:26 -04:00
Compare commits
No commits in common. "675872c3eff279e66f7c21b75c762d224ae78250" and "34d492a9b6704a5d5bad7ece8970109df0f05752" have entirely different histories.
675872c3ef
...
34d492a9b6
5 changed files with 6 additions and 14 deletions
10
CHANGELOG.md
10
CHANGELOG.md
|
@ -1,13 +1,3 @@
|
||||||
## 1.2.1
|
|
||||||
|
|
||||||
- fix: use default location of Flutter's '.pub_cache' folder
|
|
||||||
|
|
||||||
- docs: update README with troubleshooting instructions for Windows
|
|
||||||
|
|
||||||
- chore: bump minimum dart and flutter versions
|
|
||||||
|
|
||||||
- chore: Lookup library in system path (thanks @dnys1)
|
|
||||||
|
|
||||||
## 1.2.0
|
## 1.2.0
|
||||||
|
|
||||||
- feat: upgrade libgit2 to 1.5.0
|
- feat: upgrade libgit2 to 1.5.0
|
||||||
|
|
|
@ -74,7 +74,9 @@ String? _resolveLibPath(String name) {
|
||||||
// If lib is in Flutter's '.pub_cache' folder.
|
// If lib is in Flutter's '.pub_cache' folder.
|
||||||
final env = Platform.environment;
|
final env = Platform.environment;
|
||||||
if (env.containsKey('FLUTTER_ROOT')) {
|
if (env.containsKey('FLUTTER_ROOT')) {
|
||||||
libPath = checkCache(PubCache());
|
final flutterPubCache =
|
||||||
|
PubCache(Directory(path.join(env['FLUTTER_ROOT']!, '.pub-cache')));
|
||||||
|
libPath = checkCache(flutterPubCache);
|
||||||
if (_doesFileExist(libPath)) return libPath;
|
if (_doesFileExist(libPath)) return libPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
#
|
#
|
||||||
Pod::Spec.new do |s|
|
Pod::Spec.new do |s|
|
||||||
s.name = 'libgit2dart'
|
s.name = 'libgit2dart'
|
||||||
s.version = '1.2.1'
|
s.version = '1.2.0'
|
||||||
s.summary = 'Dart bindings to libgit2.'
|
s.summary = 'Dart bindings to libgit2.'
|
||||||
s.description = <<-DESC
|
s.description = <<-DESC
|
||||||
Dart bindings to libgit2.
|
Dart bindings to libgit2.
|
||||||
|
|
|
@ -2,7 +2,7 @@ name: libgit2dart
|
||||||
|
|
||||||
description: Dart bindings to libgit2, provides ability to use libgit2 library in Dart and Flutter.
|
description: Dart bindings to libgit2, provides ability to use libgit2 library in Dart and Flutter.
|
||||||
|
|
||||||
version: 1.2.1
|
version: 1.2.0
|
||||||
|
|
||||||
homepage: https://github.com/SkinnyMind/libgit2dart
|
homepage: https://github.com/SkinnyMind/libgit2dart
|
||||||
|
|
||||||
|
|
|
@ -278,7 +278,7 @@ void main() {
|
||||||
expect(refs.first.localId, null);
|
expect(refs.first.localId, null);
|
||||||
expect(refs.first.name, 'HEAD');
|
expect(refs.first.name, 'HEAD');
|
||||||
expect(refs.first.symRef, 'refs/heads/master');
|
expect(refs.first.symRef, 'refs/heads/master');
|
||||||
expect(refs.first.oid.sha, '49322bb17d3acc9146f98c97d078513228bbf3c0');
|
expect((refs.first.oid).sha, '49322bb17d3acc9146f98c97d078513228bbf3c0');
|
||||||
expect(refs.first.toString(), contains('RemoteReference{'));
|
expect(refs.first.toString(), contains('RemoteReference{'));
|
||||||
expect(refs.first, remote.ls().first);
|
expect(refs.first, remote.ls().first);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue