Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
Add pop up tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmontemagno committed Nov 23, 2016
1 parent c288daf commit 8b06e59
Show file tree
Hide file tree
Showing 35 changed files with 745 additions and 0 deletions.
102 changes: 102 additions & 0 deletions tests/Media.sln
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "MediaTest.Shared", "MediaTe
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MediaTest.Windows", "MediaTest.Windows\MediaTest.Windows.csproj", "{8CCFF280-61CC-4A2D-94BD-BC8DC1367128}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PopupMediaCamera", "PopupMediaCamera\PopupMediaCamera.csproj", "{15A0BE14-472C-4586-8947-7BCC2D917D63}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PopupMediaCamera.iOS", "PopupMediaCamera.iOS\PopupMediaCamera.iOS.csproj", "{0E77F089-9D3A-4D27-902C-7F65D09E624D}"
EndProject
Global
GlobalSection(SharedMSBuildProjectFiles) = preSolution
..\src\Media.Plugin.Shared\Media.Plugin.Shared.projitems*{04125cd7-f3b6-4960-b1ba-9f584384ebdf}*SharedItemsImports = 4
Expand Down Expand Up @@ -826,6 +830,102 @@ Global
{8CCFF280-61CC-4A2D-94BD-BC8DC1367128}.Release|x86.ActiveCfg = Release|x86
{8CCFF280-61CC-4A2D-94BD-BC8DC1367128}.Release|x86.Build.0 = Release|x86
{8CCFF280-61CC-4A2D-94BD-BC8DC1367128}.Release|x86.Deploy.0 = Release|x86
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Ad-Hoc|ARM.ActiveCfg = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Ad-Hoc|ARM.Build.0 = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Ad-Hoc|iPhone.Build.0 = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Ad-Hoc|iPhoneSimulator.Build.0 = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Ad-Hoc|Mixed Platforms.ActiveCfg = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Ad-Hoc|Mixed Platforms.Build.0 = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Ad-Hoc|x64.ActiveCfg = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Ad-Hoc|x64.Build.0 = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Ad-Hoc|x86.ActiveCfg = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Ad-Hoc|x86.Build.0 = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.AppStore|Any CPU.ActiveCfg = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.AppStore|Any CPU.Build.0 = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.AppStore|ARM.ActiveCfg = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.AppStore|ARM.Build.0 = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.AppStore|iPhone.ActiveCfg = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.AppStore|iPhone.Build.0 = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.AppStore|iPhoneSimulator.Build.0 = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.AppStore|Mixed Platforms.ActiveCfg = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.AppStore|Mixed Platforms.Build.0 = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.AppStore|x64.ActiveCfg = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.AppStore|x64.Build.0 = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.AppStore|x86.ActiveCfg = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.AppStore|x86.Build.0 = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Debug|Any CPU.Build.0 = Debug|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Debug|ARM.ActiveCfg = Debug|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Debug|ARM.Build.0 = Debug|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Debug|iPhone.Build.0 = Debug|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Debug|x64.ActiveCfg = Debug|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Debug|x64.Build.0 = Debug|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Debug|x86.ActiveCfg = Debug|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Debug|x86.Build.0 = Debug|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Release|Any CPU.ActiveCfg = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Release|Any CPU.Build.0 = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Release|ARM.ActiveCfg = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Release|ARM.Build.0 = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Release|iPhone.ActiveCfg = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Release|iPhone.Build.0 = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Release|x64.ActiveCfg = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Release|x64.Build.0 = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Release|x86.ActiveCfg = Release|Any CPU
{15A0BE14-472C-4586-8947-7BCC2D917D63}.Release|x86.Build.0 = Release|Any CPU
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.Ad-Hoc|Any CPU.ActiveCfg = Ad-Hoc|iPhone
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.Ad-Hoc|ARM.ActiveCfg = Ad-Hoc|iPhone
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Ad-Hoc|iPhoneSimulator
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.Ad-Hoc|iPhoneSimulator.Build.0 = Ad-Hoc|iPhoneSimulator
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.Ad-Hoc|Mixed Platforms.ActiveCfg = Ad-Hoc|iPhone
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.Ad-Hoc|Mixed Platforms.Build.0 = Ad-Hoc|iPhone
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.Ad-Hoc|x64.ActiveCfg = Ad-Hoc|iPhone
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.Ad-Hoc|x86.ActiveCfg = Ad-Hoc|iPhone
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.AppStore|Any CPU.ActiveCfg = AppStore|iPhone
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.AppStore|ARM.ActiveCfg = AppStore|iPhone
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.AppStore|iPhone.ActiveCfg = AppStore|iPhone
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.AppStore|iPhone.Build.0 = AppStore|iPhone
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.AppStore|iPhoneSimulator.ActiveCfg = AppStore|iPhoneSimulator
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.AppStore|iPhoneSimulator.Build.0 = AppStore|iPhoneSimulator
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.AppStore|Mixed Platforms.ActiveCfg = AppStore|iPhone
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.AppStore|Mixed Platforms.Build.0 = AppStore|iPhone
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.AppStore|x64.ActiveCfg = AppStore|iPhone
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.AppStore|x86.ActiveCfg = AppStore|iPhone
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.Debug|Any CPU.ActiveCfg = Debug|iPhone
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.Debug|ARM.ActiveCfg = Debug|iPhone
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.Debug|iPhone.ActiveCfg = Debug|iPhone
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.Debug|iPhone.Build.0 = Debug|iPhone
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.Debug|Mixed Platforms.ActiveCfg = Debug|iPhone
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.Debug|Mixed Platforms.Build.0 = Debug|iPhone
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.Debug|x64.ActiveCfg = Debug|iPhone
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.Debug|x86.ActiveCfg = Debug|iPhone
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.Release|Any CPU.ActiveCfg = Release|iPhone
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.Release|ARM.ActiveCfg = Release|iPhone
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.Release|iPhone.ActiveCfg = Release|iPhone
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.Release|iPhone.Build.0 = Release|iPhone
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.Release|Mixed Platforms.ActiveCfg = Release|iPhone
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.Release|Mixed Platforms.Build.0 = Release|iPhone
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.Release|x64.ActiveCfg = Release|iPhone
{0E77F089-9D3A-4D27-902C-7F65D09E624D}.Release|x86.ActiveCfg = Release|iPhone
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -837,5 +937,7 @@ Global
{44CCD146-CFC0-4ABE-8C61-B7C160F3B306} = {EAB7ED86-6B88-4D76-9CCC-83BFDF137EA8}
{99603C24-247B-4BE8-8642-0775F1DD095B} = {EAB7ED86-6B88-4D76-9CCC-83BFDF137EA8}
{8CCFF280-61CC-4A2D-94BD-BC8DC1367128} = {EAB7ED86-6B88-4D76-9CCC-83BFDF137EA8}
{15A0BE14-472C-4586-8947-7BCC2D917D63} = {EAB7ED86-6B88-4D76-9CCC-83BFDF137EA8}
{0E77F089-9D3A-4D27-902C-7F65D09E624D} = {EAB7ED86-6B88-4D76-9CCC-83BFDF137EA8}
EndGlobalSection
EndGlobal
27 changes: 27 additions & 0 deletions tests/PopupMediaCamera.iOS/AppDelegate.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using Foundation;
using UIKit;

