[WatchKit] Also compile assets for watch device.

This commit is contained in:
Eloy Durán
2014-12-10 19:17:43 +01:00
parent 2e171e0d63
commit ce2c1b8bb1
3 changed files with 92 additions and 0 deletions

View File

@@ -148,6 +148,12 @@ EOS
@extension_config.deployment_target
end
# Ensure that we also compile assets with `actool` for the watch.
#
def device_family
[:iphone, :watch]
end
# @return [String] The bundle identifier of the watch application based on
# the bundle identifier of the host application.
#

View File

@@ -0,0 +1,62 @@
{
"images" : [
{
"size" : "14.5x14.5",
"idiom" : "watch",
"scale" : "2x",
"role" : "notificationCenter",
"subtype" : "38mm"
},
{
"size" : "18x18",
"idiom" : "watch",
"scale" : "2x",
"role" : "notificationCenter",
"subtype" : "42mm"
},
{
"size" : "29x29",
"idiom" : "watch",
"role" : "companionSettings",
"scale" : "2x"
},
{
"size" : "29.3x29.3",
"idiom" : "watch",
"role" : "companionSettings",
"scale" : "3x"
},
{
"size" : "40x40",
"idiom" : "watch",
"scale" : "2x",
"role" : "appLauncher",
"subtype" : "38mm"
},
{
"size" : "44x44",
"idiom" : "watch",
"scale" : "2x",
"role" : "appLauncher",
"subtype" : "42mm"
},
{
"size" : "86x86",
"idiom" : "watch",
"scale" : "2x",
"role" : "quickLook",
"subtype" : "38mm"
},
{
"size" : "98x98",
"idiom" : "watch",
"scale" : "2x",
"role" : "quickLook",
"subtype" : "42mm"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

View File

@@ -0,0 +1,24 @@
{
"images" : [
{
"orientation" : "portrait",
"idiom" : "watch",
"extent" : "full-screen",
"minimum-system-version" : "8.0",
"subtype" : "38mm",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "watch",
"extent" : "full-screen",
"minimum-system-version" : "8.0",
"subtype" : "42mm",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}