Provide a way to build android apps without proprietary dependencies #3443
gilbsgilbs
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Capacitor 3 is moving the plugins out, so that won't be a problem anymore. But of course, you won't be able to use the plugins that require those dependencies. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, it is not possible to build capacitor apps for android as free software because the android module has transitive dependencies to firebase-messaging and play-services-location. This is a blocker for those of us who want to produce free builds of their apps and more specifically who want to make them available on F-Droid. F-Droid requires completely free and reproducible builds which means that not only the final APK shouldn't include proprietary dependencies, but also the whole build process must not involve proprietary software at all. Therefore, making firebase and gms
compileOnly
dependencies is not a solution.Those dependencies could be avoided by providing a build flag (e.g. from an environment variable) or just by making firebase and location services a separate module (which I think is cleaner, but would probably be a breaking change). A nice-to-have feature would be allowing users to create multiple variants of their app with different dependencies, e.g. with or without firebase. Something similar to what the android gradle plugin allows with product flavors.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions