Skip to content

Commit

Permalink
Merge pull request #4 from joshbuckley182/feature/cordova-ios-4-support
Browse files Browse the repository at this point in the history
Cordova iOS 4 compatibility
  • Loading branch information
PEM-- committed May 23, 2016
2 parents 453348f + 6117629 commit 7f5195c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lib/profiles.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ module.exports = (config) ->
]
# iOS (Retina and legacy resolutions)
'ios':
dir: path.join 'platforms', 'ios', config.prjName, 'Resources', 'splash'
dir: if config.useXCAssetsPath
path.join 'platforms', 'ios', config.prjName, 'Images.xcassets', 'LaunchImage.launchimage'
else
path.join 'platforms', 'ios', config.prjName, 'Resources', 'splash'
layout:
landscape:
splashs: [
Expand Down
3 changes: 2 additions & 1 deletion tasks/phonegapsplash.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ module.exports = (grunt) ->
layouts: [ 'portrait', 'landscape', 'none' ]
profiles: [
'android', 'bada', 'blackberry', 'ios', 'webos', 'windows-phone'
]
],
useXCAssetsPath: false
# Get all profiles as constants
PROFILES = (require '../lib/profiles') options
# Check existence of source file
Expand Down

0 comments on commit 7f5195c

Please sign in to comment.