Allow clearing attributes by passing "".

project.xml can't pass `null`, so this seems like the next best thing.
This commit is contained in:
Joseph Cloutier
2023-12-21 22:46:13 -05:00
parent cb03d9cd9a
commit f0a040727c

View File

@@ -7,7 +7,7 @@
::foreach ANDROID_PERMISSIONS::<uses-permission android:name="::__current__::" />
::end::
<application ::foreach ANDROID_APPLICATION::::if (value)::::key::="::value::" ::end::::end::>
<application ::foreach ANDROID_APPLICATION::::if ((value != null) && (value != ""))::::key::="::value::" ::end::::end::>
::if (WIN_ORIENTATION=="portrait")::
<meta-data android:name="SDL_ENV.SDL_IOS_ORIENTATIONS" android:value= "Portrait PortraitUpsideDown" />
@@ -17,7 +17,7 @@
<meta-data android:name="SDL_ENV.SDL_IOS_ORIENTATIONS" android:value= "LandscapeLeft LandscapeRight" />
::end::
<activity ::foreach ANDROID_ACTIVITY::::if (value)::::key::="::value::" ::end::::end::>
<activity ::foreach ANDROID_ACTIVITY::::if ((value != null) && (value != ""))::::key::="::value::" ::end::::end::>
<intent-filter>