Merge pull request #48963 from HaywardMorihara/export-android-keystore-debug-warnings
Exporting -> Android: Keystore Warnings
This commit is contained in:
commit
af3ee1c860
1 changed files with 14 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue