diff --git a/app/build.gradle b/app/build.gradle index c6a9daf493..47edf614a1 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -215,7 +215,7 @@ android { buildConfigField "String", "OPENAI_PRIVACY", "\"https://openai.com/policies/privacy-policy\"" buildConfigField "String", "GEMINI_ENDPOINT", "\"https://generativelanguage.googleapis.com/v1beta/\"" buildConfigField "String", "GEMINI_PRIVACY", "\"https://support.google.com/gemini/answer/13594961\"" - buildConfigField "String", "PAWNED_ENDPOINT", "\"https://api.pwnedpasswords.com/\"" + buildConfigField "String", "PWNED_ENDPOINT", "\"https://api.pwnedpasswords.com/\"" buildConfigField "String", "FDROID", "\"https://f-droid.org/packages/%s/\"" } large { @@ -240,7 +240,7 @@ android { buildConfigField "String", "OPENAI_PRIVACY", "\"https://openai.com/policies/privacy-policy\"" buildConfigField "String", "GEMINI_ENDPOINT", "\"https://generativelanguage.googleapis.com/v1beta/\"" buildConfigField "String", "GEMINI_PRIVACY", "\"https://support.google.com/gemini/answer/13594961\"" - buildConfigField "String", "PAWNED_ENDPOINT", "\"https://api.pwnedpasswords.com/\"" + buildConfigField "String", "PWNED_ENDPOINT", "\"https://api.pwnedpasswords.com/\"" buildConfigField "String", "FDROID", "\"https://f-droid.org/packages/%s/\"" } fdroid { @@ -274,7 +274,7 @@ android { buildConfigField "String", "OPENAI_PRIVACY", "\"https://openai.com/policies/privacy-policy\"" buildConfigField "String", "GEMINI_ENDPOINT", "\"https://generativelanguage.googleapis.com/v1beta/\"" buildConfigField "String", "GEMINI_PRIVACY", "\"https://support.google.com/gemini/answer/13594961\"" - buildConfigField "String", "PAWNED_ENDPOINT", "\"https://api.pwnedpasswords.com/\"" + buildConfigField "String", "PWNED_ENDPOINT", "\"https://api.pwnedpasswords.com/\"" buildConfigField "String", "FDROID", "\"https://f-droid.org/packages/%s/\"" } play { @@ -300,7 +300,7 @@ android { buildConfigField "String", "OPENAI_PRIVACY", "\"\"" buildConfigField "String", "GEMINI_ENDPOINT", "\"\"" buildConfigField "String", "GEMINI_PRIVACY", "\"\"" - buildConfigField "String", "PAWNED_ENDPOINT", "\"\"" + buildConfigField "String", "PWNED_ENDPOINT", "\"\"" buildConfigField "String", "FDROID", "\"\"" getIsDefault().set(true) } @@ -327,7 +327,7 @@ android { buildConfigField "String", "OPENAI_PRIVACY", "\"\"" buildConfigField "String", "GEMINI_ENDPOINT", "\"\"" buildConfigField "String", "GEMINI_PRIVACY", "\"\"" - buildConfigField "String", "PAWNED_ENDPOINT", "\"\"" + buildConfigField "String", "PWNED_ENDPOINT", "\"\"" buildConfigField "String", "FDROID", "\"\"" } } diff --git a/app/src/main/java/eu/faircode/email/FragmentAccounts.java b/app/src/main/java/eu/faircode/email/FragmentAccounts.java index d091943082..2013fd74e0 100644 --- a/app/src/main/java/eu/faircode/email/FragmentAccounts.java +++ b/app/src/main/java/eu/faircode/email/FragmentAccounts.java @@ -374,7 +374,7 @@ public class FragmentAccounts extends FragmentBase { menu.findItem(R.id.menu_show_folders).setVisible(!settings); menu.findItem(R.id.menu_theme).setVisible(!settings); menu.findItem(R.id.menu_force_sync).setVisible(!settings); - menu.findItem(R.id.menu_pwned).setVisible(settings && !TextUtils.isEmpty(BuildConfig.PAWNED_ENDPOINT)); + menu.findItem(R.id.menu_pwned).setVisible(settings && !TextUtils.isEmpty(BuildConfig.PWNED_ENDPOINT)); super.onPrepareOptionsMenu(menu); } diff --git a/app/src/main/java/eu/faircode/email/HaveIBeenPwned.java b/app/src/main/java/eu/faircode/email/HaveIBeenPwned.java index 56c148ecec..7431b6c9dd 100644 --- a/app/src/main/java/eu/faircode/email/HaveIBeenPwned.java +++ b/app/src/main/java/eu/faircode/email/HaveIBeenPwned.java @@ -39,7 +39,7 @@ public class HaveIBeenPwned { String range = hashed.substring(0, 5); String rest = hashed.substring(5); - URL url = new URL(BuildConfig.PAWNED_ENDPOINT + "range/" + range); + URL url = new URL(BuildConfig.PWNED_ENDPOINT + "range/" + range); Log.i("GET " + url); HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); connection.setRequestMethod("GET");