Skip to content
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

Don't work with Dynamic-delivery modules #11

Closed
audiserg opened this issue Jul 28, 2021 · 6 comments
Closed

Don't work with Dynamic-delivery modules #11

audiserg opened this issue Jul 28, 2021 · 6 comments
Labels
enhancement New feature or request

Comments

@audiserg
Copy link
Contributor

For dynamic-modules build.gradle must have:
apply plugin: 'com.android.dynamic-feature
Try to build:
Caused by: org.gradle.api.GradleException: 'com.android.application' or 'com.android.library' plugin required.

@audiserg
Copy link
Contributor Author

I try to build in local fr solving, but when i set classpath files('libs/plugin-1.1.0.jar'), result of project building is Unable to load class 'org.aspectj.bridge.MessageHandler'

@eschlenz
Copy link
Contributor

Thanks @audiserg. I don't personally have any experience with dynamic feature modules. Do you have a sample app that demonstrates the issue, and that we might be able to use to investigate? If so, I'd be happy to use that to try and figure out what the issue is, and whether or not we can find a simple fix.

@audiserg
Copy link
Contributor Author

audiserg commented Jul 29, 2021

Hi @eschlenz. I fix issue with next strings in pipelineAopWeaverPlugin:
46 val isDynamicLibrary = project.plugins.hasPlugin(DynamicFeaturePlugin::class.java) 48 if (!isAndroid && !isLibrary && !isDynamicLibrary) 57 val variants = if (isAndroid or isDynamicLibrary)
I tested with local Maven Repo and this solution is work. I am not sure, is this best solution. You can check with this public dynamic-feature module examples: https://www.raywenderlich.com/7023243-navigation-and-dynamic-features or https://github.com/googlecodelabs/android-dynamic-features . Thank you !
PipelineAopWeaverPlugin.zip
upd !!IMPORTANT!!:
Need specify aopWeave {
filter = "com/examplle/myapp/feature1"
} in every dynamic module

@eschlenz
Copy link
Contributor

@audiserg I got a few emails from you/GitHub last night, but it looks like the last comment about your fix not working was possibly deleted. Did your solution work for you? If so, we can talk about next steps to incorporate it into the plugin formally, and get a new release out.

@audiserg
Copy link
Contributor Author

@eschlenz Yes, adding aopWeave in every build.gradle in modules and changes in my previous message help me.
Without filtering I have a error from AspectJ in AOP.log ,when Aspect process google classes. You can contact me via email rivno@mail.ru

@eschlenz eschlenz added the enhancement New feature or request label Aug 10, 2021
@eschlenz
Copy link
Contributor

Hey @audiserg. I just merged your PR after some local testing, and released it. I think we can call this issue closed now. I'll reopen if not.

Again, sorry for the delay!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants