[WAL-752] feat(mobile): add native mobile Digital Credentials API presentation #4
This file contains hidden or 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: Android DC emulator probe | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| paths: | |
| - '.github/workflows/android-dc-emulator-probe.yml' | |
| permissions: | |
| contents: read | |
| jobs: | |
| probe: | |
| name: api-36-google-apis-playstore | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Boot emulator and verify Play Services | |
| uses: reactivecircus/android-emulator-runner@b530d96654c385303d652368551fb075bc2f0b6b # v2.35.0 | |
| with: | |
| api-level: 36 | |
| arch: x86_64 | |
| profile: pixel_7 | |
| target: google_apis_playstore | |
| emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -no-metrics | |
| script: | | |
| set -eu | |
| version_code="$(adb shell dumpsys package com.google.android.gms | sed -n 's/.*versionCode=\([0-9]*\).*/\1/p' | head -n 1)" | |
| version_name="$(adb shell dumpsys package com.google.android.gms | sed -n 's/.*versionName=//p' | head -n 1)" | |
| printf 'Google Play services: versionName=%s versionCode=%s\n' "${version_name:-missing}" "${version_code:-missing}" | |
| if [ -z "$version_code" ] || [ "$version_code" -lt 243100000 ]; then | |
| echo "::error::Digital Credentials requires Google Play services version 243100000 or newer" | |
| exit 1 | |
| fi |