I have an existing gradle mono-repo which includes an android application, java server, react front end and a few others. I open the whole project based on the top level gradle file in intellij (I can work on a shared library do a rename and it updates in android project and server). I want to share code between my android and react front end. I see this can be done with capacitorjs. The issue is how to integrate it capacitor seems to require building a new android app. Is it possible to include capacitor libraries and make a “capacitor activity” that I navigate to? I also cannot use capacitors default repositories so I don’t want the generated gradle files, ideally I just add my own dependencies and bundle up my own javascript.
Capacitor itself is distributed through maven, so you should be able to add a dependency and use a BridgeActivity in your native project, but you’ll also need to add dependencies to the plugins you want to use, register them, etc.
You could also give Portals a try, it’s the same but easier