-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into bugfix/consumer-rules-log-warning
- Loading branch information
Showing
50 changed files
with
1,067 additions
and
294 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: android-emulator-run | ||
description: Do run script after emulator boot (use cached AVD or create a new one) | ||
|
||
inputs: | ||
script: | ||
description: Script to run after emulator booted | ||
required: true | ||
arch: | ||
description: Emulator arch, supported values depends on runner | ||
required: true | ||
default: x86_64 | ||
target: | ||
description: Emulator target. Supported `default` or `google_apis` values | ||
required: true | ||
default: default | ||
profile: | ||
description: Emulator profile | ||
required: true | ||
default: Nexus 6 | ||
api-level: | ||
description: Emulator API level | ||
required: true | ||
default: '28' | ||
boot-options: | ||
description: Emulator boot options | ||
required: true | ||
default: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Cache AVD | ||
uses: actions/cache@v4 | ||
id: avd-cache | ||
with: | ||
path: | | ||
~/.android/avd/* | ||
~/.android/adb* | ||
key: avd-api-${{ runner.os }}-${{ inputs.api-level }}-target-${{ inputs.target }} | ||
- if: runner.os == 'Linux' | ||
name: Enable KVM group perms | ||
shell: bash | ||
run: | | ||
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules | ||
sudo udevadm control --reload-rules | ||
sudo udevadm trigger --name-match=kvm | ||
- name: 'Create AVD' | ||
if: steps.avd-cache.outputs.cache-hit != 'true' | ||
uses: reactivecircus/android-emulator-runner@v2 | ||
with: | ||
arch: ${{ inputs.arch }} | ||
target: ${{ inputs.target }} | ||
profile: ${{ inputs.profile }} | ||
api-level: ${{ inputs.api-level }} | ||
emulator-options: ${{ inputs.boot-options }} | ||
force-avd-creation: false | ||
disable-animations: false | ||
script: echo "Generated AVD snapshot for caching." | ||
- uses: reactivecircus/android-emulator-runner@v2 | ||
with: | ||
arch: ${{ inputs.arch }} | ||
target: ${{ inputs.target }} | ||
profile: ${{ inputs.profile }} | ||
api-level: ${{ inputs.api-level }} | ||
emulator-options: ${{ inputs.boot-options }} | ||
force-avd-creation: false | ||
disable-animations: true | ||
script: ${{ inputs.script }} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
/sdk/gradle.properties | ||
/.idea | ||
.DS_Store | ||
/build | ||
build | ||
/captures | ||
.externalNativeBuild | ||
.cxx | ||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,7 +56,6 @@ public void onLoaded() { | |
latch.countDown(); | ||
} | ||
}, | ||
new TestHCaptchaStateListener(), | ||
webView | ||
); | ||
}); | ||
|
Oops, something went wrong.