@@ -103,30 +103,31 @@ Using python-for-android commands directly from the pull request files
103
103
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
104
104
105
105
- Enter inside the directory of the cloned repository in the above
106
- step and run p4a command with proper args, eg::
106
+ step and run p4a command with proper args, eg (to test an modified
107
+ `pycryptodome ` recipe)::
107
108
108
109
.. codeblock:: bash
109
110
110
111
cd p4a-feature-fix-numpy
111
112
PYTHONPATH=. python3 -m pythonforandroid.toolchain apk \
112
- --private=testapps/testapp_sqlite_openssl \
113
- --dist-name=dist_test_app_python3_libs \
113
+ --private=testapps/on_device_unit_tests/test_app \
114
+ --dist-name=dist_test_app_unittests_pycryptodome \
114
115
--package=org.kivy \
115
- --name=test_app_python3_sqlite_openssl \
116
+ --name=test_app_unittests_pycryptodome \
116
117
--version=0.1 \
117
- --requirements=requests,peewee, sdl2,pyjnius,kivy,python3 \
118
+ --requirements=sdl2,pyjnius,kivy,python3,pycryptodome \
118
119
--ndk-dir=/media/DEVEL/Android/android-ndk-r20 \
119
120
--sdk-dir=/media/DEVEL/Android/android-sdk-linux \
120
121
--android-api=27 \
121
122
--arch=arm64-v8a \
122
- --permission=INTERNET \
123
+ --permission=VIBRATE \
123
124
--debug
124
125
125
126
Things that you should know:
126
127
127
128
128
- - The example above will build an testapp we will make use of the files of
129
- the testapp named ` testapp_sqlite_openssl.py ` but we don't use the setup
129
+ - The example above will build an test app we will make use of the files of
130
+ the ` on device unit tests ` test app but we don't use the setup
130
131
file to build it so we must tell python-for-android what we want via
131
132
arguments
132
133
- be sure to at least edit the following arguments when running the above
@@ -159,19 +160,19 @@ Installing python-for-android using the github's branch of the pull request
159
160
cd p4a-feature-fix-numpy
160
161
pip3 install . --upgrade --user
161
162
162
- - Now, go inside the `testapps ` directory (we assume that you still are inside
163
- the cloned repository)::
163
+ - Now, go inside the `testapps/on_device_unit_tests ` directory (we assume that
164
+ you still are inside the cloned repository)::
164
165
165
166
.. codeblock:: bash
166
167
167
- cd testapps
168
+ cd testapps/on_device_unit_tests
168
169
169
170
- Run the build of the apk via the freshly installed copy of python-for-android
170
171
by running a similar command than below::
171
172
172
173
.. code-block:: bash
173
174
174
- python3 setup_testapp_python3_sqlite_openssl .py apk \
175
+ python3 setup_test_app .py apk \
175
176
--ndk-dir=/media/DEVEL/Android/android-ndk-r20 \
176
177
--sdk-dir=/media/DEVEL/Android/android-sdk-linux \
177
178
--android-api=27 \
@@ -182,8 +183,7 @@ Installing python-for-android using the github's branch of the pull request
182
183
Things that you should know:
183
184
184
185
- In the example above, we override some variables that are set in
185
- `setup_testapp_python3_sqlite_openssl.py `, you could also override them
186
- by editing this file
186
+ `setup_test_app.py `, you could also override them by editing this file
187
187
- be sure to at least edit the following arguments when running the above
188
188
command, since the default set in there it's unlikely that match your
189
189
installation:
0 commit comments