Ensuring there's no UI lock on Android, also preventing crash #38
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
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "packages/react-native/android/**" | |
pull_request: | |
paths: | |
- "packages/react-native/android/**" | |
name: Android Integration | |
jobs: | |
ktlint: | |
runs-on: ubuntu-latest | |
name: Kotlin Lint | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: touchlab-lab/ktlint-action-setup@1.0.0 | |
with: | |
ktlint_version: 1.3.1 | |
- run: ktlint "packages/react-native/android/src/**/*.kt" | |
build-new-arch: | |
runs-on: ubuntu-latest | |
name: Build Android (New Architecture) | |
strategy: | |
matrix: | |
node-version: [22.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "pnpm" | |
- run: pnpm install | |
- name: Library Build | |
run: pnpm build | |
- name: Build Android | |
run: cd examples/v0.76.1-new-arch/android && ./gradlew assembleDebug --build-cache && cd ../.. | |
build-old-arch: | |
runs-on: ubuntu-latest | |
name: Build Android (Old Architecture) | |
strategy: | |
matrix: | |
node-version: [22.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "pnpm" | |
- run: pnpm install | |
- name: Library Build | |
run: pnpm build | |
- name: Build Android | |
run: cd examples/v0.71.19/android && ./gradlew assembleDebug --build-cache && cd ../.. |