You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are in the process of enabling coroutine debugging on Android Studio. In order to make it work we had to fix some performance issues on the coroutine debugger.
As these improvements are available only to devs using kotlinx-coroutine-core version 1.6+, we decided to disable the debugger for devs using older versions of the lib, as the debugger is not usable there.
In order to do this we have two options:
Check version of the lib at build time. This will require adding a dependency to the build system, which we want to avoid because it's not reliable and a common source of bugs.
Check version of the lib at runtime. This will require adding some versioning info to the lib's jar. In Androidx libs we add a META-INF/some_file.version file to the jar, containing the version number. Something similar could be done for coroutines, to allow our agent to check it at runtime.
The text was updated successfully, but these errors were encountered:
* The approach with "Specification-Version" in Manifest doesn't work because Android merges all JARs into a single resource, trimming all the manifests
Fixes#2941
yorickhenning
pushed a commit
to yorickhenning/kotlinx.coroutines
that referenced
this issue
Oct 14, 2021
* Add version file to each module resources
* The approach with "Specification-Version" in Manifest doesn't work because Android merges all JARs into a single resource, trimming all the manifests
FixesKotlin#2941
* Add version file to each module resources
* The approach with "Specification-Version" in Manifest doesn't work because Android merges all JARs into a single resource, trimming all the manifests
FixesKotlin#2941
We are in the process of enabling coroutine debugging on Android Studio. In order to make it work we had to fix some performance issues on the coroutine debugger.
As these improvements are available only to devs using
kotlinx-coroutine-core
version 1.6+, we decided to disable the debugger for devs using older versions of the lib, as the debugger is not usable there.In order to do this we have two options:
META-INF/some_file.version
file to the jar, containing the version number. Something similar could be done for coroutines, to allow our agent to check it at runtime.The text was updated successfully, but these errors were encountered: