mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-28 12:45:36 +08:00
[xcassets] Use actool’s Info.plist output instead of reading JSON.
This commit is contained in:
@@ -322,25 +322,5 @@ EOS
|
||||
path = File.join(xcode_dir, 'usr/bin/TextureAtlas')
|
||||
File.exist?(path) ? path : nil
|
||||
end
|
||||
|
||||
def xcassets_bundles
|
||||
xcassets_bundles = []
|
||||
resources_dirs.each do |dir|
|
||||
if File.exist?(dir)
|
||||
xcassets_bundles.concat(Dir.glob(File.join(dir, '*.xcassets')))
|
||||
end
|
||||
end
|
||||
xcassets_bundles
|
||||
end
|
||||
|
||||
def app_icons_asset_bundle
|
||||
app_icons_asset_bundles = xcassets_bundles.map { |b| Dir.glob(File.join(b, '*.appiconset')) }.flatten
|
||||
if app_icons_asset_bundles.size > 1
|
||||
App.warn "Found #{app_icons_asset_bundles.size} AppIcon sets across all " \
|
||||
"xcasset bundles. Only the first one (alphabetically) " \
|
||||
"will be used."
|
||||
end
|
||||
app_icons_asset_bundles.sort.first
|
||||
end
|
||||
end
|
||||
end; end
|
||||
|
||||
Reference in New Issue
Block a user