From b4f330397566ce168b52b030b3db9e45922ac28f Mon Sep 17 00:00:00 2001 From: Bartek Pacia Date: Sun, 30 Jul 2023 23:00:33 +0200 Subject: [PATCH] Bump version to 1.10.6 (#874) * bump version to 1.10.6 * downgrade Kotlin version in example app * update `publish` gh action --- .github/workflows/publish.yaml | 46 ++++++++-------------------------- CHANGELOG.md | 7 ++++++ example/android/build.gradle | 2 +- pubspec.yaml | 2 +- 4 files changed, 20 insertions(+), 37 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 80e6fbe9..c8186ac6 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -5,14 +5,19 @@ on: tags: ['v*'] jobs: - main: + publish: + name: Publish on pub.dev runs-on: ubuntu-latest + permissions: + id-token: write + contents: write + steps: - - name: Checkout + - name: Clone repository uses: actions/checkout@v3 - # This action adds a token needed for pub.dev + # This step adds the auth token for pub.dev - name: Set up Dart uses: dart-lang/setup-dart@v1 with: @@ -24,35 +29,6 @@ jobs: channel: stable cache: true - - name: Install mobile-tools - uses: actions/checkout@v3 - with: - repository: leancodepl/mobile-tools - path: mobile-tools - - - name: Add mobile-tools to PATH - run: | - echo $GITHUB_WORKSPACE/mobile-tools/bin >> $GITHUB_PATH - - - name: Download pub.dev credentials - env: - CREDENTIALS: ${{ secrets.PUB_DEV_CREDENTIALS }} - run: | - mkdir -p ~/.pub-cache - echo $CREDENTIALS > ~/.pub-cache/credentials.json - - - name: Set version data - run: | - tag=${{ github.ref_name }} - echo "RELEASE_NOTES=$(link_changelog flutter_downloader $tag)" >> $GITHUB_ENV - echo "IS_PRERELEASE=$(is_prerelease flutter_downloader $tag)" >> $GITHUB_ENV - - - name: Publish - run: dart pub publish --force - - - name: Create release - uses: softprops/action-gh-release@v1 - with: - name: ${{ github.ref_name }} - body: '[See changelog on pub.dev](${{ env.RELEASE_NOTES }})' - prerelease: ${{ env.IS_PRERELEASE }} + - name: Publish to pub.dev + id: pub_release + uses: leancodepl/mobile-tools/.github/actions/pub-release@pub-release-v1 diff --git a/CHANGELOG.md b/CHANGELOG.md index f064cf98..a5dddf23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## 1.10.6 + +- Fix `delete()` not working when file isn't saved to public storage (#871) +- Update CI workflows on GitHub Actions (#872) +- Bump native Android dependencies and Gradle (#873) +- Bump minimum Flutter version to 3.10 (#873) + ## 1.10.5 - Make the project compile when the app not doesn't have dependency on Kotlin diff --git a/example/android/build.gradle b/example/android/build.gradle index 5cc84de1..80bb3e10 100644 --- a/example/android/build.gradle +++ b/example/android/build.gradle @@ -1,5 +1,5 @@ buildscript { - ext.kotlin_version = "1.9.0" + ext.kotlin_version = "1.7.22" repositories { google() mavenCentral() diff --git a/pubspec.yaml b/pubspec.yaml index ff92a8e7..0226485d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_downloader description: Powerful plugin making it easy to download files. -version: 1.10.5 +version: 1.10.6 repository: https://github.com/fluttercommunity/flutter_downloader issue_tracker: https://github.com/fluttercommunity/flutter_downloader/issues maintainer: Bartek Pacia (@bartekpacia)