Added an internal API for overriding the API base URL (#5739)

* Added an internal API for overriding the API base URL

* Updated and added tests for API baseURL configuration option

* Revert change that removed serverHostURL from HTTPRequestPath since it broke other types implementing this protocol

* swiftlint

* Removed the apiBaseURL property from Purchases since it's only used for internal testing anyways

* Remove unused @_spi(Internal)

* Updated comment on api base URL vs proxy URL

* Fixed linting issue
This commit is contained in:
Rick authored and GitHub committed 2025-11-04 13:35:20 +01:00
1 parent 5b3d8474cf
commit 72cf38a0fe
6 files changed
+137 -19

No files matched your search

@@ -123,8 +123,9 @@ extension HTTPRequest {
extension HTTPRequest.Path: HTTPRequestPath {
// swiftlint:disable:next force_unwrapping
static let serverHostURL = URL(string: "https://api.revenuecat.com")!
static var serverHostURL: URL {
SystemInfo.apiBaseURL
}
private static let fallbackServerHostURL = URL(string: "https://api-production.8-lives-cat.io")