This guide assists in migrating from FlowX v3.4.x to v4.0.
<flx-process-renderer>
component through a private variable.FlowX
to FlowXRenderer
.
Any files importing the SDK should be updated with the new module name.
enginePath
was added to FXConfig
. It represents the URL path component to the process engine.
data
property of custom components has changed from [String: Any]
to Any
.enginePath
was added for identifying the FlowX Process Engine microservice.
When the SDK initialization happens through the FlowxSdkApi.getInstance().init(...)
method, the argument has to be set inside the config: SdkConfig
parameter value:
String
value for the access token, a FlowxSdkApi.Companion.AccessTokenProvider
must be used instead.
This provider is defined as a functional interface returning the actual value of the access token:
FlowxSdkApi.getInstance().init(...)
.FlowxSdkApi.getInstance().init(...)
is:
FlowxSdkApi.getInstance().startProcess(...)
accessToken
parameter was dropped. It is not needed anymore, as the authentication will rely solely on the AccessTokenProvider
.FlowxSdkApi.getInstance().continueProcess(...)
accessToken
parameter was dropped. It is not needed anymore, as the authentication will rely solely on the AccessTokenProvider
.FlowxSdkApi.getInstance().updateAccessToken("some_access_token")
method must be replaced by calls of the FlowxSdkApi.getInstance().setAccessTokenProvider(accessTokenProvider = { "some_access_token" })
.setAccessTokenProvider
method again.ai.flowx.android.sdk.process.model.SdkConfig
theming related parameters (i.e. themeTokensJsonFileAssetsPath
and themeComponentsJsonFileAssetsPath
) were dropped.FlowxSdkApi.getInstance().init(...)
method, the config
parameter will look like this:
FlowxSdkApi.getInstance().setupTheme(...)
method must be called before starting or resuming any process:onCompletion
closure is called, signaling the completion of setting up the theme.
import ai.flowx.android.sdk.component.*
directives must be changed to import ai.flowx.android.sdk.ui.components.*
data
parameter passed to a custom component through the populateUi(data: JSONObject)
method, both for @Composable
and for classical View
system approaches, changed to Any?
.populateUi(data: Any?)
.
data
parameter received in the populateUi(data: Any?)
could be:Boolean
String
java.lang.Number
org.json.JSONObject
org.json.JSONArray