mirror of https://github.com/oxen-io/session-ios
mirror of https://github.com/oxen-io/session-ios
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
2.8 KiB
78 lines
2.8 KiB
// |
|
// Copyright (c) 2019 Open Whisper Systems. All rights reserved. |
|
// |
|
|
|
#import <Foundation/Foundation.h> |
|
|
|
NS_ASSUME_NONNULL_BEGIN |
|
|
|
#ifndef TextSecureKit_Constants_h |
|
#define TextSecureKit_Constants_h |
|
|
|
extern const NSUInteger kOversizeTextMessageSizeThreshold; |
|
|
|
typedef NS_ENUM(NSInteger, TSWhisperMessageType) { |
|
TSUnknownMessageType = 0, |
|
TSEncryptedWhisperMessageType = 1, |
|
TSIgnoreOnIOSWhisperMessageType = 2, // on droid this is the prekey bundle message irrelevant for us |
|
TSPreKeyWhisperMessageType = 3, |
|
TSUnencryptedWhisperMessageType = 4, |
|
TSUnidentifiedSenderMessageType = 6, |
|
TSClosedGroupCiphertextMessageType = 7, |
|
TSFallbackMessageType = 101 |
|
}; |
|
|
|
#pragma mark Server Address |
|
|
|
#define textSecureHTTPTimeOut 10 |
|
|
|
#define kLegalTermsUrlString @"https://getsession.org/privacy-policy/" |
|
|
|
//#ifndef DEBUG |
|
|
|
// Production |
|
#define textSecureWebSocketAPI @"wss://textsecure-service.whispersystems.org/v1/websocket/" |
|
#define textSecureCDNServerURL @"https://cdn.signal.org" |
|
// Use same reflector for service and CDN |
|
#define textSecureServiceReflectorHost @"europe-west1-signal-cdn-reflector.cloudfunctions.net" |
|
#define textSecureCDNReflectorHost @"europe-west1-signal-cdn-reflector.cloudfunctions.net" |
|
#define contactDiscoveryURL @"https://api.directory.signal.org" |
|
#define kUDTrustRoot @"BXu6QIKVz5MA8gstzfOgRQGqyLqOwNKHL6INkv3IHWMF" |
|
#define USING_PRODUCTION_SERVICE |
|
|
|
//#else |
|
|
|
// Staging |
|
//#define textSecureWebSocketAPI @"wss://textsecure-service-staging.whispersystems.org/v1/websocket/" |
|
//#define textSecureServerURL @"https://textsecure-service-staging.whispersystems.org/" |
|
//#define textSecureCDNServerURL @"https://cdn-staging.signal.org" |
|
//#define textSecureServiceReflectorHost @"meek-signal-service-staging.appspot.com"; |
|
//#define textSecureCDNReflectorHost @"meek-signal-cdn-staging.appspot.com"; |
|
//#define contactDiscoveryURL @"https://api-staging.directory.signal.org" |
|
//#define kUDTrustRoot @"BbqY1DzohE4NUZoVF+L18oUPrK3kILllLEJh2UnPSsEx" |
|
|
|
//#endif |
|
|
|
BOOL IsUsingProductionService(void); |
|
|
|
#define textSecureAccountsAPI @"v1/accounts" |
|
#define textSecureAttributesAPI @"/attributes/" |
|
|
|
#define textSecureMessagesAPI @"v1/messages/" |
|
#define textSecureKeysAPI @"v2/keys" |
|
#define textSecureSignedKeysAPI @"v2/keys/signed" |
|
#define textSecureDirectoryAPI @"v1/directory" |
|
#define textSecureAttachmentsAPI @"v1/attachments" |
|
#define textSecureDeviceProvisioningCodeAPI @"v1/devices/provisioning/code" |
|
#define textSecureDeviceProvisioningAPIFormat @"v1/provisioning/%@" |
|
#define textSecureDevicesAPIFormat @"v1/devices/%@" |
|
#define textSecureProfileAPIFormat @"v1/profile/%@" |
|
#define textSecureSetProfileNameAPIFormat @"v1/profile/name/%@" |
|
#define textSecureProfileAvatarFormAPI @"v1/profile/form/avatar" |
|
#define textSecure2FAAPI @"/v1/accounts/pin" |
|
|
|
#define SignalApplicationGroup @"group.com.loki-project.loki-messenger" |
|
|
|
#endif |
|
|
|
NS_ASSUME_NONNULL_END
|
|
|