Fixed
Status Update
Comments
ch...@stageten.tv <ch...@stageten.tv> #2
Known issue, we cannot do anything because AGP doesn't provide an API to fetch Kotlin sources (specifically here
il...@google.com <il...@google.com> #3
Would you be opposed to failing the build if we see a src/kotlin
directory?
il...@google.com <il...@google.com>
ap...@google.com <ap...@google.com> #4
No, go ahead if you want to add that check.
il...@google.com <il...@google.com> #5
Adding to bounty list since this isn't a frequent occurrence.
- Sponsor: alanv
- Tech stack: Gradle build plugin
- Summary: Add check in
AndroidXPluginImpl
that raises an exception if a project is usingsrc/kotlin
for its source sets. The exception should indicate thatsrc/kotlin
is not fully supported by AGP and thatsrc/java
should be used instead.
ch...@stageten.tv <ch...@stageten.tv> #6
I'm seeing one library that's using src/main/kotlin
and seems to generate API files without issue: paging/paging-common
. Aurimas, any idea what might be going on there?
Description
Component used: Navigation
Version used: 2.4.0-alpha04
Devices/Android versions reproduced on: Samsung A51, Android version 11
It's my understanding that when using a custom Navigator, this should be added to NavController via SideEffect. However, doing so produces IllegalStateException:
If you add the Navigator outside of SideEffect, there is no exception.
The issue can be reproduced with this app:
https://github.com/chrisfillmore/compose_side_effect_add_navigator
Here's MainActivity with the relevant code:
https://github.com/chrisfillmore/compose_side_effect_add_navigator/blob/master/app/src/main/java/tv/stageten/composesideeffectaddnavigator/MainActivity.kt