2022-04-19 00:33:12 +05:30
|
|
|
#!/bin/bash -ex
|
|
|
|
|
|
|
|
export NDK_CCACHE=$(which ccache)
|
|
|
|
|
2023-06-26 17:42:00 -07:00
|
|
|
if [ ! -z "${ANDROID_KEYSTORE_B64}" ]; then
|
|
|
|
export ANDROID_KEYSTORE_FILE="${GITHUB_WORKSPACE}/ks.jks"
|
|
|
|
base64 --decode <<< "${ANDROID_KEYSTORE_B64}" > "${ANDROID_KEYSTORE_FILE}"
|
|
|
|
fi
|
2022-04-19 00:33:12 +05:30
|
|
|
|
|
|
|
cd src/android
|
|
|
|
chmod +x ./gradlew
|
2024-05-17 22:20:02 +01:00
|
|
|
./gradlew assembleRelease
|
|
|
|
./gradlew bundleRelease
|
2022-04-19 00:33:12 +05:30
|
|
|
|
2023-10-08 23:56:01 -07:00
|
|
|
ccache -s -v
|
2023-06-26 17:42:00 -07:00
|
|
|
|
|
|
|
if [ ! -z "${ANDROID_KEYSTORE_B64}" ]; then
|
|
|
|
rm "${ANDROID_KEYSTORE_FILE}"
|
|
|
|
fi
|