From 756ea30e49ca46803e9d53f799b9940fef8b975d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eloy=20Dur=C3=A1n?= Date: Fri, 21 Nov 2014 20:55:11 +0100 Subject: [PATCH] [WatchKit] Configure host app Info.plist. --- lib/motion/project/template/ios-watch-host-config.rb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/motion/project/template/ios-watch-host-config.rb b/lib/motion/project/template/ios-watch-host-config.rb index 64f76f9b..2ad88d92 100644 --- a/lib/motion/project/template/ios-watch-host-config.rb +++ b/lib/motion/project/template/ios-watch-host-config.rb @@ -49,9 +49,13 @@ module Motion; module Project; end end - def info_plist_data(platform) - info_plist['CFBundleIdentifier'] = identifier + '.watchapp' - super + # TODO there are more differences, but they seem less important atm. + def merged_info_plist(platform) + plist = super + plist['CFBundleIdentifier'] = identifier + '.watchapp' + plist['UIDeviceFamily'] << '4' # TODO Are numbers in apps generated by Xcode! + plist['WKWatchKitApp'] = true + plist end def main_cpp_file_txt(_)