namespace PopupMediaCamera.iOS
{
// The UIApplicationDelegate for the application. This class is responsible for launching the
// User Interface of the application, as well as listening (and optionally responding) to
// application events from iOS.
[Register("AppDelegate")]
public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
{
//
// This method is invoked when the application has loaded and is ready to run. In this
// method you should instantiate the window, load the UI into it and then make the window
// visible.
//
// You have 17 seconds to return from this method, or iOS will terminate your application.
//
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
global::Xamarin.Forms.Forms.Init();
LoadApplication(new App());

return base.FinishedLaunching(app, options);
}
}
}
5 changes: 5 additions & 0 deletions tests/PopupMediaCamera.iOS/Entitlements.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict/>
</plist>
67 changes: 67 additions & 0 deletions tests/PopupMediaCamera.iOS/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>UIDeviceFamily</key>
<array>
<integer>1</integer>
<integer>2</integer>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>MinimumOSVersion</key>
<string>6.0</string>
<key>CFBundleDisplayName</key>
<string>PopupMediaCamera</string>
<key>CFBundleIdentifier</key>
<string>com.plugin.PopupMediaCamera</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>CFBundleIconFiles</key>
<array>
<string>[email protected]</string>
<string>Icon-76.png</string>
<string>[email protected]</string>
<string>Default.png</string>
<string>[email protected]</string>
<string>[email protected]</string>
<string>Default-Portrait.png</string>
<string>[email protected]</string>
<string>Icon-Small-40.png</string>
<string>[email protected]</string>
<string>Icon-Small.png</string>
<string>[email protected]</string>
</array>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>NSCalendarsUsageDescription</key>
<string>Calendars Usage Access Warning</string>
<key>NSRemindersUsageDescription</key>
<string>Reminders Access Warning</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>Photo Library Access Warning</string>
<key>NSContactsUsageDescription</key>
<string>Contacts Access Warning</string>
<key>NSMicrophoneUsageDescription</key>
<string>Microphone Access Warning</string>
<key>NSAppleMusicUsageDescription</key>
<string>Apple Music Access Warning</string>
<key>NSSiriUsageDescription</key>
<string>Siri Access Warning</string>
<key>NSCameraUsageDescription</key>
<string>Can we use your camera</string>
<key>CFBundleShortVersionString</key>
<string></string>
</dict>
</plist>
15 changes: 15 additions & 0 deletions tests/PopupMediaCamera.iOS/Main.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using UIKit;

namespace PopupMediaCamera.iOS
{
public class Application
{
// This is the main entry point of the application.
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");
}
}
}
Loading

0 comments on commit 8b06e59

Please sign in to comment.