Skip to content

fix: take gravity into consideration when calculating selection coordinates on Android #665

fix: take gravity into consideration when calculating selection coordinates on Android

fix: take gravity into consideration when calculating selection coordinates on Android #665

name: 🤖 Build Android Fabric
on:
push:
branches:
- main
paths:
- ".github/workflows/build-android-fabric.yml"
- "android/**"
- "FabricExample/android/**"
- "yarn.lock"
- "FabricExample/yarn.lock"
- "src/specs/**"
pull_request:
paths:
- ".github/workflows/build-android-fabric.yml"
- "android/**"
- "FabricExample/android/**"
- "yarn.lock"
- "FabricExample/yarn.lock"
- "src/specs/**"
jobs:
build:
name: Build Android Fabric Example App
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
distribution: "microsoft"
java-version: "17"
- name: Get yarn cache directory path
id: fabric-yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- name: Restore node_modules from cache
uses: actions/cache@v4
id: yarn-cache
with:
path: ${{ steps.fabric-yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-fabric-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install node_modules for FabricExample/
run: yarn install --frozen-lockfile --cwd FabricExample
- name: Restore Gradle cache
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-fabric-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-fabric-gradle-
- name: Run Gradle Build for FabricExample/android/
run: cd FabricExample/android && ./gradlew assembleDebug --build-cache -PreactNativeArchitectures=arm64-v8a && cd ../..