MCPcopy Index your code
hub / github.com/kivy/python-for-android / check_ndk_api

Function check_ndk_api

pythonforandroid/recommendations.py:174–185  ·  view source on GitHub ↗

Warn if the user's NDK is too high or low.

(ndk_api, android_api)

Source from the content-addressed store, hash-verified

172
173
174def check_ndk_api(ndk_api, android_api):
175 """Warn if the user's NDK is too high or low."""
176 if ndk_api > android_api:
177 raise BuildInterruptingException(
178 TARGET_NDK_API_GREATER_THAN_TARGET_API_MESSAGE.format(
179 ndk_api=ndk_api, android_api=android_api
180 ),
181 instructions=('The NDK API is a minimum supported API number and must be lower '
182 'than the target Android API'))
183
184 if ndk_api < MIN_NDK_API:
185 warning(OLD_NDK_API_MESSAGE)
186
187
188MIN_PYTHON_MAJOR_VERSION = 3

Calls 2

formatMethod · 0.80