Skip to content

Commit 5cfafe6

Browse files
author
Vailence
committed
MOBILE-160 Fix PR Comms
1 parent ad7f4ca commit 5cfafe6

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

mindbox_android/android/src/main/kotlin/cloud/mindbox/mindbox_android/MindboxAndroidPlugin.kt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,13 @@ class MindboxAndroidPlugin : FlutterPlugin, MethodCallHandler, ActivityAware, Ne
7373
val subscribeIfCreated: Boolean = args["subscribeCustomerIfCreated"] as Boolean
7474
val shouldCreateCustomer: Boolean = args["shouldCreateCustomer"] as Boolean
7575
val operationsDomainArg: String = args["operationsDomain"] as? String ?: ""
76-
val builder = MindboxConfiguration.Builder(context.applicationContext, domain, endpointId)
76+
val config = MindboxConfiguration.Builder(context.applicationContext, domain, endpointId)
7777
.setPreviousDeviceUuid(previousDeviceUuid)
7878
.setPreviousInstallationId(previousInstallId)
7979
.subscribeCustomerIfCreated(subscribeIfCreated)
8080
.shouldCreateCustomer(shouldCreateCustomer)
81-
if (operationsDomainArg.isNotEmpty()) {
82-
builder.operationsDomain(operationsDomainArg)
83-
}
84-
val config = builder.build()
81+
.operationsDomain(operationsDomainArg)
82+
.build()
8583
Mindbox.init(activity = context, config, listOf())
8684
result.success("initialized")
8785
} else {

0 commit comments

Comments
 (0)