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

feat(android): use common variables for config and dependencies #2534

Merged
merged 2 commits into from
Mar 9, 2020

Conversation

jcesarmobile
Copy link
Member

This PR makes it easier for users to have common dependencies versions across Capacitor and its plugins and Cordova's plugins.
Also makes possible to configure the Capacitor SDK configurations so they can change them if desider.

For that it creates a new variables.gradle where the capacitor dependencies versions and SDK configurations can be put.

Changed capacitor android to use those dependencies and SDK configurations
Changed android-template to use those dependencies and SDK configurations
Changed plugin-template to use those dependencies and SDK configurations

Also, if new variables are introduced in the variables.gradle file and those variables were used by some cordova plugin, the variable won't be replaced by the default value in plugin.xml, so it uses the value in variables.gradle instead.

closes #447
closes #227
closes #732

@jcesarmobile jcesarmobile merged commit d1009bb into ionic-team:master Mar 9, 2020
@jcesarmobile jcesarmobile deleted the project-variables branch March 9, 2020 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use gradle variables for setting the library versions
1 participant