singular-labs / Singular-Flutter-SDK

MIT License
4 stars 13 forks source link

Sdkdev 94 add global prop #30

Closed jzviaginSingular closed 1 year ago

jzviaginSingular commented 1 year ago

Title and description

Add the ability to set global properties from config

Type of change

Check the relevant option:

Details

https://singularlabs.atlassian.net/browse/SDKDEV-94 Currently there's only an option to add global properties, after init by calling singular.setGlobalProperty, this PR adds the ability to pass global properties in config object so that they are set before session

How Has This Been Tested?

The feature was tested by calling getGlobalProperties after initializing with properties in config object, and verifying that the expected properties are there.

Tested both ios and android

Checklist: