[Owncloud] App Requirements

Thomas Müller thomas.mueller at tmit.eu
Thu Apr 19 15:00:46 UTC 2012


What do you think about defining browser requirements on app level?

I know at least the pdfviewer is not working in every browser.
Instead of coding the browser checking in every app it would be clean to have this in the app info.

Tom2

-- 
Thomas Müller                 E-Mail: thomas.mueller at tmit.eu

Am Mittwoch, dem 18.04.2012 um 23:25 schrieb Florian Hülsmann:
> Hey Tom,
> 
> actually I wrote a proposal about dependencies of apps (mainly apps 
> depending on other apps) to this mailing list on 8th of april, hoping to 
> start a constructive discussion about it...
> 
> I thought about something like this:
> 
> <info>
>    <!-- app info -->
>    <requires id="required_app">
>      <!-- to define specific versions of required_app, optional -->
>      <min>0.2</min> <!-- optional -->
>      <max>0.5</max> <!-- optional -->
>      <version>0.15</version> <!-- a specific version; optional -->
>      <version>0.16</version> <!-- optional -->
>    </requires>
>    <requires id="another_app" />
> 
>    <conflicts id="evil_app">
>      <max>0.3</max> <!-- same version properties as above -->
>    </conflicts>
>    <!-- ... -->
> </info>
> 
> But we could make this even possible for PHP libraries etc.
> 
> Cheers
> 
> Florian
> 
> Am 18.04.2012 23:17, schrieb Tom Needham:
> > Hi All,
> >
> > Had an idea of how to implement requirements when installing apps. For
> > example, when the gallery is installed, it need to check if gd is
> > installed, rather than just giving an error. So I though about adding a
> > <requirements> section to the apps info.xml. In there we can list
> > <functions> <classes> and <extensions> that we can check exists when
> > enabling the app.
> >
> > We can also do a check when we do the overall owncloud install to check
> > that the default enabled apps have all their requirements met.
> >
> > What do you think, is this flexible enough for apps?
> >
> > Thanks,
> > Tom
> >
> > Tom Needham
> > tom at owncloud.com <mailto:tom at owncloud.com>
> >
> >
> >
> >
> >
> > _______________________________________________
> > Owncloud mailing list
> > Owncloud at kde.org
> > https://mail.kde.org/mailman/listinfo/owncloud
> 
> -- 
> Florian Hülsmann
> <fh at cbix.de>
> http://cbix.de
> _______________________________________________
> Owncloud mailing list
> Owncloud at kde.org
> https://mail.kde.org/mailman/listinfo/owncloud



More information about the Owncloud mailing list