Skip to content

Autogenerate source files with current version and check it during Main dispatcher initialization #1322

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

Closed
qwwdfsad opened this issue Jul 5, 2019 · 1 comment

Comments

@qwwdfsad
Copy link
Collaborator

qwwdfsad commented Jul 5, 2019

Feedback shows that from time to time users accidentally update kotlinx-coroutines-core version, but not kotlinx-coroutines-android version. Such inconsistency can lead to various incompatibilities and runtime errors related to implementation details.

We can automatically autodetect such situations and report an error (NB: it should have a switch to disable it) if kotlinx-coroutines-core and kotlinx-coroutines-android have a different version.

Note that the classic solution "put library version in META-INF or resources" does not work because it can cause ANR due to file read (see #878)

@qwwdfsad qwwdfsad changed the title Autogenerate source file with current version and check it during Main dispatcher initialization Autogenerate source files with current version and check it during Main dispatcher initialization Jul 5, 2019
@qwwdfsad
Copy link
Collaborator Author

qwwdfsad commented Jan 5, 2023

Semi-fixed via gradle platform and dependency alignment

@qwwdfsad qwwdfsad closed this as not planned Won't fix, can't repro, duplicate, stale Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant