-
Notifications
You must be signed in to change notification settings - Fork 660
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
Provide module information (JPMS) #3152
Comments
@tobiasdiez I ended up setting up Apollo Android 3 as automatic modules in #3558. Going the full From the tests, automatic modules are working quite well but the tests are a simple project. If you have a more complex project to try it with, I'd be super curious to hear your thoughts. |
Thanks a lot, we will try it soon and then report back if it works. |
I can confirm that the latest 3.0.0-beta04 now works without any hacks in a JPMS project with java 16: Now we need to adapt the code to the new syntax |
Closing. Please leave a comment if you want me to reopen. |
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo Kotlin usage and allow us to serve you better. |
Is your feature request related to a problem? Please describe.
Currently it very hard to use the apollo library in a modularized application. For example, there are split package issues between apollo-runtime and apollo-api. I'll describe these problems further below in more detail (along with a workaround).
Describe the solution you'd like
The usage would be way easier if the apollo library would be modularized, or at least could provide
module-info.class
.Problems & Workarounds
Fixed by excluding the sub-dependencyies
and then downloading the
apollo-api-jvm.x.jar
file manually, and merging with apollo-runtime bymodularity.patchModule("apollo.runtime", "apollo-api-jvm-2.5.8.jar")
using the gradle pluginorg.javamodularity.moduleplugin
.Fixed by adding
add-exports
forFixed by adding
requires kotlin.stdlib;
to one's module-info file. (This is probably something one still has to to even with a proper module description from apollo's side; but it should be mentioned in the documentation.)The text was updated successfully, but these errors were encountered: