User:Alive/System Refactor Plan
Jump to navigation
Jump to search
System Refactor Plan
High level goals
- Modularization
- One system app for multiple devices
- Maintenance
Key features
- Swappable functionality
- Concentrated module responsibility
- Reduce startup time
Swappable functionality
- Each HW specific functionality should be easily removed/disabled from the current code base.
- Less module dependency - try not touch global variable.
If you need to ask someone else to work, ask the mediator instead of asking it directly.
var MyModule = {
show: function() {
UtilityTray.hide(); // Sad
Service.request('UtilityTray:hide'); // Better
}
};
Special Topics
- Statusbar destruction
- Shared transition controller
- Notification refactor
- LockScreen