fix: Android initialization bug and iOS 14 availability annotations #318
This file contains hidden or 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
| name: analysis | |
| on: pull_request | |
| jobs: | |
| package-analysis: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| package: [workmanager, workmanager_platform_interface, workmanager_android, workmanager_apple] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: "stable" | |
| cache: true | |
| - uses: bluefireteam/melos-action@v3 | |
| # unused until https://github.com/dart-lang/pana/issues/1020 is fixed | |
| # # Only run dart-package-analyzer on the main workmanager package | |
| # # The platform-specific packages are not meant to be published individually | |
| # - uses: axel-op/dart-package-analyzer@v3 | |
| # if: matrix.package == 'workmanager' | |
| # with: | |
| # githubToken: ${{ secrets.GITHUB_TOKEN }} | |
| # relativePath: ${{ matrix.package }}/ | |
| - name: Analyze package | |
| run: | | |
| cd ${{ matrix.package }} | |
| flutter analyze | |
| dart pub publish --dry-run |