forked from mongodb/docs-realm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
207bd47
commit 434e8e8
Showing
8 changed files
with
80 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
source/examples/generated/kotlin/AppClientTest.snippet.change-base-url.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Specify a custom baseUrl to connect to. | ||
// In this case, an Edge Server instance running on the device. | ||
val config = AppConfiguration.Builder(EDGE_SERVER_APP_ID) | ||
.baseUrl("http://localhost:80") | ||
.build() | ||
val app = App.create(config) | ||
|
||
// ... log in a user and use the app ... | ||
|
||
// Later, change the baseUrl to the default: | ||
// https://services.cloud.mongodb.com | ||
app.updateBaseUrl(null) |
4 changes: 4 additions & 0 deletions
4
source/examples/generated/kotlin/AppClientTest.snippet.custom-base-url.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// Specify a baseUrl to connect to instead of the default | ||
val config = AppConfiguration.Builder(YOUR_APP_ID) | ||
.baseUrl("https://example.com") | ||
.build() |
2 changes: 2 additions & 0 deletions
2
source/examples/generated/kotlin/AppClientTest.snippet.experimental-opt-in.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// Opt in to the experimental Edge Server API | ||
@OptIn(ExperimentalEdgeServerApi::class) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# adjust App Transport Security Settings | ||
|