jorgefspereira / persona_flutter

Persona Inquiry for Flutter. Integrates the native iOS, Android SDKs.
https://pub.dev/packages/persona_flutter
MIT License
13 stars 27 forks source link

Change Request to add environmentID Field #35

Closed ChanakaWeerasinghe closed 12 months ago

ChanakaWeerasinghe commented 12 months ago
  1. Android [v2.11.0] - 2023-07-20

Added .environmentId on InquiryTemplateBuilder to create inquiries with a specific environment token.

                    // Environment Id
                    (arguments["environmentId"] as? String)?.let {
                        environmentId = it
                    }

                    environmentId?.let {
                        builder = builder?.environmentId(it)
                    }
  1. iOS [v2.11.0] - 2023-07-20

Added .environmentId on InquiryTemplateBuilder to create inquiries with a specific environment token.

Change InquiryConfiguration

config = InquiryConfiguration(templateVersion: templateVersion,
                                                          accountId: accountId,
                                                          environment: environment,
                                                          fields: fields,
                                                          theme: theme)

To Inquiry builder An Inquiry builder received by calling Inquiry.from(...)

  _inquiry = Inquiry.from(templateId: templateVersion, delegate: self)
                            .environment(Environment.from(rawValue: environment?.rawValue)).environmentId(environmentId)
                            .build()

`