modules/android-integration: termux-open, termux-open-url, xdg-open

This commit is contained in:
Alexander Sosedkin 2024-07-06 17:10:49 +02:00
parent cc573e03d9
commit 6f944fe209
6 changed files with 81 additions and 14 deletions

View file

@ -6,7 +6,10 @@ load lib
bats_require_minimum_version 1.5.0
run ! command -v am
run ! command -v termux-setup-storage
run ! command -v termux-open
run ! command -v termux-open-url
run ! command -v xdg-open
run ! command -v termux-backup
cp \
"$ON_DEVICE_TESTS_DIR/config-android-integration.nix" \
@ -15,7 +18,10 @@ load lib
command -v am
command -v termux-setup-storage
run ! command -v termux-open-url
command -v termux-open
command -v termux-open-url
command -v xdg-open
run ! command -v termux-backup
_sed \
-e "s|# unsupported.enable = false;|unsupported.enable = true;|" \
@ -24,7 +30,10 @@ load lib
nix-on-droid switch
run ! command -v am
command -v termux-setup-storage
command -v termux-open
command -v termux-open-url
command -v xdg-open
command -v termux-backup
switch_to_default_config
}