Skip to content
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

Update Quickstart Apps with New Init flow #46

Merged
merged 33 commits into from
Mar 20, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
3e93f87
Update swift quickstart initialization with new syntax
skylerjokiel Mar 3, 2025
2e913fb
fix env.sample
skylerjokiel Mar 3, 2025
41f2802
fix: updated to include Android Kotlin fixes
biozal Mar 3, 2025
ebba924
fix: updated Android implementation for custom URL and websocket Url …
biozal Mar 3, 2025
b3c6533
doc: updated kotlin code with links to docs
biozal Mar 3, 2025
9c39cee
updated to include Rust support
biozal Mar 3, 2025
03e8e4c
fix: updated javascript-web with comments and using customURL
biozal Mar 3, 2025
2b721fa
fix: fixed Swift to use DITTO for prefix because without that prefix …
biozal Mar 3, 2025
72b5602
update: standardized readme files and names of environment variables
biozal Mar 3, 2025
5240feb
updated React Native readme with notes about possible issues with ter…
biozal Mar 3, 2025
c4ddf94
updated to fix kotlin having wrong auth env name
biozal Mar 3, 2025
717a253
Update android-kotlin/QuickStartTasks/app/src/main/java/live/ditto/qu…
biozal Mar 3, 2025
9432b19
Update javascript-web/src/App.tsx
biozal Mar 3, 2025
56d481c
Update rust-tui/src/bin/main.rs
biozal Mar 3, 2025
f89c714
Update rust-tui/src/bin/main.rs
biozal Mar 3, 2025
4554b26
removed extra logging statement added by accident
biozal Mar 3, 2025
3b075d6
updated for Android to remove logging
biozal Mar 18, 2025
3b745c4
updated .NET projects to latest 4.10 release and customUrl
biozal Mar 18, 2025
04fb09f
fixed: updated Flutter to 4.10 and customUrl/websocket
biozal Mar 18, 2025
e1cd594
fixed .NET to include websocket URL
biozal Mar 18, 2025
9e7cbc2
updated Android, flutter description and updated Swift to 4.10.0
biozal Mar 18, 2025
d3d3ce7
fixed updated Android kotlin and java to 4.10.0
biozal Mar 18, 2025
feaf11d
updated rust to version 4.10
biozal Mar 18, 2025
cf03570
updated js projects to 4.10.0
biozal Mar 18, 2025
e0baf04
updateds to Android C++ for 4.10 and Custom Auth URL
biozal Mar 18, 2025
a08c0a1
fixed: Updated React Native to 4.10.0 and updated initialization code
biozal Mar 18, 2025
7bb6349
fix: updated cpp-tui
biozal Mar 19, 2025
85b7a9c
Apply suggestions from code review
biozal Mar 20, 2025
105b409
updates based on feedback from PR
biozal Mar 20, 2025
152e767
updates based on feedback from PR
biozal Mar 20, 2025
4d9ec9e
added comments about having to disable cloud sync
biozal Mar 20, 2025
81d2f61
updated comment in kotlin
biozal Mar 20, 2025
53c6f7c
fix issue with missing websocket and auth url for parse with sync
biozal Mar 20, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
# A Ditto AppID and Playground token can be obtained from https://portal.ditto.live
DITTO_APP_ID=""
DITTO_PLAYGROUND_TOKEN=""

CUSTOM_AUTH_URL=""
WEBSOCKET_URL=""
12 changes: 11 additions & 1 deletion swift/tasks/tasks/DittoManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,19 @@ class DittoManager: ObservableObject {
identity: .onlinePlayground(
appID: Env.DITTO_APP_ID,
token: Env.DITTO_PLAYGROUND_TOKEN,
enableDittoCloudSync: true
// This is required to be set to false to use the correct URLs
// This only disables cloud sync when the webSocketURL is not set explicitly
enableDittoCloudSync: false,
customAuthURL: URL(string: Env.CUSTOM_AUTH_URL)
)
)
// Set the Ditto Websocket URL
var config = DittoTransportConfig()
config.connect.webSocketURLs.insert(Env.WEBSOCKET_URL)

// Enable all P2P transports
config.enableAllPeerToPeer()
ditto.transportConfig = config

// disable sync with v3 peers, required for DQL
do {
Expand Down
Loading