From 1868222770acef004026f91e5dd7ec71ca52816f Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Thu, 30 Jul 2015 15:07:11 -0700 Subject: [PATCH] Allow loading SkyX files on Mac desktop --- packages/flutter/example/game/BUILD.gn | 3 + packages/flutter/example/game/mac/Info.plist | 34 + packages/flutter/example/game/mac/sky_mac.xib | 695 ++++++++++++++++++ 3 files changed, 732 insertions(+) create mode 100644 packages/flutter/example/game/mac/Info.plist create mode 100644 packages/flutter/example/game/mac/sky_mac.xib diff --git a/packages/flutter/example/game/BUILD.gn b/packages/flutter/example/game/BUILD.gn index cceaf0ab9c..3cfd1c07f4 100644 --- a/packages/flutter/example/game/BUILD.gn +++ b/packages/flutter/example/game/BUILD.gn @@ -21,5 +21,8 @@ sky_app("game") { "assets/Icon@2x.png", "ios/LaunchScreen.storyboardc", ] + } else if (is_mac) { + info_plist = "mac/Info.plist" + xibs = [ "mac/sky_mac.xib" ] } } diff --git a/packages/flutter/example/game/mac/Info.plist b/packages/flutter/example/game/mac/Info.plist new file mode 100644 index 0000000000..f885c99a9a --- /dev/null +++ b/packages/flutter/example/game/mac/Info.plist @@ -0,0 +1,34 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + game_app + CFBundleIconFile + + CFBundleIdentifier + org.domokit.sky.asteroids + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + Asteroids + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + LSMinimumSystemVersion + 10.6 + NSHumanReadableCopyright + Copyright © 2015 The Chromium Authors. All rights reserved. + NSMainNibFile + sky_mac + NSPrincipalClass + SkyApplication + + diff --git a/packages/flutter/example/game/mac/sky_mac.xib b/packages/flutter/example/game/mac/sky_mac.xib new file mode 100644 index 0000000000..0173ec3d28 --- /dev/null +++ b/packages/flutter/example/game/mac/sky_mac.xib @@ -0,0 +1,695 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Default + + + + + + + Left to Right + + + + + + + Right to Left + + + + + + + + + + + Default + + + + + + + Left to Right + + + + + + + Right to Left + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +