vk.com -> vk.ru

This commit is contained in:
2025-09-10 10:24:53 +03:00
parent 42ad04093d
commit db92b261c0
9 changed files with 17 additions and 25 deletions
@@ -5,8 +5,8 @@ object AppConstants {
const val INSTALL_APP_MIME_TYPE = "application/vnd.android.package-archive"
const val API_VERSION = "5.238"
const val URL_OAUTH = "https://oauth.vk.com"
const val URL_API = "https://api.vk.com/method"
const val URL_OAUTH = "https://oauth.vk.ru"
const val URL_API = "https://api.vk.ru/method"
const val NOTIFICATION_CHANNEL_UNCATEGORIZED = "uncategorized"
const val NOTIFICATION_CHANNEL_LONG_POLLING = "long_polling"
@@ -27,6 +27,6 @@ data class VkStickerDomain(
backgroundImages.firstOrNull { it.width >= width }?.url
}
images != null -> images.firstOrNull { it.width >= width }?.url
else -> "https://vk.com/sticker/1-${id}-${width}b"
else -> "https://vk.ru/sticker/1-${id}-${width}b"
}
}
@@ -35,7 +35,7 @@ data class AuthDirectRequest(
}
data class AuthWithAppRequest(
val redirectUrl: String = "https://oauth.vk.com/blank.html",
val redirectUrl: String = "https://oauth.vk.ru/blank.html",
val display: String = "page",
val responseType: String = "token",
val accessToken: String,