diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-06-01 15:22:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-01 15:22:05 +0200 |
commit | af3ee1c860034af855c4e9899e63380fa9dc1f8f (patch) | |
tree | 102e8f97b2268d81e951479a8c9b9a36f89e4dc8 /platform/android/export | |
parent | c882b6fab79ded2fdc7cae0a0d904d1cd3cbbf6e (diff) | |
parent | 2cf19293ba10c4bc735afcfae54ef6242c538bde (diff) |
Merge pull request #48963 from HaywardMorihara/export-android-keystore-debug-warnings
Exporting -> Android: Keystore Warnings
Diffstat (limited to 'platform/android/export')
-rw-r--r-- | platform/android/export/export.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/platform/android/export/export.cpp b/platform/android/export/export.cpp index 1338b31a64..c45828e194 100644 --- a/platform/android/export/export.cpp +++ b/platform/android/export/export.cpp @@ -2037,6 +2037,13 @@ public: // Validate the rest of the configuration. String dk = p_preset->get("keystore/debug"); + String dk_user = p_preset->get("keystore/debug_user"); + String dk_password = p_preset->get("keystore/debug_password"); + + if ((dk.is_empty() || dk_user.is_empty() || dk_password.is_empty()) && (!dk.is_empty() || !dk_user.is_empty() || !dk_password.is_empty())) { + valid = false; + err += TTR("Either Debug Keystore, Debug User AND Debug Password settings must be configured OR none of them.") + "\n"; + } if (!FileAccess::exists(dk)) { dk = EditorSettings::get_singleton()->get("export/android/debug_keystore"); @@ -2047,6 +2054,13 @@ public: } String rk = p_preset->get("keystore/release"); + String rk_user = p_preset->get("keystore/release_user"); + String rk_password = p_preset->get("keystore/release_password"); + + if ((rk.is_empty() || rk_user.is_empty() || rk_password.is_empty()) && (!rk.is_empty() || !rk_user.is_empty() || !rk_password.is_empty())) { + valid = false; + err += TTR("Either Release Keystore, Release User AND Release Password settings must be configured OR none of them.") + "\n"; + } if (!rk.is_empty() && !FileAccess::exists(rk)) { valid = false; |