From 7b7cae2ab13f415822a434a313187fb83d69448e Mon Sep 17 00:00:00 2001 From: iotserv Date: Mon, 4 Nov 2024 20:27:42 +0800 Subject: [PATCH] git tag v0.0.4+2 --- .github/workflows/publish.yml | 51 ++++++++++++++++++++++++----------- .idea/misc.xml | 5 +++- CHANGELOG.md | 4 +++ android/build.gradle | 5 ++-- pubspec.yaml | 2 +- 5 files changed, 47 insertions(+), 20 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index adde709..6b62fe6 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,23 +1,42 @@ -name: Publish to Pub.dev +# .github/workflows/publish.yml +name: Publish to pub.dev -on: [push, pull_request] +on: + push: + tags: + # must align with the tag-pattern configured on pub.dev, often just replace + # with [0-9]+.[0-9]+.[0-9]+* + - 'v[0-9]+.[0-9]+.[0-9]+*' # tag-pattern on pub.dev: 'v' + # If you prefer tags like '1.2.3', without the 'v' prefix, then use: + # - '[0-9]+.[0-9]+.[0-9]+*' # tag-pattern on pub.dev: '' + # If your repository contains multiple packages consider a pattern like: + # - 'my_package_name-v[0-9]+.[0-9]+.[0-9]+*' jobs: - publishing: + publish: + name: Publish on pub.dev runs-on: ubuntu-latest + + permissions: + id-token: write + contents: write + steps: - # 拉取仓库代码 - - name: "Checkout" - uses: actions/checkout@v2 - - uses: subosito/flutter-action@v1 + - name: Clone repository + uses: actions/checkout@v3 + + # This step adds the auth token for pub.dev + - name: Set up Dart + uses: dart-lang/setup-dart@v1 with: - channel: 'stable' - - run: flutter pub get - # 发布插件 - - name: Publish - uses: sakebook/actions-flutter-pub-publisher@v1.3.1 + sdk: stable + + - name: Set up Flutter + uses: subosito/flutter-action@v2 with: - credential: ${{ secrets.CREDENTIAL_JSON }} - flutter_package: true - skip_test: true - dry_run: false \ No newline at end of file + channel: stable + cache: true + + - name: Publish to pub.dev + id: pub_release + uses: leancodepl/mobile-tools/.github/actions/pub-release@pub-release-v1 \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 4a0a449..5e302d9 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -3,5 +3,8 @@ - + + + \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 5bd3de5..ad61e61 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.0.4+2 + +* namespace. + ## 0.0.1 * initial release. diff --git a/android/build.gradle b/android/build.gradle index db336c2..13ef83d 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -22,10 +22,11 @@ rootProject.allprojects { apply plugin: 'com.android.library' android { - compileSdkVersion 30 + namespace "com.iotserv.flutter_oneshot" + compileSdkVersion 34 defaultConfig { - minSdkVersion 16 + minSdkVersion 21 } } diff --git a/pubspec.yaml b/pubspec.yaml index 29d6c74..7b71fc8 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_oneshot description: OneShot for w60x wifi config -version: 0.0.4+1 +version: 0.0.4+2 homepage: https://github.com/iotdevice/flutter_oneshot environment: