← Back to team overview

ubuntu-phone team mailing list archive

Toolkit: preparing to remove dependency towards Unity.Actions

 

Hello All,

In a previous mail we announced that we will remove hard dependency towards
Unity Actions from the Toolkit. This means that if you app uses
MainView.actionsManager to publish ActionContexts or Unity Actions, that
will no longer work. However the API will be transferred from Unity to the
toolkit, and we will have the possibility to plug in HUD integration under
the hood later if needed.

I did a quick grep for the apps importing Ubuntu.Unity.Actions and I found
the following ones:
1. WebBrowser - uses standalone Unity Actions, no direct integration with
toolkit components
2. MediaPlayer - uses standalone Unity Actions
3. Camera - uses standalone Unity Actions
4. Sudoku - imports only, maybe should remove the import from it...
5. Gallery - uses MainView.actiosManager to expose a local context (!)
6. FileManager - imports only, maybe it should be removed
7. NotesApp - uses MainView.actions to publish HUD actions

So, as first step we will make Toolkit Actions to accept any type of object
added to the lists, but only register the Actions and ActionContexts
originated from the toolkit, and we are going to keep the package
dependency towards Unity Actions. As next step we will change the apps to
use toolkit action and add the dependencies to unity actions on those apps
which wish to keep HUD integration, and finally, when we stabilise all
dependencies, we will turn on the acceptance of toolkit actions and
contexts and remove dependency to unity actions.

This will happen in a long shot, and we are targeting to stabilise it for
1.2 release of the toolkit (which is going to happen in 15.04 timeframe).
The first step will be seamless to you.

However if you see that your app doesn't really need HUD integration, or
the HUD integration is not really done (i.e Camera app, Sudoku, FileManager
doesn't really use HUD actions), then you can remove it yourself.

If you need, and you are not dependent on Unity Actions package
(MediaPlayer) then please add the dependency towards it in your control
file.

Thanks guys!

Cheers,
Zsombor

Follow ups