* remove unused examples * init bare example with test app * add react-native-video * add test app suport in expo plugin * expo plugin: skip keys that are already in pod file * fix podfile * add src files * fix metro config * finalize react native test app configuration * init expo example * remove old examples * add guide for example * Add link to examples apps in docs * adopt bare example to CI tests * update CI workflows * CI build lib after node_modules install * fix examples readme * fix iOS CI * Add Example for DRM * Update examples/README.md * fix links * update examples README * sync example code * update README
97 lines
2.6 KiB
YAML
97 lines
2.6 KiB
YAML
name: Build Android
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- '.github/workflows/build-android.yml'
|
|
- 'android/**'
|
|
- 'examples/bare/android/**'
|
|
- 'yarn.lock'
|
|
- 'examples/bare/yarn.lock'
|
|
pull_request:
|
|
paths:
|
|
- '.github/workflows/build-android.yml'
|
|
- 'android/**'
|
|
- 'examples/bare/android/**'
|
|
- 'yarn.lock'
|
|
- 'examples/bare/yarn.lock'
|
|
|
|
jobs:
|
|
build:
|
|
name: Build Android Example App
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup JDK 17
|
|
uses: actions/setup-java@v2
|
|
with:
|
|
distribution: 'zulu'
|
|
java-version: 17
|
|
java-package: jdk
|
|
|
|
- name: Install node_modules at Root
|
|
uses: ./.github/actions/setup-node
|
|
with:
|
|
working-directory: ./
|
|
|
|
- name: Build Library
|
|
run: yarn build
|
|
|
|
- name: Install node_modules at Example
|
|
uses: ./.github/actions/setup-node
|
|
with:
|
|
working-directory: examples/bare
|
|
|
|
- name: Restore Gradle cache
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: |
|
|
~/.gradle/caches
|
|
~/.gradle/wrapper
|
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-gradle-
|
|
- name: Run Gradle Build for bare example
|
|
run: cd examples/bare/android && ./gradlew assembleDebug --build-cache && cd ../../..
|
|
|
|
build-with-ads:
|
|
name: Build Android Example App With Ads
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup JDK 17
|
|
uses: actions/setup-java@v2
|
|
with:
|
|
distribution: 'zulu'
|
|
java-version: 17
|
|
java-package: jdk
|
|
|
|
- name: Install node_modules at Root
|
|
uses: ./.github/actions/setup-node
|
|
with:
|
|
working-directory: ./
|
|
|
|
- name: Build Library
|
|
run: yarn build
|
|
|
|
- name: Install node_modules at Example
|
|
uses: ./.github/actions/setup-node
|
|
with:
|
|
working-directory: examples/bare
|
|
|
|
- name: Restore Gradle cache
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: |
|
|
~/.gradle/caches
|
|
~/.gradle/wrapper
|
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-gradle-
|
|
- name: Run Gradle Build for bare example
|
|
run: cd examples/bare/android && export RNV_SAMPLE_ENABLE_ADS=true && ./gradlew assembleDebug --build-cache && cd ../../..
|