Skip to content

Commit

Permalink
Bump version to 1.10.6 (#874)
Browse files Browse the repository at this point in the history
* bump version to 1.10.6

* downgrade Kotlin version in example app

* update `publish` gh action
  • Loading branch information
bartekpacia authored Jul 30, 2023
1 parent 387588f commit b4f3303
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 37 deletions.
46 changes: 11 additions & 35 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion example/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
ext.kotlin_version = "1.9.0"
ext.kotlin_version = "1.7.22"
repositories {
google()
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit b4f3303

Please sign in to comment.