From 911f6b21b81b4c1b810a54b77c046294947fb2e0 Mon Sep 17 00:00:00 2001 From: Shane Woolcock Date: Mon, 24 Dec 2018 21:26:24 +1030 Subject: [PATCH] Add iOS visual test project with source file links --- osu-framework.iOS.sln | 14 ++ osu.Framework.Tests.iOS/AppDelegate.cs | 14 ++ osu.Framework.Tests.iOS/Application.cs | 18 ++ .../AppIcon.appiconset/Contents.json | 202 ++++++++++++++++++ .../Assets.xcassets/Contents.json | 6 + osu.Framework.Tests.iOS/Entitlements.plist | 6 + osu.Framework.Tests.iOS/Info.plist | 42 ++++ .../LaunchScreen.storyboard | 27 +++ .../osu.Framework.Tests.iOS.csproj | 89 ++++++++ osu.Framework.Tests.iOS/packages.config | 68 ++++++ 10 files changed, 486 insertions(+) create mode 100644 osu.Framework.Tests.iOS/AppDelegate.cs create mode 100644 osu.Framework.Tests.iOS/Application.cs create mode 100644 osu.Framework.Tests.iOS/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 osu.Framework.Tests.iOS/Assets.xcassets/Contents.json create mode 100644 osu.Framework.Tests.iOS/Entitlements.plist create mode 100644 osu.Framework.Tests.iOS/Info.plist create mode 100644 osu.Framework.Tests.iOS/LaunchScreen.storyboard create mode 100644 osu.Framework.Tests.iOS/osu.Framework.Tests.iOS.csproj create mode 100644 osu.Framework.Tests.iOS/packages.config diff --git a/osu-framework.iOS.sln b/osu-framework.iOS.sln index aa3a7522d..a38423310 100644 --- a/osu-framework.iOS.sln +++ b/osu-framework.iOS.sln @@ -11,6 +11,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "osu.Framework.iOS", "osu.Fr EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SampleGame.iOS", "SampleGame.iOS\SampleGame.iOS.csproj", "{529D5E2E-774A-4831-9C9E-59E3E8DFF155}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "osu.Framework.Tests.iOS", "osu.Framework.Tests.iOS\osu.Framework.Tests.iOS.csproj", "{D972753E-45FC-4B82-B017-34BDE485F1BB}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -65,5 +67,17 @@ Global {529D5E2E-774A-4831-9C9E-59E3E8DFF155}.Debug|iPhone.Build.0 = Debug|iPhone {529D5E2E-774A-4831-9C9E-59E3E8DFF155}.Debug|Any CPU.ActiveCfg = Debug|iPhone {529D5E2E-774A-4831-9C9E-59E3E8DFF155}.Release|Any CPU.ActiveCfg = Release|iPhone + {D972753E-45FC-4B82-B017-34BDE485F1BB}.Debug|Any CPU.ActiveCfg = Debug|iPhone + {D972753E-45FC-4B82-B017-34BDE485F1BB}.Debug|Any CPU.Build.0 = Debug|iPhone + {D972753E-45FC-4B82-B017-34BDE485F1BB}.Release|Any CPU.ActiveCfg = Release|iPhone + {D972753E-45FC-4B82-B017-34BDE485F1BB}.Release|Any CPU.Build.0 = Release|iPhone + {D972753E-45FC-4B82-B017-34BDE485F1BB}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator + {D972753E-45FC-4B82-B017-34BDE485F1BB}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator + {D972753E-45FC-4B82-B017-34BDE485F1BB}.Release|iPhone.ActiveCfg = Release|iPhone + {D972753E-45FC-4B82-B017-34BDE485F1BB}.Release|iPhone.Build.0 = Release|iPhone + {D972753E-45FC-4B82-B017-34BDE485F1BB}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator + {D972753E-45FC-4B82-B017-34BDE485F1BB}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator + {D972753E-45FC-4B82-B017-34BDE485F1BB}.Debug|iPhone.ActiveCfg = Debug|iPhone + {D972753E-45FC-4B82-B017-34BDE485F1BB}.Debug|iPhone.Build.0 = Debug|iPhone EndGlobalSection EndGlobal diff --git a/osu.Framework.Tests.iOS/AppDelegate.cs b/osu.Framework.Tests.iOS/AppDelegate.cs new file mode 100644 index 000000000..9e8a9fb87 --- /dev/null +++ b/osu.Framework.Tests.iOS/AppDelegate.cs @@ -0,0 +1,14 @@ +// Copyright (c) 2007-2018 ppy Pty Ltd . +// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE + +using Foundation; +using osu.Framework.iOS; + +namespace osu.Framework.Tests.iOS +{ + [Register("AppDelegate")] + public class AppDelegate : GameAppDelegate + { + protected override Game CreateGame() => new VisualTestGame(); + } +} diff --git a/osu.Framework.Tests.iOS/Application.cs b/osu.Framework.Tests.iOS/Application.cs new file mode 100644 index 000000000..0de18d581 --- /dev/null +++ b/osu.Framework.Tests.iOS/Application.cs @@ -0,0 +1,18 @@ +// Copyright (c) 2007-2018 ppy Pty Ltd . +// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE + +using UIKit; + +namespace osu.Framework.Tests.iOS +{ + public class Application + { + // This is the main entry point of the application. + public static void Main(string[] args) + { + // if you want to use a different Application Delegate class from "AppDelegate" + // you can specify it here. + UIApplication.Main(args, null, "AppDelegate"); + } + } +} diff --git a/osu.Framework.Tests.iOS/Assets.xcassets/AppIcon.appiconset/Contents.json b/osu.Framework.Tests.iOS/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 000000000..64d0e3ddf --- /dev/null +++ b/osu.Framework.Tests.iOS/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,202 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "83.5x83.5", + "scale" : "2x" + }, + { + "idiom" : "ios-marketing", + "size" : "1024x1024", + "scale" : "1x" + }, + { + "size" : "24x24", + "idiom" : "watch", + "scale" : "2x", + "role" : "notificationCenter", + "subtype" : "38mm" + }, + { + "size" : "27.5x27.5", + "idiom" : "watch", + "scale" : "2x", + "role" : "notificationCenter", + "subtype" : "42mm" + }, + { + "size" : "29x29", + "idiom" : "watch", + "role" : "companionSettings", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "watch", + "role" : "companionSettings", + "scale" : "3x" + }, + { + "size" : "40x40", + "idiom" : "watch", + "scale" : "2x", + "role" : "appLauncher", + "subtype" : "38mm" + }, + { + "size" : "44x44", + "idiom" : "watch", + "scale" : "2x", + "role" : "longLook", + "subtype" : "42mm" + }, + { + "size" : "86x86", + "idiom" : "watch", + "scale" : "2x", + "role" : "quickLook", + "subtype" : "38mm" + }, + { + "size" : "98x98", + "idiom" : "watch", + "scale" : "2x", + "role" : "quickLook", + "subtype" : "42mm" + }, + { + "idiom" : "mac", + "size" : "16x16", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "16x16", + "scale" : "2x" + }, + { + "idiom" : "mac", + "size" : "32x32", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "32x32", + "scale" : "2x" + }, + { + "idiom" : "mac", + "size" : "128x128", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "128x128", + "scale" : "2x" + }, + { + "idiom" : "mac", + "size" : "256x256", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "256x256", + "scale" : "2x" + }, + { + "idiom" : "mac", + "size" : "512x512", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "512x512", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/osu.Framework.Tests.iOS/Assets.xcassets/Contents.json b/osu.Framework.Tests.iOS/Assets.xcassets/Contents.json new file mode 100644 index 000000000..4caf392f9 --- /dev/null +++ b/osu.Framework.Tests.iOS/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/osu.Framework.Tests.iOS/Entitlements.plist b/osu.Framework.Tests.iOS/Entitlements.plist new file mode 100644 index 000000000..9ae599370 --- /dev/null +++ b/osu.Framework.Tests.iOS/Entitlements.plist @@ -0,0 +1,6 @@ + + + + + + diff --git a/osu.Framework.Tests.iOS/Info.plist b/osu.Framework.Tests.iOS/Info.plist new file mode 100644 index 000000000..692b6d5c6 --- /dev/null +++ b/osu.Framework.Tests.iOS/Info.plist @@ -0,0 +1,42 @@ + + + + + CFBundleName + osu.Framework.Tests.iOS + CFBundleIdentifier + ppy.osu-Framework-Tests-iOS + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1.0 + LSRequiresIPhoneOS + + MinimumOSVersion + 11.0 + UIDeviceFamily + + 1 + 2 + + UILaunchStoryboardName + LaunchScreen + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + XSAppIconAssets + Assets.xcassets/AppIcon.appiconset + UIStatusBarHidden + + UIRequiresFullScreen + + + diff --git a/osu.Framework.Tests.iOS/LaunchScreen.storyboard b/osu.Framework.Tests.iOS/LaunchScreen.storyboard new file mode 100644 index 000000000..5d2e905aa --- /dev/null +++ b/osu.Framework.Tests.iOS/LaunchScreen.storyboard @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/osu.Framework.Tests.iOS/osu.Framework.Tests.iOS.csproj b/osu.Framework.Tests.iOS/osu.Framework.Tests.iOS.csproj new file mode 100644 index 000000000..5fdab3e9e --- /dev/null +++ b/osu.Framework.Tests.iOS/osu.Framework.Tests.iOS.csproj @@ -0,0 +1,89 @@ + + + + + Debug + iPhoneSimulator + {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Exe + osu.Framework.Tests + osu.Framework.Tests.iOS + Resources + {D972753E-45FC-4B82-B017-34BDE485F1BB} + + + + + + + + + + + + + + + libbass.a + PreserveNewest + + + libbass_fx.a + PreserveNewest + + + + + + + + + %(RecursiveDir)%(Filename)%(Extension) + + + %(RecursiveDir)%(Filename)%(Extension) + + + %(RecursiveDir)%(Filename)%(Extension) + + + %(RecursiveDir)%(Filename)%(Extension) + + + %(RecursiveDir)%(Filename)%(Extension) + + + %(RecursiveDir)%(Filename)%(Extension) + + + %(RecursiveDir)%(Filename)%(Extension) + + + %(RecursiveDir)%(Filename)%(Extension) + + + %(RecursiveDir)%(Filename)%(Extension) + + + %(RecursiveDir)%(Filename)%(Extension) + + + %(RecursiveDir)%(Filename)%(Extension) + + + %(RecursiveDir)%(Filename)%(Extension) + + + + + {C76BF5B3-985E-4D39-95FE-97C9C879B83A} + osu.Framework + + + {BBC0D18F-8595-43A6-AE61-5BF36A072CCE} + osu.Framework.iOS + + + + + \ No newline at end of file diff --git a/osu.Framework.Tests.iOS/packages.config b/osu.Framework.Tests.iOS/packages.config new file mode 100644 index 000000000..9fab39231 --- /dev/null +++ b/osu.Framework.Tests.iOS/packages.config @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file