Fixes subscription to _deviceConnector.deviceConnectionStateUpdateStr… #54
This file contains 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: "Build" | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Build | |
runs-on: macos-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Set Up Java | |
uses: actions/setup-java@v3.12.0 | |
with: | |
distribution: 'oracle' | |
java-version: '19.0.2' | |
- name: Set Up Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.16.3' | |
channel: 'stable' | |
- name: Set up debug keystore | |
run: | | |
rm -f ~/.android/debug.keystore | |
keytool -genkeypair \ | |
-alias androiddebugkey \ | |
-keypass android \ | |
-keystore ~/.android/debug.keystore \ | |
-storepass android \ | |
-dname 'CN=Android Debug,O=Android,C=US' \ | |
-keyalg 'RSA' \ | |
-keysize 2048 \ | |
-validity 10000 | |
- name: Quality checks monorepo | |
run: | | |
./bin/quality_checks.sh | |
- name: Build Android app & run native tests | |
run: | | |
#!/bin/bash -ex | |
cd example | |
flutter build apk --debug | |
cd android | |
./gradlew detekt | |
./gradlew testDebugUnitTest | |
- name: Build iOS app | |
run: | | |
find . -name "Podfile" -execdir pod install \; | |
cd example && flutter build ios --debug --no-codesign |