-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RKOTLIN-1023] Add support for changing App Services base URL #1733
Changes from 5 commits
865de8d
b44b77c
4487888
5eed6f6
9c028ba
5e781b1
a1d5d7b
cd436b4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ on: | |
|
||
jobs: | ||
deploy: | ||
runs-on: macos-latest | ||
runs-on: macos-12 | ||
name: Deploy release | ||
|
||
steps: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,6 +84,19 @@ public interface App { | |
*/ | ||
public val sync: Sync | ||
|
||
/** | ||
* Current base URL to communicate with App Services. | ||
*/ | ||
public val baseUrl: String | ||
|
||
/** | ||
* Sets the App Services base url. Changing the URL would trigger a client reset. | ||
* | ||
* @param baseUrl The new App Services base url. Use [AppConfiguration.DEFAULT_BASE_URL] to set it | ||
* to the default value. | ||
*/ | ||
public suspend fun updateBaseUrl(baseUrl: String) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Passing an empty string to Because the default URL is already set in core, we could replace the actual URL value in the SDK with an empty string. This way we could avoid maintaining the URL on the SDK.
We would address this on a different PR. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We could also make |
||
|
||
/** | ||
* Returns all known users that are either [User.State.LOGGED_IN] or [User.State.LOGGED_OUT]. | ||
* Only users that at some point logged into this device will be returned. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably continue linking to the github issues.