Skip to content

Commit a852aba

Browse files
authored
Merge pull request #1015 from ItzNotABug/fix-endpoints
Fix: Test endpoints
2 parents abdba83 + c17d12b commit a852aba

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

templates/android/example/src/main/java/io/package/android/ui/accounts/AccountsViewModel.kt.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ class AccountsViewModel : ViewModel() {
8181
account.createOAuth2Session(
8282
activity,
8383
OAuthProvider.FACEBOOK,
84-
"appwrite-callback-6070749e6acd4://demo.appwrite.io/auth/oauth2/success",
85-
"appwrite-callback-6070749e6acd4://demo.appwrite.io/auth/oauth2/failure"
84+
"appwrite-callback-6070749e6acd4://cloud.appwrite.io/auth/oauth2/success",
85+
"appwrite-callback-6070749e6acd4://cloud.appwrite.io/auth/oauth2/failure"
8686
)
8787
} catch (e: Exception) {
8888
_error.postValue(Event(e))

templates/swift/example-uikit/UIKitExample/ViewController.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import UIKit
22
import NIO
33
import Appwrite
44

5-
let host = "https://demo.appwrite.io/v1"
5+
let host = "https://cloud.appwrite.io/v1"
66

77
class ViewController: UIViewController {
88

@@ -72,8 +72,8 @@ class ViewController: UIViewController {
7272
do {
7373
let response = try await account.createOAuth2Session(
7474
provider: "facebook",
75-
success: "https://demo.appwrite.io/auth/oauth2/success",
76-
failure: "https://demo.appwrite.io/auth/oauth2/failure"
75+
success: "https://cloud.appwrite.io/auth/oauth2/success",
76+
failure: "https://cloud.appwrite.io/auth/oauth2/failure"
7777
)
7878
self.response = String(describing: response)
7979
} catch {

tests/languages/android/Tests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class ServiceTest {
6161
@Throws(IOException::class)
6262
fun test() {
6363
val client = Client(ApplicationProvider.getApplicationContext())
64-
.setEndpointRealtime("wss://demo.appwrite.io/v1")
64+
.setEndpointRealtime("wss://cloud.appwrite.io/v1")
6565
.setProject("console")
6666
.addHeader("Origin", "http://localhost")
6767
.setSelfSigned(true)

tests/languages/apple/Tests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Tests: XCTestCase {
2121

2222
func test() async throws {
2323
let client = Client()
24-
.setEndpointRealtime("ws://demo.appwrite.io/v1")
24+
.setEndpointRealtime("ws://cloud.appwrite.io/v1")
2525
.setProject("console")
2626
.addHeader(key: "Origin", value: "http://localhost")
2727
.setSelfSigned()

tests/languages/flutter/tests.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ void main() async {
2929
client.setSelfSigned();
3030
client.setProject('console');
3131
client.setEndPointRealtime(
32-
"wss://demo.appwrite.io/v1"); // change this later to appwrite.io
32+
"wss://cloud.appwrite.io/v1");
3333

3434
Realtime realtime = Realtime(client);
3535
final rtsub = realtime.subscribe(["tests"]);

tests/languages/web/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
// Realtime setup
3737
client.setProject('console');
38-
client.setEndpointRealtime('ws://demo.appwrite.io/v1');
38+
client.setEndpointRealtime('ws://cloud.appwrite.io/v1');
3939

4040
client.subscribe('tests', event => {
4141
responseRealtime = event.payload.response;

0 commit comments

Comments
 (0)