* 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>
66 lines
2.8 KiB
Kotlin
66 lines
2.8 KiB
Kotlin
/*
|
|
* Aurora Store
|
|
* Copyright (C) 2021, Rahul Kumar Patel <whyorean@gmail.com>
|
|
*
|
|
* Aurora Store is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* Aurora Store is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with Aurora Store. If not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
*/
|
|
|
|
package com.aurora
|
|
|
|
object Constants {
|
|
const val INT_EXTRA = "INT_EXTRA"
|
|
const val FLOAT_EXTRA = "FLOAT_EXTRA"
|
|
const val STRING_APP = "STRING_APP"
|
|
const val STRING_VERSION = "STRING_VERSION"
|
|
const val PARCEL_DOWNLOAD = "PARCEL_DOWNLOAD"
|
|
const val STRING_EXTRA = "STRING_EXTRA"
|
|
const val BROWSE_EXTRA = "BROWSE_EXTRA"
|
|
|
|
const val FETCH_GROUP_ID = "FETCH_GROUP_ID"
|
|
const val APP_ID = "com.aurora.store"
|
|
|
|
const val EXODUS_SUBMIT_PAGE = "https://reports.exodus-privacy.eu.org/analysis/submit/#"
|
|
const val EXODUS_BASE_URL = "https://reports.exodus-privacy.eu.org/api/search/"
|
|
const val EXODUS_REPORT_URL = "https://reports.exodus-privacy.eu.org/reports/"
|
|
const val SHARE_URL = "https://play.google.com/store/apps/details?id="
|
|
const val TOS_URL = "https://gitlab.com/AuroraOSS/AuroraStore/-/blob/master/TermsOfService.md"
|
|
const val UPDATE_URL = "https://gitlab.com/AuroraOSS/AuroraStore/raw/master/updates.json"
|
|
|
|
const val NOTIFICATION_CHANNEL_ALERT = "NOTIFICATION_CHANNEL_ALERT"
|
|
const val NOTIFICATION_CHANNEL_GENERAL = "NOTIFICATION_CHANNEL_GENERAL"
|
|
const val NOTIFICATION_CHANNEL_UPDATES = "NOTIFICATION_CHANNEL_UPDATES"
|
|
const val NOTIFICATION_CHANNEL_UPDATER_SERVICE = "NOTIFICATION_CHANNEL_UPDATER_SERVICE"
|
|
|
|
const val GITLAB_URL = "https://gitlab.com/AuroraOSS/AuroraStore"
|
|
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 = "https://connectivitycheck.android.com/generate_204"
|
|
|
|
//ACCOUNTS
|
|
const val ACCOUNT_SIGNED_IN = "ACCOUNT_SIGNED_IN"
|
|
const val ACCOUNT_SIGNED_TIMESTAMP = "ACCOUNT_SIGNED_TIMESTAMP"
|
|
const val ACCOUNT_TYPE = "ACCOUNT_TYPE"
|
|
const val ACCOUNT_EMAIL_PLAIN = "ACCOUNT_EMAIL_PLAIN"
|
|
const val ACCOUNT_AAS_PLAIN = "ACCOUNT_AAS_PLAIN"
|
|
|
|
const val PAGE_TYPE = "PAGE_TYPE"
|
|
const val TOP_CHART_TYPE = "TOP_CHART_TYPE"
|
|
const val TOP_CHART_CATEGORY = "TOP_CHART_CATEGORY"
|
|
|
|
//NAVIGATION
|
|
const val NAVIGATION_UPDATES = "NAVIGATION_UPDATES"
|
|
}
|