Skip to content

为 Android项目添加命名空间在 android/build.gradle 文件中为项目指定了一个新的命名空间 'io.github.… #95

为 Android项目添加命名空间在 android/build.gradle 文件中为项目指定了一个新的命名空间 'io.github.…

为 Android项目添加命名空间在 android/build.gradle 文件中为项目指定了一个新的命名空间 'io.github.… #95

Workflow file for this run

name: build
on:
push:
paths-ignore:
- '.github/workflows/**'
- 'README.md'
pull_request:
jobs:
build_ios:
name: Build iOS on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Run llvm/clang-format@shell
run: |
brew install clang-format
- name: Run ruby/plist@shell
run: |
gem install plist
- run: clang-format -style=file -i ios/Classes/*.h ios/Classes/*.m --dry-run --Werror
- run: flutter --version
- run: flutter pub get
- run: dart format --set-exit-if-changed .
- run: flutter pub publish --dry-run
- run: flutter analyze lib example/lib
- run: cd example; flutter build ios --no-codesign
build_ios_no_pay:
name: Build iOS NoPay on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Run llvm/clang-format@shell
run: |
brew install clang-format
- name: Run ruby/plist@shell
run: |
gem install plist
- run: clang-format -style=file -i ios/Classes/*.h ios/Classes/*.m --dry-run
- run: flutter --version
- run: flutter pub get
- run: dart format --set-exit-if-changed .
- run: flutter pub publish --dry-run
- run: flutter analyze lib example/lib
- run: |
cd example
sed -i.bak0 's/#wechat_kit/wechat_kit/' pubspec.yaml
sed -i.bak1 's/# ios: no_pay/ ios: no_pay/' pubspec.yaml
flutter build ios --no-codesign
build_android:
name: Build Android on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: flutter --version
- run: flutter pub get
- run: dart format --set-exit-if-changed .
- run: flutter pub publish --dry-run
- run: flutter analyze lib example/lib
- run: |
cd example
flutter build apk --debug