From 3f4ce92c794aefd8dbabdc6b9b74732cba148fe2 Mon Sep 17 00:00:00 2001 From: Joscha <34318751+josxha@users.noreply.github.com> Date: Wed, 3 Apr 2024 13:10:43 +0200 Subject: [PATCH] bump versions, fix updater, add dependabot --- .github/dependabot.yml | 16 ++++++++++++++++ .github/workflows/update-list.yml | 2 +- updater/lib/pub_dev_service.dart | 4 +--- updater/pubspec.yaml | 2 +- 4 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..5e5eb52 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,16 @@ +version: 2 +enable-beta-ecosystems: true +updates: + - package-ecosystem: "pub" + directory: "/" + schedule: + interval: "daily" + ignore: + - dependency-name: "*" + update-types: + - "version-update:semver-minor" + - "version-update:semver-patch" + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" \ No newline at end of file diff --git a/.github/workflows/update-list.yml b/.github/workflows/update-list.yml index 279b1d8..6cb79cd 100644 --- a/.github/workflows/update-list.yml +++ b/.github/workflows/update-list.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout git repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install dart uses: dart-lang/setup-dart@v1 - name: Install dart dependencies diff --git a/updater/lib/pub_dev_service.dart b/updater/lib/pub_dev_service.dart index 50d0782..0751ac8 100644 --- a/updater/lib/pub_dev_service.dart +++ b/updater/lib/pub_dev_service.dart @@ -27,7 +27,7 @@ class PubDevService { version: packageVersion, description: info.description, homepage: info.latestPubspec.homepage, - repository: info.latestPubspec.repository, + repository: info.latestPubspec.repository(), lastUpdate: info.latest.published, flutterMapVersion: fmVersionConstraint, latestFlutterMapDependency: fmVersionConstraint?.allows(fmVersion), @@ -44,6 +44,4 @@ extension PubspecExt on PubSpec { if (fmDep == null) return null; return VersionConstraint.parse(fmDep.toString().replaceAll('"', '')); } - - String? get repository => unParsedYaml?['repository']; } diff --git a/updater/pubspec.yaml b/updater/pubspec.yaml index eeacafd..aa048ce 100644 --- a/updater/pubspec.yaml +++ b/updater/pubspec.yaml @@ -11,4 +11,4 @@ dependencies: pub_semver: ^2.1.4 dev_dependencies: - total_lints: ^2.19.0 + total_lints: ^3.2.0