-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds workaround for dart-lang/pub#3563 which requires using Flutter's `dart` command if a package lists a Flutter SDK constraint even if the package does not depend on Flutter.
- Loading branch information
Showing
15 changed files
with
138 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ analyzer: | |
public_member_api_docs: ignore | ||
exclude: | ||
- '**/*.g.dart' | ||
- external/ |
Submodule libgit2dart
added at
34d492
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
diff --git a/pubspec.yaml b/pubspec.yaml | ||
index 5acda72..2831e58 100644 | ||
--- a/pubspec.yaml | ||
+++ b/pubspec.yaml | ||
@@ -8,7 +8,6 @@ homepage: https://github.com/SkinnyMind/libgit2dart | ||
|
||
environment: | ||
sdk: ">=2.18.0 <3.0.0" | ||
- flutter: ">=3.3.0" | ||
|
||
dependencies: | ||
args: ^2.3.0 | ||
@@ -23,16 +22,6 @@ dev_dependencies: | ||
lints: ^2.0.0 | ||
test: ^1.20.0 | ||
|
||
-flutter: | ||
- plugin: | ||
- platforms: | ||
- linux: | ||
- pluginClass: Libgit2dartPlugin | ||
- macos: | ||
- pluginClass: Libgit2dartPlugin | ||
- windows: | ||
- pluginClass: Libgit2dartPlugin | ||
- | ||
ffigen: | ||
output: "lib/src/bindings/libgit2_bindings.dart" | ||
headers: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: aft | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- stable | ||
- next | ||
paths: | ||
- 'packages/aft/**/*.dart' | ||
pull_request: | ||
paths: | ||
- 'packages/aft/**/*.dart' | ||
schedule: | ||
- cron: "0 0 * * 0" # Every Sunday at 00:00 | ||
defaults: | ||
run: | ||
shell: bash | ||
permissions: read-all | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Git Checkout | ||
uses: actions/checkout@e2f20e631ae6d7dd3b768f56a5d2af784dd54791 # v2.5.0 | ||
|
||
- name: Git Submodules | ||
run: git submodule update --init | ||
|
||
- name: Setup Dart | ||
uses: dart-lang/setup-dart@196f54580e9eee2797c57e85e289339f85e6779d # main | ||
with: | ||
sdk: stable | ||
|
||
- name: Get Packages | ||
working-directory: packages/aft | ||
run: | | ||
# Patch libgit2dart (see https://github.com/dart-lang/pub/issues/3563) | ||
( cd /external/libgit2dart; git apply ../libgit2dart.patch ) | ||
dart pub upgrade | ||
sudo apt-get install libgit2-dev | ||
dart run libgit2dart:setup | ||
- name: Run Tests | ||
working-directory: packages/aft | ||
run: dart test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters