Add support for languages field in iOS/Android/AIR templates

This commit is contained in:
Joshua Granick
2018-07-07 06:48:51 -07:00
parent cd7d2b3fcf
commit 673d1cf014
3 changed files with 76 additions and 70 deletions

View File

@@ -36,6 +36,7 @@
::if (icons != null)::<icon>::foreach icons:: ::if (icons != null)::<icon>::foreach icons::
<image::size::x::size::>::path::</image::size::x::size::>::end:: <image::size::x::size::>::path::</image::size::x::size::>::end::
</icon>::end:: </icon>::end::
::if (languages != null)::<supportedLanguages>::foreach languages::::__current__:: ::end::</supportedLanguages>::end::
<customUpdateUI>false</customUpdateUI> <customUpdateUI>false</customUpdateUI>
<allowBrowserInvocation>false</allowBrowserInvocation> <allowBrowserInvocation>false</allowBrowserInvocation>
<!-- <fileTypes> <!-- <fileTypes>

View File

@@ -15,6 +15,7 @@ android {
targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION) targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION)
versionCode Integer.parseInt(project.VERSION_CODE) versionCode Integer.parseInt(project.VERSION_CODE)
versionName project.VERSION_NAME versionName project.VERSION_NAME
::if (languages != null)::resConfigs ::foreach languages::"::__current__::", ::end::""::end::
} }
::if KEY_STORE:: ::if KEY_STORE::

View File

@@ -4,6 +4,10 @@
<dict> <dict>
<key>CFBundleDevelopmentRegion</key> <key>CFBundleDevelopmentRegion</key>
<string>en</string> <string>en</string>
::if (languages != null)::<key>CFBundleLocalizations</key>
<array>::foreach languages::
<string>::__current__::</string>::end::
</array>::end::
<key>CFBundleDisplayName</key> <key>CFBundleDisplayName</key>
<string>::APP_TITLE::</string> <string>::APP_TITLE::</string>
<key>CFBundleExecutable</key> <key>CFBundleExecutable</key>