Skip to content

Commit 189fecb

Browse files
committed
Keep IS_SDL2 and cleanup
1 parent 0388117 commit 189fecb

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pythonforandroid/bootstraps/common/build/templates/gradle.tmpl.properties

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@ org.gradle.jvmargs=-Xmx2500m -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemor
66
{% if args.enable_androidx %}
77
android.useAndroidX=true
88
android.enableJetifier=true
9-
{% endif %}
10-
org.gradle.jvmargs=-Xmx4608m
9+
{% endif %}

pythonforandroid/recipes/android/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ def prebuild_arch(self, arch):
3434
if isinstance(ctx_bootstrap, bytes):
3535
ctx_bootstrap = ctx_bootstrap.decode('utf-8')
3636
bootstrap = bootstrap_name = ctx_bootstrap
37-
is_sdl = (bootstrap_name in ["sdl2", "sdl3"])
3837
if bootstrap_name in ["sdl2", "sdl3", "webview", "service_only", "service_library", "qt"]:
3938
java_ns = u'org.kivy.android'
4039
jni_ns = u'org/kivy/android'
@@ -47,7 +46,8 @@ def prebuild_arch(self, arch):
4746

4847
config = {
4948
'BOOTSTRAP': bootstrap,
50-
'IS_SDL': int(is_sdl),
49+
'IS_SDL2': int(bootstrap_name == "sdl2"),
50+
'IS_SDL3': int(bootstrap_name == "sdl3"),
5151
'PY2': 0,
5252
'JAVA_NAMESPACE': java_ns,
5353
'JNI_NAMESPACE': jni_ns,

0 commit comments

Comments
 (0)