Skip to content

Commit 1132274

Browse files
authored
Update MIN_TARGET_API and RECOMMENDED_TARGET_API (kivy#2683)
1 parent 5b9b382 commit 1132274

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

pythonforandroid/recommendations.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,15 @@ def read_ndk_version(ndk_dir):
135135
return ndk_version
136136

137137

138-
MIN_TARGET_API = 26
138+
MIN_TARGET_API = 30
139139

140140
# highest version tested to work fine with SDL2
141141
# should be a good default for other bootstraps too
142-
RECOMMENDED_TARGET_API = 27
142+
RECOMMENDED_TARGET_API = 33
143143

144144
ARMEABI_MAX_TARGET_API = 21
145145
OLD_API_MESSAGE = (
146-
'Target APIs lower than 26 are no longer supported on Google Play, '
146+
'Target APIs lower than 30 are no longer supported on Google Play, '
147147
'and are not recommended. Note that the Target API can be higher than '
148148
'your device Android version, and should usually be as high as possible.')
149149

tests/test_recommendations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def test_check_target_api_warning_target_api(self):
163163
self.assertEqual(
164164
cm.output,
165165
[
166-
"WARNING:p4a:[WARNING]: Target API 25 < 26",
166+
"WARNING:p4a:[WARNING]: Target API 29 < 30",
167167
"WARNING:p4a:[WARNING]: {old_api_msg}".format(
168168
old_api_msg=OLD_API_MESSAGE
169169
),

tests/test_toolchain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def test_create(self):
7474
'pythonforandroid.bootstraps.service_only.'
7575
'ServiceOnlyBootstrap.assemble_distribution'
7676
) as m_run_distribute:
77-
m_get_available_apis.return_value = [27]
77+
m_get_available_apis.return_value = [33]
7878
tchain = ToolchainCL()
7979
assert tchain.ctx.activity_class_name == 'abc.myapp.android.CustomPythonActivity'
8080
assert tchain.ctx.service_class_name == 'xyz.myapp.android.CustomPythonService'

0 commit comments

Comments
 (0)