Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make properties immutable map #31

Merged
merged 5 commits into from
Feb 22, 2025
Merged

Make properties immutable map #31

merged 5 commits into from
Feb 22, 2025

Conversation

eyedol
Copy link
Member

@eyedol eyedol commented Feb 22, 2025

No description provided.

- Changed the `properties` field in `KAnalyticsEvent` from a `MutableMap` to an immutable `Map`.
- Introduced a private `_properties` `MutableMap` to manage property modifications internally.
- Updated `addParameter` and `addParameters` functions to operate on the internal `_properties` map.
- Updated copy method to create a new KAnalyticsEvent with the provided property values.
@eyedol eyedol merged commit 2c05cdd into main Feb 22, 2025
4 checks passed
@eyedol eyedol deleted the makePropertiesImmutableMap branch February 22, 2025 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant