How to set app dependency on another app

Hi,

I’m developing an app for managing LDAP users via NextCloud panel. This plugin depends on the users_ldap plugin. However, I couldn’t find any hint here [1] on how to set this dependency.

Thanks a lot,
alan

[1] https://docs.nextcloud.com/server/11/developer_manual/app/info.html

You cant and its intentional. Just check if its enabled like this https://github.com/cosenal/mailsharenewsplugin/blob/master/appinfo/app.php

1 Like

Thanks a lot!

Could you please point me an example of how to prevent NC of enabling my app if the other app is not present? On your example, it doesnt throw any message or error …

You could use a pre installation hook which can be added in your info.xml. the app store dev docs have an up to date listing on all tags look there :wink: sorry on mobile, hard to link stuff :wink:

Dear Bernhard,

Thanks again for your attention. The list presenting the possible tags at info.xml [1] shows for me no options for pre-installation hook. Neither does the hooks page [2].

Although this is not an urgent feature, please give me some example when you have some time.

best,
alan

[1] https://docs.nextcloud.com/server/11/developer_manual/app/info.html
[2] https://docs.nextcloud.com/server/11/developer_manual/app/hooks.html

http://nextcloudappstore.readthedocs.io/en/latest/developer.html#info-xml

See

<install>
1 Like

… this would then be a post-installation hook (“… is run after installing the app”). What exactly is meant by “will not be used, only validated”?

Kind thanks for your time!

Claus