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

Potential error detected with Kotlin 2.1. #207

Open
duyhungtnn opened this issue Dec 10, 2024 · 0 comments
Open

Potential error detected with Kotlin 2.1. #207

duyhungtnn opened this issue Dec 10, 2024 · 0 comments
Assignees

Comments

@duyhungtnn
Copy link
Collaborator

These logs copied from CI PullRequest logs

w: file:///home/runner/work/android-client-sdk/android-client-sdk/bucketeer/src/main/kotlin/io/bucketeer/sdk/android/BKTConfig.kt:15:22 Non-public primary constructor is exposed via the generated 'copy()' method of the 'data' class.
The generated 'copy()' will change its visibility in future releases.
To suppress the warning do one of the following:
- Annotate the data class with the '@ConsistentCopyVisibility' annotation.
- Use the '-Xconsistent-data-class-copy-visibility' compiler flag.
- Annotate the data class with the '@ExposedCopyVisibility' annotation 
  (Discouraged, but can be used to keep binary compatibility).
To learn more, see the documentation of the '@ConsistentCopyVisibility' and '@ExposedCopyVisibility' annotations.
This will become an error in Kotlin 2.1.
w: file:///home/runner/work/android-client-sdk/android-client-sdk/bucketeer/src/main/kotlin/io/bucketeer/sdk/android/BKTUser.kt:6:20 Non-public primary constructor is exposed via the generated 'copy()' method of the 'data' class.
The generated 'copy()' will change its visibility in future releases.
To suppress the warning do one of the following:
- Annotate the data class with the '@ConsistentCopyVisibility' annotation.
- Use the '-Xconsistent-data-class-copy-visibility' compiler flag.
- Annotate the data class with the '@ExposedCopyVisibility' annotation 
  (Discouraged, but can be used to keep binary compatibility).
To learn more, see the documentation of the '@ConsistentCopyVisibility' and '@ExposedCopyVisibility' annotations.
This will become an error in Kotlin 2.1.
@duyhungtnn duyhungtnn self-assigned this Dec 10, 2024
@duyhungtnn duyhungtnn reopened this Dec 16, 2024
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

No branches or pull requests

1 participant