Improve and fix proxy setup/usage

* Switch connectivitycheck URL to HTTPS as cleartext communication is disabled
* Use GlobalScope to verify and setup proxy URL
* Ignore proxy setup in HttpClient if its empty

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2024-03-05 13:07:57 +05:30
parent 80df8affe4
commit ac3065ab2c
5 changed files with 62 additions and 85 deletions

View File

@@ -47,7 +47,7 @@ object Constants {
const val URL_DISPENSER = "https://auroraoss.com/api/auth"
const val PLAY_QUERY_URL = "https://play.google.com/store/search?q="
const val ANDROID_CONNECTIVITY_URL = "http://connectivitycheck.android.com/generate_204"
const val ANDROID_CONNECTIVITY_URL = "https://connectivitycheck.android.com/generate_204"
//ACCOUNTS
const val ACCOUNT_SIGNED_IN = "ACCOUNT_SIGNED_IN"