Ubports Documentation Marius Gripsgard
Total Page:16
File Type:pdf, Size:1020Kb
UBports Documentation Marius Gripsgard 23 set 2021 A proposito 1 Introduzione 3 2 Processi 5 3 Installare Ubuntu Touch 11 4 Uso quotidiano 15 5 Uso avanzato 27 6 Contribuire a UBports 35 7 Sviluppo App 47 8 Human interface guidelines 89 9 Sviluppo del software di sistema 125 10 Introduction 145 11 Building and booting 153 12 Configuring, testing and fixing 169 13 Finalizing the port 181 i ii UBports Documentation Benvenuto nella documentazione ufficiale del progetto UBports! UBports sviluppa il sistema operativo mobile Ubuntu Touch. Ubuntu Touch è un sistema operativo mobile focalizzato sulla facilità d’uso, sulla privacy e sulla convergenza. On this website you find guides to install Ubuntu Touch on your mobile phone, use Ubuntu Touch, develop Ubuntu Touch apps, port Ubuntu Touch to an Android handset and learn more about system components. If this is your first time here, please consider reading our introduction. Se vuoi aiutare a migliorare questa documentazione, la pagina Contributo alla documentazione ti aiuterà. Puoi vedere questa documentazione nelle seguenti lingue: • Inglese • Catalano • Francese • Tedesco • Italiano • Rumeno • • Turco • Spagnolo • Simplified Chinese A proposito 1 UBports Documentation 2 A proposito CAPITOLO 1 Introduzione Our goal is to create a copylefted libre mobile operating system. One you can use, study, change and share; with all. 1.1 Informazioni su UBports The project was founded by Marius Gripsgard in 2015 and in its infancy a place where developers could share ideas and educate each other in hopes of bringing the Ubuntu Touch platform to more mobile devices. After Canonical suddenly announced plans to terminate support for Ubuntu Touch in April of 2017, UBports and its sister projects began work on the source code; maintaining and expanding its possibilities for the future. 1.2 Informazioni sulla documentazione Changes to the documentation are made by the UBports community. It is written in reStructuredText and conver- ted into this readable form by Sphinx, recommonmark, and Read the Docs. Start contributing by checking out the Documentation contribution document. All documents are licensed Creative Commons Attribution ShareAlike 4.0 (CC-BY-SA 4.0). Please give attribution to «The UBports Community». 1.3 Attribuzione This documentation was heavily modeled after the Godot Engine’s Documentation, by Juan Linietsky, Ariel Manzur and the Godot community. 3 UBports Documentation 4 Capitolo 1. Introduzione CAPITOLO 2 Processi Questa sezione della documentazione dettaglia processi standard per i diversi gruppi di lavoro. Nota: La definizione dei processi è ancora in fase di sviluppo e deve essere tuttora completata dai rispettivi gruppidi lavoro. 2.1 Linee guida per il rintracciamento di errori o bug This document describes the standard process of dealing with new issues in UBports projects. (Not to be confused with the guide on writing a good bugreport.) 2.1.1 Dove vengono tracciati i bug? Since quality assurance depends heavily on community effort, issues are tracked where users expect them, instead of separated by repository. This means issues of almost all distributed components (as with the system-image) are tracked in the Ubuntu Touch tracker. An exception to this are click-apps, which can be updated independently through the OpenStore. Most other repositories track issues locally. You will find out whether a repository uses its own tracker or not inits README.md file. Repositories that don’t track issues locally have their bugtracker turned off. Questa pagina riguarda principalmente il sistema di tracciamento di Ubuntu Touch, ma la maggior parte dei princìpi si applicano pure ad altri progetti. Nota: Practical exceptions to purity are to be described in the project’s README.md file. 5 UBports Documentation 2.1.2 Progetti su GitHub In the interest of transparency and communication, GitHub projects (Kanban-Boards) are used wherever practical. In case of github.com/ubports/ubuntu-touch, a single project is used for all issues. Projects support filtering by labels, so that only issues belonging to a specific team or ones affecting a specific device can beviewed. Queste sono le colonne standard: • None (awaiting triage): Issue approved by a member of the QA team awaiting review from the responsible development team. If a bug, instructions to reproduce are included in the issue description. If a feature request, it has passed a primary sanity check by the QA team, but not yet been accepted by the responsible development- team. • Accepted: Issue accepted by the responsible development-team. If a bugreport, the team has decided it should be fixable and accept responsibility. If a feature request, the team thinks it should be implemented as described. • In Development: A patch in development. Usually means a developer is assigned to the issue. • Quality Assurance: A completed patch passing initial testing. The QA team will review it and provide feedback. If problems are found, the issue is moved back to «Accepted». • Release Candidate: A patch passing QA, ready for release. In case of DEB packages included in the system- image, the patch will be included in the next over-the-air update on the rc channel, and (provided everything goes well) in the next release of the stable channel. • None (removed from the project): Open issue labeled «help wanted». Community contributions are required to resolve it. If it’s closed, either a patch has been released on the stable channel (a comment on the issue should link to the patch) or the issue is rejected (labeled «wontfix»). 2.1.3 Etichette All issues — even closed ones — should be labeled to allow use of GitHub’s global filtering. For example, these are all of the issues labeled “enhancement” inside @ubports. Consult the GitHub help pages to learn more about searching and filtering. List of labels normally used by all repositories: • needs confirmation: The bug needs confirmation and / or further detailing by affected users. • bug: This issue is a confirmed bug. If it’s reproducible, reproduction steps are described. • opinione: Questo problema ha bisogno di essere approfondito ulteriormente. • miglioria: Questo problema è una richiesta di una nuova funzionalità. • domanda: Questo problema è una richiesta di supporto o una domanda generale. • non valido: Questo problema non può essere confermato o è stato inserito nel sistema di tracciamento sbagliato. • duplicate: This has already been reported elsewhere. Please provide a link and close. • necessita aiuto: Questo problema è pronto per essere preso in carica da uno sviluppatore della comunità. • good first issue: The report contains instructions or hints required to fix it. It is an excellent place for someone new to learn about the project by fixing a real issue. • wontfix: A bug it does not make sense to fix, since it will probably resolve itself, be too much work, isn’t fixable, or an underlying component will soon change. Additional special labels can be defined. As an example, these are the labels used in the Ubuntu Touch tracker: • critical (devel): Critical issue only occuring on the devel channel is blocking the release of the next rc image. 6 Capitolo 2. Processi UBports Documentation • critical (rc): Critical issue only occuring on the devel and rc channel is blocking the release of the next stable release. Usually, issues that can not simply be moved to a different release and have the power to postpone the release are labeled this way. • device: [DEVICE CODENAME]: Issue affecting only the specified device(s). • team: [TEAM NAME]: Issue falls under the responsibility of a specific team (HAL, middleware, UI). Nota: If a repository tracking issues locally defines it’s own labels, they should be documented in the README.md. 2.1.4 Obiettivi stabiliti Milestones are used for stable OTA releases only. In general, milestones for the work-in-progress OTA and the next OTA are created. The ETA is set once the work on the release starts (that is 6 weeks from start date), but can be adjusted afterwards. Learn more in release-schedule. 2.1.5 Assegnatari Per rendere trasparente chi sta lavorando su un problema, gli si deve assegnare uno sviluppatore. Ciò permette l’uso dei filtri globali di GitHub, a modo di lista di cose da farsi. Ad esempio, questo è tutto ciò che è stato assegnato a mariogrip in @ubports. Agli sviluppatori è richiesto di mantenere delle liste ridotte e di mantenere aggiornato lo stato dei problemi. 2.1.6 Esempi Ciclo di vita dei bachi Nota: The same principle applies to feature requests, only they are labeled enhancement instead of bug. needs confirmation is not applicable for feature requests. • A user files a new bug using the issue-template. • The QA-Team labels it needs confirmation and tries to work with the user to confirm the bug and add potentially missing info to the report. • Once the report is complete a team-label is added to the issue, the issue will be put on the awaiting-triage-list of the project and the label needs confirmation will be replaced with bug. • The affected Team triages the issue and either rejects (label wontfix, closes and removes from the project) or accepts the issue. • The team decides whether to fix the issue in-house (move to «Accepted» and assign a team member) or waitfora community developer to pick it up (by labeling it help wanted, removing it from the project board and providing hints on how to resolve the issue and further details on how the fix should be implemented if necessary). For non-critical issues trivial to fix, the label good first issue can be added as well. • Once a developer is assigned and starts working on the issue, it is moved to «In Development». • As soon as there is something to show for, the issue is closed and automatically moved to «Quality Assurance» for feedback from the QA team.