|
11 | 11 | MIN_NDK_VERSION = 19
|
12 | 12 | MAX_NDK_VERSION = 20
|
13 | 13 |
|
| 14 | +# DO NOT CHANGE LINE FORMAT: buildozer parses the existence of a RECOMMENDED_NDK_VERSION |
14 | 15 | RECOMMENDED_NDK_VERSION = "19b"
|
| 16 | + |
15 | 17 | NDK_DOWNLOAD_URL = "https://developer.android.com/ndk/downloads/"
|
16 | 18 |
|
17 | 19 | # Important log messages
|
18 | 20 | NEW_NDK_MESSAGE = 'Newer NDKs may not be fully supported by p4a.'
|
19 | 21 | UNKNOWN_NDK_MESSAGE = (
|
20 |
| - 'Could not determine NDK version, no source.properties in the NDK dir' |
| 22 | + 'Could not determine NDK version, no source.properties in the NDK dir.' |
21 | 23 | )
|
22 | 24 | PARSE_ERROR_NDK_MESSAGE = (
|
23 |
| - 'Could not parse $NDK_DIR/source.properties, not checking NDK version' |
| 25 | + 'Could not parse $NDK_DIR/source.properties, not checking NDK version.' |
24 | 26 | )
|
25 | 27 | READ_ERROR_NDK_MESSAGE = (
|
26 |
| - 'Unable to read the NDK version from the given directory {ndk_dir}' |
| 28 | + 'Unable to read the NDK version from the given directory {ndk_dir}.' |
27 | 29 | )
|
28 | 30 | ENSURE_RIGHT_NDK_MESSAGE = (
|
29 | 31 | 'Make sure your NDK version is greater than {min_supported}. If you get '
|
30 |
| - 'build errors, download the recommended NDK {rec_version} from {ndk_url}' |
| 32 | + 'build errors, download the recommended NDK {rec_version} from {ndk_url}.' |
31 | 33 | )
|
32 | 34 | NDK_LOWER_THAN_SUPPORTED_MESSAGE = (
|
33 | 35 | 'The minimum supported NDK version is {min_supported}. '
|
34 |
| - 'You can download it from {ndk_url}' |
| 36 | + 'You can download it from {ndk_url}.' |
35 | 37 | )
|
36 | 38 | UNSUPPORTED_NDK_API_FOR_ARMEABI_MESSAGE = (
|
37 | 39 | 'Asked to build for armeabi architecture with API '
|
38 |
| - '{req_ndk_api}, but API {max_ndk_api} or greater does not support armeabi' |
| 40 | + '{req_ndk_api}, but API {max_ndk_api} or greater does not support armeabi.' |
39 | 41 | )
|
40 | 42 | CURRENT_NDK_VERSION_MESSAGE = (
|
41 | 43 | 'Found NDK version {ndk_version}'
|
42 | 44 | )
|
43 | 45 | RECOMMENDED_NDK_VERSION_MESSAGE = (
|
44 |
| - 'Maximum recommended NDK version is {recommended_ndk_version}' |
| 46 | + 'Maximum recommended NDK version is {recommended_ndk_version}, but newer versions may work.' |
45 | 47 | )
|
46 | 48 |
|
47 | 49 |
|
@@ -187,7 +189,7 @@ def check_ndk_api(ndk_api, android_api):
|
187 | 189 |
|
188 | 190 |
|
189 | 191 | MIN_PYTHON_MAJOR_VERSION = 3
|
190 |
| -MIN_PYTHON_MINOR_VERSION = 4 |
| 192 | +MIN_PYTHON_MINOR_VERSION = 6 |
191 | 193 | MIN_PYTHON_VERSION = LooseVersion('{major}.{minor}'.format(major=MIN_PYTHON_MAJOR_VERSION,
|
192 | 194 | minor=MIN_PYTHON_MINOR_VERSION))
|
193 | 195 | PY2_ERROR_TEXT = (
|
@@ -218,3 +220,15 @@ def check_python_version():
|
218 | 220 | ):
|
219 | 221 |
|
220 | 222 | raise BuildInterruptingException(PY_VERSION_ERROR_TEXT)
|
| 223 | + |
| 224 | + |
| 225 | +def print_recommendations(): |
| 226 | + """ |
| 227 | + Print the main recommended dependency versions as simple key-value pairs. |
| 228 | + """ |
| 229 | + print('Min supported NDK version: {}'.format(MIN_NDK_VERSION)) |
| 230 | + print('Recommended NDK version: {}'.format(RECOMMENDED_NDK_VERSION)) |
| 231 | + print('Min target API: {}'.format(MIN_TARGET_API)) |
| 232 | + print('Recommended target API: {}'.format(RECOMMENDED_TARGET_API)) |
| 233 | + print('Min NDK API: {}'.format(MIN_NDK_API)) |
| 234 | + print('Recommended NDK API: {}'.format(RECOMMENDED_NDK_API)) |
0 commit comments