1

I am installing some android plugins using android studio in a project.I uploaded that project to git. Now how can I save all my plugins list and push that to git along with project , by mentioning somewhere like gradle, So that who ever clones that project and opens in android studio should be asked to install those plugins or they should be installed automatically?

Is there any solution for that, Let me know if you did not get my question.

I read Android Studio "Unable to save plugin settings" question in stack overflow, but did not get how to apply to my problem

Community
  • 1
  • 1

1 Answers1

0

This can be achieve by code, just associate some key with each plugins and look for that key in your application while opening, if the required keys are not available available, download them and update your key registry.

Sanjit Kumar Mishra
  • 1,153
  • 13
  • 32
  • Thankyou @Sanjit I did not get you exactly, Can u tell example use case for any sample library? – sanyasirao mopada Aug 25 '16 at 10:34
  • Refer this discussion which explains how you can load jars(in your case plugins) dynamically. http://stackoverflow.com/questions/60764/how-should-i-load-jars-dynamically-at-runtime -You have to add your plugins based upon some requirement that logic should be in your code – Sanjit Kumar Mishra Aug 25 '16 at 13:16
  • So you are asking me to keep saved plugin files in repo and load them in project? – sanyasirao mopada Sep 15 '16 at 04:22
  • Yes, do you have any problem with that? You can check maven projects as an example also http://smecsia.me/2013/07/29/loading-plugins-using-aether/ – Sanjit Kumar Mishra Sep 16 '16 at 12:10
  • Is there any chance, for me prompt user to download from settings->plugins, instead of saving files with in project? – sanyasirao mopada Sep 16 '16 at 13:06