Openmrs-SDK fetch OWA from a custom URL or FileSystem

We are using OpenMRS-SDK to build our OpenMRS distribution. We want to bundle an OWA as well as part of our distro.

By default I think, the sdk always expects all the OWAs to come from openmrs bintray. For example owa.openmrs-owa-sysadmin will be fetched as https://dl.bintray.com/openmrs/owa/SystemAdministration-1.2.zip. Is there a way to override this URL from where the OWA is being fetched from?

We would like to be able to:

  • Use a local zip file while building the distro for local development, till the changes are published.
  • Fetch it from a file server URL for test and production environment (not openmrs bintray).

It looks very trivial but we couldn’t find a mention in docs as well. Let us know if we are missing something. Thanks

CC: @mksd @rrameshbtech @dkayiwa @angshuonline

Can you create a ticket for this?

Sure @dkayiwa,

Created one here. https://issues.openmrs.org/browse/SDK-242. I have not added the fields which I was not sure of.

Would you like to take it up and raise a pull request for it? https://wiki.openmrs.org/display/docs/Pull+Request+Tips

@dkayiwa, I have not looked into the code of openmrs-sdk and I am not really sure, how much work this is? Would you able to provide some information around that?

@mddubey on the ticket that you created, i have added a link to this ticket https://issues.openmrs.org/browse/SDK-225 which has the commits that added this feature. Is that good enough for you to get started?

@dkayiwa, Thanks for the reference, I will have a look. Though I am afraid that I won’t be able to pick it in the near future. I will how early I can pick it up.