You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MOBILE-130: Move operationsDomain next to domain in MBConfiguration init
The new parameter now sits right after `domain` instead of at the end —
they're conceptually paired (main host vs its anonymizer override).
Source-compatible: callers that don't pass `operationsDomain` are
unaffected; the few that do (tests, ios-app) already listed it adjacent
to `domain` and only need a follow-up reorder of their own.
Copy file name to clipboardExpand all lines: Mindbox/MBConfiguration.swift
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -27,25 +27,25 @@ public struct MBConfiguration: Codable {
27
27
///
28
28
/// - Parameter endpoint: Used for app identification
29
29
/// - Parameter domain: Used for generating baseurl for REST
30
+
/// - Parameter operationsDomain: Optional host for sending operations. Overridden by
31
+
/// the value from the mobile JSON config when present. Default `nil` (use `domain`).
30
32
/// - Parameter previousInstallationId: Used to create tracking continuity by uuid
31
33
/// - Parameter previousDeviceUUID: Used instead of the generated value
32
34
/// - Parameter subscribeCustomerIfCreated: Flag which determines subscription status of the user. Default value is `false`.
33
35
/// - Parameter shouldCreateCustomer: Flag which determines create or not anonymous users. Usable only during first initialisation. Default value is `true`.
34
36
/// - Parameter uuidDebugEnabled: Flag which determines if uuid debugging functionality is enabled. Default value is `true`.
35
-
/// - Parameter operationsDomain: Optional host for sending operations. Overridden by
36
-
/// the value from the mobile JSON config when present. Default `nil` (use `domain`).
37
37
///
38
38
/// - Throws:`MindboxError.internalError` for invalid initialization parameters
39
39
publicinit(
40
40
endpoint:String,
41
41
domain:String,
42
+
operationsDomain:String?=nil,
42
43
previousInstallationId:String?=nil,
43
44
previousDeviceUUID:String?=nil,
44
45
subscribeCustomerIfCreated:Bool=false,
45
46
shouldCreateCustomer:Bool=true,
46
47
imageLoadingMaxTimeInSeconds:Double?=nil,
47
-
uuidDebugEnabled:Bool=true,
48
-
operationsDomain:String?=nil
48
+
uuidDebugEnabled:Bool=true
49
49
)throws{
50
50
self.endpoint = endpoint
51
51
self.domain = domain
@@ -183,12 +183,12 @@ public struct MBConfiguration: Codable {
0 commit comments