# Adapted from AUR: yubico-authenticator
#
# Ref: https://aur.archlinux.org/cgit/aur.git/tree/?h=yubico-authenticator&id=aa91641d83d6c7e8274543bb03ae9a26c7c434a9

abinfo "Setting up flutter ..."
export $(grep '^FLUTTER=' "$SRCDIR/.github/workflows/env")
fvm install $FLUTTER
fvm global $FLUTTER

abinfo "Disabling flutter analytics ..."
fvm flutter --disable-analytics

# Rename helper folder to avoid conflicts
abinfo "Rename helper folder ..."
mv -v "$SRCDIR/helper/helper" "$SRCDIR/helper/yubioath_flutter_helper"
