@@ -103,30 +103,31 @@ Using python-for-android commands directly from the pull request files
103103^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
104104
105105- 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)::
107108
108109 .. codeblock:: bash
109110
110111 cd p4a-feature-fix-numpy
111112 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 \
114115 --package=org.kivy \
115- --name=test_app_python3_sqlite_openssl \
116+ --name=test_app_unittests_pycryptodome \
116117 --version=0.1 \
117- --requirements=requests,peewee, sdl2,pyjnius,kivy,python3 \
118+ --requirements=sdl2,pyjnius,kivy,python3,pycryptodome \
118119 --ndk-dir=/media/DEVEL/Android/android-ndk-r20 \
119120 --sdk-dir=/media/DEVEL/Android/android-sdk-linux \
120121 --android-api=27 \
121122 --arch=arm64-v8a \
122- --permission=INTERNET \
123+ --permission=VIBRATE \
123124 --debug
124125
125126Things that you should know:
126127
127128
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
130131 file to build it so we must tell python-for-android what we want via
131132 arguments
132133 - 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
159160 cd p4a-feature-fix-numpy
160161 pip3 install . --upgrade --user
161162
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)::
164165
165166 .. codeblock:: bash
166167
167- cd testapps
168+ cd testapps/on_device_unit_tests
168169
169170- Run the build of the apk via the freshly installed copy of python-for-android
170171 by running a similar command than below::
171172
172173 .. code-block:: bash
173174
174- python3 setup_testapp_python3_sqlite_openssl .py apk \
175+ python3 setup_test_app .py apk \
175176 --ndk-dir=/media/DEVEL/Android/android-ndk-r20 \
176177 --sdk-dir=/media/DEVEL/Android/android-sdk-linux \
177178 --android-api=27 \
@@ -182,8 +183,7 @@ Installing python-for-android using the github's branch of the pull request
182183Things that you should know:
183184
184185 - 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
187187 - be sure to at least edit the following arguments when running the above
188188 command, since the default set in there it's unlikely that match your
189189 installation:
0 commit comments