1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Projucer: Always add custom launch screen storyboard files to iOS projects even when a custom xcassets folder is specified

This commit is contained in:
ed 2019-02-28 16:19:48 +00:00
parent 2fd7c587ad
commit 33901385de

View file

@ -137,6 +137,7 @@ public:
String getCustomResourceFoldersString() const { return customXcodeResourceFoldersValue.get().toString().replaceCharacters ("\r\n", "::"); }
String getCustomXcassetsFolderString() const { return customXcassetsFolderValue.get(); }
String getCustomLaunchStoryboardString() const { return customLaunchStoryboardValue.get(); }
bool shouldAddStoryboardToProject() const { return getCustomLaunchStoryboardString().isNotEmpty() || getCustomXcassetsFolderString().isEmpty(); }
bool isHardenedRuntimeEnabled() const { return hardenedRuntimeValue.get(); }
Array<var> getHardenedRuntimeOptions() const { return *hardenedRuntimeOptionsValue.get().getArray(); }
@ -1438,7 +1439,7 @@ public:
if (type != AudioUnitv3PlugIn)
addPlistDictionaryKeyBool (dict, "UIViewControllerBasedStatusBarAppearance", false);
if (owner.getCustomXcassetsFolderString().isEmpty())
if (owner.shouldAddStoryboardToProject())
{
auto customStoryboard = owner.getCustomLaunchStoryboardString();
@ -1912,7 +1913,7 @@ private:
{
addXcassets();
if (getCustomXcassetsFolderString().isEmpty())
if (shouldAddStoryboardToProject())
{
auto customLaunchStoryboard = getCustomLaunchStoryboardString();