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
87e45e9
commit a27b2f1
Showing
5 changed files
with
64 additions
and
61 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
5 changes: 3 additions & 2 deletions
5
source/examples/generated/flutter/app_services_test.snippet.change-base-url.dart
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 |
---|---|---|
@@ -1,10 +1,11 @@ | ||
// Specify a custom baseUrl to connect to. | ||
// In this case, | ||
final appConfig = AppConfiguration(EDGE_SERVER_APP_ID, | ||
baseUrl: Uri.parse('http://localhost:80')); | ||
|
||
var app = App(appConfig); | ||
|
||
// ... log in a user and use the app ... | ||
|
||
// Later, change the baseUrl to a different server | ||
app.updateBaseUrl(Uri.parse('https://services.cloud.mongodb.com')); | ||
// Later, change the baseUrl to the default: https://services.cloud.mongodb.com | ||
await app.updateBaseUrl(null); |
7 changes: 3 additions & 4 deletions
7
source/examples/generated/flutter/app_services_test.snippet.custom-base-url.dart
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
// Specify a baseUrl to connect to a server other than the default. | ||
// In this case, an Edge Server instance running on the device. | ||
final appConfig = AppConfiguration(EDGE_SERVER_APP_ID, | ||
baseUrl: Uri.parse('http://localhost:80')); | ||
// Specify a baseUrl to connect to a server other than the default | ||
final appConfig = | ||
AppConfiguration(APP_ID, baseUrl: Uri.parse('https://example.com')); | ||
|
||
var app = App(appConfig); |
1 change: 0 additions & 1 deletion
1
source/examples/generated/flutter/app_services_test.snippet.import-experimental.dart
This file was deleted.
Oops, something went wrong.
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