You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add sphinxawesome_theme dependency for docs
* Update configuration for docs
* upload images for logo and banner
* Basic modifications for current theme
* Update conf.py
* Update test_python.yml
Copy file name to clipboardExpand all lines: docs/source/quickstart.rst
+21-25Lines changed: 21 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,26 @@
1
+
.. _quickstart:
2
+
1
3
Quickstart
2
4
==========
3
5
4
-
Let's get started with Buildozer!
6
+
.. rst-class:: lead
7
+
8
+
Let's get started with Buildozer!
5
9
6
10
Init and build for Android
7
11
--------------------------
8
12
9
13
#. Buildozer will try to guess the version of your application, by searching a
10
-
line like `__version__ = "1.0.3"` in your `main.py`. Ensure you have one at
14
+
line like :class:`__version__ = "1.0.3"` in your :class:`main.py`. Ensure you have one at
11
15
the start of your application. It is not mandatory but heavily advised.
12
16
13
-
#. Create a `buildozer.spec` file, with::
17
+
#. Create a :class:`buildozer.spec` file, with::
14
18
15
19
buildozer init
16
20
17
-
#. Edit the `buildozer.spec` according to the :ref:`specifications`. You should
18
-
at least change the `title`, `package.name` and `package.domain` in the
19
-
`[app]` section.
21
+
#. Edit the :class:`buildozer.spec` according to the :ref:`specifications`. You should
22
+
at least change the :class:`title`, :class:`package.name` and :class:`package.domain` in the
23
+
:class:`[app]` section.
20
24
21
25
#. Start an Android/debug build with::
22
26
@@ -28,7 +32,7 @@ Init and build for Android
28
32
Don't worry, those files will be saved in a global directory and will be
29
33
shared across the different projects you'll manage with Buildozer.
30
34
31
-
#. At the end, you should have an APK or AAB file in the `bin/` directory.
35
+
#. At the end, you should have an APK or AAB file in the :class:`bin/` directory.
32
36
33
37
34
38
Run my application
@@ -40,29 +44,26 @@ your application at least once::
40
44
41
45
buildozer android deploy run logcat
42
46
43
-
For iOS, it would look the same::
47
+
- For iOS, it would look the same::
44
48
45
49
buildozer ios deploy run
46
50
47
-
You can combine the compilation with the deployment::
51
+
- You can combine the compilation with the deployment::
48
52
49
53
buildozer -v android debug deploy run logcat
50
54
51
-
You can also set this line at the default command to do if Buildozer is started
52
-
without any arguments::
55
+
- You can also set this line at the default command to do if Buildozer is started without any arguments::
53
56
54
57
buildozer setdefault android debug deploy run logcat
55
58
56
59
# now just type buildozer, and it will do the default command
57
60
buildozer
58
61
59
-
To save the logcat output into a file named `my_log.txt` (the file will appear in your current directory)::
62
+
- To save the logcat output into a file named :class:`my_log.txt` (the file will appear in your current directory)::
60
63
61
64
buildozer -v android debug deploy run logcat > my_log.txt
62
65
63
-
To see your running application's print() messages and python's error messages, use:
64
-
65
-
::
66
+
- To see your running application's print() messages and python's error messages, use::
66
67
67
68
buildozer -v android deploy run logcat | grep python
68
69
@@ -71,21 +72,16 @@ Run my application from Windows
71
72
72
73
- Plug your Android device on a USB port.
73
74
74
-
- Open Windows PowerShell, go into the folder where you installed the Windows version of ADB, and activate the ADB daemon. When the daemon is started you must see a number besides the word "device" meaning your device was correctly detected. In case of trouble, try another USB port or USB cable.
75
-
76
-
::
75
+
- Open Windows PowerShell, go into the folder where you installed the Windows version of ADB, and activate the ADB daemon. When the daemon is started you must see a number besides the word "device" meaning your device was correctly detected. In case of trouble, try another USB port or USB cable.::
77
76
78
77
cd C:\platform-tools\
79
78
.\adb.exe devices
80
79
81
-
- Open the Linux distribution you installed on Windows Subsystem for Linux (WSL) and proceed with the deploy commands:
82
-
83
-
::
80
+
- Open the Linux distribution you installed on Windows Subsystem for Linux (WSL) and proceed with the deploy commands::
84
81
85
82
buildozer -v android deploy run
86
83
87
-
It is important to notice that Windows ADB and Buildozer-installed ADB must be the same version. To check the versions,
88
-
open PowerShell and type::
84
+
- It is important to notice that Windows ADB and Buildozer-installed ADB must be the same version. To check the versions, open PowerShell and type::
89
85
90
86
cd C:\platform-tools\
91
87
.\adb.exe version
@@ -97,8 +93,8 @@ Install on non-connected devices
97
93
--------------------------------
98
94
99
95
If you have compiled a package, and want to share it easily with others
100
-
devices, you might be interested with the `serve` command. It will serve the
101
-
`bin/` directory over HTTP. Then you just have to access to the URL showed in
96
+
devices, you might be interested with the :class:`serve` command. It will serve the
97
+
:class:`bin/` directory over HTTP. Then you just have to access to the URL showed in
0 commit comments