purple: update client to work with damus-api post express refactor
these changes were made to adapt the client-side to the new improvements done to the Purple API server (See https://github.com/damus-io/api/issues/1) Testing ------- PASS Device: iPhone 15 Pro simulator iOS: 17.2 Damus: This commit damus-api: bda56590be7eb47e21dfd61ab94b17f6a8595d0c Server: Ubuntu 22.04 (VM) Setup: 1. On the server, delete the `mdb` database files to start from scratch 2. Enable subscriptions support via developer settings with localhost test mode and restart app 3. Get Damus Purple (Purchase it via Xcode test environment) 4. Start server with mock parameters (Run `npm run dev`) 5. Restart app Steps ----- 1. Post something 2. Gold star should appear beside your name 3. Look at the server logs. There should be some requests to create the account (POST), to send the receipt (POST), and to get account status. Those three requests should have returned HTTP status 200. Signed-off-by: Daniel D’Aquino <daniel@daquino.me> Reviewed-by: William Casarin <jb55@jb55.com> Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
committed by
William Casarin
parent
5ca5420ce2
commit
39b6dfb47e
@@ -9,7 +9,7 @@ import Foundation
|
||||
|
||||
class Constants {
|
||||
static let PURPLE_API_PRODUCTION_BASE_URL: URL = URL(string: "https://purple.damus.io")!
|
||||
static let PURPLE_API_TEST_BASE_URL: URL = URL(string: "http://localhost:8989")!
|
||||
static let PURPLE_API_TEST_BASE_URL: URL = URL(string: "http://127.0.0.1:8989")!
|
||||
static let DEVICE_TOKEN_RECEIVER_PRODUCTION_URL: URL = URL(string: "https://notify.damus.io:8000/user-info")!
|
||||
static let DEVICE_TOKEN_RECEIVER_TEST_URL: URL = URL(string: "http://localhost:8000/user-info")!
|
||||
static let EXAMPLE_DEMOS: DamusState = .empty
|
||||
|
||||
Reference in New Issue
Block a user