forked from ubports/clock-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.developers
60 lines (42 loc) · 2.35 KB
/
README.developers
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Building and running (using clickable):
=======================================
Building and running the Ubuntu Clock App is quite simple. You will require
clickable which can be obtained by following the instructions on the clickable documentaion site - http://clickable.bhdouglass.com/en/latest/
To run on the desktop:
$ cd <clock-app code directory>
$ clickable --desktop
To install and run on the device:
$ cd <clock-app code directory>
$ clickable --arch=armhf clean build build-click install launch
Submitting a patch upstream
===========================
If you want to submit a bug fix you can do so by forking the github repository implementing the fixes and running to see if it resolved the issue.
We also request that you run the Autopilot and Unit tests to check if anything regressed due to the bug fix.
If the tests fail, you will have to fix them before your bug fix can be
approved and merged. If the tests pass then commit and push your
code to your repository and create a Pull Request to master branch.
Running Tests
=============
Please check README.autopilot and README.unittest on how to run the tests.
They are quite explanatory and will help you get started.
Code Style
==========
We are trying to use a common code style throughout the code base to maintain
uniformity and improve code clarity. Listed below are the code styles guides
that will be followed based on the language used.
* QML - http://qt-project.org/doc/qt-5/qml-codingconventions.html
* JS, C++ - https://google.github.io/styleguide/cppguide.html
* Python - Code should follow PEP8 and Flake regulations
Note: In the QML code convention, ignore the Javascript code section guidelines.
So the sections that should be taken into account in the QML conventions are QML
Object Declarations, Grouped Properties and Lists.
Development tools :
===================
- Ubuntu SDK : This is an unsupported IDE however it should compile,run and debug the clock-app without any issues
(If you use this IDE you don't need to use clickable however this development vector is unsupported
and you might encounter issues in the future)
- Any other tool to alter text in source files should work :)
LXD required packages :
=======================
If your using git as source control than open a shell in the container and run :
$ apt install git