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
Unfortunately, the generated code will not compile if the core-ktx dependency is not manually pulled in, as annotations module does not define core-ktx as api (nor should it do so).
Not sure the best approach to getting core-ktx pulled in, aside from either instructing that consumers pull in core-ktx manually or pull in an Exercise module that has core-ktx as api.
The text was updated successfully, but these errors were encountered:
As an alternative, might make sense to include our own copy of bundleOf -- it'll bloat the binary size a tiny, tiny bit but solve the configuration issue cleanly.
When someone is using Exercise, it will generate code that uses
bundleOf
(androidx.core.os.bundleOf
).When setting up Exercise, library consumers will commonly use the following Gradle configuration:
Unfortunately, the generated code will not compile if the
core-ktx
dependency is not manually pulled in, asannotations
module does not definecore-ktx
asapi
(nor should it do so).Not sure the best approach to getting
core-ktx
pulled in, aside from either instructing that consumers pull incore-ktx
manually or pull in an Exercise module that hascore-ktx
asapi
.The text was updated successfully, but these errors were encountered: