Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions .github/workflows/firebase-app-distribution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,32 @@ jobs:
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
run: |
if [ -z "$KEYSTORE_PATH" ]; then
echo "Missing KEYSTORE_PATH environment variable."
exit 1
fi

if [ ! -f "$KEYSTORE_PATH" ]; then
echo "Keystore file was not created at $KEYSTORE_PATH."
exit 1
fi

for secret_name in KEYSTORE_PASSWORD KEY_ALIAS KEY_PASSWORD; do
if [ -z "${!secret_name}" ]; then
echo "Missing $secret_name repository secret."
exit 1
fi
done

keytool -list \
if ! keytool -list \
-keystore "$KEYSTORE_PATH" \
-storepass "$KEYSTORE_PASSWORD" \
-alias "$KEY_ALIAS" > /dev/null
-alias "$KEY_ALIAS" > /dev/null; then
echo "Could not read the release key from the keystore."
echo "Check KEYSTORE_BASE, KEYSTORE_PASSWORD and KEY_ALIAS."
echo "If your key password is different from the store password, also check KEY_PASSWORD."
exit 1
fi

- name: Set app version
run: |
Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ android {

buildTypes {
debug {
buildConfigField("String", "BASE_URL", "\"http://10.0.2.2:8080/api/v1/\"")
buildConfigField("String", "BASE_URL", "\"http://20.124.135.239/api/v1/\"")
}
create("docker") {
initWith(getByName("debug"))
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/xml/network_security_config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">10.0.2.2</domain>
<domain includeSubdomains="true">20.124.135.239</domain>
</domain-config>
</network-security-config>
Loading