Warn if the user's NDK is too high or low.
(ndk_api, android_api)
| 172 | |
| 173 | |
| 174 | def 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 | |
| 188 | MIN_PYTHON_MAJOR_VERSION = 3 |