#!/bin/bash
set -eux

. mkp4a.common

# NOTE: $1 and $2 (sdk and ndk) used with fdroid build only.

if [[ $# == 2 ]]
then
  sdkdir=$1
  ndkdir=$2
fi

python3 -m pythonforandroid.toolchain apk \
  ${p4a_options} \
  --sdk-dir ${sdkdir} \
  --ndk-dir ${ndkdir} \
  --release

# python3 -m pythonforandroid.toolchain apk
# ...
# --release          #1
# --sign             #2
# ...
#
# ad 1,2:
# ohne:    -> debug version
# 1:       -> release unsigned
# 1 und 2: -> release version.
