Skip to content

Conversation

niallzato
Copy link
Contributor

Despite being a config option when initializing an analytics instance, defaultSettings cannot be assigned due to it being a val.
As per Kotlin’s docs: https://developer.android.com/kotlin/learn#:~:text=Kotlin%20uses%20two%20different%20keywords,variable%20whose%20value%20can%20change.

Kotlin uses two different keywords to declare variables: val and var.

Use val for a variable whose value never changes. You can't reassign a value to a variable that was declared using val.

Use var for a variable whose value can change.

image

@didiergarcia
Copy link
Contributor

LGTM

@niallzato niallzato merged commit f82c56c into main Apr 19, 2024
@niallzato niallzato deleted the niall/update_config branch April 19, 2024 12:57
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.

2 participants