Added android build script

This commit is contained in:
Jason Rhinelander 2022-09-07 17:19:29 -03:00
parent ab281f2338
commit 66dabf3fee
No known key found for this signature in database
GPG Key ID: C4992CE7A88D4262
1 changed files with 22 additions and 0 deletions

22
tool/android.sh Executable file
View File

@ -0,0 +1,22 @@
#!/bin/bash
if ! [ -e "pubspec.yaml" ] || ! [ -d "oxen_coin" ]; then
echo "Error: this script must be invoked from the top-level project directory" >&2
exit 1
fi
set -e -x
./tool/download-android-deps.sh https://oxen.rocks/oxen-io/oxen-core/oxen-stable-android-deps-LATEST.tar.xz
flutter pub get
flutter pub upgrade
flutter pub run build_runner build --delete-conflicting-outputs
flutter pub run flutter_launcher_icons:main
flutter build apk --split-per-abi
flutter build appbundle